Mercurial > lcfOS
annotate python/irmach.py @ 264:f8b5da5784b8
Test
author | Windel Bouwman |
---|---|
date | Fri, 09 Aug 2013 16:30:26 +0200 |
parents | 444b9df2ed99 |
children | 5ec7580976d9 |
rev | line source |
---|---|
261 | 1 |
2 | |
3 class MachProgram: | |
4 pass | |
5 | |
6 | |
7 class MachFunction: | |
8 def __init__(self, name): | |
9 self.name = name | |
10 self.entry = None | |
11 | |
12 | |
13 class MachBlock: | |
14 def __init__(self): | |
15 self.instructions = [] | |
16 | |
17 | |
18 class MachIns: | |
19 """ Absract machine instruction """ | |
20 def __init__(self, mi): | |
21 self.mi = mi | |
22 | |
23 |