StdTokens

trait StdTokens extends Tokens

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

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

trait Tokens
class Object
trait Matchable
class Any

Type members

Classlikes

case class Identifier(chars: String) extends Token

The class of identifier tokens

The class of identifier tokens

case class Keyword(chars: String) extends Token

The class of keyword tokens

The class of keyword tokens

case class NumericLit(chars: String) extends Token

The class of numeric literal tokens

The class of numeric literal tokens

case class StringLit(chars: String) extends Token

The class of string literal tokens

The class of string literal tokens

Inherited classlikes

case object EOF

A class for end-of-file tokens

A class for end-of-file tokens

Inherited from
Tokens
case class ErrorToken(msg: String)

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

Inherited from
Tokens
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.

See also
Inherited from
Tokens

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.

Inherited from
Tokens