X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fcommon%2Fmarks.ml;fp=helm%2Fsoftware%2Flambda-delta%2Fcommon%2Fmarks.ml;h=026414e2a2e2c1bc80cb5840bc648f87bef2d627;hb=2b1375e4b44e2ef351a6341a5bb0a4823e8daae5;hp=0000000000000000000000000000000000000000;hpb=a3b9fc77770f42070632bcb575546678025e09b2;p=helm.git diff --git a/helm/software/lambda-delta/common/marks.ml b/helm/software/lambda-delta/common/marks.ml new file mode 100644 index 000000000..026414e2a --- /dev/null +++ b/helm/software/lambda-delta/common/marks.ml @@ -0,0 +1,21 @@ +(* + ||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_______________________________________________________________ *) + +module Y = Entity + +(* interface functions ******************************************************) + +let new_location = + let location = ref 0 in + fun () -> incr location; !location + +let new_mark () = + Y.Mark (new_location ())