-
Notifications
You must be signed in to change notification settings - Fork 19
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
Clean up precedence parser codegen since DSL v2 #699
Commits on Dec 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1f1468b - Browse repository at this point
Copy the full SHA 1f1468bView commit details -
Remove PrecedenceExpression::rule_name in favor of using its name
This introduced individual rule kinds per each precedence expression and we lose the grouping rules such as BinaryExpression. Not sure how desirable they were in the first place but it seems better and easier to handle specific expressions rather than using grouping rule kinds like before.
Configuration menu - View commit details
-
Copy full SHA for 1bbb2d5 - Browse repository at this point
Copy the full SHA 1bbb2d5View commit details -
refactor: Move
disambiguating_name_suffix
to precedence-related codeSince it's the only place it's used and it's a small helper.
Configuration menu - View commit details
-
Copy full SHA for b3e7c16 - Browse repository at this point
Copy the full SHA b3e7c16View commit details -
Configuration menu - View commit details
-
Copy full SHA for f877ec6 - Browse repository at this point
Copy the full SHA f877ec6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65e2a26 - Browse repository at this point
Copy the full SHA 65e2a26View commit details -
Configuration menu - View commit details
-
Copy full SHA for eddd9ae - Browse repository at this point
Copy the full SHA eddd9aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0293980 - Browse repository at this point
Copy the full SHA 0293980View commit details -
Deduplicate the precedence operator parser functions
This also fixes a run-time regression introduced with duplicate operator parsers when migrating to v2. To support different associativity/models for precedence expressions across multiple versions, the parser generator now: - groups the operators by model for a given precedence expression - defines a sub-parser for (expression, model) as a choice over the operators with a given model - each of the precedence sub-parses reduces to the parent precedence expression rule kind.
Configuration menu - View commit details
-
Copy full SHA for 49acebb - Browse repository at this point
Copy the full SHA 49acebbView commit details -
Allow parsing precedence expressions in our public API
This lets us completely get rid of the ProductionKind, as we support parsing every `RuleKind` now.
Configuration menu - View commit details
-
Copy full SHA for 9f0add6 - Browse repository at this point
Copy the full SHA 9f0add6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0296bef - Browse repository at this point
Copy the full SHA 0296befView commit details
Commits on Dec 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 137a1df - Browse repository at this point
Copy the full SHA 137a1dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4dd9db - Browse repository at this point
Copy the full SHA c4dd9dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for b5c14bc - Browse repository at this point
Copy the full SHA b5c14bcView commit details -
Co-authored-by: Omar Tawfik <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1ed286f - Browse repository at this point
Copy the full SHA 1ed286fView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe12dd3 - Browse repository at this point
Copy the full SHA fe12dd3View commit details -
Revert "Add a unit test for the precedence expression parsers"
This reverts commit 0296bef.
Configuration menu - View commit details
-
Copy full SHA for 3da8aee - Browse repository at this point
Copy the full SHA 3da8aeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for af09120 - Browse repository at this point
Copy the full SHA af09120View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04a6e59 - Browse repository at this point
Copy the full SHA 04a6e59View commit details