From 02d7ec75988e2cd13ebf233b364e400309c605a3 Mon Sep 17 00:00:00 2001 From: filliatr Date: Thu, 29 Mar 2001 14:27:11 +0000 Subject: mise en place de Correctness (ne compile pas encore) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1501 85f007b7-540e-0410-9357-904b9bb8a0f7 --- contrib/correctness/ProgramsExtraction.v | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 contrib/correctness/ProgramsExtraction.v (limited to 'contrib/correctness/ProgramsExtraction.v') diff --git a/contrib/correctness/ProgramsExtraction.v b/contrib/correctness/ProgramsExtraction.v new file mode 100644 index 0000000000..23394dc18c --- /dev/null +++ b/contrib/correctness/ProgramsExtraction.v @@ -0,0 +1,30 @@ +(***********************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* unit [ "()" ]. +Extract Inductive bool => bool [ true false ]. +Extract Inductive sumbool => bool [ true false ]. + +Require Export Programs. + +Declare ML Module "prog_extract". + +Grammar vernac vernac := + imperative_ocaml [ "Write" "Caml" "File" stringarg($file) + "[" ne_identarg_list($idl) "]" "." ] + -> [ (IMPERATIVEEXTRACTION $file (VERNACARGLIST ($LIST $idl))) ] + +| initialize [ "Initialize" identarg($id) "with" comarg($c) "." ] + -> [ (INITIALIZE $id $c) ] +. -- cgit v1.2.3