[antlr-interest] Lexer rules with params
Gavin Lambert
antlr at mirality.co.nz
Fri Feb 15 02:26:51 PST 2008
At 22:50 15/02/2008, Alex Shneyderman wrote:
>antlr generates Lexer that is invalid in method mTokens the case
>stmt is missing parmater:
>
>case 100 :
> {
> mNewLine();
> }
> break;
>
>Parameters are not allowed to non-fragment lexer rules ? Or this
is
>a bug ?
That's right, parameters are not allowed on non-fragment lexer
rules. (Think about it: mTokens is automatically generated by
ANTLR itself -- what would it pass as a parameter?)
More information about the antlr-interest
mailing list