Procházet zdrojové kódy

Fixed negation assertion bug.

Sander Mathijs van Veen před 14 roky
rodič
revize
037b682172
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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)