X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Fbasic_rg%2FbrgUntrusted.ml;fp=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Fbasic_rg%2FbrgUntrusted.ml;h=0000000000000000000000000000000000000000;hb=95872555aaa040a22ad2d93cb1278f79e20da70c;hp=27f471f9a81eb8899f05f6cf9ed0492f049ab66c;hpb=4025c3f5b36025380dcad84bb7a97045d08652f6;p=helm.git diff --git a/helm/software/lambda-delta/src/basic_rg/brgUntrusted.ml b/helm/software/lambda-delta/src/basic_rg/brgUntrusted.ml deleted file mode 100644 index 27f471f9a..000000000 --- a/helm/software/lambda-delta/src/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 E = Entity -module B = Brg -module BE = BrgEnvironment -module BR = BrgReduction -module BT = BrgType - -(* Interface functions ******************************************************) - -(* to share *) -let type_check err f st = function - | a, uri, E.Abst (n, t) -> - let f xt tt = - let e = BE.set_entity (a, uri, E.Abst (n, xt)) in f tt e - in - L.loc := U.string_of_uri uri; BT.type_of err f st BR.empty_kam t - | a, uri, E.Abbr t -> - let f xt tt = - let xt = match xt with - | B.Cast _ -> xt - | _ -> B.Cast ([], tt, xt) - in - let e = BE.set_entity (a, uri, E.Abbr xt) in f tt e - in - L.loc := U.string_of_uri uri; BT.type_of err f st BR.empty_kam t - | _, _, E.Void -> assert false