| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | (** This module implements pretty-printers for vernac_expr syntactic |
| 12 | objects and their subcomponents. *) |
| 13 | |
| 14 | val pr_set_entry_type : ('custom -> Pp.t) -> ('a -> Pp.t) -> ('custom,'a) Extend.constr_entry_key_gen -> Pp.t |
| 15 | |
| 16 | val pr_syntax_modifier : Vernacexpr.syntax_modifier CAst.t -> Pp.t |
| 17 | |
| 18 | (** Prints a fixpoint body *) |
| 19 | val pr_rec_definition : Constrexpr.fixpoint_order_expr option * Vernacexpr.recursive_expr_gen -> Pp.t |
| 20 | |
| 21 | (** Prints a scheme *) |
| 22 | val pr_onescheme : Names.lident option * Vernacexpr.scheme -> Pp.t |
| 23 | |
| 24 | (** Prints a vernac expression without dot *) |
| 25 | val pr_vernac_expr : Vernacexpr.vernac_expr -> Pp.t |
| 26 | |
| 27 | (** Prints a "proof using X" clause. *) |
| 28 | val pr_using : Vernacexpr.section_subset_expr -> Pp.t |
| 29 | |
| 30 | (** Prints a vernac expression and closes it with a dot. *) |
| 31 | val pr_vernac : Vernacexpr.vernac_control -> Pp.t |
| 32 | |
| 33 | (** Prints attributes, including surrounding "#[" "]", followed by space |
| 34 | (empty on empty list) *) |
| 35 | val pr_vernac_attributes : Attributes.vernac_flag list -> Pp.t |