diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-05-03 15:00:59 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-05-03 15:00:59 -0400 |
commit | e1eeadf0d53ca3088d7e0e1dd5521878a11ebde7 (patch) | |
tree | 1e5798057a04e63bcfb558de2a428bb717f96c38 /src/tparse/tree-statement.go | |
parent | c625ed1cfe7f7ea4ab2a75a8a0a6a6772f86431c (diff) |
tokenizer bug fix
Diffstat (limited to 'src/tparse/tree-statement.go')
-rw-r--r-- | src/tparse/tree-statement.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tparse/tree-statement.go b/src/tparse/tree-statement.go index 938e827..874528a 100644 --- a/src/tparse/tree-statement.go +++ b/src/tparse/tree-statement.go @@ -29,9 +29,11 @@ func parseBlock(tokens *[]Token, tok, max int) (Node, int) { switch t.Type { case DELIMIT: if t.Data == "(" { - - } else if t.Data == "(" { - + tmp, tok = parseParamList(tokens, tok, max) + out.Sub = append(out.Sub, tmp) + } else if t.Data == "[" { + tmp, tok = parseTypeList(tokens, tok, max) + out.Sub = append(out.Sub, tmp) } else { goto BREAK } |