38 lines
615 B
Python
Executable File
38 lines
615 B
Python
Executable File
#!/usr/bin/python3
|
||
import sys
|
||
from Parser import *
|
||
|
||
|
||
class Assembler(object):
|
||
def __init__(self,parser):
|
||
parser.bin_ich_zu_sehen()
|
||
|
||
'''
|
||
Statische Methoden zeichnen sich dadurch aus, dass ihnen kein Parameter übergeben,
|
||
der irgendeinen Bezug zur Klasse oder Methode hat – einer statischen Methode wird
|
||
also weder cls noch self übergeben.
|
||
'''
|
||
#@staticmethod
|
||
#def getfile(file):
|
||
|
||
def assemblefile(self, file):
|
||
|
||
pass
|
||
|
||
|
||
|
||
|
||
|
||
|
||
if __name__ == '__main__':
|
||
|
||
inputfile = sys.argv[1]
|
||
hackasm = Assembler(Parser())
|
||
|
||
#hackasm.assemblefile(inputfile)
|
||
|
||
|
||
|
||
|
||
|