package dolmen_loop

  1. Overview
  2. Docs

This modules defines the smallest signatures for a solver state that allow to instantiate the Typer.Make functor.

common interface

include Common
type t

The type of state

exception Error of t

Convenient exception.

val warn : ?loc:Dolmen.Std.Loc.full -> t -> 'a Report.Warning.t -> 'a -> t

Emit a warning

val error : ?loc:Dolmen.Std.Loc.full -> t -> 'a Report.Error.t -> 'a -> t

Emit an error.

type ty_state

The type of state used by the typer.

val input_file_loc : t -> Dolmen.Std.Loc.file

CUrrent input file location meta-data.

val input_lang : t -> Logic.language option

The current input language.

val typecheck : t -> bool

Whether to type-check expressions.

val ty_state : t -> ty_state

Returns the typing state associated.

val set_ty_state : t -> ty_state -> t

Set the typing state.


Innovation. Community. Security.