Files
nand2tetris/projects/06/Asm/Assembler.py
Sven Riwoldt 4776b3eb70 Asm 06
2023-09-13 18:40:00 +02:00

34 lines
524 B
Python
Raw 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.

import sys
class Assembler:
def __init__(self):
pass
'''
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()
hackasm.assemblefile(inputfile)