X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Flexicon%2FlexiconAstPp.ml;h=c11e4f0945440a1d3ee83d5b70ca26125d0c799c;hb=2dd6e8f11fa3ac2995f326ecb742d9b4e8948fce;hp=02383f4b8283b9ba96da1c4c467349a7a5d65c48;hpb=9a9c5b863f68367119450ae7b806d454ba1265e3;p=helm.git diff --git a/helm/software/components/lexicon/lexiconAstPp.ml b/helm/software/components/lexicon/lexiconAstPp.ml index 02383f4b8..c11e4f094 100644 --- a/helm/software/components/lexicon/lexiconAstPp.ml +++ b/helm/software/components/lexicon/lexiconAstPp.ml @@ -58,7 +58,7 @@ let pp_argument_pattern = function sprintf "%s%s" (Buffer.contents eta_buf) name let pp_interpretation dsc symbol arg_patterns cic_appl_pattern = - sprintf "interpretation \"%s\" '%s %s = %s" + sprintf "interpretation \"%s\" '%s %s = %s." dsc symbol (String.concat " " (List.map pp_argument_pattern arg_patterns)) (CicNotationPp.pp_cic_appl_pattern cic_appl_pattern) @@ -69,7 +69,7 @@ let pp_dir_opt = function | Some `RightToLeft -> "< " let pp_notation dir_opt l1_pattern assoc prec l2_pattern = - sprintf "notation %s\"%s\" %s %s for %s" + sprintf "notation %s\"%s\" %s %s for %s." (pp_dir_opt dir_opt) (pp_l1_pattern l1_pattern) (pp_associativity assoc) @@ -79,12 +79,11 @@ let pp_notation dir_opt l1_pattern assoc prec l2_pattern = let pp_command = function | Include (_,_,mode,path) -> (* not precise, since path is absolute *) if mode = WithPreferences then - "include \"" ^ path ^ "\".\n" + "include \"" ^ path ^ "\"." else - "include' \"" ^ path ^ "\".\n" + "include' \"" ^ path ^ "\"." | Alias (_,s) -> pp_alias s | Interpretation (_, dsc, (symbol, arg_patterns), cic_appl_pattern) -> pp_interpretation dsc symbol arg_patterns cic_appl_pattern | Notation (_, dir_opt, l1_pattern, assoc, prec, l2_pattern) -> pp_notation dir_opt l1_pattern assoc prec l2_pattern -