Mercurial > lcfOS
comparison python/c3/astnodes.py @ 221:848c4b15fd0b
pointers
author | Windel Bouwman |
---|---|
date | Mon, 08 Jul 2013 22:21:44 +0200 |
parents | 3f6c30a5d234 |
children | c3f1ce8b638f |
comparison
equal
deleted
inserted
replaced
220:3f6c30a5d234 | 221:848c4b15fd0b |
---|---|
71 def __init__(self, name, typ): | 71 def __init__(self, name, typ): |
72 self.name = name | 72 self.name = name |
73 self.typ = typ | 73 self.typ = typ |
74 def __repr__(self): | 74 def __repr__(self): |
75 return 'Named type {0} of type {1}'.format(self.name, self.typ) | 75 return 'Named type {0} of type {1}'.format(self.name, self.typ) |
76 | |
77 #class TypeCast(Node): | |
78 # def __init__(self, | |
76 | 79 |
77 # Variables, parameters, local variables, constants: | 80 # Variables, parameters, local variables, constants: |
78 class Symbol(Node): | 81 class Symbol(Node): |
79 def __init__(self, name): | 82 def __init__(self, name): |
80 self.name = name | 83 self.name = name |