'[]' is now a valid record ctor.

This commit is contained in:
Robin Sommer 2011-03-08 16:28:59 -08:00
parent 83bd6584ee
commit eb736a34b3

View file

@ -403,6 +403,12 @@ expr:
$$ = $2; $$ = $2;
} }
| '[' ']'
{
// We take this as an empty record constructor.
$$ = new RecordConstructorExpr(new ListExpr);
}
| TOK_RECORD '(' expr_list ')' | TOK_RECORD '(' expr_list ')'
{ {