about summary refs log tree commit diff stats
path: root/miasm/core
diff options
context:
space:
mode:
authorWilliam Bruneau <william.bruneau@epfedu.fr>2024-01-04 10:36:39 +0100
committerWilliam Bruneau <william.bruneau@epfedu.fr>2024-01-04 10:36:39 +0100
commit64df992e382d32b51e6ea2d455510250db77e70b (patch)
treef2e417030c64cc462b7da3ab09eaf602b45e496f /miasm/core
parente9dee4eb5e8b8dc0b81e22598b754c8df29f1674 (diff)
downloadfocaccia-miasm-64df992e382d32b51e6ea2d455510250db77e70b.tar.gz
focaccia-miasm-64df992e382d32b51e6ea2d455510250db77e70b.zip
Unlock pyparsing version
Diffstat (limited to 'miasm/core')
-rw-r--r--miasm/core/cpu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/core/cpu.py b/miasm/core/cpu.py
index 7a1cacff..ceeebdc6 100644
--- a/miasm/core/cpu.py
+++ b/miasm/core/cpu.py
@@ -393,7 +393,7 @@ variable = pyparsing.Word(pyparsing.alphas + "_$.", pyparsing.alphanums + "_")
 variable.setParseAction(cb_parse_id)
 operand = str_int | variable
 
-base_expr = pyparsing.operatorPrecedence(operand,
+base_expr = pyparsing.infixNotation(operand,
                                [(notop,   1, pyparsing.opAssoc.RIGHT, cb_op_not),
                                 (andop, 2, pyparsing.opAssoc.RIGHT, cb_op_and),
                                 (xorop, 2, pyparsing.opAssoc.RIGHT, cb_op_xor),