[antlr-interest] What's the difference between these two rules?
chain one
chainone at gmail.com
Wed Nov 26 02:48:26 PST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20081126/c52dc984/attachment.html
More information about the antlr-interest
mailing list