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.6.0.tar.gz
md5=b22e238d5d5c8452067109e9c7c0f427
sha512=ccc8c557c67c2f9d1bed4b957b2367f0f6afc0ef9b8b83237cf2a2912b3e8829b7e8af78ea7fe00b20ecf28b436ad04b591e5fff4f82fd08725d40a18c9924d0

doc/catala.scalc/Scalc/Ast/index.html

Module Scalc.AstSource

Sourcemodule D = Dcalc.Ast
Sourcemodule L = Lcalc.Ast
Sourcemodule TopLevelName : sig ... end
Sourcemodule LocalName : sig ... end
Sourcetype stmt =
  1. | SInnerFuncDef of LocalName.t Utils.Pos.marked * func
  2. | SLocalDecl of LocalName.t Utils.Pos.marked * D.typ Utils.Pos.marked
  3. | SLocalDef of LocalName.t Utils.Pos.marked * expr Utils.Pos.marked
  4. | STryExcept of block * L.except * block
  5. | SRaise of L.except
  6. | SIfThenElse of expr Utils.Pos.marked * block * block
  7. | SSwitch of expr Utils.Pos.marked * D.EnumName.t * (block * LocalName.t) list
    (*

    Each block corresponds to one case of the enum

    *)
  8. | SReturn of expr
  9. | SAssert of expr
Sourceand block = stmt Utils.Pos.marked list
Sourceand func = {
  1. func_params : (LocalName.t Utils.Pos.marked * D.typ Utils.Pos.marked) list;
  2. func_body : block;
}
Sourcetype scope_body = {
  1. scope_body_name : Dcalc.Ast.ScopeName.t;
  2. scope_body_var : TopLevelName.t;
  3. scope_body_func : func;
}
Sourcetype program = {
  1. decl_ctx : D.decl_ctx;
  2. scopes : scope_body list;
}
OCaml

Innovation. Community. Security.