diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-07-21 10:59:12 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-07-21 10:59:12 -0400 |
commit | 5828c45ef729d5f0eed6cb4f2b241e91d9c29c93 (patch) | |
tree | 10499d2ac2ef3b689ce0a2cc090143fa87304c9b /tnslc/parse | |
parent | 7d6b6dfc10c549238ceb11b0a01b3e440508cec4 (diff) |
fix error causing double file closes
Diffstat (limited to 'tnslc/parse')
-rw-r--r-- | tnslc/parse/ast.tnsl | 8 | ||||
-rw-r--r-- | tnslc/parse/parse.tnsl | 1 | ||||
-rw-r--r-- | tnslc/parse/tokenizer.tnsl | 1 |
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 ;/ |