X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=components%2Fng_kernel%2FnReference.mli;fp=components%2Fng_kernel%2FnReference.mli;h=75285360836a600b5d00455f0af3ad72b17eb969;hp=0000000000000000000000000000000000000000;hb=f61af501fb4608cc4fb062a0864c774e677f0d76;hpb=58ae1809c352e71e7b5530dc41e2bfc834e1aef1 diff --git a/components/ng_kernel/nReference.mli b/components/ng_kernel/nReference.mli new file mode 100644 index 000000000..752853608 --- /dev/null +++ b/components/ng_kernel/nReference.mli @@ -0,0 +1,36 @@ +(* + ||M|| This file is part of HELM, an Hypertextual, Electronic + ||A|| Library of Mathematics, developed at the Computer Science + ||T|| Department, University of Bologna, Italy. + ||I|| + ||T|| HELM is free software; you can redistribute it and/or + ||A|| modify it under the terms of the GNU General Public License + \ / version 2 or (at your option) any later version. + \ / This software is distributed as is, NO WARRANTY. + V_______________________________________________________________ *) + +(* $Id$ *) + +exception IllFormedReference of string Lazy.t + +type spec = + | Decl + | Def + | Fix of int * int (* fixno, recparamno *) + | CoFix of int + | Ind of int + | Con of int * int (* indtyno, constrno *) + +type reference = private Ref of int * NUri.uri * spec + +val eq: reference -> reference -> bool +val string_of_reference: reference -> string + +(* given the reference of an inductive type, returns the i-th contructor *) +val mk_constructor: int -> reference -> reference +val mk_fix: int -> int -> reference -> reference + + +(* CACCA *) +val reference_of_ouri: UriManager.uri -> spec -> reference +val ouri_of_reference: reference -> UriManager.uri