Commit c32dc7de authored by houtanb's avatar houtanb
Browse files

slight bug fix: allow vec_int type to be specified with commas

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3181 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 338fb396
......@@ -1905,10 +1905,20 @@ vec_int_1 : '[' vec_int_elem
delete $2;
$$ = $1;
}
| vec_int_1 COMMA vec_int_elem
{
$1->append(",");
$1->append(*$3);
delete $3;
$$ = $1;
}
;
vec_int : vec_int_1 ']' { $1->append("]"); $$ = $1; };
vec_int : vec_int_1 ']'
{ $1->append("]"); $$ = $1; }
| vec_int_1 COMMA ']'
{ $1->append(",]"); $$ = $1; }
;
vec_value_1 : '[' value1
{ $2->insert(0, "["); $$ = $2;}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment