summaryrefslogtreecommitdiff
path: root/src/parse_ast.ml
diff options
context:
space:
mode:
authorJon French2018-08-31 13:58:24 +0100
committerJon French2018-08-31 16:31:37 +0100
commitdfeca84a20aa59b757e680a8099c7a3a8377aa76 (patch)
tree12328abffd9e61c93983f6e68e3a848b58e6fe2d /src/parse_ast.ml
parent8d1fae7968bd70fd1663f9a9df662b39dab7246a (diff)
mappings: Support for unidirectional mapping clauses
Diffstat (limited to 'src/parse_ast.ml')
-rw-r--r--src/parse_ast.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse_ast.ml b/src/parse_ast.ml
index d9ffb184..a4052d82 100644
--- a/src/parse_ast.ml
+++ b/src/parse_ast.ml
@@ -458,7 +458,9 @@ type mpexp =
| MPat_aux of ( mpexp_aux) * l
type mapcl_aux = (* mapping clause (bidirectional pattern-match) *)
- | MCL_mapcl of ( mpexp) * ( mpexp)
+ | MCL_bidir of ( mpexp) * ( mpexp)
+ | MCL_forwards of mpexp * exp
+ | MCL_backwards of mpexp * exp
type mapcl =
| MCL_aux of ( mapcl_aux) * l