[antlr-interest] Building Treenodes from Kleene Closure
Dejas Ninethousand
dejas9000 at gmail.com
Tue Feb 19 09:27:57 PST 2008
If I have the grammar:
expression_list
:
expression (EXPRESSION_LIST_SEPARATOR expression)* -> EXPRESSION_LIST
;
Is there anyway to build the AST such that *n *EXPRESSION_LIST_SEPARATOR
nodes actually appear the number of times the separator appears in the
input? If so, how would I express that on the right hand side of the arrow?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080219/b8f4bcae/attachment.html
More information about the antlr-interest
mailing list