BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
586 stars 165 forks source link

Tokens from "internal" rules end up in Lexer #204

Closed andreasabel closed 5 years ago

andreasabel commented 7 years ago

Consider this grammar:

internal Internal. Prg ::= "Internal";
Main. Prg ::= Ident ;

The generated parser fails to parse the input Internal, which should be an ok identifier. Concerns at least Haskell and Java backends, I have not tested the others.