package fix
Algorithmic building blocks for memoization, recursion, and more
Install
dune-project
Dependency
Authors
Maintainers
Sources
archive.tar.gz
md5=af7099d1cf24654bd379953b8e3d063f
sha512=147bde60a96191f5f0090842df37a12509d78cf6e9dda482fbd000f61215c3d12115854fc331ae39009f26948d6d527187adade160e7ab27a6c4f0d8b324490a
doc/README.html
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
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page