Yacc#335
Merged
Merged
Conversation
ad4ffe6 to
641771a
Compare
added 5 commits
May 26, 2026 01:03
Reformat Hocc/Bison references (previously `hocc`/`bison`). Use "automata" rather than "automatons".
CPCT⁺ is not ideally suited to the Hemlock grammar, primarily because dentation is semantically relevant in a way that strongly constrains the types of parsing errors that are possible. (The scanner validates and repairs dentation.) Strategies for repairing nonlocal paired delimiter errors are feasible for Hemlock, nondelimited expressions span single logical lines, and in combination with `error` token strategies the blast radius of syntax errors is quite small in practice. Finally, the canonical CPCT⁺ algorithm depends on timeouts to limit searches, which introduces nondeterminism to otherwise pure computation; an opcount-based alternative could be devised, but that would be novel engineering.
Refactor to use `Symbols.{tokens,nonterms}_fold` rather than
`Symbols.symbols_fold` where appropriate.
Keep remerging enabled by default for APLR even in the face of unresolved conflicts, for consistency with IELR.
The APLR implementation operates on post-conflict-resolution action sets, which obscures the principle underlying reduce action set remergeability. Add a comment which describes the equivalent algorithm for pre-conflict-resolution action sets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.