view python/irmach.py @ 261:444b9df2ed99

try to split up code generation
author Windel Bouwman
date Fri, 09 Aug 2013 09:05:13 +0200
parents
children 5ec7580976d9
line wrap: on
line source



class MachProgram:
    pass


class MachFunction:
    def __init__(self, name):
        self.name = name
        self.entry = None


class MachBlock:
    def __init__(self):
        self.instructions = []


class MachIns:
    """ Absract machine instruction """
    def __init__(self, mi):
        self.mi = mi