package catala

  1. Overview
  2. Docs
Compiler and library for the literate programming language for tax code specification

Install

Dune Dependency

Authors

Maintainers

Sources

0.10.0.tar.gz
md5=5abd76e8c51a47670645e91b21b57fc5
sha512=9c6fbe50c0b5a60566e877eeddadca0a339e2ce35deb5c1beceb03bc40eb6af2d519313e71859d88645b53fad591d4fa5288c633b185c9d765603da0f5b7dd7b

doc/catala.runtime_jsoo/Runtime_jsoo/Runtime/index.html

Module Runtime_jsoo.RuntimeSource

A js_of_ocaml wrapper around the Runtime_ocaml.Runtime.

Log events

Sourceclass type source_position = object ... end

Information about the position of the log inside the Catala source file.

Sourceclass type raw_event = object ... end

Wrapper for the Runtime_ocaml.Runtime.raw_event -- directly collected during the program execution.

Sourceclass type event = object ... end

Wrapper for the Runtime_ocaml.Runtime.event -- structured log event parsed from the raw_event ones.

Sourceclass type event_manager = object ... end

JS object usable to retrieve and reset log events.

Duration

Sourceclass type duration = object ... end

Simple JSOO wrapper around Runtime_ocaml.Runtime.duration.

Date conversion

Date values are encoded to a string in the ISO8601 format: 'YYYY-MM-DD'.

Error management

Sourceval execute_or_throw_error : (unit -> 'a) -> 'a

execute_or_throw_error f calls f () and propagates the Runtime_ocaml.Runtime.NoValueProvided, Runtime_ocaml.Runtime.ConflictError Runtime_ocaml.Runtime.error.AssertionFailed exceptions by raising a JS error if needed.

OCaml

Innovation. Community. Security.