[antlr-interest] Re: more specific (lang independent?) actions (WAS: header sections)
Terence Parr
parrt at cs.usfca.edu
Thu Nov 18 14:51:35 PST 2004
On Nov 18, 2004, at 2:34 PM, lgcraymer wrote:
>> section fields {
>> ....
>> }
>
> I like the way this discussion has been going, but even better would
> be to use a language qualifier where appropriate:
>
> java header { ... }
> or
> cpp options { ... }
> or
> python init { ... }
Ooooh. Yeah, that way you'd know when you have a problem converting a
grammar to a different language.
That said, it seems like some should be universal so you don't have to
change per target:
init {...}
right?
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list