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
issue#70
houtanb 2009-12-01 12:17:44 +00:00
parent 338fb39638
commit c32dc7de28
1 changed files with 12 additions and 2 deletions

View File

@ -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;}