Allow named table constructors. Addresses #983.

This commit is contained in:
Jon Siwek 2013-05-30 10:21:15 -05:00
parent 29740d3d6e
commit bcf5c41786
5 changed files with 117 additions and 14 deletions

View file

@ -545,16 +545,15 @@ expr:
case TYPE_RECORD:
$$ = new RecordConstructorExpr($4, ctor_type);
break;
case TYPE_TABLE:
if ( ctor_type->IsTable() )
{
$1->Error("constructor type not implemented");
YYERROR;
}
$$ = new TableConstructorExpr($4, 0, ctor_type);
else
$$ = new SetConstructorExpr($4, 0, ctor_type);
break;
case TYPE_VECTOR:
default:
$1->Error("constructor type not implemented");