Skip to content

Production names clash with terminal names #378

@ericprud

Description

@ericprud

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions