blob: 075500c9504bc62a17b497670256cd4f22b64467 (
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
|
(* $Id$ *)
(*i*)
open Pp
open Extend
(*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 -> (syntax_entry * Ast.env) option
val add_rule : string -> syntax_entry -> unit
val add_ppobject : (string * syntax_entry list) -> unit
(* Pretty-printing *)
type std_printer = Coqast.t -> std_ppcmds
type unparsing_subfunction =
((string * precedence) * parenRelation) option -> std_printer
(* Module of primitive printers *)
module Ppprim :
sig
type t = std_printer -> std_printer
val add : string * t -> unit
end
(* Generic printing functions *)
val token_printer: std_printer -> std_printer
val print_syntax_entry :
unparsing_subfunction -> Ast.env -> syntax_entry -> std_ppcmds
val genprint : string -> std_printer -> unparsing_subfunction
|