Parser

case class Parser(xs: List[ANY], x: String, t: PT)

Parser state.

Value parameters:
t

type of x

x

currently parsing atom

xs

parsed atoms

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addc(c: String | Char): Parser

Adds string/char to x.

Adds string/char to x.

Value parameters:
c

string/char to add

def choice(c: Char): Parser

Determines parse approach from c and t.

Determines parse approach from c and t.

Value parameters:
c

char to add

Pushes t with type t to xs; resets x and t.

Pushes t with type t to xs; resets x and t.

def pcmd(c: Char): Parser

Parses to CMD.

Parses to CMD.

Value parameters:
c

char to add

Handles dot special case.

Handles dot special case.

def pnum(c: Char): Parser

Parses to NUM.

Parses to NUM.

Value parameters:
c

char to add

def pstr(c: Char): Parser

Parses to STR.

Parses to STR.

Value parameters:
c

char to add

def sett(t: PT): Parser

Sets t.

Sets t.

Value parameters:
t

type to set

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product