Пример #1
0
from compiler.backend import codegen
from compiler.frontend import semantic

path = '../examples/hcl/summation.hcl'

stat, tree, data = semantic.analyse(path)
stat, lines = codegen.code_generation(data)
Пример #2
0
import sys

from compiler.backend import codegen
from compiler.frontend import semantic

path = '../examples/hcl/final/'

stat, tree, data = semantic.analyse(path + sys.argv[1])
stat, lines = codegen.code_generation(data)