X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fbasic_rg%2FbrgUntrusted.ml;fp=helm%2Fsoftware%2Flambda-delta%2Fbasic_rg%2FbrgUntrusted.ml;h=0000000000000000000000000000000000000000;hb=f12f1b61a608140a65990d36045d978575b2dcb0;hp=4c1ae61dbc47cfd6cd40220d5832c4e95201f15e;hpb=2b1375e4b44e2ef351a6341a5bb0a4823e8daae5;p=helm.git diff --git a/helm/software/lambda-delta/basic_rg/brgUntrusted.ml b/helm/software/lambda-delta/basic_rg/brgUntrusted.ml deleted file mode 100644 index 4c1ae61db..000000000 --- a/helm/software/lambda-delta/basic_rg/brgUntrusted.ml +++ /dev/null @@ -1,38 +0,0 @@ -(* - ||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 U = NUri -module L = Log -module Y = Entity -module B = Brg -module E = BrgEnvironment -module R = BrgReduction -module T = BrgType - -(* Interface functions ******************************************************) - -(* to share *) -let type_check err f st = function - | a, uri, Y.Abst t -> - let f xt tt = - let e = E.set_entity (a, uri, Y.Abst xt) in f tt e - in - L.loc := U.string_of_uri uri; T.type_of err f st R.empty_kam t - | a, uri, Y.Abbr t -> - let f xt tt = - let xt = match xt with - | B.Cast _ -> xt - | _ -> B.Cast ([], tt, xt) - in - let e = E.set_entity (a, uri, Y.Abbr xt) in f tt e - in - L.loc := U.string_of_uri uri; T.type_of err f st R.empty_kam t - | _, _, Y.Void -> assert false