[antlr-interest] keywords

Thomas Brandon tbrandonau at gmail.com
Thu Aug 3 05:49:47 PDT 2006


On 8/3/06, Abhijit Nandkumar Ghonge <Abhijit_Ghonge at infosys.com> wrote:
>
> Hi,Can I use my keywords as literals directly in the parser and still manage to make them
> case insensitive. Please help.
>
> Abhijit.
>
>
Looks like you need to setup you vocabularies properly. Check out the
docs on token vocabularies and the importVocab\exportVocab options.
IIRC you would set exportVocab=MyLang in both the parser and lexer if
they are defined in one file but I could be wrong there.

Tom.


More information about the antlr-interest mailing list