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

Members list

Concise view

Type members

Classlikes

case class Identifier(chars: String) extends Token

The class of identifier tokens

The class of identifier tokens

Attributes

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

The class of keyword tokens

The class of keyword tokens

Attributes

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

The class of numeric literal tokens

The class of numeric literal tokens

Attributes

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

The class of string literal tokens

The class of string literal tokens

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any

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
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
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
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object EOF.type
class Keyword
class StringLit

Value members

Inherited methods

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