Liquidsoap_lang.Runtimetype stdlib = {full_term : Liquidsoap_lang_ast.Term.t;checked_term : Liquidsoap_lang_ast.Term.t;env : Liquidsoap_lang_types.Typing.env;}type append_stdlib = unit -> stdlibval type_term :
?name:string ->
?stdlib:append_stdlib ->
?term:Liquidsoap_lang_ast.Term.t ->
?ty:Liquidsoap_lang_types.Type.t ->
?cache_dirtype:Liquidsoap_lang_cache.Cache.dirtype ->
cache:bool ->
trim:bool ->
lib:bool ->
Liquidsoap_lang_ast.Parsed_term.t ->
Liquidsoap_lang_ast.Term.tTypecheck a term and return it. Might return a cached value!
val eval_term :
?name:string ->
toplevel:bool ->
Liquidsoap_lang_ast.Term.t ->
Liquidsoap_lang_values.Value.tEvaluate a term.
Return the list of external libraries.
type diagnostic = {severity : [ `Warning of string | `Error ];A warning carries the text raised in strict mode.
*)code : int;pos : Liquidsoap_lang_prelude.Pos.t option;message : Stdlib.Format.formatter -> unit;}A language error or warning. message prints what follows the header, and closes the box the header opens.
val describe :
lexbuf:Sedlexing.lexbuf option ->
bt:Stdlib.Printexc.raw_backtrace ->
exn ->
diagnostic optionNone for exceptions that are not language errors.
val program :
(unit ->
Liquidsoap_lang_parser.Parser.token
* Stdlib.Lexing.position
* Stdlib.Lexing.position) ->
Liquidsoap_lang_ast.Parsed_term.tval parse :
string ->
Liquidsoap_lang_ast.Parsed_term.t * Liquidsoap_lang_ast.Term.tParse a string.
val error_header :
formatter:Stdlib.Format.formatter ->
int ->
Liquidsoap_lang_prelude.Pos.Option.t ->
unitRegister a printer for exceptions raised by layers above the language, e.g. clock errors from the streaming core. It should return true when it has printed the exception, false to let the next printer try.