summaryrefslogtreecommitdiff
path: root/tnslc/compile/generate.tnsl
blob: c05a304f1b91e18fc825c15e08b4f88ad3a5efef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/; generate_module (~OutBuf buf, ~Module mod)
;/

/; generate (~utils.File fin, fout)
	parse.Node n = parse.generate_ast(fin)
	n.update_children()
	parse.print_ast(~n)

	OutBuf buf
	buf.init()

	Module mod = transform_tree(~n, ~buf)
	mod.print(0)


	generate_module(~buf, ~mod)
	buf.write_to_file(fout)

	mod.end()
	buf.end()
	n.end()
;/