package catala

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

Scope language to default calculus translator

val translate_program : Ast.program -> Dcalc.Ast.program * Dependency.TVertex.t list

Usage translate_program p returns a tuple (new_program, types_list) where new_program is the map of translated scopes. Finally, types_list is a list of all types (structs and enums) used in the program, correctly ordered with respect to inter-types dependency.

OCaml

Innovation. Community. Security.