Typeclass that describes a Type (T
) which can open and close an InputStream
given
an instance of T
, intended for use with the javax.xml.stream
classes.
Created by dylan on 10/27/2015.
This mixin adds the tupled
and apply
methods to Parsers with
chain-like result types.
Splitter implementation based on a 'tag stack' context matcher function.
Functor typeclass for transforming things that yield Result
s,
e.
Functor typeclass for transforming things that yield Result
s
and have an additional "context" type param.
Mixin that adds several result-related transformations to members of the MapR
and MapRC
typeclasses.
Typeclass to witness that a type T
is *not* a Chain
Typeclass to witness that a type T
is *not* a Unit
Used by the XMLEventSource's loop to decide whether to continue parsing or stop.
Created by dylan on 11/5/2015.
A Parser Combiner is able to combine two parsers into a single parser, finding the most-specific common type between the two parsers' contexts, and combining their results as a chain.
Result value from parsing some input.
Stream transformation function that operates like a foldLeft
.
Transforms a stream of XMLEvent into a stream of Result[A].
Defines common functionality between Transformer
and TransformerWithContext
Variant of the Transformer
trait in which a "context" value must be passed in order to be useful.
Allows an underlyingSource
to be treated as a source of XMLEvent
s.
Created by dylan on 10/10/2015.
Created by dylan on 10/10/2015.
Defines a convenience method for constructing an XMLEventSource.