haskell / happy

The Happy parser generator for Haskell
Other
288 stars 84 forks source link

Parse error on empty %token list #107

Open andreasabel opened 7 years ago

andreasabel commented 7 years ago

Happy does not accept the empty list after %token. CUP for instance, can live without terminals.

Is there a reason why an empty token list should not at least be parsed? (I admit there are no sensible grammars if there are no tokens, but: garbage-in-garbage-out.)