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

Production names clash with terminal names #378

Open
ericprud opened this issue Aug 30, 2018 · 0 comments
Open

Production names clash with terminal names #378

ericprud opened this issue Aug 30, 2018 · 0 comments

Comments

@ericprud
Copy link

It's a mild pain that a lexer rule like:

"P1"     return 'P1'

conflicts with a grammar rule like:

P1: 'P1' ;

The symbols_ map would show the conflict:

symbols_: {"error":2,…,"P1":4,"EOF":5,"P1":7,…,"$accept":0,"$end":1},

but in fact it fails during compilation so it doesn't get as far as generating such a conflicting map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant