summaryrefslogtreecommitdiff
path: root/05/parse.b
diff options
context:
space:
mode:
Diffstat (limited to '05/parse.b')
-rw-r--r--05/parse.b7
1 files changed, 7 insertions, 0 deletions
diff --git a/05/parse.b b/05/parse.b
index 476d503..a6dd81d 100644
--- a/05/parse.b
+++ b/05/parse.b
@@ -24,6 +24,13 @@ function token_is_type
if b != 0 goto return_1
goto return_0
+function type_is_array
+ argument type
+ local p
+ p = types + type
+ if *1p == TYPE_ARRAY goto return_1
+ return 0
+
function functype_return_type
argument ftype
local type