|synthized attributes in eli email@example.com (Oguz Akyuz) (2002-11-26)|
|Re: synthized attributes in eli firstname.lastname@example.org (Tony Sloane) (2002-12-01)|
|From:||"Oguz Akyuz" <email@example.com>|
|Date:||26 Nov 2002 22:14:07 -0500|
|Posted-Date:||26 Nov 2002 22:14:07 EST|
assume I have a small grammar like:
A: B / C .
When I try:
RULE: A ::= B COMPUTE
A.Type = B.Type;
(Assume that both A and B have Type attributes and B.Type is something
I get an error like "miscomputation of A.Type" from eli system.
Why does eli demand me to also add the rule(since adding this solves
RULE: A ::= C COMPUTE
A.Type = C.Type;
I couldn't understand the point. I would be pleased if someone explains.
Return to the
Search the comp.compilers archives again.