BNFC / bnfc

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

C/C++/Java: Wrong lexer representation of eps #290

Closed andreasabel closed 4 years ago

andreasabel commented 4 years ago
Foo. Main ::= Empty;
token Empty eps;

The regex eps (match the empty sequence) seems to be translated to [^.] for Flex and JLex. But this is the translation of 0, a regular expression not matching anything.