SmaCCRefactoring / SmaCC

Smalltalk Compiler Compiler : a parser generator
Other
33 stars 15 forks source link

SmaCC should warn that a token can be empty #34

Open ThierryGoubier opened 7 years ago

ThierryGoubier commented 7 years ago

If the regular expression allow the empty string, an empty token will never be generated.

<name> : [a-zA-Z]* ;

Will never result in an empty \<name>

ThierryGoubier commented 6 years ago

In fact, it may result in an empty <name> to be generated, just before the E O F Token