summaryrefslogtreecommitdiff
path: root/tnslc/compile
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-03-29 16:55:01 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-03-29 16:55:01 -0400
commit606ab9da9e4231564c91e4613bfbbb8883f7eb9d (patch)
tree2be0ef587d12aa11f863b4e48c388d988a665a9f /tnslc/compile
parentc4638488d9a73df832542e40204f56c7d7d179e2 (diff)
File read test
Diffstat (limited to 'tnslc/compile')
-rw-r--r--tnslc/compile/compile.tnsl1
-rw-r--r--tnslc/compile/module.tnsl11
2 files changed, 12 insertions, 0 deletions
diff --git a/tnslc/compile/compile.tnsl b/tnslc/compile/compile.tnsl
index 157969e..00fe081 100644
--- a/tnslc/compile/compile.tnsl
+++ b/tnslc/compile/compile.tnsl
@@ -1,4 +1,5 @@
/; module compile
+ :import "module.tnsl"
:import "tokenizer.tnsl"
:import "lexer.tnsl"
:import "generator.tnsl"
diff --git a/tnslc/compile/module.tnsl b/tnslc/compile/module.tnsl
new file mode 100644
index 0000000..b33ae58
--- /dev/null
+++ b/tnslc/compile/module.tnsl
@@ -0,0 +1,11 @@
+struct Module {
+ ~Module parent,
+ utils.Vector vars
+}
+
+/; method Module
+ /; init (~Module parent)
+ self.parent = parent
+ self.vars.init(1)
+ ;/
+;/