SymbolTableNode

open class SymbolTableNode(parent: SymbolTable, id: Int) : SymbolTable

Symbol table node

Represents a single scope or node in the tree of symbol tables structure.

Constructors

SymbolTableNode
Link copied to clipboard
fun SymbolTableNode(parent: SymbolTable, id: Int)
Create empty Symbol table node

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
get
Link copied to clipboard
open operator override fun get(identifier: String): SymbolTableData
GetReturns information on the identifier given if present.
getFunctions
Link copied to clipboard
fun getFunctions(): Map<String, SymbolTableData>
Get functionsGets functions in symbol table
hashCode
Link copied to clipboard
open fun hashCode(): Int
set
Link copied to clipboard
operator fun set(identifier: String, data: SymbolTableData)
SetSets the information of the given identifier to data.
toString
Link copied to clipboard
open fun toString(): String

Properties

id
Link copied to clipboard
open override val id: Int
parent
Link copied to clipboard
val parent: SymbolTable