[antlr-interest] controlling tree sequence in a parser

Michiel Vermandel Michiel_Vermandel at axi.be
Thu Apr 13 08:34:24 PDT 2006


Hi,

I want to move up a complete subrule in my AST tree.
I try to use the '^' character, but seems to be illegal to use on anything 
else but a single token.
Thus this is rejected:

select_expression
            :
         "select"  select_list
         "into"       variable_list
         "from"     table_reference_list^   //  <-- not  accepted
            ;
 

Any Idea how I can get the result of the subrule " table_reference_list" 
to the top of the AST tree?

Thanks!

Michiel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060413/8d01bade/attachment.html


More information about the antlr-interest mailing list