Skip to content

Commit

Permalink
PRECEDENCE is needed in no-meaning operators info
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Nov 21, 2024
1 parent df19189 commit ecaf193
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mathics_scanner/generate/build_operator_tables.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ecaf193

Please sign in to comment.