scala.util.parsing.combinator.syntactical

class StandardTokenParsers

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

class StandardTokenParsers
extends StdTokenParsers
This component provides primitive parsers for the standard tokens defined in `StdTokens'.
Author
Martin Odersky, Adriaan Moors
Type Summary
type Tokens
Tokens is the abstract type of the `Token's consumed by the parsers in this component
Value Summary
val lexical : StdLexical
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 StdTokenParsers
keywordCache
Values and Variables inherited from Parsers
lastNoSuccess
Method Summary
implicit override def keyword (chars : java.lang.String) : Parser[java.lang.String]
A parser which matches a single keyword token.
Methods inherited from StdTokenParsers
numericLit, stringLit, ident
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, guard, 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
type Tokens
Tokens is the abstract type of the `Token's consumed by the parsers in this component

Value Details
val lexical : StdLexical
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 Details
implicit override def keyword(chars : java.lang.String) : Parser[java.lang.String]
A parser which matches a single keyword token.
Parameters
chars - The character string making up the matched keyword.
Returns
a `Parser' that matches the given string
Overrides
StdTokenParsers.keyword