aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-09-08 21:18:44 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-09-08 21:59:41 -0400
commit948b0460c9d079e5eff4e6247d35aa946956e4a5 (patch)
treebc3bef845747f28474327779e891a1a2fa07a7e6 /pc.y
parentecfd5f25bfa7b5ce00b8feb83eb1deeb7009e7f7 (diff)
Add checking types on function call
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/pc.y b/pc.y
index f97db8d..8d142a2 100644
--- a/pc.y
+++ b/pc.y
@@ -216,7 +216,9 @@ arguments
{
$$ = $2;
}
- |/*empty*/
+ |/*empty*/{
+ $$ = NULL;
+ }
;
param_list
@@ -411,6 +413,7 @@ factor
tmp = check_exists(cur_scope, $1);
$$ = mktree(FCALL, mkid(tmp), $3);
+ check_call($$);
}
|INUM
{