[antlr-interest] Faster expression parsing

Terence Parr parrt at cs.usfca.edu
Thu Aug 28 13:27:36 PDT 2008


On Aug 28, 2008, at 1:20 PM, Gavin Lambert wrote:
> 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 ')'!
>    ;

This one is much more efficient but I am not sure it will show up  
unless you have a huge input.
Ter


More information about the antlr-interest mailing list