summaryrefslogtreecommitdiff
path: root/tools/d2c/args/grammar.y
diff options
context:
space:
mode:
Diffstat (limited to 'tools/d2c/args/grammar.y')
-rw-r--r--tools/d2c/args/grammar.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/d2c/args/grammar.y b/tools/d2c/args/grammar.y
index 41512a9..b038e22 100644
--- a/tools/d2c/args/grammar.y
+++ b/tools/d2c/args/grammar.y
@@ -78,7 +78,8 @@ right_op : FORCE_EXPR arg_expr { operand->func = NULL; operand->expr = $2; }
call : NAME OP arg_list CP { $$.func = $1; $$.args = $3; }
-arg_list : arg_expr { $$ = build_arg_list($1); }
+arg_list : /* empty */ { $$ = build_empty_arg_list(); }
+ | arg_expr { $$ = build_arg_list($1); }
| arg_list COMMA arg_expr { $$ = extend_arg_list($1, $3); }
arg_expr : NAME { $$ = build_arg_expr_from_name($1); }