pears/chars

Types

A grapheme cluster is a user-perceived character

pub type Char =
  String

Functions

pub fn char(
  c: String,
) -> fn(List(String)) ->
  Result(Parsed(String, String), ParseError(String))
pub fn digit() -> fn(List(String)) ->
  Result(Parsed(String, String), ParseError(String))
pub fn number() -> fn(List(String)) ->
  Result(Parsed(String, Int), ParseError(String))
pub fn string(
  str: String,
) -> fn(List(String)) ->
  Result(Parsed(String, String), ParseError(String))
pub fn whitespace() -> fn(List(String)) ->
  Result(Parsed(String, String), ParseError(String))
pub fn whitespace0() -> fn(List(String)) ->
  Result(Parsed(String, List(String)), ParseError(String))
pub fn whitespace1() -> fn(List(String)) ->
  Result(Parsed(String, List(String)), ParseError(String))
Search Document