[antlr-interest] Re: a new paper on ANTLR style grammars

Pete Forman pete.forman at westerngeco.com
Fri Nov 21 01:30:18 PST 2003


At 2003-11-20 19:53 +0000, lgcraymer wrote:
>Sorry if I was unclear.  Actions need to execute during a parse only
>if they affect the parse--you need semantic predicates for that.
>What you can do is build a list of operations to be executed later.

How about putting an optional second clause into an action that
unwinds it?

That is less automated than the approaches proposed so far but would
be simpler to implement and for the user to understand.

-- 
Pete Forman                -./\.-  Disclaimer: This post is originated
WesternGeco                  -./\.-   by myself and does not represent
pete.forman at westerngeco.com    -./\.-   opinion of Schlumberger, Baker
http://petef.port5.com           -./\.-   Hughes or their divisions.


 

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




More information about the antlr-interest mailing list