- | None -> ""
- | Some `Definition -> " as definition"
- | Some `MutualDefinition -> " as mutual"
- | Some `Fact -> " as fact"
- | Some `Lemma -> " as lemma"
- | Some `Remark -> " as remark"
- | Some `Theorem -> " as theorem"
- | Some `Variant -> " as variant"
- | Some `Axiom -> " as axiom"
+ | `Definition -> "definition"
+ | `Fact -> "fact"
+ | `Lemma -> "lemma"
+ | `Remark -> "remark"
+ | `Theorem -> "theorem"
+ | `Variant -> "variant"
+ | `Axiom -> "axiom"
+ | `MutualDefinition -> assert false
+ in
+ let pp_inline_params l =
+ let pp_param = function
+ | IPPrefix prefix -> "prefix = \"" ^ prefix ^ "\""
+ | IPAs flavour -> flavour_pp flavour
+ | IPProcedural -> "procedural"
+ | IPNoDefaults -> "nodefaults"
+ | IPDepth depth -> "depth = " ^ string_of_int depth
+ | IPLevel level -> "level = " ^ string_of_int level
+ in
+ let s = String.concat " " (List.map pp_param l) in
+ if s = "" then s else " " ^ s