comparison python/ppci/frontends/ks/nodes.py @ 104:ed230e947dc6

Added hexviewer
author windel
date Sun, 30 Dec 2012 22:31:55 +0100
parents af0d7913677a
children 1544e7a4aa98
comparison
equal deleted inserted replaced
103:28a35161ef23 104:ed230e947dc6
29 # Selectors: 29 # Selectors:
30 class Field(Node): 30 class Field(Node):
31 def __init__(self, fieldname): 31 def __init__(self, fieldname):
32 self.fieldname = fieldname 32 self.fieldname = fieldname
33 def __repr__(self): 33 def __repr__(self):
34 return 'FLD {0}'.format(self.fieldname) 34 return 'FIELD {0}'.format(self.fieldname)
35 35
36 class Index(Node): 36 class Index(Node):
37 def __init__(self, index, typ): 37 def __init__(self, index, typ):
38 self.index = index 38 self.index = index
39 self.typ = typ 39 self.typ = typ
40 def __repr__(self): 40 def __repr__(self):
41 return 'IDX {0}'.format(self.index) 41 return 'INDEX {0}'.format(self.index)
42 42
43 class Deref(Node): 43 class Deref(Node):
44 pass 44 pass
45 45
46 class Designator(Node): 46 class Designator(Node):