]> matita.cs.unibo.it Git - helm.git/blob - helm/interface/cicParser2.mli
Requires and Provides now fixed
[helm.git] / helm / interface / cicParser2.mli
1 (******************************************************************************)
2 (*                                                                            *)
3 (*                               PROJECT HELM                                 *)
4 (*                                                                            *)
5 (*                Claudio Sacerdoti Coen <sacerdot@cs.unibo.it>               *)
6 (*                                 24/01/2000                                 *)
7 (*                                                                            *)
8 (* This module is the objects level of a parser for cic objects from xml      *)
9 (* files to the internal representation. It uses the module cicParser3        *)
10 (* cicParser3 (terms level) and it is used only through cicParser2 (top       *)
11 (* level).                                                                    *)
12 (*                                                                            *)
13 (******************************************************************************)
14
15 exception IllFormedXml of int
16 exception NotImplemented
17
18 (* This is the main function and also the only one used directly from *)
19 (* cicParser. Given the root of the dom tree, it returns the internal *)
20 (* representation of the cic object described in the tree             *)
21 (* It uses the previous functions and the to_cic_term method defined  *)
22 (* in cicParser3 (used for subtrees that encode cic terms)            *)
23 val get_term :
24  < attribute : string -> Pxp_types.att_value;
25    node_type : Pxp_document.node_type;
26    sub_nodes : < attribute : string -> Pxp_types.att_value;
27                  node_type : Pxp_document.node_type;
28                  sub_nodes : CicParser3.cic_term Pxp_document.node list;
29                  .. >
30                list;
31    .. > ->
32  Cic.annobj