package earley

  1. Overview
  2. Docs
Parsing library based on Earley Algorithm

Install

Dune Dependency

Authors

Maintainers

Sources

3.0.0.tar.gz
md5=6b666c0392dc5b153f81c27d6ef49b12
sha512=a81d2bcf05088a3aaa5c3c0fb3a38306061a624ddf6d8bbefee1b4a17d7a5961ad1b12c0af9bd8dce86aa14b6f05f1956b3f7b5731f3c552bec7f4550182c398

doc/earley.core/Earley_core/Utils/Fixpoint/index.html

Module Utils.FixpointSource

This modules implements a computation of a fixpoints for valus that depends upon other values. Cycles are handled through update of references. If the fixpoint is not reached, this might loop.

This modules ressemble a little the Lazy module.

Sourcetype 'a t
Sourceval from_val : 'a -> 'a t

Standard way to construct a value of type 'a t

Sourceval from_fun : 'a t -> ('a -> 'b) -> 'b t
Sourceval from_fun2 : 'a t -> 'b t -> ('a -> 'b -> 'c) -> 'c t
Sourceval from_funl : 'a t list -> 'b -> ('b -> 'a -> 'b) -> 'b t
Sourceval from_ref : 'b -> ('b -> 'a t) -> 'a t

value obtained by reading 'b which is mutable

Sourceval update : 'a t -> unit

Must be called when updating a mutable field used in from_ref

Sourceval force : 'a t -> 'a

Reading the value

OCaml

Innovation. Community. Security.