Value

data class Value(var value: String, var typeName: String? = null, var line: Int) : AstObject, Expression

Used to describe any value within the program

Example:

3;

Constructors

Link copied to clipboard
constructor(value: String, typeName: String? = null, line: Int)

Properties

Link copied to clipboard
open override var line: Int

is the line at which the statement/code component begins in the program text file

Link copied to clipboard
open override var parent: IsParent?

is the parent of the node in the Syntax Tree

Link copied to clipboard
open override val scope: SymbolTable?

is the scope to which the node belongs

Link copied to clipboard
open override var typeName: String?

used to specify the expression's type

Link copied to clipboard

represents the value in the program