From fc44658dad550e0141bcda6f0ff6fae2cd7b6e2a Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sun, 6 Nov 2011 09:13:09 -0800 Subject: [PATCH] Handle empty argument list to system function. (SystemVerilog) --- parse.y | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/parse.y b/parse.y index 2bab54732..3ede668e6 100644 --- a/parse.y +++ b/parse.y @@ -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 vectorempty; + 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. */