From 037b68217241b2e66514149713f8051e0dfbc13c Mon Sep 17 00:00:00 2001 From: Sander Mathijs van Veen <smvv@kompiler.org> Date: Sun, 19 Feb 2012 20:13:45 +0100 Subject: [PATCH] Fixed negation assertion bug. --- src/parser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parser.py b/src/parser.py index a625ff5..5959807 100644 --- a/src/parser.py +++ b/src/parser.py @@ -208,8 +208,7 @@ class Parser(BisonParser): handlers = [] if retval.negated: - print retval, 'OP_NEG', retval.negated - handlers += RULES[OP_NEG] + handlers = handlers[:] + RULES[OP_NEG] for handler in handlers: possibilities = handler(retval) -- 2.26.2