about summary refs log tree commit diff stats
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
parente9dee4eb5e8b8dc0b81e22598b754c8df29f1674 (diff)
downloadmiasm-64df992e382d32b51e6ea2d455510250db77e70b.tar.gz
miasm-64df992e382d32b51e6ea2d455510250db77e70b.zip
Unlock pyparsing version
Diffstat (limited to '')
-rw-r--r--miasm/core/cpu.py2
-rw-r--r--requirements.txt2
-rw-r--r--setup.py2
3 files changed, 3 insertions, 3 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),
diff --git a/requirements.txt b/requirements.txt
index 5db3c2a8..b518400d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,2 @@
-pyparsing~=2.0
+pyparsing>=2.4.1
 future
diff --git a/setup.py b/setup.py
index a33f608f..e1e54434 100644
--- a/setup.py
+++ b/setup.py
@@ -325,7 +325,7 @@ def build_all():
                         "VERSION"
                     ]
                 },
-                install_requires=["future", "pyparsing~=2.0"],
+                install_requires=["future", "pyparsing>=2.4.1"],
                 cmdclass={"install_data": smart_install_data},
                 ext_modules = ext_modules,
                 # Metadata