-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor structure and API #12
Merged
Merged
Conversation
This file contains 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
* Nonterminal struct is now generated internally * Start rule is now generated internally * Reduce the number of required attributes * Rename LALR{Parser, Lexer} to Parser, Lexer
timsueberkrueb
changed the title
WIP: Refactore structure and API
WIP: Refactor structure and API
Dec 15, 2018
Not quite happy with this one, but I'm fine sacrificing that for consistency in this case.
Don't know what's going on here, yet, but this is a blocker
Make generated code independent from ParseTable.
timsueberkrueb
force-pushed
the
feature/refactor_structure
branch
from
December 21, 2018 18:34
5020796
to
cd6cc44
Compare
Now that codegen doesn't rely on converting core types to tokens anymore, we can safely drop this.
Return results instead of using panic!() in codegen's parse mod
This decouples yalr and therefore parsers generated using the procedural macro from yalr_core.
Supress clippy warnings (we cannot change this signature)
TODOs for this one:
Upstream: |
timsueberkrueb
changed the title
WIP: Refactor structure and API
Refactor structure and API
Dec 23, 2018
It is possible that not all possible terminals are handled here because codegen only knows about the terminals that are part of the rules. Therefore, we need to behave as if we have encountered unexpected input in this case.
Don't merge yet, test case is coming. |
DanielBicek
approved these changes
Dec 23, 2018
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.
See #9.