Parsed

fastparse.Parsed$
See theParsed companion class
object Parsed

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Parsed.type

Members list

Concise view

Type members

Classlikes

class Extra(val input: ParserInput, val startIndex: Int, val index: Int, val originalParser: ParsingRun[_] => ParsingRun[_], val stack: List[(String, Int)])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
final class Failure(val label: String, val index: Int, val extra: Extra) extends Parsed[Nothing]

The outcome of a failed parse

The outcome of a failed parse

Attributes

extra

Metadata about the parse; useful for re-running the parse to trace out a more detailed error report

index

The index at which the parse failed

label

A hint as to why the parse failed. Defaults to "", unless you set verboseFailures = true or call .trace() on an existing failure

Companion:
object
Graph
Supertypes
class Parsed[Nothing]
class Object
trait Matchable
class Any
object Failure

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Failure.type
final case class Success[+T](value: T, index: Int) extends Parsed[T]

The outcome of a successful parse

The outcome of a successful parse

Attributes

index

The index at which the parse completed at

value

The value returned by the parse

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Parsed[T]
class Object
trait Matchable
class Any
case class TracedFailure(terminals: Msgs, groups: Msgs, failure: Failure)

A decorated Failure with extra metadata; provides a much more detailed, through verbose, of the possible inputs that may have been expected at the index at which the parse failed.

A decorated Failure with extra metadata; provides a much more detailed, through verbose, of the possible inputs that may have been expected at the index at which the parse failed.

Attributes

failure

The raw failure object

groups

A list of all the highest level parsers which could have succeeded at the given failure index. These give you a good

terminals

A list of all the lowest level parsers which could have succeeded at the failure index. These are things like literal string parsers, CharIn, CharPred, etc.

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def fromParsingRun[T](p: ParsingRun[T]): Parsed[T]