[antlr-interest] Complex AST transformaton
jaluber at gmx.de
Sun Dec 14 08:58:34 PST 2008
Oliver Zeigermann schrieb:
> 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.
I suppose you have to import the tokens in the lexer of the second
L1 -> P1 -> AST1
T1 -> L2 -> P2 -> AST2
should clarify the order.
> 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.
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest