Precedence doesn’t change. #4175
Unanswered
eugenelepekhin
asked this question in
Q&A
Replies: 1 comment 7 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Consider the following snippet of grammar:
The expression:
dub 2 + 3
get parsed like this:
(dub (2 + 3))
So, it’s first flavor of #Call. The predicate IsMacroN() is returning true for that expression.
If I move both calls down, right above the #LocalName branch the expression get parsed in exactly the same tree while I’d expect it to be:
((dub 2) + 3)
Actually, I’d probably expect is the other way around in the above state of the grammar to be the second parse tree, but you probably get the point.
Can someone please explain why moving #Call does not change the precedence?
Beta Was this translation helpful? Give feedback.
All reactions