summaryrefslogtreecommitdiff
path: root/src/tparse/tree-statement.go
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-04-09 04:44:57 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-04-09 04:44:57 -0400
commitb76d0fe41b222acfa5348edecbe88277739cf3e9 (patch)
tree10c9231bfd8da9d3f5b1a5105fac759f18a855c3 /src/tparse/tree-statement.go
parent0a60f8e45715eec77786e778eae3692b6e167335 (diff)
[EVAL] Get most things working
+ Calling methods and functions should work + Indexing and setting array values seems to work + Structs seem to work as intended !!! There are probably MANY bugs !!!
Diffstat (limited to 'src/tparse/tree-statement.go')
-rw-r--r--src/tparse/tree-statement.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go
index c88b102..cf25085 100644
--- a/src/tparse/tree-statement.go
+++ b/src/tparse/tree-statement.go
@@ -70,14 +70,10 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) {
def.Sub = append(def.Sub, tmp)
tok += 1
case "else":
- name = true
- sparse = true
if (*tokens)[tok+1].Data == "if" {
- tmp.Data = Token{KEYWORD, "elif", t.Line, t.Char}
- def.Sub = append(def.Sub, tmp)
tok++
- continue
}
+ fallthrough
case "if", "match", "case", "loop":
name = true
sparse = true