[antlr-interest] options and tokens

Johannes Luber jaluber at gmx.de
Tue Jan 15 04:12:26 PST 2008


David Holroyd schrieb:
> I have it working with,
> 
>   grammar G;
>   options { ... }
>   tokens { ... }

The reason why this works and not the other way around is that the 
current grammar parser doesn't work order-independent yet. IIRC, the 
wiki details the expected order at some page.

Johannes


More information about the antlr-interest mailing list