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

Sven Busse mail at ghost23.de
Sun Feb 11 08:10:45 PST 2007


Hi,

i have lexer and parser in one file. Using the
traceLexer or traceParser didn't help me.

What does this message mean anyway?

-----Ursprüngliche Nachricht-----
Von: Ric Klaren [mailto:ric.klaren at gmail.com] 
Gesendet: Sonntag, 11. Februar 2007 14:50
An: Sven Busse
Cc: antlr-interest at antlr.org
Betreff: Re: [antlr-interest] expecting "class", found 'class'

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