blob: e05e1ca47d38a1db18d7b7feb0e6898cf76b35b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
(*i $Id: esyntax.mli,v 1.10.2.1 2004/07/16 19:30:37 herbelin Exp $ i*)
(*i*)
open Pp
open Extend
open Symbols
open Ppextend
open Topconstr
(*i*)
(* Syntax entry tables. *)
type frozen_t
(* pretty-printer summary operations *)
val init : unit -> unit
val freeze : unit -> frozen_t
val unfreeze : frozen_t -> unit
(* Search and add a PP rule for an ast in the summary *)
val find_syntax_entry :
string -> Coqast.t -> (Ast.astpat syntax_entry * Ast.env) list
val add_rule : string -> Ast.astpat syntax_entry -> unit
val add_ppobject : Ast.astpat syntax_command -> unit
val warning_verbose : bool ref
(* Pretty-printing *)
type std_printer = Coqast.t -> std_ppcmds
type unparsing_subfunction = string -> tolerability option -> std_printer
type primitive_printer = Coqast.t -> std_ppcmds option
(* Module of constr primitive printers [old style - no scope] *)
module Ppprim :
sig
type t = std_printer -> std_printer
val add : string * t -> unit
end
val declare_primitive_printer :
string -> scope_name -> primitive_printer -> unit
(*
val declare_infix_symbol : Libnames.section_path -> string -> unit
*)
(* Generic printing functions *)
(*
val token_printer: std_printer -> std_printer
*)
(*
val print_syntax_entry :
string -> unparsing_subfunction -> Ast.env -> Ast.astpat syntax_entry -> std_ppcmds
*)
val genprint : std_printer -> unparsing_subfunction
|