[antlr-interest] Errors that ANTRL shouldn't issue
Thiago F.G. Albuquerque
tfga at terra.com.br
Thu Apr 10 08:56:10 PDT 2003
Errors that ANTRL shouldn't issue:
1)
tokens
{
// "true";
// "false";
}
grammar.g:18:1: rule classDef trapped:
grammar.g:18:1: unexpected token: }
error: aborting grammar 'MyLexer' due to errors
Exiting due to errors.
--------------------------------------------------------------------------
2)
INT : DIGIT+ ;
ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
grammar.g:28:7: rule classDef trapped:
grammar.g:28:7: unexpected token: DIGIT
error: aborting grammar 'MyLexer' due to errors
Exiting due to errors.
Why isn't this legal? Why do I have to enclose DIGIT in parentheses?
--------------------------------------------------------------------------
Thiago
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list