BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
582 stars 161 forks source link

Empty regular expression crashes Alex #388

Closed andreasabel closed 2 years ago

andreasabel commented 2 years ago
$ cat test.cf
Empty2. E ::= Empty;

token Empty [""];

This produces:

So there should be a check for the empty regular expression, like for the nullable one.