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

ANTLR backend: start rules needed #272

Closed
andreasabel opened this issue Nov 25, 2019 · 1 comment
Closed

ANTLR backend: start rules needed #272

andreasabel opened this issue Nov 25, 2019 · 1 comment
Assignees
Labels
bug entrypoints Concerning entry points for the parser and the `entrypoints` directive Java/ANTLR
Milestone

Comments

@andreasabel
Copy link
Member

See #163 and antlr/antlr4#2689 : ANTLR will sometimes require a start rule

  StartX : X EOF;

for entrypoint X. The current ANTLR backend does not emit such start rules (the LR parser generators add it automatically), thus, the parser fails in some cases.
TODO: emit such start rules when generating the ANTLR input.

@andreasabel andreasabel added this to the 2.8.4 milestone Nov 25, 2019
@andreasabel andreasabel self-assigned this Nov 25, 2019
@andreasabel
Copy link
Member Author

BNFC now emits start rules for all entrypoints in the ANTLR backend.

andreasabel added a commit that referenced this issue Nov 25, 2019
@andreasabel andreasabel added the entrypoints Concerning entry points for the parser and the `entrypoints` directive label Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug entrypoints Concerning entry points for the parser and the `entrypoints` directive Java/ANTLR
Projects
None yet
Development

No branches or pull requests

1 participant