package lambdapi

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

Module Common.ConsoleSource

Verbose level and loggers management.

out_fmt main output formatter.

Sourceval verbose : int Timed.ref

Current verbosity level.

Sourceval default_verbose : int ref

Default verbosity level (may be set with command line arguments).

Sourceval set_default_verbose : int -> unit

set_default_verbose i sets the default verbosity level to i.

Sourceval out : int -> 'a Lplib.Base.outfmt -> 'a

out lvl fmt prints an output message using the format fmt, but only if lvl is strictly greater than the current verbosity level. Note that the output channel is automatically flushed if logging modes are enabled.

Sourceval boolean_flags : (bool * bool Timed.ref) Lplib.Extra.StrMap.t ref

List of registered boolean flags, with their default values.

Sourceval register_flag : string -> bool -> bool Timed.ref

register_flag id d registers a new boolean flag named id, with default value of d. Note the name should not have been used previously.

Sourceval set_flag : string -> bool -> unit

set_flag id b sets the value of the flag named id to be b, or raises Not_found if no flag with this name was registered.

Sourceval reset_default : unit -> unit

reset_default () resets the verbosity level and the state of the loggers to their default value (configurable by the user with command line flags). The boolean flags are also reset to their default values.

Sourcemodule State : sig ... end

Module to manipulate imperative state of the typechecker.

OCaml

Innovation. Community. Security.