package fix
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Algorithmic building blocks for memoization, recursion, and more
Install
dune-project
Dependency
Authors
Maintainers
Sources
archive.tar.gz
md5=48d8a5bdff23cf7fbf9288877df2b6aa
sha512=a851d8783c0c519c6e55359a5c471af433058872409c29a1a7bdfd0076813341ad2c0ebd1ce9e28bff4d4c729dfbc808c41c084fe12a42b45a2b5e391e77ccd2
Description
Published: 21 Jan 2022
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:
brzsets 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.cykpresents a CYK-style parsing algorithm as an instance ofFix.cfgusesFixto perform certain static analyses of a context-free grammar; this includes computing nullability information and FIRST sets.fibdefines Fibonacci's function in several different ways using the fixed-point combinators offered byMemoizeandFix.hcosets up simple-minded hash-consed trees usingHashCons.
Dev Dependencies
None
Used by (10)
- feat-core
- karamel
-
kremlin
< "transition" -
ocamlformat
>= "0.14.0" & < "0.25.1" - ocamlformat-lib
- ocamlformat-mlx-lib
-
ocamlformat-rpc
< "0.21.0" - ocamlmig
-
reason
>= "3.6.0" - refl
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page