Fix grammar - allow empty set of record fields
authorSiraaj Khandkar <siraaj@khandkar.net>
Sun, 16 Sep 2018 23:36:51 +0000 (19:36 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sun, 16 Sep 2018 23:36:51 +0000 (19:36 -0400)
compiler/src/lib/tiger/tiger_parser.mly

index b40892a..42470a4 100644 (file)
@@ -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 }
   ;
This page took 0.018278 seconds and 4 git commands to generate.