summaryrefslogtreecommitdiff
path: root/src/tparse/tree-statement.go
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-06-26 01:18:27 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-06-26 01:18:27 -0400
commit289c1fe3dd2f29e2511b6bb376582f8791179a9b (patch)
tree67c7c2e272f7564e873c8092c9333aa3a5e16c2d /src/tparse/tree-statement.go
parent6416973e373a3c61aa2b44591799385c5b1b0092 (diff)
[AST] Parentheticals
+ Add support for parentheticals + Add uint as a valid type for the evaluator
Diffstat (limited to 'src/tparse/tree-statement.go')
-rw-r--r--src/tparse/tree-statement.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go
index cf25085..6a5b6e3 100644
--- a/src/tparse/tree-statement.go
+++ b/src/tparse/tree-statement.go
@@ -117,13 +117,14 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) {
REBLOCK:
tmp, tok = parseBlock(tokens, tok + 1, max)
-
+
if (*tokens)[tok].Data == ";;" {
out.Sub = append(out.Sub, tmp)
goto REBLOCK
} else if (*tokens)[tok].Data == ";/" {
tok++
}
+
case "/:":
tmp, tok = parsePreBlock(tokens, tok + 1, max)
case ":":