[antlr-interest] Tree construction syntax
Arnar Birgisson
arnarb at oddi.is
Thu Oct 9 08:12:01 PDT 2003
Brilliant.. didn't know about (...) = #(...).
Thanks.. in the future I will rtfm.. :o)
Arnar
> -----Original Message-----
> From: Jim O'Connor [mailto:Jim.OConnor at microfocus.com]
> Sent: 9. október 2003 15:03
> To: antlr-interest at yahoogroups.com
> Subject: RE: [antlr-interest] Tree construction syntax
>
>
> No difference.
>
> http://www.antlr.org/doc/trees.html#_bb1
>
> Just above
> "Invoking parsers that build trees"
>
>
>
> In addition to the translation of the #(...) as a whole, the
> root and each
> child c1..cn will be translated. Within the context of a
> #(...) construct,
> you may use:
>
> id or label as a shorthand for #id or #label.
> [...] as a shorthand for #[...].
> (...) as a shorthand for #(...).
>
>
> -----Original Message-----
> From: Arnar Birgisson [mailto:arnarb at oddi.is]
> Sent: Thursday, October 09, 2003 10:56 AM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Tree construction syntax
>
>
> What is the difference between
>
> #([PARENT,"parent"], child1, child2)
>
> and
>
> #(#[PARENT,"parent"], child1, child2)
>
> Arnar
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> ______________________________________________________________
> __________
> This e-mail has been scanned for viruses by MCI's Internet
> Managed Scanning
> Services - powered by MessageLabs. For further information visit
> http://www.mci.com
> ______________________________________________________________
> __________
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list