[sldev] Re: SLDev Digest, Vol 6, Issue 50
Soft Linden
soft at lindenlab.com
Mon Jun 18 22:45:50 PDT 2007
Thanks, I'm putting this on my tasklist!
On 6/14/07, Argent Stonecutter <secret.argent at gmail.com> wrote:
> >
> > Unfortunately, the patched grammar is now too greedy when it tries to
> > fold constant expressions:
> >
> > x = x - 5 - 5; // becomes x = x - (5-5) becomes x = x - 0
>
> Ah.
>
> There's not a clean fix for that, you need to have it create the
> parse tree and fold constant expressions at run time. Not as
> straightforward as I thought. Have to drop back to just handling the
> "-x" case.
>
> Don't discard the lex patch! The lex file has several wrong solutions
> to try and fix various symptoms in lex instead of yacc, and it
> basically comes down to "knocking '-' off and fixing the other broken
> stuff".
>
> Instead, drop most of the indra.y patch.
>
> Here's the minimum patch, try it.
>
>
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> /index.html
>
>
>
More information about the SLDev
mailing list