1 (* Copyright (C) 2005, HELM Team.
3 * This file is part of HELM, an Hypertextual, Electronic
4 * Library of Mathematics, developed at the Computer Science
5 * Department, University of Bologna, Italy.
7 * HELM is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * HELM is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with HELM; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * For details, see the HELM World-Wide-Web page,
23 * http://helm.cs.unibo.it/
27 (** {2 State handling} *)
39 method set_interp_db: db -> 'self
40 method set_interp_status: #g_status -> 'self
43 type interpretation_id
47 val add_interpretation:
49 string -> (* id / description *)
50 string * NotationPt.argument_pattern list -> (* symbol, level 2 pattern *)
51 NotationPt.cic_appl_pattern -> (* level 3 pattern *)
52 'status * interpretation_id
54 val set_load_patterns32:
55 ((bool * NotationPt.cic_appl_pattern * int) list -> unit) -> unit
57 exception Interpretation_not_found
59 (** @raise Interpretation_not_found *)
60 val lookup_interpretations:
62 ?sorted:bool -> string -> (* symbol *)
63 (string * NotationPt.argument_pattern list *
64 NotationPt.cic_appl_pattern) list
66 (** {3 Interpretations toggling} *)
68 val toggle_active_interpretations: #status as 'status -> bool -> 'status
70 (** {2 content -> cic} *)
72 (** @param env environment from argument_pattern to cic terms
73 * @param pat cic_appl_pattern *)
74 val instantiate_appl_pattern:
75 mk_appl:('term list -> 'term) ->
76 mk_implicit:(bool -> 'term) ->
77 term_of_nref : (NReference.reference -> 'term) ->
78 (string * 'term) list -> NotationPt.cic_appl_pattern ->
81 val find_level2_patterns32:
83 string * string * NotationPt.argument_pattern list *
84 NotationPt.cic_appl_pattern