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)
}
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.