From 61e1e5ce377719c8e9e437e5ba79ba06fc1de4ba Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 13 Dec 2024 16:10:14 -0500 Subject: Type generation for compile modules --- tnslc/compile/generate.tnsl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tnslc/compile/generate.tnsl') diff --git a/tnslc/compile/generate.tnsl b/tnslc/compile/generate.tnsl index ef6a76c..c05a304 100644 --- a/tnslc/compile/generate.tnsl +++ b/tnslc/compile/generate.tnsl @@ -1,6 +1,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() ;/ -- cgit v1.2.3