Skip to content

Commit

Permalink
fix precedence for Directed and Undirected Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatera committed Nov 30, 2024
1 parent b51e4db commit 54a2c3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mathics_scanner/data/operators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ DifferentialD:
# comments:

DirectedEdge:
precedence: 128
precedence: 295
WolframLanguageData:
WolframLanguageData-corrected: 49
UnicodeCharacters.tr: 395
Expand Down Expand Up @@ -7057,7 +7057,7 @@ UnderscriptBox:
# comments:

UndirectedEdge:
precedence: 120 # FIXME: is probably 295. Check and adjust after code and mathics-core are merge
precedence: 295
WolframLanguageData:
WolframLanguageData-corrected: 49
UnicodeCharacters.tr: 395
Expand Down
4 changes: 2 additions & 2 deletions test/test_mathics_precedence.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@
"TildeFullEqual",
"TildeTilde",
# In Mathics, the precedence of these operators is quite low.
# "DirectedEdge", # Mathics 128 , WMA 295
# "UndirectedEdge", # Mathics 120, WMA 295
"DirectedEdge", # Mathics 128 , WMA 295
"UndirectedEdge", # Mathics 120, WMA 295
"SquareUnion",
"UnionPlus",
"Span",
Expand Down

0 comments on commit 54a2c3a

Please sign in to comment.