I have a grammar that is failing on the first token. I've stripped it down some to reduce the choices, but still have the error:
line 1:0 mismatched input 'main' expecting {, '@', 'def', IDENTIFIER}
I expect the token 'main' to match IDENTIFIER, which has this lexical production:
IDENTIFIER : [a-zA-Z][a-zA-Z0-9]*;
Why would that be failing?