Allow named set constructors. Addresses #983.

This commit is contained in:
Jon Siwek 2013-05-29 15:11:44 -05:00
parent a0ad87b4c2
commit b256642f27
7 changed files with 86 additions and 5 deletions

View file

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