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

Type members

Classlikes

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

Attributes

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

Value parameters

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

Attributes

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

Attributes

Companion
class
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

Value parameters

index

The index at which the parse completed at

value

The value returned by the parse

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Parsed[T]
class Object
trait Matchable
class Any
Show all
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.

Value parameters

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.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TracedFailure

Attributes

Companion
class
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]