[antlr-interest] Problem while compiling grammar file - regd.
Gavin Lambert
antlr at mirality.co.nz
Fri Aug 22 14:58:37 PDT 2008
At 08:31 23/08/2008, ASHOK REDDY wrote:
>I am getting the following error "Unexpected token:lexer", in
>grammar generated file, in which the actual grammar file is part
>of a larger maven project. The compilation is done using antlr
>v3.0.1 runtime, which is included in configuration of the maven
>project. The error shows up in DOT_.g file, generated from DOT.g
>file. Any help is appreciated on how to debug the error. The
>list is awesome in teaching the How to's of Antlr, which is
>otherwise a difficult tool to get along with. Attached is the DOT
>file and DOT_.g file generated from it.
I didn't look at the attached grammars, but off the top of my head
the most likely explanation is that either your CLASSPATH or
command line is wrong and you're accidentally compiling with ANTLR
v2 instead of v3.
Although if that's the case I'm surprised it's getting as far as
generating the DOT__.g file...
More information about the antlr-interest
mailing list