ParserState

zio.parser.internal.recursive.ParserState
See theParserState companion object
sealed trait ParserState[+In]

State of the recursive parser implementation

The implementation itself is in Parser#parseRec.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def at(pos: Int): In
def regex(compiledRegex: Compiled): Int
def sliceToChunk(pos: Int, until: Int): Chunk[In]
def sliceToString(pos: Int, until: Int): String

Concrete methods

def char(index: Int)(implicit ev: In <:< Char): Char
def popName(): Unit

Pop the last pushed name from nameStack

Pop the last pushed name from nameStack

Attributes

def pushName(name: String): Unit

Push a name to nameStack

Push a name to nameStack

Attributes

Abstract fields

val length: Int

Concrete fields

var discard: Boolean

Flag indicating that parser results are not being used

Flag indicating that parser results are not being used

Attributes

var error: ParserError[Any]

Error emitted during parsing

Error emitted during parsing

Attributes

var nameStack: List[String]

Stack of named parsers, used to enrich failures

Stack of named parsers, used to enrich failures

Attributes

var position: Int

Position in the parsed string (source)

Position in the parsed string (source)

Attributes