X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Flexicon%2FdisambiguatePp.ml;fp=helm%2Fsoftware%2Fcomponents%2Flexicon%2FdisambiguatePp.ml;h=0000000000000000000000000000000000000000;hb=c04f852241510515f06e3bec8eb79acac6e4952e;hp=a8590cfdfcffd191b3826d18c95628635a03cb6d;hpb=9ead65f0b6b17fc8f01ffcb977c3c252594724a9;p=helm.git diff --git a/helm/software/components/lexicon/disambiguatePp.ml b/helm/software/components/lexicon/disambiguatePp.ml deleted file mode 100644 index a8590cfdf..000000000 --- a/helm/software/components/lexicon/disambiguatePp.ml +++ /dev/null @@ -1,47 +0,0 @@ -(* Copyright (C) 2005, HELM Team. - * - * This file is part of HELM, an Hypertextual, Electronic - * Library of Mathematics, developed at the Computer Science - * Department, University of Bologna, Italy. - * - * HELM is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * HELM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with HELM; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, - * MA 02111-1307, USA. - * - * For details, see the HELM World-Wide-Web page, - * http://helm.cs.unibo.it/ - *) - -(* $Id$ *) - -open DisambiguateTypes - -let alias_of_domain_and_desc domain_item dsc = - match domain_item with - Id id -> LexiconAst.Ident_alias (id, dsc) - | Symbol (symb, i) -> LexiconAst.Symbol_alias (symb, i, dsc) - | Num i -> LexiconAst.Number_alias (i, dsc) - -let aliases_of_environment env = - Environment.fold - (fun domain_item codomain_item acc -> - alias_of_domain_and_desc domain_item (fst codomain_item)::acc - ) env [] - -let pp_environment env = - let aliases = aliases_of_environment env in - let strings = - List.map (fun alias -> LexiconAstPp.pp_alias alias ^ ".") aliases - in - String.concat "\n" (List.sort compare strings)