summaryrefslogtreecommitdiff
path: root/src/parser2.mly
diff options
context:
space:
mode:
authorBrian Campbell2017-10-25 12:25:42 +0100
committerBrian Campbell2017-10-25 12:25:42 +0100
commitfd70c99777002114be5d14a89f169f6e239b9cac (patch)
tree3e3472a89298f4e04fa3d56acebb900eb2f6201d /src/parser2.mly
parent63e6dc9ac7effde553cd446cc737a0ec28c5f39d (diff)
parentc4fafd80d816fd06a4091c217c43e232ac9a8706 (diff)
Merge branch 'experiments' into mono-experiments
Diffstat (limited to 'src/parser2.mly')
-rw-r--r--src/parser2.mly4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser2.mly b/src/parser2.mly
index e6c63196..5a4ad667 100644
--- a/src/parser2.mly
+++ b/src/parser2.mly
@@ -1039,6 +1039,10 @@ val_spec_def:
{ mk_vs (VS_val_spec ($6, $2, Some $4, false)) $startpos $endpos }
| Val Cast id Eq String Colon typschm
{ mk_vs (VS_val_spec ($7, $3, Some $5, true)) $startpos $endpos }
+ | Val String Colon typschm
+ { mk_vs (VS_val_spec ($4, mk_id (Id $2) $startpos($2) $endpos($2), Some $2, false)) $startpos $endpos }
+ | Val Cast String Colon typschm
+ { mk_vs (VS_val_spec ($5, mk_id (Id $3) $startpos($3) $endpos($3), Some $3, true)) $startpos $endpos }
register_def:
| Register id Colon typ