GenericTokenType

class GenericTokenType(val name: String) : TokenType

A generic class for token types. tokenType returns tokens of this type. Big lexers should be using an enum which implements TokenType instead of tokenType and GenericTokenType.

Constructors

Link copied to clipboard
constructor(name: String)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

A name for this token type, useful for debugging.