Mercurial > lcfOS
diff python/c3/astnodes.py @ 289:bd2593de3ff8
Semifix burn2
author | Windel Bouwman |
---|---|
date | Thu, 21 Nov 2013 15:46:50 +0100 |
parents | a747a45dcd78 |
children |
line wrap: on
line diff
--- a/python/c3/astnodes.py Thu Nov 21 14:26:13 2013 +0100 +++ b/python/c3/astnodes.py Thu Nov 21 15:46:50 2013 +0100 @@ -32,6 +32,16 @@ def __repr__(self): return 'DESIGNATOR {}'.format(self.tname) + +class ImportDesignator(Designator): + def __init__(self, tname, vname, loc): + super().__init__(tname, loc) + self.vname = vname + + def __repr__(self): + return 'IMPORT DESIGNATOR {}:{}'.format(self.tname, self.vname) + + """ Type classes