abstract
class
Api[Elem, Repr] extends AnyRef
Instance Constructors
-
new
Api(ct: ClassTag[Elem], elemSetHelper: ElemSetHelper[Elem], reprOps: ReprOps[Elem, Repr], ordering: Ordering[Elem])
Type Members
-
type
IndexedParserInput = utils.IndexedParserInput[Elem, Repr]
-
type
IteratorParserInput = utils.IteratorParserInput[Elem, Repr]
-
type
P[+T] = core.Parser[T, Elem, Repr]
-
type
P0 = core.Parser[Unit, Elem, Repr]
-
type
ParseCtx = core.ParseCtx[Elem, Repr]
-
-
type
Parsed[+T] = core.Parsed[T, Elem, Repr]
-
type
Parser[+T] = core.Parser[T, Elem, Repr]
-
type
ParserInput = utils.ParserInput[Elem, Repr]
Abstract Value Members
-
abstract
val
AnyElem: P0
-
abstract
def
ElemIn(seqs: Seq[Elem]*): P0
-
abstract
def
ElemPred(pred: (Elem) ⇒ Boolean): P0
-
abstract
def
ElemsWhile(pred: (Elem) ⇒ Boolean, min: Int = 1): P0
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
&(p: P[_]): Lookahead[Elem, Repr]
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
val
End: End[Elem, Repr]
-
val
Fail: Fail[Elem, Repr]
-
val
Index: Index[Elem, Repr]
-
-
val
NoCut: parsers.Combinators.NoCut.type
-
val
NoTrace: parsers.Combinators.NoTrace.type
-
def
P[T](p: ⇒ Parser[T])(implicit name: Name): Parser[T]
-
val
ParseError: (Failure[Elem, Repr]) ⇒ core.ParseError[Elem, Repr]
-
-
val
Pass: Pass[Elem, Repr]
-
def
PassWith[T](t: T): PassWith[T, Elem, Repr]
-
def
SeqIn(seqs: Repr*): StringIn[Elem, Repr]
-
val
Start: Start[Elem, Repr]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
implicit
val
implicitClassTag: ClassTag[Elem]
-
implicit
val
implicitElemSetHelper: ElemSetHelper[Elem]
-
implicit
val
implicitOrdering: Ordering[Elem]
-
implicit
val
implicitReprOps: ReprOps[Elem, Repr]
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
This is basically a trait which contains the "public" API to fastparse packages.
It aliases all the different parsers available in
fastparse.parsers.*
, as well as many of the other useful types such asMutable
andParsed
andParserInput
, and fixes their type-parameters to[Elem, Repr]
, so that anyone who uses the aliases defined here will not need to worry about filling in these type parameters every time they want to use it.If someone wants to write a parser that works on both bytes and strings, they still have the option of using the "raw" types and doing that, but most people shouldn't need to bother.
Also provides the implicits necessary for people who want to construct their own parsers, in the cases where we couldn't provide the implicit directly, e.g. for people defining their own subclass of
Parser