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-alpha.tar.gz
md5=2615968670ac21b1d00386a9b04b3843
sha512=eff292fdd75012f26ce7b17020f5a8374eef37cd4dd6ba60338dfbe89fbcad3443d1b409e44c182b740da9f58dff7e76dcb8ddefe47f9b2b160666d1c6930143

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