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/Blanks/index.html

Module Earley_core.BlanksSource

none is a blank function that does not parse anything.

Sourceval default : Earley.blank

default is a blank function that ignores an arbitrary number of spacing characters. They include ' ', '\t', '\r' and '\n'.

Sourceval from_charset : Charset.t -> Earley.blank

from_charset cs is a blank function that ignores an arbitrary number of characters from the character set cs.

Sourceval line_comments : ?blanks:Charset.t -> string -> Earley.blank

line_comments ?blanks=cs delim is a blank function that behaves the same as from_charset cs, but it also ignores single-line comments starting by delim. The exception Invalid_argument when delim is empty or when it starts with a character of cs.

Sourceexception Bad_ocaml_comment of string * Input.buffer * int
Sourceval ocaml_blank : Earley.blank
OCaml

Innovation. Community. Security.