diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-04-07 13:05:08 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-04-07 13:05:08 -0400 |
commit | 6d25f97d1035a775d6eb9f135f8e8231521087af (patch) | |
tree | 21c3488541f4a65a16245792c6055f3d886b8fbb /src/tparse/tree-statement.go | |
parent | da6f4e15ad2fa3edd59108913065c883aee897ed (diff) |
[EXEC] Some fixes
+ Fix recursion error when converting arrays
+ Add conversion from bool to num
+ Fix conversion from num to bool
+ Flush out evalParams
~ Change type parsing for block returns
Diffstat (limited to 'src/tparse/tree-statement.go')
-rw-r--r-- | src/tparse/tree-statement.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go index 25ddab6..b4f891b 100644 --- a/src/tparse/tree-statement.go +++ b/src/tparse/tree-statement.go @@ -40,7 +40,7 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) { if sparse { tmp, tok = parseStatementList(tokens, tok + 1, max) } else { - tmp, tok = parseTypeList(tokens, tok + 1, max) + tmp, tok = parseType(tokens, tok + 1, max, false) } tmp.Data.Data = "[]" def.Sub = append(def.Sub, tmp) @@ -215,7 +215,7 @@ func keywordStatement(tokens *[]Token, tok, max int) (Node, int) { out.Sub = append(out.Sub, tmp) tok++ if (*tokens)[tok].Data == "[" { - tmp, tok = parseTypeList(tokens, tok + 1, max) + tmp, tok = parseType(tokens, tok + 1, max, false) out.Sub = append(out.Sub, tmp) tok++ } |