At 06:07 29/08/2008, Terence Parr wrote:
 >Note that you can improve the speed slightly when you are 
grammar
 >by removing unnecessary tree stuff.
 >
 >> primary_expression
 >>         :       INTEGER
 >>                 -> ^(INTEGER)
 >>         |       '(' expression ')'
 >>                 -> expression
 >>         ;
 >
 >primary_expression
 >         :       INTEGER
 >         |       '(' expression ')' -> expression
 >         ;

If the second one is faster than the first, does that mean that 
the below would be faster than the second?  Or are they 
equivalent?

primary_expression
     :    INTEGER
     |    '('! expression ')'!
     ;


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