parser: support unary minus properly
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 22 Aug 2021 19:19:00 +0000 (19:19 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Sun, 22 Aug 2021 19:54:59 +0000 (19:54 +0000)
src/openpower/decoder/pseudo/parser.py

index 4f11f6f14c996caf50ddb5a83e99c2a9e1e707c7..72ce61e40ef280f193716fce93ee20f28981c9db 100644 (file)
@@ -653,7 +653,7 @@ class PowerParser:
                       | comparison BITXOR comparison
                       | comparison BITAND comparison
                       | PLUS comparison
-                      | comparison MINUS
+                      | MINUS comparison
                       | INVERT comparison
                       | comparison APPEND comparison
                       | power"""