From b76d0fe41b222acfa5348edecbe88277739cf3e9 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 9 Apr 2022 04:44:57 -0400 Subject: [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 !!! --- src/tparse/tree-statement.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/tparse') 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 -- cgit v1.2.3