[antlr-interest] Complex AST transformaton

Oliver Zeigermann oliver.zeigermann at gmail.com
Sun Dec 14 08:06:50 PST 2008


importVocab is ANTLR2, but there is tokenVocab for ANTLR3. You can use
it to define the complete token set, but it does not seem to do a
merge of token types, though.

2008/12/14 Gavin Lambert <antlr at mirality.co.nz>:
> At 23:46 14/12/2008, Oliver Zeigermann wrote:
>>How can I import tree token types into a lexer? Importing a tree
>>grammar into a lexer grammar is no allowd.
>
> I'm fairly sure that you can import a .tokens file into a lexer via the
> importVocab option.
>
>


More information about the antlr-interest mailing list