Explorar el Código

Fixed negation assertion bug.

Sander Mathijs van Veen hace 14 años
padre
commit
037b682172
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/parser.py

+ 1 - 2
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)