[antlr-interest] Getting Unexpected token @ as errors building examples
Gavin Lambert
antlr at mirality.co.nz
Mon Aug 20 13:48:44 PDT 2007
At 08:33 21/08/2007, atif azad wrote:
>Although my class path contains all the jars from version 2.7.7
and
>version 3 also. I am listing the errors here when i run the
command
>
>java antlr.Tool SimpleC.g
>
>
>
>
>ANTLR Parser Generator Version 2.7.7 (20070812) 1989-2005
>SimpleC.g:1:1: unexpected token: grammar
[...]
Well, you're running the 2.7.7 ANTLR compiler, not the 3.0
compiler. You need to use "org.antlr.Tool" on the command line,
not "antlr.Tool".
More information about the antlr-interest
mailing list