ParseAttempt

parsley.debugger.ParseAttempt
final class ParseAttempt

A representation of the attempts a parser has made during parse-time.

Attributes

Since

4.5.0

Source
ParseAttempt.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete fields

val fromOffset: Offset

This offset is where the parse attempt started in the input.

This offset is where the parse attempt started in the input.

Attributes

Source
ParseAttempt.scala
val fromPos: Pos

fromOffset represented as a (line, column) pair.

fromOffset represented as a (line, column) pair.

Attributes

Source
ParseAttempt.scala
val rawInput: Input

The input parsed, as raw text.

The input parsed, as raw text.

Attributes

Source
ParseAttempt.scala
val result: Result

If this parse attempt was successful, what did it return? It is guaranteed that result.isDefined is true if and only if the attempt is successful.

If this parse attempt was successful, what did it return? It is guaranteed that result.isDefined is true if and only if the attempt is successful.

Attributes

Note

success if and only if result is defined (contains a value).

Source
ParseAttempt.scala
val success: Success

Was this parse attempt successful?

Was this parse attempt successful?

Attributes

Note

success if and only if result is defined (contains a value).

Source
ParseAttempt.scala
val toOffset: Offset

This offset is where the parse attempt finished in the input.

This offset is where the parse attempt finished in the input.

Attributes

Source
ParseAttempt.scala
val toPos: Pos

toOffset represented as a (line, column pair).

toOffset represented as a (line, column pair).

Attributes

Source
ParseAttempt.scala