aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-09-08 22:00:47 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-09-11 13:10:58 -0400
commit6130381c23c2ca4e050e83b7a20e3ba56d0fc283 (patch)
treeaf2abb5436876d1f3a2c58bf91fc03805e4fc960 /pc.y
parent948b0460c9d079e5eff4e6247d35aa946956e4a5 (diff)
Adds type checking procedure arguments
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index 8d142a2..c144043 100644
--- a/pc.y
+++ b/pc.y
@@ -270,6 +270,7 @@ statement
|proc_statement
{
$$ = $1;
+ check_call($$);
}
|compound_statement
{
@@ -346,6 +347,7 @@ proc_statement
tmp = check_exists(cur_scope, $1);
$$ = mktree(PCALL, mkid(tmp), $3);
}
+ /*calls checked with proc_statement*/
;
expr_list