summaryrefslogtreecommitdiff
path: root/tnslc/ast/value.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-05 23:51:09 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-05 23:51:09 -0400
commit37d1e9fa02b27d1a6c56b4c95d31e6d2b9eab9ee (patch)
treefdc41f331f35b1b0179a5e589a7c70855a61c586 /tnslc/ast/value.tnsl
parent57ad7f1f8261374349af75cc2f48261f790abdd4 (diff)
[TNSLC] Fix issue with text literals
Diffstat (limited to 'tnslc/ast/value.tnsl')
-rw-r--r--tnslc/ast/value.tnsl14
1 files changed, 13 insertions, 1 deletions
diff --git a/tnslc/ast/value.tnsl b/tnslc/ast/value.tnsl
index d90c00a..d4cef56 100644
--- a/tnslc/ast/value.tnsl
+++ b/tnslc/ast/value.tnsl
@@ -14,9 +14,21 @@
EXPRESS OR IMPLIED
#/
-/; tree_type [Node]
+/; tree_type (~{}Token tok, ~int cur) [Node]
;Token type_tok = {NODE_TYPE.TYPE, 0, 0, ~CNULL}
;{}Node type_sub = {}
+
+ # Pre type keyword checks
+ /; loop (tok`{cur`}.token_type !== TOKEN_TYPE.DEFWORD && tok`{cur`}.token_type !== TOKEN_TYPE.KEYTYPE)
+ /; if (tok`{cur`}.token_type == TOKEN_TYPE.KEYWORD)
+
+ ;/
+ ;/
+
+ /;
+
+ ;/
+
;return {type_tok, ~type_sub}
;/