NumberLexer

Tokenizing class with a single public main method, the purpose of this class is to receive, modify and return data from the Lexer class; it is the middle in the tokenization process

The values returned by this class are designed to be passed to the ComplexLexer class constructor

Since

Version 1.0

Parameters

tokens

See also

Constructors

Link copied to clipboard
constructor(tokens: ComplexList)

Functions

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

Only public method of the class, evaluates a ComplexList to convert the Tokens.IMAGINARY_UNIT and Tokens.NUMBER values into Tokens.REAL_NUMBER and Tokens.IMAGINARY_NUMBER values.

Link copied to clipboard
open fun toString(): String