summaryrefslogtreecommitdiff
path: root/parsing/parser.mly
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2010-03-07 09:34:21 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2010-03-07 09:34:21 +0000
commit49113246e668d99d4b8302e9530034cb52f94ea6 (patch)
treed56d28f10adb01fb7a6b18cd49f16282d3f3c9fc /parsing/parser.mly
parentc87be95c8dafbb0bbe9e911d7b6ae493aa8aa717 (diff)
downloadocaml-moduletypeof.tar.gz
Experiment: module type ofmoduletypeof
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/moduletypeof@9637 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'parsing/parser.mly')
-rw-r--r--parsing/parser.mly2
1 files changed, 2 insertions, 0 deletions
diff --git a/parsing/parser.mly b/parsing/parser.mly
index a21fdd8590..d12c314463 100644
--- a/parsing/parser.mly
+++ b/parsing/parser.mly
@@ -519,6 +519,8 @@ module_type:
{ mkmty(Pmty_functor($3, $5, $8)) }
| module_type WITH with_constraints
{ mkmty(Pmty_with($1, List.rev $3)) }
+ | MODULE TYPE OF module_expr
+ { mkmty(Pmty_typeof $4) }
| LPAREN module_type RPAREN
{ $2 }
| LPAREN module_type error