1234567891011121314151617181920212223242526272829303132333435363738394041424344454647(* This file is free software, part of dolmen. See file "LICENSE" for more information. *)typenamespace=|Var|Sort|Term|Attr|Decl|Moduleofstringtypet={ns:namespace;name:string;}lethash=Hashtbl.hashletcompare=Pervasives.compareletequal=Pervasives.(=)letppb{name;_}=Printf.bprintfb"%s"nameletprintfmt{name;_}=Format.fprintffmt"%s"name(* Namespaces *)(* let var = Var *)letsort=Sortletterm=Termletattr=Attrletdecl=Declletmod_names=Modules(* Identifiers *)letmknsname={ns;name;}letfull_name=function|{name;ns=Modulem;}->Printf.sprintf"%s.%s"mname|{name;_}->name(* Standard attributes *)letrwrt_rule=mkDecl"rewrite_rule"lettptp_role=mkDecl"tptp_role"