package catala

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module A = Ast
module L = Lcalc.Ast
module D = Dcalc.Ast
type ctxt = {
  1. func_dict : A.TopLevelName.t L.VarMap.t;
  2. decl_ctx : D.decl_ctx;
  3. var_dict : A.LocalName.t L.VarMap.t;
  4. inside_definition_of : A.LocalName.t option;
  5. context_name : string;
}
val translate_expr : ctxt -> 'm L.marked_expr -> A.block * A.expr Utils.Marked.pos
val translate_statements : ctxt -> 'm L.marked_expr -> A.block
val translate_scope_body_expr : D.ScopeName.t -> D.decl_ctx -> A.LocalName.t L.VarMap.t -> A.TopLevelName.t L.VarMap.t -> ('m L.expr, 'm) D.scope_body_expr -> A.block
val translate_program : 'm L.program -> A.program
OCaml

Innovation. Community. Security.