[antlr-interest] Tree construction with loops, children at same level
markobarko at gmail.com
Fri Apr 18 10:25:32 PDT 2008
So, given a rule like this:
: (byFunction -> byFunction)
(opNode=UnionOp b=byFunction -> ^(Function[$opNode] $unionFunction
the following input:
a union b union c
creates a tree which consists of a union node with two children, one of
which is another union node (essentially "(a union b) union c").
what i want in such scenarios is to output a single union node with
three children. how is this done?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest