Handle empty argument list to system function. (SystemVerilog)
This commit is contained in:
parent
8e0beff3ab
commit
fc44658dad
11
parse.y
11
parse.y
|
|
@ -1661,6 +1661,17 @@ expr_primary
|
||||||
yyerror(@1, "error: Empty function argument list requires SystemVerilog.");
|
yyerror(@1, "error: Empty function argument list requires SystemVerilog.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
| SYSTEM_IDENTIFIER '(' ')'
|
||||||
|
{ perm_string tn = lex_strings.make($1);
|
||||||
|
const vector<PExpr*>empty;
|
||||||
|
PECallFunction*tmp = new PECallFunction(tn, empty);
|
||||||
|
FILE_NAME(tmp, @1);
|
||||||
|
delete[]$1;
|
||||||
|
$$ = tmp;
|
||||||
|
if (!gn_system_verilog()) {
|
||||||
|
yyerror(@1, "error: Empty function argument list requires SystemVerilog.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Many of the VAMS built-in functions are available as builtin
|
/* Many of the VAMS built-in functions are available as builtin
|
||||||
functions with $system_function equivalents. */
|
functions with $system_function equivalents. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue