summaryrefslogtreecommitdiff
path: root/tnslc
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc')
-rw-r--r--tnslc/]28
-rw-r--r--tnslc/parse/ast.tnsl6
-rw-r--r--tnslc/test.tnsl4
3 files changed, 10 insertions, 28 deletions
diff --git a/tnslc/] b/tnslc/]
deleted file mode 100644
index df49511..0000000
--- a/tnslc/]
+++ /dev/null
@@ -1,28 +0,0 @@
-# should not be included
-
-~uint lmao
-
-~{2}user c
-
-struct user {
- ~int abcd,
- ~Geko hij
-}
-
-struct Geko {
- int i
-}
-
-/; module mod
- int i = 0
- /; whatev (~uint8 a) [uint8]
- # return a{0}
- ;/
-;/
-
-/; main [int]
- # ~uint8 a = "asdf\0"
- #whatev(a)
- #whatev("asdf\0")
- #return 0
-;/
diff --git a/tnslc/parse/ast.tnsl b/tnslc/parse/ast.tnsl
index 04a69aa..f90428e 100644
--- a/tnslc/parse/ast.tnsl
+++ b/tnslc/parse/ast.tnsl
@@ -1255,6 +1255,12 @@ struct Node {
_printf("VLIST\0")
;; else if (n`._type == NTYPE_VALUE)
_printf("VALUE\0")
+ ;; else if (n`._type == NTYPE_CAST)
+ _printf("CAST\0")
+ ;; else if (n`._type == NTYPE_FLOW_CONTROL)
+ _printf("FLOW_CONTROL\0")
+ ;; else if (n`._type == NTYPE_CONTROL_BLOCK)
+ _printf("CONTROL_BLOCK\0")
;; else if (n`._type == NTYPE_ASM)
_printf("ASM\0")
;/
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index 265ba70..4412e70 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -20,6 +20,10 @@ struct Geko {
;/
;/
+int i = {a, b, c} * (whatev + 1)[int]
+
+bool j = _op_order(f`.data) < _op_order(g`.data)
+
/; main [int]
# ~uint8 a = "asdf\0"
#whatev(a)