From 6b649aba925b6f7462da07599fe67ebb12a3460e Mon Sep 17 00:00:00 2001 From: Samuel Mimram Date: Wed, 28 Jul 2004 21:54:47 +0000 Subject: Imported Upstream version 8.0pl1 --- parsing/g_module.ml4 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 parsing/g_module.ml4 (limited to 'parsing/g_module.ml4') diff --git a/parsing/g_module.ml4 b/parsing/g_module.ml4 new file mode 100644 index 00000000..0b542608 --- /dev/null +++ b/parsing/g_module.ml4 @@ -0,0 +1,47 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* CMEident qid + | me1 = module_expr; me2 = module_expr -> CMEapply (me1,me2) + | "("; me = module_expr; ")" -> me +(* ... *) + ] ] + ; + + with_declaration: + [ [ "Definition"; id = identref; ":="; c = Constr.constr -> + CWith_Definition (id,c) + | IDENT "Module"; id = identref; ":="; qid = qualid -> + CWith_Module (id,qid) + ] ] + ; + + module_type: + [ [ qid = qualid -> CMTEident qid +(* ... *) + | mty = module_type; "with"; decl = with_declaration -> + CMTEwith (mty,decl) ] ] + ; +END -- cgit v1.2.3