ComplexLexer

class ComplexLexer(complexList: ComplexList)(source)

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

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

Since

Version 1.0

Parameters

complexList

List of Pairs containing Tokens and a String value

See also

Constructors

Link copied to clipboard
constructor(complexList: ComplexList)

Functions

Link copied to clipboard

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

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