← ZIO Parser docs

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
Source
ParserState.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def at(pos: Int): In

Attributes

Source
ParserState.scala
def regex(compiledRegex: Compiled): Int

Attributes

Source
ParserState.scala
def sliceToChunk(pos: Int, until: Int): Chunk[In]

Attributes

Source
ParserState.scala
def sliceToString(pos: Int, until: Int): String

Attributes

Source
ParserState.scala

Concrete methods

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

Attributes

Source
ParserState.scala
def popName(): Unit

Pop the last pushed name from nameStack

Pop the last pushed name from nameStack

Attributes

Source
ParserState.scala
def pushName(name: String): Unit

Push a name to nameStack

Push a name to nameStack

Attributes

Source
ParserState.scala

Abstract fields

val length: Int

Attributes

Source
ParserState.scala

Concrete fields

Flag indicating that parser results are not being used

Flag indicating that parser results are not being used

Attributes

Source
ParserState.scala
var error: ParserError[Any]

Error emitted during parsing

Error emitted during parsing

Attributes

Source
ParserState.scala

Stack of named parsers, used to enrich failures

Stack of named parsers, used to enrich failures

Attributes

Source
ParserState.scala
var position: Int

Position in the parsed string (source)

Position in the parsed string (source)

Attributes

Source
ParserState.scala