package catala

  1. Overview
  2. Docs
Low-level language for tax code specification

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=4c6f725ef4d21c5ff91f60d74b454ef7
sha512=98806e03daa6f33740b80a0f78a37320fb70ebea8cb927ea8fed022673459189c32e2389ccba0fa25d93f754b0fa0128a5ee28e1bb9abefa330deb4be8cc7d95

doc/catala.dcalc/Dcalc/Interpreter/index.html

Module Dcalc.InterpreterSource

Reference interpreter for the default calculus

Sourcemodule Pos = Utils.Pos
Sourcemodule Errors = Utils.Errors
Sourcemodule Cli = Utils.Cli
Sourcemodule A = Ast

Helpers

Sourceval is_empty_error : A.expr Pos.marked -> bool
Sourceval empty_thunked_term : Ast.expr Pos.marked

Evaluation

Sourceval evaluate_operator : A.operator Pos.marked -> A.expr Pos.marked list -> A.expr Pos.marked
Sourceval evaluate_expr : A.expr Pos.marked -> A.expr Pos.marked

API

Sourceval interpret_program : Ast.expr Pos.marked -> (Ast.Var.t * Ast.expr Pos.marked) list

Interpret a program. This function expects an expression typed as a function whose argument are all thunked. The function is executed by providing for each argument a thunked empty default.

OCaml

Innovation. Community. Security.