jison icon indicating copy to clipboard operation
jison copied to clipboard

Production names clash with terminal names

Open ericprud opened this issue 7 years ago • 0 comments

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.

ericprud avatar Aug 30 '18 07:08 ericprud