package saltoIL
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ef8ac4d868c392a647acef1f48b2d36c8d427fd23202373c1be0066a055799d7
sha512=bde40edc3c3f496da7605d365dd318cdfc18fbb6bbc2d5535afe553c752c546b0427ba8ed5769b0f75b3ce06b759ba83e82be88a9b1830bcec2af6251cd2dd9f
Description
The Salto Intermediate Language is a simplified version of the OCaml TypedTree. This library provides function to transform the OCaml TypedTree into the Salto IL, and to transform the Salto IL into the OCaml ParseTree.
Published: 11 Nov 2025
README
Salto Intermediate Language
The Salto Intermediate Language is a simplified version of the OCaml TypedTree. This library provides function to transform the OCaml TypedTree into the Salto IL, and to transform the Salto IL into the OCaml ParseTree.
The definition of our IL is located in the Ast module.
The functions that translate the Typedtree elements into their conterpart in the IL are located in the Transpose module. These functions produce trees whose nodes contain identifiers that are ensured to be unique. This is not hash-consing: even two sub-trees that happen to be identical by chance will get two distinct identifiers. These unique identifiers enable comparison/equality tests of trees in constant time.
The Term module provides some useful functions, and in particular the computation of free variables (or, more accurately, free paths).
Documentation is available here.
Dependencies (7)
-
seq
= "base" -
ppx_deriving
build & >= "5.2.1" -
ptmap
>= "2.0.5" -
base
>= "v0.16" & < "v0.17" -
ocaml-compiler-libs
= "v0.12.4" -
ocaml
>= "4.14.0" & < "4.15.0" -
dune
>= "3.17"
Dev Dependencies (1)
-
odoc
with-doc
Used by
None
Conflicts
None