添加一些函数注释

This commit is contained in:
ranchuan
2024-12-06 19:33:26 +08:00
parent 9712264213
commit 478d4c615d
4 changed files with 82 additions and 6 deletions

15
compiler.py Normal file
View File

@@ -0,0 +1,15 @@
from cpu import instruction as ins
from cpu import cpu
class compiler(object):
def __init__(self,reg_num:int) -> None:
self.symbol_stack_list:list[dict]=[]
self.symbol_reg_list:list[dict]=[]
self.cpu=cpu(0x1000_0000,1*1024*1024,0x2000_0000,1*1024*1024)