package saltoIL
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=431a9607c7368ef48651468815c2f098dd33c73aa725ece111b9966adb50d6db
sha512=dfdbcbe89bcdf2ecdc95f52d1c18c8c6b39786867eafccc23ebb393c36d8e6445a40fd78d19d386614b63e093f11604fe9581d72f2adab6572bcea9320f8edab
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: 09 Mar 2025
README
README.md
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