StdTokens

scala.util.parsing.combinator.token.StdTokens
trait StdTokens extends Tokens

This component provides the standard Tokens for a simple, Scala-like language.

Attributes

Graph
Supertypes
trait Tokens
class Object
trait Matchable
class Any
Known subtypes
class StdLexical

Members list

Type members

Classlikes

case class Identifier(chars: String) extends Token

The class of identifier tokens

The class of identifier tokens

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
case class Keyword(chars: String) extends Token

The class of keyword tokens

The class of keyword tokens

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
case class NumericLit(chars: String) extends Token

The class of numeric literal tokens

The class of numeric literal tokens

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
case class StringLit(chars: String) extends Token

The class of string literal tokens

The class of string literal tokens

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all

Inherited classlikes

case object EOF extends Token

A class for end-of-file tokens

A class for end-of-file tokens

Attributes

Inherited from:
Tokens
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
case class ErrorToken(msg: String) extends Token

A class of error tokens. Error tokens are used to communicate errors detected during lexical analysis

A class of error tokens. Error tokens are used to communicate errors detected during lexical analysis

Attributes

Inherited from:
Tokens
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
abstract class Token

Objects of this type are produced by a lexical parser or scanner, and consumed by a parser.

Objects of this type are produced by a lexical parser or scanner, and consumed by a parser.

Attributes

See also
Inherited from:
Tokens
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object EOF
class ErrorToken
class Identifier
class Keyword
class NumericLit
class StringLit
Show all

Value members

Inherited methods

def errorToken(msg: String): Token

This token is produced by a scanner Scanner when scanning failed.

This token is produced by a scanner Scanner when scanning failed.

Attributes

Inherited from:
Tokens