Runtime_jsooA js_of_ocaml wrapper around the Runtime.
class type code_location = object ... endInformation about the position of the log inside the Catala source file.
class type raw_event = object ... endWrapper for the Runtime.raw_event -- directly collected during the program execution.
class type event = object ... endWrapper for the Runtime.event -- structured log event parsed from the raw_event ones.
class type event_manager = object ... endval event_manager : event_manager Js_of_ocaml.Js.tJS object usable to retrieve and reset log events.
class type duration = object ... endSimple JSOO wrapper around Runtime.duration.
val duration_of_js : duration Js_of_ocaml.Js.t -> Catala_runtime.durationval duration_to_js : Catala_runtime.duration -> duration Js_of_ocaml.Js.tDate values are encoded to a string in the ISO8601 format: 'YYYY-MM-DD'.
val date_of_js :
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t ->
Catala_runtime.dateval date_to_js :
Catala_runtime.date ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.tval position_of_js :
code_location Js_of_ocaml.Js.t ->
Catala_runtime.code_locationval position_to_js :
Catala_runtime.code_location ->
code_location Js_of_ocaml.Js.texecute_or_throw_error f calls f () and propagates the Catala_runtime.error.NoValue, Catala_runtime.error.Conflict Catala_runtime.error.AssertionFailed exceptions by raising a JS error if needed.