Scala Library
|
|
trait
TokenParsers
extends
ParsersThis is the core component for token-based parsers.
@requires lexical a component providing the tokens consumed by the parsers in this component.
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.
|
Method Summary | |
def
|
phrase [t](p : Parser[t]) : Parser[t] |
Methods inherited from Parsers | |
commit, commit, not, elem, elem, accept, accept, accept, failure, fail, success, success, discard, log, log, rep, rep, repsep, rep1, rep1, repN, rep1, repN, rep1sep, rep1sep, chainl1, chainl1, chainr1, opt, opt, positioned, positioned |
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
type
Elem
Value Details |
abstract
val
lexical : Tokens
Method Details |
A parser generator delimiting whole phrases (i.e. programs).
phrase(p)
succeeds if p
succeeds and
no input is left over after p
.
p -
the parser that must consume all input for the resulting parser to succeed.p
consumed all the input.
Scala Library
|
|