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.)
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.)