party

Package Version Hex Docs

A little parser combinator library for Gleam!

A little demo:

fn identstring() -> Parser(String, e) {
  use first <- do(lowercase_letter())
  use rest <- do(many_concat(either(alphanum(), char("_"))))
  return(first <> rest)
}

Installation

If available on Hex this package can be added to your Gleam project:

gleam add party

and its documentation can be found at https://hexdocs.pm/party.

Search Document