-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Left-associativity #387
Comments
Have a look at this calculator example grammar it handles operator precedence. Its the same pattern as used in Antlr3 and most Top Down parsers which do not support Left recursion. You can also consider to not embed precedence into the grammar. AlternativeThe Swift programing language takes an interesting approach to solve this complexity
|
Yes, I'm sometimes a bit too focused on syntax and syntax is sometimes used for Precedence handling. |
The text was updated successfully, but these errors were encountered: