[antlr-interest] (unknown)

Pete Forman pete.forman at westerngeco.com
Tue Mar 18 06:16:02 PST 2003


At 2003-03-18 14:47 +0100, Christian CORMIER wrote:
>I have in an AST a rule like this :
>A : B (C)? ;
>When B is recognized, a semantic action is necessary only if C is present.

A : B ( C {do_action;}
       | // empty
       ) ;

-- 
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