Skip to content
Snippets Groups Projects
Commit 9cf3e034 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Macroprocessor: allow empty arrays

This is now easy to implement, thanks to the refactoring allowing any type of
objects in arrays.

Closes DynareTeam/dynare#707
parent 88fab669
Branches
Tags
No related merge requests found
......@@ -207,7 +207,8 @@ expr : INTEGER
{ TYPERR_CATCH($$ = $3->in($1), @$); }
;
comma_expr : expr
comma_expr : { $$ = vector<MacroValuePtr>{}; } // Empty array
| expr
{ $$ = vector<MacroValuePtr>{$1}; }
| comma_expr COMMA expr
{ $1.push_back($3); $$ = $1; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment