I am reading the <<The Definitive ANTLR Reference. Building Domain-Specific
Languages>> book
And I am confused about something talked in p315 of Chapter 12.

Could someone tell me what the difference is between the following two
rules?

stat
options{backtrack=true}
: declaration
| expression
;


stat
:(declaration)=> declaration
| expression
;

Thanks for your help.
Best Regards,

Young

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

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

Reply via email to