Skip to content
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

Add explicit EOF to top-level parser rule #1217

Merged
merged 2 commits into from
Nov 4, 2019
Merged

Add explicit EOF to top-level parser rule #1217

merged 2 commits into from
Nov 4, 2019

Conversation

albert-magyar
Copy link
Contributor

* Fixes #1154
* Tests that #1154 example produces SyntaxErrorsException
* Generally helps catch trailing syntax errors
* Performance-neutral relative to previous grammar
* Recommended by antlr4 devs, can help performance in some cases
* See antlr/antlr4#1540
@albert-magyar
Copy link
Contributor Author

I added a test case for the example from #1154 that @seldridge found.

@albert-magyar albert-magyar added this to the 1.2.1 milestone Oct 29, 2019
@albert-magyar albert-magyar added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Nov 4, 2019
@mergify mergify bot merged commit 8f108c1 into master Nov 4, 2019
@azidar
Copy link
Contributor

azidar commented Nov 22, 2019

@Mergifyio backport 1.2.x

mergify bot pushed a commit that referenced this pull request Nov 22, 2019
* Fixes #1154
* Tests that #1154 example produces SyntaxErrorsException
* Generally helps catch trailing syntax errors
* Performance-neutral relative to previous grammar
* Recommended by antlr4 devs, can help performance in some cases
* See antlr/antlr4#1540

(cherry picked from commit 8f108c1)
@mergify
Copy link
Contributor

mergify bot commented Nov 22, 2019

Command backport 1.2.x: success

Backports have been created
The following pull requests have been created:

Hey, we reacted but our real name is @Mergifyio

mergify bot added a commit that referenced this pull request Nov 22, 2019
* Fixes #1154
* Tests that #1154 example produces SyntaxErrorsException
* Generally helps catch trailing syntax errors
* Performance-neutral relative to previous grammar
* Recommended by antlr4 devs, can help performance in some cases
* See antlr/antlr4#1540

(cherry picked from commit 8f108c1)
@albert-magyar albert-magyar deleted the antlr4-eof branch December 10, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
Firrtl Development
PR - Needs Review
Development

Successfully merging this pull request may close these issues.

No FIRRTL parsing error on malformed input
2 participants