aboutsummaryrefslogtreecommitdiffhomepage
path: root/contrib/extraction/Extraction.v
blob: a5ec0a693649eae6af86188ed804e83b5a39491d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(***********************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team    *)
(* <O___,, *        INRIA-Rocquencourt  &  LRI-CNRS-Orsay              *)
(*   \VV/  *************************************************************)
(*    //   *      This file is distributed under the terms of the      *)
(*         *       GNU Lesser General Public License Version 2.1       *)
(***********************************************************************)

Declare ML Module "mlutil.cmo" "ocaml.cmo" "extraction.cmo" "extract_env.cmo".

Grammar vernac vernac : ast :=
  extr_constr [ "Extraction" constrarg($c) "." ] -> 
              [ (Extraction $c) ]
| extr_list   [ "Extraction" "-r" ne_qualidarg_list($l) "." ] ->
              [ (ExtractionRec ($LIST $l)) ]
| extr_list   [ "Extraction" stringarg($f) ne_qualidarg_list($l) "." ] ->
              [ (ExtractionFile $f ($LIST $l)) ]
| extr_module [ "Extraction" "Module" identarg($m) "." ] ->
              [ (ExtractionModule $m) ].