From: Enrico Tassi Date: Fri, 14 Apr 2006 10:13:55 +0000 (+0000) Subject: alases instance not printed if 0 X-Git-Tag: make_still_working~7404 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=d78383a4c3c7e8bd49f25c9aacf591b96db91b38;p=helm.git alases instance not printed if 0 --- diff --git a/helm/software/components/lexicon/lexiconAstPp.ml b/helm/software/components/lexicon/lexiconAstPp.ml index 4b20958aa..23f008296 100644 --- a/helm/software/components/lexicon/lexiconAstPp.ml +++ b/helm/software/components/lexicon/lexiconAstPp.ml @@ -35,8 +35,10 @@ let pp_l2_pattern = CicNotationPp.pp_term let pp_alias = function | Ident_alias (id, uri) -> sprintf "alias id \"%s\" = \"%s\"" id uri | Symbol_alias (symb, instance, desc) -> - sprintf "alias symbol \"%s\" (instance %d) = \"%s\"" - symb instance desc + sprintf "alias symbol \"%s\" %s= \"%s\"" + symb + (if instance=0 then "" else "(instance "^ string_of_int instance ^ ") ") + desc | Number_alias (instance,desc) -> sprintf "alias num (instance %d) = \"%s\"" instance desc