diff options
Diffstat (limited to 'pc.y')
-rw-r--r-- | pc.y | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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); |