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.3.0.tar.gz
md5=59d0dd01df52c38a4d793b594f067d14
sha512=944b755f8b47cb14920994f03f022cc3ba6cdf5def1ae8ffda00a196fa97dcc5b57baf642a03068b79e949df2a98d5f0218e3358e549be1ff0f1cddda1e5f848

doc/scalc.html

Statement calculus

This representation is the sixth in the compilation chain (see Architecture). Its main difference with the previous default calculus is the switch to a statement-based language. This representation does not assume any scoping rules in the language, every local variable has a unique id.

The module describing the abstract syntax tree is:

Compilation from lambda calculus

Scalc.From_lcalc Performs the classical translation from an expression-based language to a statement-based language. Union types are eliminated in favor of tagged unions.

Related modules:

Backends

Related modules:

  • Scalc.To_python Formats a lambda calculus program into a valid Python program