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 as Mutable and Parsed
and ParserInput, 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
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