Fix with no parenthesis

This commit is contained in:
Wilson Snyder 2010-01-06 14:21:34 -05:00
parent cd5d8cceb8
commit cdcb94751e
2 changed files with 6 additions and 4 deletions

View File

@ -1976,16 +1976,15 @@ function_subroutine_callNoMethod<nodep>: // IEEE: function_subroutine_call (as f
system_t_call<nodep>: // IEEE: system_tf_call (as task)
//
yaD_IGNORE '(' ')' { $$ = NULL; }
yaD_IGNORE parenE { $$ = NULL; }
| yaD_IGNORE '(' exprList ')' { $$ = NULL; }
//
| yaD_DPI '(' ')' { $$ = new AstTaskRef($2,*$1,NULL); }
| yaD_DPI parenE { $$ = new AstTaskRef($<fl>1,*$1,NULL); }
| yaD_DPI '(' exprList ')' { $$ = new AstTaskRef($2,*$1,$3); }
//
| yD_C '(' cStrList ')' { $$ = (v3Global.opt.ignc() ? NULL : new AstUCStmt($1,$3)); }
| yD_FCLOSE '(' idClassSel ')' { $$ = new AstFClose($1, $3); }
| yD_FFLUSH { $1->v3error("Unsupported: $fflush of all handles does not map to C++.\n"); }
| yD_FFLUSH '(' ')' { $1->v3error("Unsupported: $fflush of all handles does not map to C++.\n"); }
| yD_FFLUSH parenE { $1->v3error("Unsupported: $fflush of all handles does not map to C++.\n"); }
| yD_FFLUSH '(' idClassSel ')' { $$ = new AstFClose($1, $3); }
| yD_FINISH parenE { $$ = new AstFinish($1); }
| yD_FINISH '(' expr ')' { $$ = new AstFinish($1); }
@ -1999,6 +1998,7 @@ system_t_call<nodep>: // IEEE: system_tf_call (as task)
| yD_DISPLAY '(' str commaEListE ')' { $$ = new AstDisplay($1,AstDisplayType::DISPLAY,*$3,NULL,$4); }
| yD_WRITE parenE { $$ = NULL; } // NOP
| yD_WRITE '(' str commaEListE ')' { $$ = new AstDisplay($1,AstDisplayType::WRITE, *$3,NULL,$4); }
| yD_FDISPLAY '(' idClassSel ')' { $$ = new AstDisplay($1,AstDisplayType::DISPLAY,"",$3,NULL); }
| yD_FDISPLAY '(' idClassSel ',' str commaEListE ')' { $$ = new AstDisplay($1,AstDisplayType::DISPLAY,*$5,$3,$6); }
| yD_FWRITE '(' idClassSel ',' str commaEListE ')' { $$ = new AstDisplay($1,AstDisplayType::WRITE, *$5,$3,$6); }
| yD_INFO parenE { $$ = new AstDisplay($1,AstDisplayType::INFO, "", NULL,NULL); }

View File

@ -7,7 +7,9 @@ module t;
reg a;
initial begin
$unknown_sys_task_call_to_be_bbox("blah");
$unkown_sys_task_call_noarg;
a = $unknown_sys_func_call(23);
a = $unknown_sys_func_call_noarg;
$write("*-* All Finished *-*\n");
$finish;
end