文件名称:PascalToyCompiler:Pascal简化的用python编写的编译器,无外部依赖
文件大小:233KB
文件格式:ZIP
更新时间:2024-06-07 08:39:12
python programming-language pascal compiler Python
编译器日志编译器 Pascal简化的用python编写的编译器,无外部依赖 特征 去做 EBNF program = "program", identifier, ";", block, "."; functions = {"function", identifier, "(", var_dec, ")", ";", block}; block = [functions], ["var", var_dec], [statements]; var_dec = (identifier, {,",", identifier}, ":", type, ";")+ statements = "begin", statement, {";", statement}, "end"; statement = attribution | statements | print | if | while;
【文件预览】:
PascalToyCompiler-master
----src()
--------node.py(15KB)
--------.gitignore(1KB)
--------input3.txt(156B)
--------id.py(132B)
--------assembly.py(340B)
--------input.txt(647B)
--------token.py(116B)
--------symbolTable.py(1KB)
--------tokenizer.py(5KB)
--------parser.py(18KB)
--------value.py(264B)
--------input2.txt(232B)
--------main.py(736B)
----syntatic_diagram.png(281KB)
----README.md(1KB)