package dolmen_loop

  1. Overview
  2. Docs

Module Dolmen_loop.TyperSource

Typechecker state

Sourcetype ty_state

The type of state used by the Make functor.

Sourceval new_state : unit -> ty_state

Generate a fresh typing state.

Sourceval typer_state : ty_state -> T.state

Return the underlying typer state.

Sourceval almost_linear : string Report.Warning.t

Almost linear warning.

Typechecker Functor

Sourcemodule type Typer_Full = Typer_intf.Typer_Full
Sourcemodule Typer (State : State.S) : Typer_Full with type state = State.t and type 'a key := 'a State.key and type ty_state = ty_state and type env = T.env and type 'a fragment = 'a T.fragment and type error = T.error and type warning = T.warning and type builtin_symbols = T.builtin_symbols

Typechecker Pipe

Sourcemodule type Typer = Typer_intf.Typer
Sourcemodule type S = Typer_intf.S
Sourcemodule Make (Expr : Expr_intf.S) (Print : Expr_intf.Print with type ty := Expr.ty and type ty_var := Expr.ty_var and type ty_cst := Expr.ty_cst and type term := Expr.term and type term_var := Expr.term_var and type term_cst := Expr.term_cst and type formula := Expr.formula) (State : State.S) (Typer : Typer with type state := State.t and type ty := Expr.ty and type ty_var := Expr.ty_var and type ty_cst := Expr.ty_cst and type term := Expr.term and type term_var := Expr.term_var and type term_cst := Expr.term_cst and type formula := Expr.formula) : S with type state := State.t and type 'a key := 'a State.key and type ty := Expr.ty and type ty_var := Expr.ty_var and type ty_cst := Expr.ty_cst and type term := Expr.term and type term_var := Expr.term_var and type term_cst := Expr.term_cst and type formula := Expr.formula