scala.util.parsing.syntax

StdTokens

trait StdTokens extends Tokens

This component provides the standard Token's for a simple, Scala-like language.

known subclasses: StdLexical

Inherits

  1. Tokens
  2. AnyRef
  3. Any

Type Members

  1. class ErrorToken(msg: String) extends Token with Product

    A class of error tokens

  2. class Identifier(chars: String) extends Token with Product

    The class of identifier tokens

  3. class Keyword(chars: String) extends Token with Product

    The class of keyword tokens

  4. class NumericLit(chars: String) extends Token with Product

    The class of numeric literal tokens

  5. class StringLit(chars: String) extends Token with Product

    The class of string literal tokens

  6. class Token extends AnyRef

    Objects of this type are produced by a lexical parser or scanner, and consumed by a parser {@see scala

Value Members

  1. object EOF extends Token with Product

    A class for end-of-file tokens

  2. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  3. def errorToken(msg: String): Token

    This token is produced by a scanner {@see Scanner} when scanning failed

  4. def hashCode(): Int

    Returns a hash code value for the object

  5. def toString(): String

    Returns a string representation of the object