Mercurial > lcfOS
diff python/c3/semantics.py @ 164:e023d3ce1d63
Fix to loc of assignment
author | Windel Bouwman |
---|---|
date | Mon, 18 Mar 2013 22:15:57 +0100 |
parents | 8104fc8b5e90 |
children | 598d3888a11c |
line wrap: on
line diff
--- a/python/c3/semantics.py Mon Mar 18 20:13:57 2013 +0100 +++ b/python/c3/semantics.py Mon Mar 18 22:15:57 2013 +0100 @@ -56,5 +56,10 @@ n.loc = loc return n def actOnVariableUse(self, d): - return astnodes.VariableUse(d) + vu = astnodes.VariableUse(d) + return vu + def actOnAssignment(self, lval, rval, loc): + a = astnodes.Assignment(lval, rval) + a.loc = loc + return a