]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/lexicon/lexiconAstPp.ml
matitacLib: bugfix in .moo generation
[helm.git] / helm / software / components / lexicon / lexiconAstPp.ml
index 02383f4b8283b9ba96da1c4c467349a7a5d65c48..c11e4f0945440a1d3ee83d5b70ca26125d0c799c 100644 (file)
@@ -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
-