[antlr-interest] Rewriting to Flat Tree Nodes for Associative Multiary Operators
Randall R Schulz
rschulz at sonic.net
Thu Oct 2 16:34:48 PDT 2008
On Thursday 02 October 2008 16:15, you wrote:
> ...
>
> yes the second (non-recursion form) acts as you report
>
>
> however the former, recursive, form generates (for me)
>
> (Or p (Or q (Or r s)))
>
> for your input string. I can't remember anymore, is that what you
> wanted?
Nope. I can get that easily. What I'm trying to get is this:
(Or p q r s)
> Sorry about any confusion I may have caused.
No problem. Perhaps I was too aggressive in trimming earlier quoted
material.
Randall Schulz
More information about the antlr-interest
mailing list