home
/
code
/
tiger.ml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix grammar - allow empty set of record fields
[tiger.ml.git]
/
compiler
/
src
/
lib
/
tiger
/
tiger_parser.mly
diff --git
a/compiler/src/lib/tiger/tiger_parser.mly
b/compiler/src/lib/tiger/tiger_parser.mly
index
b40892a
..
42470a4
100644
(file)
--- 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 }
;
This page took
0.018334 seconds
and
4
git commands to generate.