scala.util.parsing.syntax

trait Tokens

[source: scala/util/parsing/syntax/Tokens.scala]

trait Tokens
extends AnyRef
This component provides the notion of `Token', the unit of information that is passed from lexical parsers in the `Lexical' component to the parsers in the `TokenParsers' component.
Author
Martin Odersky, Adriaan Moors
Direct Known Subclasses:
Lexical, Lexical, StdTokens

Method Summary
def errorToken (msg : java.lang.String) : Token
This token is produced by a scanner {@see Scanner} when scanning failed.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
case class ErrorToken (val msg : java.lang.String) extends Token with Product
A class of error tokens. Error tokens are used to communicate errors detected during lexical analysis
abstract class Token extends AnyRef
Objects of this type are produced by a lexical parser or ``scanner'', and consumed by a parser {@see scala.util.parsing.combinator.syntactical.TokenParsers}.
Object Summary
case object EOF extends Token with Product
A class for end-of-file tokens
Method Details
def errorToken(msg : java.lang.String) : Token
This token is produced by a scanner {@see Scanner} when scanning failed.