Generic

open class Generic : Token

A generic Token implementation with no supplementary metadata and value-based equality.

Generic tokens are considered equal if their value properties are equal, regardless of their positional metadata. This class is used by most predefined Lexemes in BasicLexemes.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

A discardableisDiscardable.

Properties

Link copied to clipboard
var column: Int

The column number where this token begins in the source input.

Link copied to clipboard

Indicates whether this token should be discarded during lexing (when discard mode is enabled).

Link copied to clipboard
lateinit var lexeme: Lexeme<*>

The Lexeme that produced this token.

Link copied to clipboard
var line: Int

The line number where this token begins in the source input.

Link copied to clipboard
lateinit var value: CharSequence

The character sequence matched from the input that this token represents.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String