summaryrefslogtreecommitdiff
path: root/tnslc/tnslc.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-05-02 02:57:49 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-05-02 02:57:49 -0400
commit46aa6b65376ea62deb1d5ea1611b59dc222a5141 (patch)
treee92b26bc2d2653b9009a230ee1d6b7ed1185e3a0 /tnslc/tnslc.tnsl
parent9478e157ec2cfe4de704b3bd78b07aee8824774f (diff)
[TNSLC] AST Updates
- Change how string_equate works - Call AST Node generator from main - Flush out ast.tnsl - Add a few initial methods to AST - Move some code from token.tnsl to parse.tnsl
Diffstat (limited to 'tnslc/tnslc.tnsl')
-rw-r--r--tnslc/tnslc.tnsl12
1 files changed, 8 insertions, 4 deletions
diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl
index d8adc24..194464e 100644
--- a/tnslc/tnslc.tnsl
+++ b/tnslc/tnslc.tnsl
@@ -16,7 +16,7 @@
:include "util.tnsl"
-/; module tnslc
+/; export module tnslc
:include "parse/parse.tnsl"
:include "ast/ast.tnsl"
;/
@@ -34,11 +34,15 @@
;tnsl.io.File src = tnsl.io.readFile(args{0})
- ;~{}tnslc.parse.Token psrc = tnslc.parse.tokenize(src)
-
- ;tnslc.print_tokens(psrc)
+ ;~{}tnslc.Token psrc = tnslc.parse.tokenize(src)
;src.close()
+ ;tnslc.print_tokens(psrc)
+
+ ;tnslc.Node tree_node = tnslc.ast.make_tree(psrc, args{0})
+
+
+
;return 0
;/