comparison python/c3/astnodes.py @ 217:8b2e5f3cd579

Removed some stale python source files
author Windel Bouwman
date Fri, 05 Jul 2013 14:13:59 +0200
parents c1ccb1cb4cef
children 3f6c30a5d234
comparison
equal deleted inserted replaced
216:57c032c5e753 217:8b2e5f3cd579
96 self.ival = None 96 self.ival = None
97 self.isLocal = False 97 self.isLocal = False
98 self.isReadOnly = False 98 self.isReadOnly = False
99 self.isParameter = False 99 self.isParameter = False
100 def __repr__(self): 100 def __repr__(self):
101 return '{}'.format(self.name) 101 return 'Var {}'.format(self.name)
102 102
103 # Procedure types 103 # Procedure types
104 class Function(Symbol): 104 class Function(Symbol):
105 """ Actual implementation of a function """ 105 """ Actual implementation of a function """
106 def __init__(self, name, loc): 106 def __init__(self, name, loc):
107 super().__init__(name) 107 super().__init__(name)
108 self.loc = loc 108 self.loc = loc
109 self.declarations = [] 109 self.declarations = []
110 110
111 def __repr__(self): 111 def __repr__(self):
112 return '{}'.format(self.name) 112 return 'Func {}'.format(self.name)
113 113
114 # Operations / Expressions: 114 # Operations / Expressions:
115 class Unop(Node): 115 class Unop(Node):
116 def __init__(self, a, op): 116 def __init__(self, a, op):
117 self.a = a 117 self.a = a