package catala
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.Ast
Source
Abstract syntax tree of the scope language
Identifiers
Abstract syntax tree
Source
type 'm rule =
| ScopeVarDefinition of {
var : Shared_ast.ScopeVar.t * Catala_utils.Pos.t list;
(*Scope variable and its list of definitions' positions
*)typ : Shared_ast.typ;
io : Desugared.Ast.io;
e : 'm expr;
}
| SubScopeVarDefinition of {
var : Shared_ast.ScopeVar.t * Catala_utils.Pos.t list;
(*Variable within the current scope
*)var_within_origin_scope : Shared_ast.ScopeVar.t;
typ : Shared_ast.typ;
e : 'm expr;
}
| Assertion of 'm expr
Source
type scope_var_ty = {
svar_in_ty : Shared_ast.typ;
svar_out_ty : Shared_ast.typ;
svar_io : Desugared.Ast.io;
}
Source
type 'm scope_decl = {
scope_decl_name : Shared_ast.ScopeName.t;
scope_sig : scope_var_ty Shared_ast.ScopeVar.Map.t;
scope_decl_rules : 'm rule list;
scope_options : Desugared.Ast.catala_option Catala_utils.Mark.pos list;
scope_visibility : Shared_ast.visibility;
}
Source
type 'm program = {
program_module_name : (Shared_ast.ModuleName.t * Shared_ast.module_intf_id) option;
program_ctx : Shared_ast.decl_ctx;
program_modules : 'm scope_decl Catala_utils.Mark.pos Shared_ast.ScopeName.Map.t Shared_ast.ModuleName.Map.t;
program_scopes : 'm scope_decl Catala_utils.Mark.pos Shared_ast.ScopeName.Map.t;
program_topdefs : ('m expr * Shared_ast.typ * Shared_ast.visibility * bool) Shared_ast.TopdefName.Map.t;
program_lang : Catala_utils.Global.backend_lang;
}
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page