Mercurial > lcfOS
diff python/c3/astnodes.py @ 166:da0087b82fbe
Improved type checking
author | Windel Bouwman |
---|---|
date | Fri, 22 Mar 2013 16:15:31 +0100 |
parents | 598d3888a11c |
children | 0b5b2ee6b435 |
line wrap: on
line diff
--- a/python/c3/astnodes.py Fri Mar 22 15:12:38 2013 +0100 +++ b/python/c3/astnodes.py Fri Mar 22 16:15:31 2013 +0100 @@ -94,8 +94,7 @@ self.b = b self.op = op # Operation: '+', '-', '*', '/', 'mod' def __repr__(self): - typ = self.typ if hasattr(self, 'typ') else '' - return 'BINOP {0} {1}'.format(self.op, typ) + return 'BINOP {0}'.format(self.op) class VariableUse(Node): def __init__(self, target):