package liquidsoap-lang

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

Module Liquidsoap_lang.RuntimeSource

Main script evaluation

Sourceexception Error
Sourcetype stdlib = {
  1. full_term : Term.t;
  2. checked_term : Term.t;
  3. env : Typing.env;
}
Sourcetype append_stdlib = unit -> stdlib
Sourceval type_term : ?name:string -> ?stdlib:append_stdlib -> ?term:Term.t -> ?ty:Type.t -> ?cache_dirtype:Cache.dirtype -> cache:bool -> trim:bool -> lib:bool -> Parsed_term.t -> Term.t

Typecheck a term and return it. Might return a cached value!

Sourceval eval_term : ?name:string -> toplevel:bool -> Term.t -> Value.t

Evaluate a term.

Sourceval strict : bool ref

Raise errors for warnings.

Sourceval libs : ?stdlib:string -> ?error_on_no_stdlib:bool -> ?deprecated:bool -> unit -> string list

Return the list of external libraries.

Sourceval load_libs : ?stdlib:string -> unit -> unit

Load the external libraries.

Sourceval throw : ?formatter:Format.formatter -> ?lexbuf:Sedlexing.lexbuf -> unit -> exn -> unit
Sourceval interactive : unit -> unit

Interactive loop: read from command line, eval, print and loop.

Sourceval parse : string -> Parsed_term.t * Term.t

Parse a string.

Sourceval error_header : formatter:Format.formatter -> int -> Pos.Option.t -> unit
Sourceval report : ?lexbuf:Sedlexing.lexbuf -> ?default:(unit -> 'a) -> (throw:(exn -> unit) -> unit -> 'a) -> 'a

Report language errors.