X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Ftoplevel%2FmetaLibrary.ml;fp=helm%2Fsoftware%2Flambda-delta%2Fsrc%2Ftoplevel%2FmetaLibrary.ml;h=0000000000000000000000000000000000000000;hb=673c78501a9e71ac5f897d2ba78f3591de8db876;hp=ca0fd9792afc068a89f5730ebdcec8c830e4adb0;hpb=39b42ed90bc74c8b6293842f1ac4aca60fc0c37e;p=helm.git diff --git a/helm/software/lambda-delta/src/toplevel/metaLibrary.ml b/helm/software/lambda-delta/src/toplevel/metaLibrary.ml deleted file mode 100644 index ca0fd9792..000000000 --- a/helm/software/lambda-delta/src/toplevel/metaLibrary.ml +++ /dev/null @@ -1,36 +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 F = Format -module MO = MetaOutput - -type out_channel = Pervasives.out_channel * F.formatter - -(* internal functions *******************************************************) - -let hal_dir = "hal" - -let hal_ext = ".hal" - -(* interface functions ******************************************************) - -let open_out f name = - let _ = Sys.command (Printf.sprintf "mkdir -p %s" hal_dir) in - let och = open_out (Filename.concat hal_dir (name ^ hal_ext)) in - let frm = F.formatter_of_out_channel och in - F.pp_set_margin frm max_int; - f (och, frm) - -let write_entity f (_, frm) entity = - MO.pp_entity f frm entity - -let close_out f (och, _) = - close_out och; f ()