diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-12-13 16:10:14 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-12-13 16:10:14 -0500 |
commit | 61e1e5ce377719c8e9e437e5ba79ba06fc1de4ba (patch) | |
tree | 10ad1cbb37ab6fc2cbfc6971f9d00c8610b77f70 /tnslc/compile/generate.tnsl | |
parent | 8bcb71c01fffa6cb576ad77f90ff3efe5c4c8fca (diff) |
Type generation for compile modulesorigin
Diffstat (limited to 'tnslc/compile/generate.tnsl')
-rw-r--r-- | tnslc/compile/generate.tnsl | 16 |
1 files changed, 16 insertions, 0 deletions
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() ;/ |