[antlr-interest] #( root children ) syntax change proposal?

Matt Benson gudnabrsam at yahoo.com
Fri Nov 21 09:27:19 PST 2003


That was cool.

--- Terence Parr <parrt at cs.usfca.edu> wrote:
> Howdy.  Well, naturally I'd build an ANTLR 2 to
> ANTLR 3 translator :)
> 
> Terence
> On Friday, November 21, 2003, at 01:18  AM,
> Boulanger Jean-Louis wrote:
> 
> >
> >
> > Hello
> >
> > # is actually used if you change I change all my
> development.
> >
> > I think it's preferable to preserve the past and
> perhaps offer two 
> > solutions
> >  # and ^ for compatibilities.
> >
> >
> > Selon Arnar Birgisson <arnarb at oddi.is>:
> >
> >> I agree, ^ is (to me) more appropriate as "root"
> than #.
> >>
> >> vote +1
> >>
> >> Arnar
> >>
> >>> -----Original Message-----
> >>> From: Terence Parr [mailto:parrt at cs.usfca.edu]
> >>> Sent: 18. nóvember 2003 19:21
> >>> To: antlr-interest at yahoogroups.com
> >>> Subject: [antlr-interest] #( root children )
> syntax change proposal?
> >>>
> >>>
> >>> Howdy folks,
> >>>
> >>> The #(...) notation derives from wanting to use
> parens like LISP but
> >>> not wanting the ambiguity with (... | ...)
> alternative
> >>> subrules. The #
> >>> was the only character left in ASCII for me to
> use ;)  I have always
> >>> not liked it, but now it's ingrained.  That
> said, I've been
> >>> thinking of
> >>> changing it for ANTLR 3 into
> >>>
> >>> ^(root c1 ... cn)
> >>>
> >>> in tree parsers and tree construction actions. 
> There MAY be some
> >>> ambiguity with the ^ suffix operator, but I
> think we might
> >>> wanna try it
> >>> out.
> >>>
> >>> Anybody have any thoughts?  I like it as it's
> more intuitive
> >>> that that
> >>> is a tree ;)  # is random.
> >>>
> >>> Ter
> >>> --
> >>> Professor Comp. Sci., University of San
> Francisco
> >>> Creator, ANTLR Parser Generator,
> http://www.antlr.org
> >>> Co-founder, http://www.jguru.com
> >>> Co-founder, http://www.knowspam.net enjoy email
> again!
> >>> Co-founder, http://www.peerscope.com pure link
> sharing
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> 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/
> >>
> >
> >
> >
> >
> > -------------------------------------------------
> > Laboratoire Heudiasyc. UMR CNRS 6599
> > http://www.hds.utc.fr
> >
> > -------------------------------------------------
> > Laboratoire Heudiasyc. UMR CNRS 6599
> > http://www.hds.utc.fr
> >
> >
> >
> > Your use of Yahoo! Groups is subject to 
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> --
> Professor Comp. Sci., University of San Francisco
> Creator, ANTLR Parser Generator,
> http://www.antlr.org
> Co-founder, http://www.jguru.com
> Co-founder, http://www.knowspam.net enjoy email
> again!
> Co-founder, http://www.peerscope.com link sharing,
> pure-n-simple
> 
> 
> 
> 
>  
> 
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/ 
> 
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list