]> matita.cs.unibo.it Git - helm.git/blob - matita/matita/contribs/lambdadelta/bin/roles/rolesTypes.ml
update in binaries for λδ
[helm.git] / matita / matita / contribs / lambdadelta / bin / roles / rolesTypes.ml
1 (*
2     ||M||  This file is part of HELM, an Hypertextual, Electronic
3     ||A||  Library of Mathematics, developed at the Computer Science
4     ||T||  Department, University of Bologna, Italy.
5     ||I||
6     ||T||  HELM is free software; you can redistribute it and/or
7     ||A||  modify it under the terms of the GNU General Public License
8     \   /  version 2 or (at your option) any later version.
9      \ /   This software is distributed as is, NO WARRANTY.
10       V_______________________________________________________________ *)
11
12 type version = int list
13
14 type name = string list
15
16 type names = (bool*name) list
17
18 type obj = version * name
19
20 type objs = (bool*obj) list
21
22 type role = {
23   mutable x: bool;
24   mutable v: version;
25   mutable o: objs;
26   mutable n: names;
27 }
28
29 type roles = (bool*role) list
30
31 type status = {
32   mutable m: bool;
33   mutable r: roles;
34   mutable s: version;
35   mutable t: objs;
36   mutable w: names;
37 }
38
39 type pointer = int list
40
41 type error = EWrongExt of string
42            | EStage of version
43            | ENoStage
44            | EWaiting
45            | ENameClash of name
46            | EObjClash of obj
47            | ERoleClash of role
48            | ENoEntry
49            | EWrongSelect
50            | EWrongVersion
51            | ETops
52            | EWrongRequest of string * string
53
54 exception Error of error