Tokens

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

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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Lexical
class StdLexical
trait StdTokens

Members list

Type members

Classlikes

case object EOF extends Token

A class for end-of-file tokens

A class for end-of-file tokens

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
Self type
EOF.type
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

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
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

Concrete 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