package dolmen

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ty.ConstSource

A module for constant symbols the occur in types.

Sourcetype t = ty_cst

The type of constant symbols the can occur in types

Sourceval print : Format.formatter -> t -> unit

Printer.

Sourceval hash : t -> int

A hash function for type constants, should be suitable to create hashtables.

Sourceval equal : t -> t -> bool

An equality function on type constants. Should be compatible with the hash function.

Sourceval compare : t -> t -> int

Comparison function on variables.

Sourceval arity : t -> int

Return the arity of the given symbol.

Sourceval mk : Path.t -> int -> t

Create a type constant with the given arity.

Sourceval get_tag : t -> 'a Tag.t -> 'a option

Get the value bound to a tag.

Sourceval get_tag_list : t -> 'a list Tag.t -> 'a list

Get the list of values bound to a list tag, returning the empty list if no value is bound.

Sourceval get_tag_last : t -> 'a list Tag.t -> 'a option

Get the last value bound to a list tag.

Sourceval set_tag : t -> 'a Tag.t -> 'a -> unit

Set the value bound to the tag.

Sourceval add_tag : t -> 'a list Tag.t -> 'a -> unit

Bind an additional value to a list tag.

Sourceval add_tag_opt : t -> 'a list Tag.t -> 'a option -> unit

Optionally bind an additional value to a list tag.

Sourceval add_tag_list : t -> 'a list Tag.t -> 'a list -> unit

Bind a list of additional values to a list tag.

Sourceval unset_tag : t -> _ Tag.t -> unit

Remove the binding to the given tag.

Sourceval int : t

The type constant for integers

Sourceval rat : t

The type constant for rationals

Sourceval real : t

The type constant for reals.

Sourceval prop : t

The type constant for propositions

Sourceval unit : t

The unit type.

Sourceval base : t

An arbitrary type constant.

Sourceval array : t

The type constant for arrays

Sourceval bitv : int -> t

Bitvectors of the given length.

Sourceval string : t

The type constant for strings

Sourceval string_reg_lang : t

The type constant for regular languages over strings.

OCaml

Innovation. Community. Security.