[antlr-interest] Faster expression parsing
Terence Parr
parrt at cs.usfca.edu
Fri Aug 29 13:11:10 PDT 2008
On Aug 29, 2008, at 12:56 PM, James Mansion wrote:
> Terence Parr wrote:
>> 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;?
> OK I mis-wrote, I meant just dropping the production side. You seemed
> to imply that its presence slows things up.
yeah, just because of the way ANTLR builds things right now.
>
>
> And I think a=a; is fair game if you know that operator= has no side
> effects.
> Which is true in Java, and you can define to be true for other antlr
> parse
> tree constructs.
i just Meant that it's not worth all of the coding hassle in the
compiler to remove a=a :)
Ter
More information about the antlr-interest
mailing list