static class
DaedalusSymbol (client-side)
Available since version: 0.2.1
This class represents Daedalus parser symbol. Symbol is just a unit daedalus scripting langauge, e.g: function, class, instance, prototype, variable, constant, etc.
Properties
string
name
Available since version: 0.2.1
Represents name of the symbol.
DaedalusSymbol|null
parent
Available since version: 0.2.1
Represents the parent symbol of current symbol.
DaedalusSymbol|null
next
Available since version: 0.2.1
Represents the next symbol in linked list of symbols.
int
ele
Available since version: 0.2.1
Represents the the number of elements inside a symbol. If symbol isn't array it will return 1, otherwise it will return the size of an array.
int
type
Available since version: 0.2.1
Represents the the type of a symbol. For more information see Daedalus Types
int
flags
Available since version: 0.2.1
Represents the the flags of a symbol. For more information see Daedalus Flags
bool
space
Available since version: 0.2.1
Holds boolean value that indicates whether or not symbol memory was allocated.
Methods
getValue
Available since version: 0.2.1
Note
Only ints, floats and strings are supported.
This method will get the symbol value.
int|float|string getValue(int arrayIndex = 0)
Parameters:
int
arrayIndex: the symbol array index.
Returns int|float|string
:
the value of the symbol supported by the daedalus scripting language.
setValue
Available since version: 0.2.1
Note
Only ints, floats and strings are supported.
This method will set the symbol value.
void setValue(int|float|string value, int arrayIndex = 0)
Parameters:
int|float|string
value: the symbol value.int
arrayIndex: the symbol array index.