[antlr-interest] Tree Grammar from parser grammar
G R
relationalalgebra at gmail.com
Tue Sep 25 07:42:03 PDT 2007
Sounds perfect !
I wanted the operators OR and AND as root and the logicalTerms as child.
This looks good.
Thanks a lot.
2007/9/25, Shmuel Siegel <ssiegel at finjan.com>:
>
> I don't know how you want your tree to look but one possibility is:
>
>
>
> conditionTerm
> : l+=logicalTerm (Or^ l+=logicalTerm)*
>
> ->($Or $l*)
>
> ;
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070925/b4fdda0f/attachment.html
More information about the antlr-interest
mailing list