Mercurial > lcfOS
diff python/c3/parser.py @ 167:0b5b2ee6b435
Added 2 unit tests
author | Windel Bouwman |
---|---|
date | Fri, 22 Mar 2013 17:40:13 +0100 |
parents | da0087b82fbe |
children | ee0d30533dae |
line wrap: on
line diff
--- a/python/c3/parser.py Fri Mar 22 16:15:31 2013 +0100 +++ b/python/c3/parser.py Fri Mar 22 17:40:13 2013 +0100 @@ -139,7 +139,7 @@ self.Consume(';') return self.sema.actOnAssignment(lval, rval, loc) - def parseProcedureCall(self, procedure): + def parseProcedureCall(self, func): self.Consume('(') args = [] if not self.hasConsumed(')'): @@ -147,7 +147,7 @@ while self.hasConsumed(','): args.append(self.parseExpression()) self.Consume(')') - return astnodes.ProcedureCall(procedure, args) + return self.sema.actOnFunctionCall(func, args, func.loc) def parseIfStatement(self): loc = self.Consume('if').loc