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[] tokensLiteral)

constructor using fromTokens

Members

Functions

fromTokens
void fromTokens(Token[] tokensLiteral)

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 in a QData

returnType
DataType returnType;

stores the data type for the literal

Meta