summaryrefslogtreecommitdiff
path: root/src/tparse/tree-statement.go
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-04-07 13:05:08 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-04-07 13:05:08 -0400
commit6d25f97d1035a775d6eb9f135f8e8231521087af (patch)
tree21c3488541f4a65a16245792c6055f3d886b8fbb /src/tparse/tree-statement.go
parentda6f4e15ad2fa3edd59108913065c883aee897ed (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.go4
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++
}