- success: {α ι : Type} → ι → α → Std.Internal.Parsec.ParseResult α ι
- error: {α ι : Type} → ι → String → Std.Internal.Parsec.ParseResult α ι
Instances For
instance
Std.Internal.Parsec.instReprParseResult
{α✝ ι✝ : Type}
[Repr α✝]
[Repr ι✝]
:
Repr (Std.Internal.Parsec.ParseResult α✝ ι✝)
Equations
- Std.Internal.Parsec.instReprParseResult = { reprPrec := Std.Internal.Parsec.reprParseResult✝ }
class
Std.Internal.Parsec.Input
(ι : Type)
(elem idx : outParam Type)
[DecidableEq idx]
[DecidableEq elem]
:
- pos : ι → idx
- next : ι → ι
- curr : ι → elem
- hasNext : ι → Bool
- next' : (it : ι) → Std.Internal.Parsec.Input.hasNext it = true → ι
- curr' : (it : ι) → Std.Internal.Parsec.Input.hasNext it = true → elem
Instances
@[inline]
Equations
Instances For
@[inline]
def
Std.Internal.Parsec.bind
{ι α β : Type}
(f : Std.Internal.Parsec ι α)
(g : α → Std.Internal.Parsec ι β)
:
Instances For
@[always_inline]
@[inline]
Instances For
@[inline]
def
Std.Internal.Parsec.tryCatch
{α ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
{β : Type}
(p : Std.Internal.Parsec ι α)
(csuccess : α → Std.Internal.Parsec ι β)
(cerror : Unit → Std.Internal.Parsec ι β)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def
Std.Internal.Parsec.orElse
{α ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : Std.Internal.Parsec ι α)
(q : Unit → Std.Internal.Parsec ι α)
:
Equations
- p.orElse q = p.tryCatch pure q
Instances For
@[inline]
Instances For
@[always_inline]
instance
Std.Internal.Parsec.instAlternative
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
:
Equations
- Std.Internal.Parsec.instAlternative = Alternative.mk (fun {α : Type} => Std.Internal.Parsec.fail "") fun {α : Type} => Std.Internal.Parsec.orElse
Equations
- Std.Internal.Parsec.expectedEndOfInput = "expected end of input"
Instances For
@[inline]
def
Std.Internal.Parsec.eof
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def
Std.Internal.Parsec.isEof
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
:
Equations
Instances For
@[specialize #[]]
partial def
Std.Internal.Parsec.manyCore
{α ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : Std.Internal.Parsec ι α)
(acc : Array α)
:
Std.Internal.Parsec ι (Array α)
@[inline]
def
Std.Internal.Parsec.many
{α ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : Std.Internal.Parsec ι α)
:
Std.Internal.Parsec ι (Array α)
Instances For
@[inline]
def
Std.Internal.Parsec.many1
{α ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : Std.Internal.Parsec ι α)
:
Std.Internal.Parsec ι (Array α)
Instances For
Equations
- Std.Internal.Parsec.unexpectedEndOfInput = "unexpected end of input"
Instances For
@[inline]
def
Std.Internal.Parsec.any
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
:
Std.Internal.Parsec ι elem
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def
Std.Internal.Parsec.satisfy
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : elem → Bool)
:
Std.Internal.Parsec ι elem
Instances For
@[inline]
Instances For
@[inline]
def
Std.Internal.Parsec.peek?
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
:
Std.Internal.Parsec ι (Option elem)
Instances For
@[inline]
def
Std.Internal.Parsec.peek!
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
:
Std.Internal.Parsec ι elem
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def
Std.Internal.Parsec.peekD
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(default : elem)
:
Std.Internal.Parsec ι elem
Instances For
@[inline]
def
Std.Internal.Parsec.skip
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
:
Instances For
@[specialize #[]]
partial def
Std.Internal.Parsec.manyCharsCore
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : Std.Internal.Parsec ι Char)
(acc : String)
:
@[inline]
def
Std.Internal.Parsec.manyChars
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : Std.Internal.Parsec ι Char)
:
Equations
- p.manyChars = p.manyCharsCore ""
Instances For
@[inline]
def
Std.Internal.Parsec.many1Chars
{ι elem idx : Type}
[DecidableEq idx]
[DecidableEq elem]
[Std.Internal.Parsec.Input ι elem idx]
(p : Std.Internal.Parsec ι Char)
: