package catala
Compiler and library for the literate programming language for tax code specification
Install
Dune Dependency
Authors
Maintainers
Sources
0.7.0.tar.gz
md5=6dbbc2f50c23693f26ab6f048e78172f
sha512=a5701e14932d8a866e2aa3731f76df85ff2a68b4fa943fd510c535913573274d66eaec1ae6fcae17f20b475876048a9ab196ef6d8c23d4ea6b90b986aa0a6daa
doc/catala.utils/Utils/Cli/index.html
Module 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