[antlr-interest] what is best?

Heinrich du Toit heinrich at silasvalley.com
Wed Oct 29 09:39:15 PDT 2008


Hi

this goes towards how predicates work...

First possbility:

a: ('{')=> b
    | c;
b: '{' ID '}';

second possibility:
a: b | c ;
b: ('{')=> '{' ID '}' ;

It's just an example but the question is where do I put the syn-pred for 
the best effect?
with backtrace enabled I'm guessing it will auto imlement the second option?

Thanks


More information about the antlr-interest mailing list