Module TermAttr
Attributes for annotated terms
An attribute is currently only a name for a term.
- author
- Christoph Sticksel
Types and hash-consing
Hashtables, maps and sets
val hash_attr : t -> intHashing function on attribute
module AttrHashtbl : Stdlib.Hashtbl.S with type AttrHashtbl.key = tHash table over attributes
Constructor
val mk_named : string -> int -> tReturn a name attribute
val fundef : tReturn a fun-def attribute
Accessor functions
val is_named : t -> boolReturn true if the attribute is a name
val is_fundef : t -> boolReturn true if the attribute is a name
val named_of_attr : t -> string * intReturn the name in a name attribute, raises
Invalid_argumentfor other attributes
Pretty-printing
val pp_print_attr : Stdlib.Format.formatter -> t -> unitPretty-print a hashconsed attribute
val print_attr : t -> unitPretty-print a hashconsed attribute to the standard formatter
val string_of_attr : t -> stringReturn a string representation of a hashconsed attribute