diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-04-09 04:44:57 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-04-09 04:44:57 -0400 |
commit | b76d0fe41b222acfa5348edecbe88277739cf3e9 (patch) | |
tree | 10c9231bfd8da9d3f5b1a5105fac759f18a855c3 /src/tparse | |
parent | 0a60f8e45715eec77786e778eae3692b6e167335 (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')
-rw-r--r-- | src/tparse/tree-statement.go | 6 |
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 |