@@ -28,43 +28,54 @@ build = {
2828 tl = " tl.lua" ,
2929
3030 -- Ship the compiled Lua modules from the `teal` namespace for runtime use:
31- [ " teal.debug " ] = " teal/debug.lua " ,
32- [ " teal.loader " ] = " teal/loader.lua " ,
33- [ " teal.input " ] = " teal/input.lua " ,
34- [ " teal.variables " ] = " teal/variables.lua " ,
35- [ " teal.type_errors " ] = " teal/type_errors .lua" ,
36- [ " teal.package_loader " ] = " teal/package_loader.lua " ,
37- [ " teal.parser " ] = " teal/parser.lua " ,
38- [ " teal.types " ] = " teal/types.lua " ,
39- [ " teal.traversal " ] = " teal/traversal.lua " ,
40- [ " teal.metamethods " ] = " teal/metamethods.lua " ,
41- [ " teal.api.v2 " ] = " teal/api/v2.lua " ,
31+ --[[ Generated via
32+ find teal -name '*.tl' | sort | awk '!/^ teal\/default\//{
33+ module = $0
34+ path = $0
35+ gsub("(\\.d)?\\.tl$", " .lua", path)
36+ gsub("\\.tl$", "", module)
37+ gsub("\\.d$", "", module)
38+ gsub("/", ".", module)
39+ print "[\"" module "\" ] = \"" path "\","
40+ }'
41+ ]]
4242 [" teal.api.v1" ] = " teal/api/v1.lua" ,
43- [" teal.type_reporter" ] = " teal/type_reporter.lua" ,
43+ [" teal.api.v2" ] = " teal/api/v2.lua" ,
44+ [" teal.ast" ] = " teal/ast.lua" ,
4445 [" teal.attributes" ] = " teal/attributes.lua" ,
45- [" teal.check.type_checker" ] = " teal/check/type_checker.lua" ,
46- [" teal.check.special_functions" ] = " teal/check/special_functions.lua" ,
47- [" teal.check.context" ] = " teal/check/context.lua" ,
48- [" teal.check.require_file" ] = " teal/check/require_file.lua" ,
46+ [" teal.block" ] = " teal/block.lua" ,
4947 [" teal.check.check" ] = " teal/check/check.lua" ,
48+ [" teal.check.context" ] = " teal/check/context.lua" ,
5049 [" teal.check.node_checker" ] = " teal/check/node_checker.lua" ,
5150 [" teal.check.relations" ] = " teal/check/relations.lua" ,
51+ [" teal.check.require_file" ] = " teal/check/require_file.lua" ,
52+ [" teal.check.special_functions" ] = " teal/check/special_functions.lua" ,
53+ [" teal.check.type_checker" ] = " teal/check/type_checker.lua" ,
5254 [" teal.check.visitors" ] = " teal/check/visitors.lua" ,
53- [" teal.precompiled.default_env" ] = " teal/precompiled/default_env.lua" ,
54- [" teal.gen.targets" ] = " teal/gen/targets.lua" ,
55+ [" teal.debug" ] = " teal/debug.lua" ,
56+ [" teal.environment" ] = " teal/environment.lua" ,
57+ [" teal.errors" ] = " teal/errors.lua" ,
58+ [" teal.facts" ] = " teal/facts.lua" ,
5559 [" teal.gen.lua_compat" ] = " teal/gen/lua_compat.lua" ,
5660 [" teal.gen.lua_generator" ] = " teal/gen/lua_generator.lua" ,
57- [" teal.errors" ] = " teal/errors.lua" ,
58- [" teal.environment" ] = " teal/environment.lua" ,
59- [" teal.macroexps" ] = " teal/macroexps.lua" ,
61+ [" teal.gen.targets" ] = " teal/gen/targets.lua" ,
6062 [" teal.init" ] = " teal/init.lua" ,
61- [" teal.facts " ] = " teal/facts .lua" ,
63+ [" teal.input " ] = " teal/input .lua" ,
6264 [" teal.lexer" ] = " teal/lexer.lua" ,
63- [" teal.util " ] = " teal/util .lua" ,
65+ [" teal.loader " ] = " teal/loader .lua" ,
6466 [" teal.macro_eval" ] = " teal/macro_eval.lua" ,
67+ [" teal.macroexps" ] = " teal/macroexps.lua" ,
68+ [" teal.metamethods" ] = " teal/metamethods.lua" ,
69+ [" teal.package_loader" ] = " teal/package_loader.lua" ,
70+ [" teal.parser" ] = " teal/parser.lua" ,
71+ [" teal.precompiled.default_env" ] = " teal/precompiled/default_env.lua" ,
6572 [" teal.reader" ] = " teal/reader.lua" ,
66- [" teal.ast" ] = " teal/ast.lua" ,
67- [" teal.block" ] = " teal/block.lua" ,
73+ [" teal.traversal" ] = " teal/traversal.lua" ,
74+ [" teal.type_errors" ] = " teal/type_errors.lua" ,
75+ [" teal.type_reporter" ] = " teal/type_reporter.lua" ,
76+ [" teal.types" ] = " teal/types.lua" ,
77+ [" teal.util" ] = " teal/util.lua" ,
78+ [" teal.variables" ] = " teal/variables.lua" ,
6879
6980
7081 -- Ship the compiled Lua modules from the `tlcli` namespace for the `tl` program:
@@ -92,41 +103,54 @@ build = {
92103 " tl.tl" ,
93104
94105 -- Ship the Teal modules in the `teal` namespace for requiring the Teal API:
95- [" teal.debug" ] = " teal/debug.tl" ,
96- [" teal.loader" ] = " teal/loader.tl" ,
97- [" teal.input" ] = " teal/input.tl" ,
98- [" teal.variables" ] = " teal/variables.tl" ,
99- [" teal.type_errors" ] = " teal/type_errors.tl" ,
100- [" teal.package_loader" ] = " teal/package_loader.tl" ,
101- [" teal.parser" ] = " teal/parser.tl" ,
102- [" teal.types" ] = " teal/types.tl" ,
103- [" teal.traversal" ] = " teal/traversal.tl" ,
104- [" teal.metamethods" ] = " teal/metamethods.tl" ,
105- [" teal.api.v2" ] = " teal/api/v2.tl" ,
106+ --[[ Generated via
107+ find teal -name '*.tl' | sort | awk '{
108+ path = $0
109+ gsub("\\.tl$", "")
110+ gsub("/", ".")
111+ gsub("\\.d$", "")
112+ print "[\"" $0 "\"] = \"" path "\","
113+ }'
114+ ]]
106115 [" teal.api.v1" ] = " teal/api/v1.tl" ,
107- [" teal.type_reporter" ] = " teal/type_reporter.tl" ,
116+ [" teal.api.v2" ] = " teal/api/v2.tl" ,
117+ [" teal.ast" ] = " teal/ast.tl" ,
108118 [" teal.attributes" ] = " teal/attributes.tl" ,
109- [" teal.check.type_checker" ] = " teal/check/type_checker.tl" ,
110- [" teal.check.special_functions" ] = " teal/check/special_functions.tl" ,
111- [" teal.check.context" ] = " teal/check/context.tl" ,
112- [" teal.check.require_file" ] = " teal/check/require_file.tl" ,
119+ [" teal.block" ] = " teal/block.tl" ,
113120 [" teal.check.check" ] = " teal/check/check.tl" ,
121+ [" teal.check.context" ] = " teal/check/context.tl" ,
114122 [" teal.check.node_checker" ] = " teal/check/node_checker.tl" ,
115123 [" teal.check.relations" ] = " teal/check/relations.tl" ,
124+ [" teal.check.require_file" ] = " teal/check/require_file.tl" ,
125+ [" teal.check.special_functions" ] = " teal/check/special_functions.tl" ,
126+ [" teal.check.type_checker" ] = " teal/check/type_checker.tl" ,
116127 [" teal.check.visitors" ] = " teal/check/visitors.tl" ,
117- [" teal.gen.targets" ] = " teal/gen/targets.tl" ,
128+ [" teal.debug" ] = " teal/debug.tl" ,
129+ [" teal.default.prelude" ] = " teal/default/prelude.d.tl" ,
130+ [" teal.default.stdlib" ] = " teal/default/stdlib.d.tl" ,
131+ [" teal.environment" ] = " teal/environment.tl" ,
132+ [" teal.errors" ] = " teal/errors.tl" ,
133+ [" teal.facts" ] = " teal/facts.tl" ,
118134 [" teal.gen.lua_compat" ] = " teal/gen/lua_compat.tl" ,
119135 [" teal.gen.lua_generator" ] = " teal/gen/lua_generator.tl" ,
120- [" teal.errors" ] = " teal/errors.tl" ,
121- [" teal.environment" ] = " teal/environment.tl" ,
122- [" teal.macroexps" ] = " teal/macroexps.tl" ,
136+ [" teal.gen.targets" ] = " teal/gen/targets.tl" ,
123137 [" teal.init" ] = " teal/init.tl" ,
124- [" teal.facts " ] = " teal/facts .tl" ,
138+ [" teal.input " ] = " teal/input .tl" ,
125139 [" teal.lexer" ] = " teal/lexer.tl" ,
126- [" teal.util" ] = " teal/util.tl" ,
140+ [" teal.loader" ] = " teal/loader.tl" ,
141+ [" teal.macro_eval" ] = " teal/macro_eval.tl" ,
142+ [" teal.macroexps" ] = " teal/macroexps.tl" ,
143+ [" teal.metamethods" ] = " teal/metamethods.tl" ,
144+ [" teal.package_loader" ] = " teal/package_loader.tl" ,
145+ [" teal.parser" ] = " teal/parser.tl" ,
127146 [" teal.precompiled.default_env" ] = " teal/precompiled/default_env.d.tl" ,
128- [" teal.default.prelude" ] = " teal/default/prelude.d.tl" ,
129- [" teal.default.stdlib" ] = " teal/default/stdlib.d.tl" ,
147+ [" teal.reader" ] = " teal/reader.tl" ,
148+ [" teal.traversal" ] = " teal/traversal.tl" ,
149+ [" teal.type_errors" ] = " teal/type_errors.tl" ,
150+ [" teal.type_reporter" ] = " teal/type_reporter.tl" ,
151+ [" teal.types" ] = " teal/types.tl" ,
152+ [" teal.util" ] = " teal/util.tl" ,
153+ [" teal.variables" ] = " teal/variables.tl" ,
130154 }
131155 },
132156}
0 commit comments