Packages

final class ParserState extends AnyRef

State of the recursive parser implementation

The implementation itself is in Parser#parseRec.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ParserState
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ParserState(source: String)

    source

    The parsed string

Value Members

  1. var discard: Boolean

    Flag indicating that parser results are not being used

  2. var error: ParserError[Any]

    Error emitted during parsing

  3. var nameStack: List[String]

    Stack of named parsers, used to enrich failures

  4. def popName(): Unit

    Pop the last pushed name from nameStack

  5. var position: Int

    Position in the parsed string (source)

  6. def pushName(name: String): Unit

    Push a name to nameStack

  7. val source: String