package liquidsoap-lang

  1. Overview
  2. Docs

Main script evaluation

exception Error
val strict : bool Stdlib.ref

Raise errors for warnings.

val load_libs : ?error_on_no_stdlib:bool -> ?parse_only:bool -> ?deprecated:bool -> ?stdlib:string -> unit -> unit

Load the external libraries.

val throw : ?formatter:Stdlib.Format.formatter -> Sedlexing.lexbuf -> exn -> unit
val mk_expr : ?fname:string -> pwd:string -> (Parser.token, Term.t) MenhirLib.Convert.traditional -> Sedlexing.lexbuf -> Term.t
val from_in_channel : ?parse_only:bool -> lib:bool -> Stdlib.in_channel -> unit

Evaluate a script from an in_channel.

val from_file : ?parse_only:bool -> lib:bool -> string -> unit

Evaluate a script from a file.

val from_string : ?parse_only:bool -> lib:bool -> string -> unit

Evaluate a script from a string.

val interactive : unit -> unit

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

val parse : string -> Term.t

Parse a string.

val eval : ignored:bool -> ty:Type.t -> string -> Value.t

Evaluate a string. The result is checked to have the given type.

val error_header : formatter:Stdlib.Format.formatter -> int -> Pos.Option.t -> unit
OCaml

Innovation. Community. Security.