[antlr-interest] Problems generating a tree gramar. It doesn't take in consideration the file.tokens.

Jim Idle jimi at temporal-wave.com
Tue Aug 18 09:13:40 PDT 2009


Marwan Ajraoui wrote:
> Having Mygramar.Tokens I want to generate a tree gramar, but when i
> genertated it does generate the same tokens with others integer values
> as IDs.
>
> Is that normal? Or there is something I'm missing. I think that the
> integer IDs for a tokens should at least have the same value. I'm
> having a missMatchExpetions in the code generated for that reason.
>
> Any idea?
>   
Have you set the token vocab options in your tree grammar such that it 
is looking for Mygramar.tokens [sic]?

Jim



More information about the antlr-interest mailing list