let rec pp_term ?(pp_parens = true) t =
let t_pp =
match t with
- | Ast.AttributedTerm (`Href hrefs, term) when debug_printing ->
- sprintf "#(%s)[%s]"
- (String.concat "," (List.map UriManager.string_of_uri hrefs))
- (pp_term ~pp_parens:false term)
| Ast.AttributedTerm (`IdRef id, term) when debug_printing ->
sprintf "x(%s)[%s]" id (pp_term ~pp_parens:false term)
+ | Ast.AttributedTerm (`XmlAttrs attrs, term) when debug_printing ->
+ sprintf "X(%s)[%s]"
+ (String.concat ";"
+ (List.map (fun (_, n, v) -> sprintf "%s=%s" n v) attrs))
+ (pp_term ~pp_parens:false term)
| Ast.AttributedTerm (_, term) when debug_printing ->
sprintf "@[%s]" (pp_term ~pp_parens:false term)
| Ast.AttributedTerm (`Raw text, _) -> text
| Ast.Num (num, _) -> num
| Ast.Sort `Set -> "Set"
| Ast.Sort `Prop -> "Prop"
- | Ast.Sort `Type -> "Type"
+ | Ast.Sort (`Type _) -> "Type"
| Ast.Sort `CProp -> "CProp"
| Ast.Symbol (name, _) -> "'" ^ name