Symbol

class Symbol

A symbol-table entry.

Constructors

Link copied to clipboard
constructor()
constructor(declType: Int, name: String?)

Properties

Link copied to clipboard

The scope in which this symbol is entered.

Link copied to clipboard

Symbol declaration type: one of Token.FUNCTION, Token.LP (for parameters), Token.VAR, Token.LET or Token.CONST.

Link copied to clipboard
Link copied to clipboard
var index: Int

The symbol's index in its scope.

Link copied to clipboard
var name: String?

Symbol name.

Link copied to clipboard
var node: Node?

The node associated with this identifier.

Functions

Link copied to clipboard
open override fun toString(): String