trait FollowedBy[In, +A, M[-_, +_]] extends AnyRef
An intermediate object for creating sequence-based combination methods for a Parser or Consumer.
- A
Output type for the "first" parser/consumer; using the combination methods in this trait will result in an instance of T1 being used to create a "second" parser/consumer/transformer to be run sequentially after the first.
- M
Type constructor for the parser/consumer of a given output type
- Self Type
- FollowedBy[In, A, M]
- Source
- Parser.scala
- Alphabetic
- By Inheritance
- FollowedBy
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def apply[Out](followUp: (A) => M[In, Out])(implicit S: StackLike[In, Any]): M[In, Out]
Creates a sequence handler by combining this one and a
getNext
function such that when this handler finishes, a second handler is created by passing its result otgetNext
.Creates a sequence handler by combining this one and a
getNext
function such that when this handler finishes, a second handler is created by passing its result otgetNext
.- followUp
A function that creates the new Parser/Transformer (whichever
M
is in this context) based on the result of this parser- returns
The combined parser/transformer
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toany2stringadd[FollowedBy[In, A, M]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (FollowedBy[In, A, M], B)
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toArrowAssoc[FollowedBy[In, A, M]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (FollowedBy[In, A, M]) => Boolean, msg: => Any): FollowedBy[In, A, M]
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toEnsuring[FollowedBy[In, A, M]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (FollowedBy[In, A, M]) => Boolean): FollowedBy[In, A, M]
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toEnsuring[FollowedBy[In, A, M]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): FollowedBy[In, A, M]
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toEnsuring[FollowedBy[In, A, M]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): FollowedBy[In, A, M]
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toEnsuring[FollowedBy[In, A, M]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[Out](followUp: (A) => M[In, Out])(implicit S: StackLike[In, Any]): M[In, Out]
Alias for
apply
, allowing the use of for-comprehension syntax, e.g.Alias for
apply
, allowing the use of for-comprehension syntax, e.g.for { a <- someParser result <- getNextParser(a) } yield result
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toStringFormat[FollowedBy[In, A, M]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (A) => B)(implicit S: StackLike[In, Any]): FollowedBy[In, B, M]
Transforms the intermediate result that will be passed to the
followUp
function.Transforms the intermediate result that will be passed to the
followUp
function. Really this method is only here to allowfor-comprehension
syntax to be used - seeflatMap
. You probably don't want to call this explicitly. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def →[B](y: B): (FollowedBy[In, A, M], B)
- Implicit
- This member is added by an implicit conversion from FollowedBy[In, A, M] toArrowAssoc[FollowedBy[In, A, M]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.