Fix grammar - allow empty set of record fields
[tiger.ml.git] / 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.018334 seconds and 4 git commands to generate.