[antlr-interest] Faster expression parsing
Terence Parr
parrt at cs.usfca.edu
Fri Aug 29 12:51:49 PDT 2008
On Aug 29, 2008, at 12:40 PM, James Mansion wrote:
> Terence Parr wrote:
>> This one is much more efficient but I am not sure it will show up
>> unless you have a huge input.
>>
> Isn't the optimisation of:
>
> <some-elided-constructs> foo <some-more-elided-constructs> -> foo
>
> to
>
> foo
>
> something that antlr could do fairly easily?
nope... how can I be sure you do not want those elided constructs?
foo -> foo
I suppose I could get rid of, but two compilers really get rid of a=a;?
Ter
More information about the antlr-interest
mailing list