scala.util.parsing.combinator.syntactical

trait TokenParsers

[source: scala/util/parsing/combinator/syntactical/TokenParsers.scala]

trait TokenParsers
extends Parsers

This is the core component for token-based parsers.

@requires lexical a component providing the tokens consumed by the parsers in this component.

Author
Martin Odersky, Adriaan Moors
Direct Known Subclasses:
StdTokenParsers

Type Summary
type Elem
The input-type for these parsers
abstract type Tokens <: Tokens
Tokens is the abstract type of the `Token's consumed by the parsers in this component
Value Summary
abstract val lexical : Tokens
lexical is the component responsible for consuming some basic kind of input (usually character-based) and turning it into the tokens understood by these parsers.
Values and Variables inherited from Parsers
lastNoSuccess
Methods inherited from Parsers
Parser, OnceParser, commit, elem, elem, accept, accept, accept, acceptIf, acceptMatch, acceptSeq, failure, err, success, log, rep, repsep, rep1, rep1, repN, rep1sep, chainl1, chainl1, chainr1, opt, not, positioned, phrase, mkList
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
abstract type Tokens <: Tokens
Tokens is the abstract type of the `Token's consumed by the parsers in this component

type Elem
The input-type for these parsers

Value Details
abstract val lexical : Tokens
lexical is the component responsible for consuming some basic kind of input (usually character-based) and turning it into the tokens understood by these parsers.