summaryrefslogtreecommitdiff
path: root/tnslc/parse
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/parse')
-rw-r--r--tnslc/parse/ast.tnsl8
-rw-r--r--tnslc/parse/parse.tnsl1
-rw-r--r--tnslc/parse/tokenizer.tnsl1
3 files changed, 5 insertions, 5 deletions
diff --git a/tnslc/parse/ast.tnsl b/tnslc/parse/ast.tnsl
index cdd0ae2..49c2f0f 100644
--- a/tnslc/parse/ast.tnsl
+++ b/tnslc/parse/ast.tnsl
@@ -9,7 +9,6 @@ uint16 NTYPE_POST_OP = 6
uint16 NTYPE_FUNCTION = 7
uint16 NTYPE_METHOD = 8
-
struct Node {
uint16 _type,
~uint8 data,
@@ -107,11 +106,10 @@ struct Node {
_ast_file(~_import, mod)
_import.end()
- ;; else
- first = produce_next_token(fin, tmp)
- tmp.end()
- tmp = first
;/
+ first = produce_next_token(fin, tmp)
+ tmp.end()
+ tmp = first
;/
fin`.close()
diff --git a/tnslc/parse/parse.tnsl b/tnslc/parse/parse.tnsl
index c225cf9..f6664d1 100644
--- a/tnslc/parse/parse.tnsl
+++ b/tnslc/parse/parse.tnsl
@@ -2,3 +2,4 @@
:import "tokenizer.tnsl"
:import "ast.tnsl"
;/
+
diff --git a/tnslc/parse/tokenizer.tnsl b/tnslc/parse/tokenizer.tnsl
index c2ef091..d78fa40 100644
--- a/tnslc/parse/tokenizer.tnsl
+++ b/tnslc/parse/tokenizer.tnsl
@@ -373,6 +373,7 @@ uint MAX_MULTI = 3
com.end()
;/
;/
+ fin`.close()
return out
;/