package catala

  1. Overview
  2. Docs
Compiler and library for the literate programming language for tax code specification

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=42196e9a9c5e12839b38cb3da935f10c
sha512=ede2d8c17dcb936c1c8c596f1453bf89370a2f824a190efe74e438d7d7f7f83875c1ecbc18219c6a8a3e98b3ab4da1c3a6cc4e534687dbc90f3dca8230f43f7b

doc/catala.scopelang/Scopelang/Ast/index.html

Module Scopelang.AstSource

Abstract syntax tree of the scope language

Identifiers

Abstract syntax tree

Sourceval locations_used : 'm expr -> LocationSet.t
Sourcetype 'm rule =
  1. | ScopeVarDefinition of {
    1. var : Shared_ast.ScopeVar.t * Catala_utils.Pos.t list;
      (*

      Scope variable and its list of definitions' positions

      *)
    2. typ : Shared_ast.typ;
    3. io : Desugared.Ast.io;
    4. e : 'm expr;
    }
  2. | SubScopeVarDefinition of {
    1. var : Shared_ast.ScopeVar.t * Catala_utils.Pos.t list;
      (*

      Variable within the current scope

      *)
    2. var_within_origin_scope : Shared_ast.ScopeVar.t;
    3. typ : Shared_ast.typ;
    4. e : 'm expr;
    }
  3. | Assertion of 'm expr
Sourcetype scope_var_ty = {
  1. svar_in_ty : Shared_ast.typ;
  2. svar_out_ty : Shared_ast.typ;
  3. svar_io : Desugared.Ast.io;
}
Sourcetype 'm scope_decl = {
  1. scope_decl_name : Shared_ast.ScopeName.t;
  2. scope_sig : scope_var_ty Shared_ast.ScopeVar.Map.t;
  3. scope_decl_rules : 'm rule list;
  4. scope_options : Desugared.Ast.catala_option Catala_utils.Mark.pos list;
  5. scope_visibility : Shared_ast.visibility;
}
Sourceval type_program : 'm program -> Shared_ast.typed program