Equations
- One or more equations did not get rendered due to their size.
Parser α
is a parser that consumes a ByteArray
input using a ByteArray.Iterator
and returns a result of type α
.
Instances For
Parse a single byte equal to b
, fails if different.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Skip a single byte equal to b
, fails if different.
Equations
Instances For
Parse a string by matching its UTF-8 bytes, returns the string on success.
Equations
Instances For
Skip a string by matching its UTF-8 bytes.
Equations
Instances For
Skip a Char
that can be represented in 1 byte. If c
uses more than 1 byte it is truncated.
Equations
Instances For
Parse an ASCII digit 0-9
as a Char
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parse a hex digit 0-9
, a-f
, or A-F
as a Char
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parse an octal digit 0-7
as a Char
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Parse an ASCII letter a-z
or A-Z
as a Char
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Skip whitespace: tabs, newlines, carriage returns, and spaces.
Equations
Instances For
Parses until a predicate is satisfied (exclusive).
Equations
- Std.Internal.Parsec.ByteArray.takeUntil pred = Std.Internal.Parsec.ByteArray.takeWhile fun (b : UInt8) => decide ¬pred b = true
Instances For
Skips while a predicate is satisfied.
Equations
Instances For
Skips until a predicate is satisfied.
Equations
- Std.Internal.Parsec.ByteArray.skipUntil pred = Std.Internal.Parsec.ByteArray.skipWhile fun (b : UInt8) => decide ¬pred b = true
Instances For
Parses until a predicate is satisfied (exclusive), up to a given limit.
Equations
- Std.Internal.Parsec.ByteArray.takeUntilUpTo pred limit = Std.Internal.Parsec.ByteArray.takeWhileUpTo (fun (b : UInt8) => decide ¬pred b = true) limit
Instances For
Skips while a predicate is satisfied, up to a given limit.
Equations
- Std.Internal.Parsec.ByteArray.skipWhileUpTo pred limit it = Std.Internal.Parsec.ParseResult.success (Std.Internal.Parsec.ByteArray.skipWhileUpTo.findEnd✝ pred limit 0 it) ()
Instances For
Skips until a predicate is satisfied, up to a given limit.
Equations
- Std.Internal.Parsec.ByteArray.skipUntilUpTo pred limit = Std.Internal.Parsec.ByteArray.skipWhileUpTo (fun (b : UInt8) => decide ¬pred b = true) limit