cwbaker / lalr

LALR(1) parser for C++
MIT License
78 stars 11 forks source link

Report undefined symbols as errors #12

Closed cwbaker closed 1 year ago

cwbaker commented 1 year ago

Terminals appearing in precedence directives but are otherwise undefined need to generate errors otherwise they're assumed to be non-terminals and generate many hard to understand shift/reduce conflicts.

See https://github.com/cwbaker/lalr/issues/11#issuecomment-1459928742.