TokenType

interface TokenType(source)

These are the different types of tokens, that the lexer creates

Since

0.1.0

Properties

Link copied to clipboard
abstract val hasValue: Boolean

Check if the token has a value

Link copied to clipboard
abstract val name: String

Get the name of the token

Functions

Link copied to clipboard
abstract fun length(value: String?): Int

Get the length of the token