From 5064180424a02cd59491bc87a43175fbf04d147c Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Sun, 16 Sep 2018 19:36:51 -0400 Subject: [PATCH] Fix grammar - allow empty set of record fields --- compiler/src/lib/tiger/tiger_parser.mly | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/src/lib/tiger/tiger_parser.mly b/compiler/src/lib/tiger/tiger_parser.mly index b40892a..42470a4 100644 --- a/compiler/src/lib/tiger/tiger_parser.mly +++ b/compiler/src/lib/tiger/tiger_parser.mly @@ -312,6 +312,7 @@ exps: ; rec_fields_bind: + | { [] } | ID EQ exp { (Sym.of_string $1, $3, pos ()) :: [] } | ID EQ exp COMMA rec_fields_bind { (Sym.of_string $1, $3, pos ()) :: $5 } ; -- 2.20.1