TxtState

jaskell.parsec.TxtState
See theTxtState companion object
class TxtState(val txt: String, val newLine: Char) extends CommonState[Char]

Txt State extends Common State trait. It special for text content analyst. Txt state could mark a status point in which line.

Attributes

Version:

1.0.0

Companion:
object
Graph
Supertypes
class CommonState[Char]
trait State[Char]
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited types

type Index

Attributes

Inherited from:
State
override type Status = Int

Attributes

Inherited from:
CommonState
override type Tran = Int

Attributes

Inherited from:
CommonState

Value members

Concrete methods

def lineByIndex(index: Int): Int

Inherited methods

def begin(tran: Tran): Tran

Attributes

Inherited from:
CommonState
def begin(): Tran

Attributes

Inherited from:
CommonState
def commit(tran: Tran): Unit

Attributes

Inherited from:
CommonState
def eof[U >: Char]: Parsec[U, Unit]

Attributes

Inherited from:
State
def next(): Try[T]

Attributes

Inherited from:
CommonState
def pack[T, U >: Char](item: T): Parsec[U, T]

Attributes

Inherited from:
State
def rollback(tran: Tran): Unit

Attributes

Inherited from:
CommonState

Attributes

Inherited from:
CommonState
def trap[T](message: String): Failure[T]

Attributes

Inherited from:
State

Concrete fields

val lines: SortedMap[Int, Int]
val newLine: Char
val txt: String

Inherited fields

val content: Seq[Char]

Attributes

Inherited from:
CommonState
var current: Int

Attributes

Inherited from:
CommonState
var tran: Int

Attributes

Inherited from:
CommonState