diff options
author | 2014-10-30 22:52:34 +0100 | |
---|---|---|
committer | 2014-11-04 22:51:35 +0100 | |
commit | 846dad24f483bd5d5221a2b6fe663bbd5ba86455 (patch) | |
tree | 2291898809c7b789fff460cf0a6a9c46fca2b543 /printing | |
parent | f4d76a38f02da955fe921a45ab1f79ceda7d753b (diff) |
Ppvernacsig: New.
- Define the signature for a pretty-printer of vernacular commands.
Ppvernac: Use it.
Diffstat (limited to 'printing')
-rw-r--r-- | printing/ppvernac.mli | 6 | ||||
-rw-r--r-- | printing/ppvernacsig.mli | 17 | ||||
-rw-r--r-- | printing/printing.mllib | 1 |
3 files changed, 19 insertions, 5 deletions
diff --git a/printing/ppvernac.mli b/printing/ppvernac.mli index a3d0465a6..0a8324bf8 100644 --- a/printing/ppvernac.mli +++ b/printing/ppvernac.mli @@ -6,8 +6,4 @@ (* * GNU Lesser General Public License Version 2.1 *) (************************************************************************) -(** Prints a vernac expression *) -val pr_vernac_body : Vernacexpr.vernac_expr -> Pp.std_ppcmds - -(** Prints a vernac expression and closes it with a dot. *) -val pr_vernac : Vernacexpr.vernac_expr -> Pp.std_ppcmds +include Ppvernacsig.Pp diff --git a/printing/ppvernacsig.mli b/printing/ppvernacsig.mli new file mode 100644 index 000000000..8884dd345 --- /dev/null +++ b/printing/ppvernacsig.mli @@ -0,0 +1,17 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2012 *) +(* \VV/ **************************************************************) +(* // * This file is distributed under the terms of the *) +(* * GNU Lesser General Public License Version 2.1 *) +(************************************************************************) + +module type Pp = sig + + (** Prints a vernac expression *) + val pr_vernac_body : Vernacexpr.vernac_expr -> Pp.std_ppcmds + + (** Prints a vernac expression and closes it with a dot. *) + val pr_vernac : Vernacexpr.vernac_expr -> Pp.std_ppcmds + +end diff --git a/printing/printing.mllib b/printing/printing.mllib index 28c57edba..01c835d89 100644 --- a/printing/printing.mllib +++ b/printing/printing.mllib @@ -8,3 +8,4 @@ Pptactic Printmod Prettyp Ppvernac +Ppvernacsig |