Mercurial > lcfOS
diff python/c3/parser.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/parser.py Mon Mar 18 20:13:57 2013 +0100 +++ b/python/c3/parser.py Mon Mar 18 22:15:57 2013 +0100 @@ -127,10 +127,10 @@ # Statements: def parseAssignment(self, lval): lval = self.sema.actOnVariableUse(lval) - self.Consume('=') + loc = self.Consume('=').loc rval = self.parseExpression() self.Consume(';') - return astnodes.Assignment(lval, rval) + return self.sema.actOnAssignment(lval, rval, loc) def parseProcedureCall(self, procedure): self.Consume('(')