diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-11-02 13:57:27 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-11-02 13:57:27 -0400 |
commit | 92b72f0357c553add6f010626e85268428ad5eb5 (patch) | |
tree | 0c1083a9fd61371eb0ac7f335691c6dc7c793ae5 /src/tparse | |
parent | e18043e5ac4e09870e9f5b1498e0ef954064ee49 (diff) |
[EXEC] General changes, refactoring
Diffstat (limited to 'src/tparse')
-rw-r--r-- | src/tparse/tree-statement.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go index 897f30d..ec6230c 100644 --- a/src/tparse/tree-statement.go +++ b/src/tparse/tree-statement.go @@ -146,7 +146,7 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) { // This should work once isTypeThenValue properly functions func parseStatement(tokens *[]Token, tok, max int) (Node, int) { out := Node{} - out.Data = Token{Type: 11, Data: "value"} + out.Data = Token{Type: 10, Data: "value"} var tmp Node // Check for keyword, definition, then if none of those apply, assume it's a value. @@ -262,7 +262,7 @@ func keywordStatement(tokens *[]Token, tok, max int) (Node, int) { // Should work, but none of this is tested. func parseDef(tokens *[]Token, tok, max int) (Node, int) { - out := Node{Data: Token{11, "define", 0, 0}} + out := Node{Data: Token{10, "define", 0, 0}} var tmp Node tmp, tok = parseType(tokens, tok, max, false) |