package fix
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0f633b0cdd5faba947d11da113c81fcc
sha512=6817ce5c79e0c957ef01def7b89059262414af8e8bc7ffafef96430cfb1d78e32350fe7a57e118e68727962338c4fc45023cddb1c4db8c344910d6c8c1873a18
Description
Published: 31 Dec 2021
README
Fix: memoization and fixed points made easy
fix
is an OCaml library that helps with various algorithmic constructions that involve memoization, recursion, and numbering.
Documentation
See the documentation of the latest released version.
Demos
A few demos are provided:
brz
sets up a hash-consed representation of regular expressions and shows how to convert a regular expression to a deterministic finite-state automaton by Brzozowski's method. This demo exploits many of the submodules listed above, and is accompanied with a commentary.cyk
presents a CYK-style parsing algorithm as an instance ofFix
.cfg
usesFix
to perform certain static analyses of a context-free grammar; this includes computing nullability information and FIRST sets.fib
defines Fibonacci's function in several different ways using the fixed-point combinators offered byMemoize
andFix
.hco
sets up simple-minded hash-consed trees usingHashCons
.
Dev Dependencies
None
Used by (11)
-
feat
< "20211224"
- feat-core
- karamel
-
kremlin
< "transition"
- mezzo
-
ocamlformat
>= "0.14.0" & < "0.25.1"
- ocamlformat-lib
- ocamlformat-mlx-lib
-
ocamlformat-rpc
< "0.21.0"
-
reason
>= "3.6.0"
- refl
Conflicts
None