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.
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.