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

Ignore internal non-terminals in parser #264

Closed
andreasabel opened this issue Nov 4, 2019 · 0 comments
Closed

Ignore internal non-terminals in parser #264

andreasabel opened this issue Nov 4, 2019 · 0 comments
Assignees
Labels
bug internal rules Concerning the "internal" keyword.
Milestone

Comments

@andreasabel
Copy link
Member

Prg. Program ::= "main" ;
internal VInt. Value ::= Integer ;

BNFC does currently not produce a valid Happy parser for this.

happy InternalCat/Par.y
InternalCat/Par.y: unknown identifier 'Value'

When generating the parser, we should ignore all non-parsable rules.

@andreasabel andreasabel added bug internal rules Concerning the "internal" keyword. labels Nov 4, 2019
@andreasabel andreasabel added this to the 2.8.4 milestone Nov 4, 2019
@andreasabel andreasabel self-assigned this Nov 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug internal rules Concerning the "internal" keyword.
Projects
None yet
Development

No branches or pull requests

1 participant