Skip to content

Commit

Permalink
Handle empty argument list to system function. (SystemVerilog)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveicarus committed Nov 6, 2011
1 parent 8e0beff commit fc44658
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions parse.y
Expand Up @@ -1661,6 +1661,17 @@ expr_primary
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
functions with $system_function equivalents. */
Expand Down

0 comments on commit fc44658

Please sign in to comment.