[antlr-interest] Does @synpredgate work per rule?

Colin Macdonald Colin.Macdonald at us.gbs.com
Mon Nov 22 10:37:44 PST 2010


Hi all, quick question,

Searching the forums leads me to believe that @synpredgate works at the 
rule level.  However my attempts (in Java target) still end up with "if ( 
state.backtracking==0 )" code

Terence posted this, which seems to indicate that it will work

http://markmail.org/message/fv4teaxn6xnac7r7 

A month earlier he'd described the exact problem I'm facing with syntactic 
predicates and setting necessary scope variables in actions during 
backtracking.  But didn't have a solution at that time.

http://www.antlr.org/wiki/display/ANTLR3/Action+execution+during+backtracking 


Thanks
Colin

Colin Macdonald
Senior Consultant
_____________________________________ 

GROUP Business Software
Phone: 770 720 1300 ext: 6132

http://www.gbs.com/


More information about the antlr-interest mailing list