At 05:39 30/10/2008, Heinrich du Toit wrote:
 >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?

The first is much better.  (On the other hand, it's also usually 
unnecessary, since ANTLR will automatically put in single-token 
lookahead in 'a' to decide between 'b' and 'c' anyway.)


List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to