AstTree

class AstTree(tks: ComplexList, numbers: List<ComplexNumber>)(source)

This class is made to modify, store, return and Parse values provided by the ComplexLexer.complexLexer method, it has an only main and public method that will return a parsed token list to a Tree of AstMember instances

The values of this class are designed to be passed to the Evaluator class constructor

Since

Version 1.0

Parameters

tks

A list of Pair tokens provided by ComplexLexer.complexLexer

numbers

A list of ComplexNumber instances provided by ComplexLexer.complexLexer

See also

Constructors

Link copied to clipboard
constructor(tks: ComplexList, numbers: List<ComplexNumber>)

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, starts a series of method calls that will end in an AstMember Tree.

Link copied to clipboard
open fun toString(): String