summaryrefslogtreecommitdiff
path: root/src/tparse/tree-statement.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tparse/tree-statement.go')
-rw-r--r--src/tparse/tree-statement.go8
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
}