From eb736a34b34b1eb55ecd4df5ecaa97064049a2a3 Mon Sep 17 00:00:00 2001 From: Robin Sommer Date: Tue, 8 Mar 2011 16:28:59 -0800 Subject: [PATCH] '[]' is now a valid record ctor. --- src/parse.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parse.y b/src/parse.y index 4f81347cde..300c338b5c 100644 --- a/src/parse.y +++ b/src/parse.y @@ -403,6 +403,12 @@ expr: $$ = $2; } + | '[' ']' + { + // We take this as an empty record constructor. + $$ = new RecordConstructorExpr(new ListExpr); + } + | TOK_RECORD '(' expr_list ')' {