summaryrefslogtreecommitdiff
path: root/src/parse_ast.ml
diff options
context:
space:
mode:
authorJon French2018-04-27 13:19:24 +0100
committerJon French2018-05-01 16:58:26 +0100
commitb94549367c2536b3df6fba8586efa1a2a4bca7b8 (patch)
tree73631c21df91613d96d1596e6d1add7d417abfe0 /src/parse_ast.ml
parentbf3a38a69fb895db274769b4d543976b07095d2f (diff)
further progress
Diffstat (limited to 'src/parse_ast.ml')
-rw-r--r--src/parse_ast.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/parse_ast.ml b/src/parse_ast.ml
index d845265f..3969663a 100644
--- a/src/parse_ast.ml
+++ b/src/parse_ast.ml
@@ -424,7 +424,7 @@ type mpat_aux = (* Mapping pattern. Mostly the same as normal patterns but only
| MP_lit of lit
| MP_id of id
| MP_app of id * ( mpat) list
- | MP_record of ( fpat) list * bool
+ | MP_record of ( mfpat) list * bool
| MP_vector of ( mpat) list
| MP_vector_concat of ( mpat) list
| MP_tup of ( mpat) list
@@ -435,6 +435,12 @@ type mpat_aux = (* Mapping pattern. Mostly the same as normal patterns but only
and mpat =
| MP_aux of ( mpat_aux) * l
+and mfpat_aux = (* Mapping field pattern, why does this have to exist *)
+ | MFP_mpat of id * mpat
+
+and mfpat =
+ | MFP_aux of mfpat_aux * l
+
type mpexp_aux =
| MPat_pat of ( mpat)
| MPat_when of ( mpat) * ( exp)