[antlr-interest] expecting "class", found 'class'

Ric Klaren ric.klaren at gmail.com
Sun Feb 11 05:49:37 PST 2007


Hi,

On 2/11/07, Sven Busse <mail at ghost23.de> wrote:
> i tried this already with the testLiterals option, but it
> doesn't change anything :(
> Also, i read, that if you don't set any option, then
> testLiterals would be true by default.

Do you have lexer and parser in one file? If not then it might be that
there's something out of sync with the token definitions. You can
double check this by looking at the *TokenTypes.txt files generated.
Also genreating the lexer with the -traceLexer could be helpfull.

Cheers,

Ric


More information about the antlr-interest mailing list