[antlr-interest] examples grammars involving "@synpredgate{...}"?

David A Weiser DWEISER at uwyo.edu
Mon Jun 11 08:38:12 PDT 2007


I've been looking for example grammars that use the @synpredgate{...} 
action, but i cannot find any. 

right now i've tried the following in my grammar: 
_____________ 
<header, lexer, members here>

@synpredgate{true} 

<rules start here> 
... 
_______________ 

and 

______________ 
<header, lexer, members here>

@synpredgate{backtracking >=0} 

<rules start here> 
... 
_____________ 

but, when the grammar is compiled, "backtracking==0" is still the 
gate.  what am i doing wrong? 
thanks, 
dave 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070611/10768097/attachment-0001.html 


More information about the antlr-interest mailing list