Token

alpaca.internal.lexer.Token
sealed trait Token[+Name <: ValidName, +Ctx <: LexerCtx, +Value]

Base trait for all token types.

A token represents a lexical unit matched by the lexer. It contains information about the token's name, pattern, and how to manipulate the lexer context when matched.

Type parameters

Ctx

the global context type

Name

the token name type

Value

the value type extracted from the matched text

Attributes

Experimental
true
Source
Token.scala
Graph
Supertypes
class Object
trait Matchable
class Any
In this article