party
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.