Bruce Bauman wrote:
> In the sometimes bizarre dialect of Pascal I am using (MetaWare), the 
> following is allowed:
>  
> Odd := Even := 0;

It's also worth noting that in many languages this isn't considered to 
be strange. You just evaluate the assignment operator right-to-left; the 
value of an assignment expression is the value that was assigned. The 
AST would be like

(ASS Odd (ASS EVEN 0))

I'm sure in your case the dialect your translating to doesn't like it, 
or you wouldn't be worried, but I thought it was worth mentioning as 
background.

-- 
Sam Barnett-Cormack

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to