LiteralNode

stores literal data, i.e data that was availabe at runtime. Can store strings, double, integer, but arrays (even ones without variables, only literals) are stored in ArrayNode

Constructors

this
this(string data, DataType dataType)

constructor

this
this(Token tokenLiteral)

constructor using fromTokens

Members

Functions

fromToken
void fromToken(Token token)

reads the literal from a string

Variables

lineno
uinteger lineno;

the line number (starts from 1) from which this node begins, or ends

literal
string literal;

stores the literal

returnType
DataType returnType;

stores the data type for the literal

Meta