Return to Roc packages
Documentation
Parse
▶
Parser
string
whitespace
char
atomic_grapheme
digit
integer
float
filter
excluding
map
flat_map
one_or_more
zero_or_more
zip
zip_3
zip_4
zip_5
zip_6
maybe
or_else
one_of
keep_left
keep_right
lhs
rhs
both
finalize
finalize_lazy
CSV
▶
comma
newline
csv_string
Maybe
▶
Maybe
map
(press
s
)
Parse
.
Parser
Parse
.
string
: Str -> Parser Str [StringNotFound]
Parse
.
whitespace
: Parser Str [WhitespaceNotFound]
Parse
.
char
: Parser U8 [CharNotFound]
Parse
.
atomic_grapheme
: Parser Str [GraphemeNotFound]
Parse
.
digit
: Parser U8 [NotADigit]
Parse
.
integer
: Parser U64 [NotAnInteger]
Parse
.
float
: Parser F64 [NotAFloat]
Parse
.
filter
: Parser a , (a -> Bool) -> Parser a [FilteredOut]
Parse
.
excluding
: Parser a , (a -> Bool) -> Parser a [Excluded]
Parse
.
map
: Parser a , (a -> Result b ) -> Parser b
Parse
.
flat_map
: Parser a , (a -> Parser b ) -> Parser b
Parse
.
one_or_more
: Parser a -> Parser (List a) [LessThanOneFound]
Parse
.
zero_or_more
: Parser a -> Parser (List a)
Parse
.
zip
: Parser a , Parser b -> Parser ( a, b )
Parse
.
zip_3
: Parser a , Parser b , Parser c -> Parser ( a, b, c )
Parse
.
zip_4
: Parser a , Parser b , Parser c , Parser d -> Parser ( a, b, c, d )
Parse
.
zip_5
: Parser a , Parser b , Parser c , Parser d , Parser e -> Parser ( a, b, c, d, e )
Parse
.
zip_6
: Parser a , Parser b , Parser c , Parser d , Parser e , Parser f -> Parser ( a, b, c, d, e, f )
Parse
.
maybe
: Parser a -> Parser (Maybe a)
Parse
.
or_else
: Parser a err, Parser a err -> Parser a err
Parse
.
one_of
: List (Parser a err) -> Parser a [NoMatchFound]
Parse
.
keep_left
: Parser l , Parser r -> Parser l
Parse
.
keep_right
: Parser l , Parser r -> Parser r
Parse
.
lhs
: Parser l , Parser r -> Parser l
Parse
.
rhs
: Parser l , Parser r -> Parser r
Parse
.
both
: Parser l , Parser r -> Parser ( l, r )
Parse
.
finalize
: Result ( a, Str ) -> Result a [NotConsumed]
Parse
.
finalize_lazy
: Result ( a, Str ) err -> Result a err
CSV
.
comma
: Parser U8 [CommaNotFound]
CSV
.
newline
: Parser U8 [NewlineNotFound]
CSV
.
csv_string
: Parser Str [InvalidString]
Maybe
.
Maybe
: [ Some a, None ]
Maybe
.
map
: Maybe a, (a -> b), b -> b
Exposed Modules
LLM docs
Parse
CSV
Maybe