package catala

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Translation from Desugared.Ast to Scopelang.Ast

val build_exceptions_graph : Desugared.Ast.program -> Desugared.Dependency.ExceptionsDependencies.t Desugared.Ast.ScopeDef.Map.t

This function builds all the exceptions dependency graphs for all variables of all scopes.

val translate_program : Desugared.Ast.program -> Desugared.Dependency.ExceptionsDependencies.t Desugared.Ast.ScopeDef.Map.t -> Shared_ast.untyped Ast.program

This functions returns the translated program as well as all the graphs of exceptions inferred for each scope variable of the program.

OCaml

Innovation. Community. Security.