package catala
Compiler and library for the literate programming language for tax code specification
Install
Dune Dependency
Authors
Maintainers
Sources
0.8.0.tar.gz
md5=1408a1cce45c7d5990b981e83e7589c2
sha512=eb3b923aa1f743378b4a05e30f50be5d180dc862a716270d747a90e469017f42fa5fc41352f02fbbf59cd2560f91c4f1b32cf38d80085b105d9387b0aed2039d
doc/catala.catala_utils/Catala_utils/Cli/index.html
Module Catala_utils.Cli
Source
Source
type backend_option_builtin = [
| `Latex
| `Makefile
| `Html
| `Interpret
| `Typecheck
| `OCaml
| `Python
| `Scalc
| `Lcalc
| `Dcalc
| `Scopelang
| `Proof
]
backend_option_to_string backend
returns the string representation of the given backend
.
backend_option_of_string backend
returns the backend_option
corresponding to the backend
string.
Configuration globals
Disables model-generated counterexamples for proofs that fail.
Avoids using try ... with
exceptions when compiling the default calculus.
CLI terms
The usual auto/always/never option argument
Source
type options = {
debug : bool;
color : when_enum;
wrap_weaved_output : bool;
avoid_exceptions : bool;
backend : string;
plugins_dirs : string list;
language : string option;
max_prec_digits : int option;
trace : bool;
disable_counterexamples : bool;
optimize : bool;
ex_scope : string option;
output_file : string option;
closure_conversion : bool;
print_only_law : bool;
}
Command-line application
Main entry point: catala_t file options
Terminal formatting
Markers
call_unstyled f
calls the function f
with the style_flag
set to false during the execution.
Printers
All the printers below print their argument after the correct marker
Source
val concat_with_line_depending_prefix_and_suffix :
(int -> string) ->
(int -> string) ->
string list ->
string
The int argument of the prefix corresponds to the line number, starting at 0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page