From c62ce63a6750ddaf86f4aec8c0886a2d3db8d5f2 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 14 Apr 2006 10:13:55 +0000 Subject: [PATCH] alases instance not printed if 0 --- components/lexicon/lexiconAstPp.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/lexicon/lexiconAstPp.ml b/components/lexicon/lexiconAstPp.ml index 4b20958aa..23f008296 100644 --- a/components/lexicon/lexiconAstPp.ml +++ b/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 -- 2.39.2