aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y19
1 files changed, 19 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index 1783ccd..ec7f1e5 100644
--- a/pc.y
+++ b/pc.y
@@ -444,6 +444,15 @@ proc_statement
free($1);
}
+ |ID '(' ')'
+ {
+ node *tmp;
+
+ tmp = check_exists(cur_scope, $1);
+ $$ = mktree(PCALL, mkid(tmp), NULL);
+
+ free($1);
+ }
/*calls checked with proc_statement*/
;
@@ -519,6 +528,16 @@ factor
free($1);
}
+ | ID '(' ')'
+ {
+ node *tmp;
+
+ tmp = check_exists(cur_scope, $1);
+ $$ = mktree(FCALL, mkid(tmp), NULL);
+ check_call($$);
+
+ free($1);
+ }
|INUM
{
$$ = mkinum($1);