From ecaf1930277bf79b8f8da8660e38fd92141b7100 Mon Sep 17 00:00:00 2001 From: rocky Date: Thu, 21 Nov 2024 13:26:46 -0500 Subject: [PATCH] PRECEDENCE is needed in no-meaning operators info --- mathics_scanner/generate/build_operator_tables.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 mathics_scanner/generate/build_operator_tables.py diff --git a/mathics_scanner/generate/build_operator_tables.py b/mathics_scanner/generate/build_operator_tables.py old mode 100644 new mode 100755 index 6894f16..190402e --- a/mathics_scanner/generate/build_operator_tables.py +++ b/mathics_scanner/generate/build_operator_tables.py @@ -68,12 +68,13 @@ def compile_tables( continue affix = operator_info["affix"] + precedence = operator_info["precedence"] if affix == "Infix": - no_meaning_infix_operators[operator_name] = unicode_char + no_meaning_infix_operators[operator_name] = unicode_char, precedence elif affix == "Postfix": - no_meaning_postfix_operators[operator_name] = unicode_char + no_meaning_postfix_operators[operator_name] = unicode_char, precedence elif affix == "Prefix": - no_meaning_prefix_operators[operator_name] = unicode_char + no_meaning_prefix_operators[operator_name] = unicode_char, precedence else: print(f"FIXME: affix {affix} of {operator_name} not handled") return {