Oops. Should have been...
>> (x += x) = 1 is nonsense. It evaluates to 0 = 1.
> It makes sense, depending on the language. With LVALUE=RVALUE and
> LVALUE+=LVALUE, where the result is an LVALUE, consider it evaluated as
LVALUE+=RVALUE
> ("ref"(x) = deref(x)+deref(x)) = 1
> (Try your expression above in C++, for example. It works as expected.)
>
> Nonetheless right to left parsing seems the only sensible semantics in
> case of = and op= assignments.
>
> Janis
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users