Documentation

Std.Internal.Parsec.Basic

Instances For
instance Std.Internal.Parsec.instReprParseResult :
{α ι : Type} → [inst : Repr α] → [inst : Repr ι] → Repr (Std.Internal.Parsec.ParseResult α ι)
Equations
  • Std.Internal.Parsec.instReprParseResult = { reprPrec := Std.Internal.Parsec.reprParseResult✝ }
Instances
Equations
@[inline]
def Std.Internal.Parsec.bind {ι : Type} {α : Type} {β : Type} (f : Std.Internal.Parsec ι α) (g : αStd.Internal.Parsec ι β) :
Equations
@[always_inline]
Equations
  • Std.Internal.Parsec.instMonad = Monad.mk
@[inline]
def Std.Internal.Parsec.tryCatch {α : Type} {ι : Type} {elem : Type} {idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] {β : Type} (p : Std.Internal.Parsec ι α) (csuccess : αStd.Internal.Parsec ι β) (cerror : UnitStd.Internal.Parsec ι β) :
Equations
  • One or more equations did not get rendered due to their size.
@[inline]
def Std.Internal.Parsec.orElse {α : Type} {ι : Type} {elem : Type} {idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] (p : Std.Internal.Parsec ι α) (q : UnitStd.Internal.Parsec ι α) :
Equations
  • p.orElse q = p.tryCatch pure q
@[inline]
Equations
  • One or more equations did not get rendered due to their size.
@[always_inline]
Equations
@[inline]
Equations
  • One or more equations did not get rendered due to their size.
@[specialize #[]]
partial def Std.Internal.Parsec.manyCore {α : Type} {ι : Type} {elem : Type} {idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] (p : Std.Internal.Parsec ι α) (acc : Array α) :
@[inline]
def Std.Internal.Parsec.many {α : Type} {ι : Type} {elem : Type} {idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] (p : Std.Internal.Parsec ι α) :
Equations
  • p.many = p.manyCore #[]
@[inline]
def Std.Internal.Parsec.many1 {α : Type} {ι : Type} {elem : Type} {idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] (p : Std.Internal.Parsec ι α) :
Equations
  • p.many1 = do let __do_liftp p.manyCore #[__do_lift]
@[inline]
def Std.Internal.Parsec.any {ι : Type} {elem : Type} {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.
@[inline]
def Std.Internal.Parsec.satisfy {ι : Type} {elem : Type} {idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] (p : elemBool) :
Equations
@[inline]
Equations
  • One or more equations did not get rendered due to their size.
@[inline]
def Std.Internal.Parsec.peek? {ι : Type} {elem : Type} {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.
@[inline]
def Std.Internal.Parsec.peek! {ι : Type} {elem : Type} {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.
@[inline]
def Std.Internal.Parsec.peekD {ι : Type} {elem : Type} {idx : Type} [DecidableEq idx] [DecidableEq elem] [Std.Internal.Parsec.Input ι elem idx] (default : elem) :
Equations
  • One or more equations did not get rendered due to their size.
@[inline]
Equations
  • One or more equations did not get rendered due to their size.
@[specialize #[]]
@[inline]
Equations
  • p.manyChars = p.manyCharsCore ""
@[inline]
Equations
  • p.many1Chars = do let __do_liftp p.manyCharsCore __do_lift.toString