Files
nand2tetris/projects/06/Asm/Assembler.py
2023-10-21 18:45:06 +02:00

38 lines
615 B
Python
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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)