-
-
Notifications
You must be signed in to change notification settings - Fork 1
Standart Framework
Standart - is framework where:
- Add base expressions
- Add base classes
void - is the first class and parent of any classes in WoL Virtual - STRUCT - PUBLIC
Parents ierarchy: void
-
null -
<null:void>- just nothing -set : &@a, <null:void> ;
bool - is the structure is needed to represent true, false - STRUCT - PUBLIC
Parents ierarchy: void -> bool
-
true -
<1:int>- true (logic XD) -ifelse : <true:bool>, %a; -
false -
<0:int>- false (logic :D) -ifelse : <false:bool>, %a;
byte - is the structure is needed to represent integers from 0 until 256 - STRUCT - PUBLIC
Parents ierarchy: void -> byte
short - is the structure is needed to represent integers from -32768 until 32767 - STRUCT - PUBLIC
Parents ierarchy: void -> byte -> short
int - is the structure is needed to represent integers from -2147483648 until 2147483647 - STRUCT - PUBLIC
Parents ierarchy: void -> byte -> short -> int
float - is the structure is needed to represent real numbers from -3.410^38 until 3.410^38 - STRUCT - PUBLIC
Parents ierarchy: void -> byte -> short -> int -> float
long - is the structure is needed to represent integers from -2147483648 until 2147483647 - STRUCT - PUBLIC
Parents ierarchy: void -> byte -> short -> int -> long
double - is the structure is needed to represent real numbers from ±5.010^-324 until ±1.710^308 - STRUCT - PUBLIC
Parents ierarchy: void -> byte -> short -> int -> float -> double
char - is the structure is needed to represent - STRUCT - PUBLIC Parents ierarchy: void -> char
string - is the class to represent strings (lists of characters) - DEFAULT - PUBLIC Parents ierarchy: void -> string
Block - is the class is needed to represent block of expressions - DEFAULT - PUBLIC Parents ierarchy: void -> Block
Func - is the class is needed to represent functions - DEFAULT - PUBLIC Parents ierarchy: void -> Func
Array - is the class is needed to represent arrays - DEFAULT - PUBLIC Parents ierarchy: void -> Array
-
PlusExpression -
plus- add two numbers -print : (plus : <1:byte>, <2:byte>); -
LoadsExpression -
_loads- load framework -_loads : <wolSystem:string> ; -
IfExpression -
ifelse- linearly finds the correct condition and if the condition is true, then the block run fulfills, otherwise the last block fulfills (if blocks > 1) -ifelse : @cond, %if_block, %else_block ; -
LessSignExpression -
ls- if first value smaller then second => return true, else => return false -while a (ls : @i, <5:int>); -
MoreSignExpression -
ms- if first value bigger then second => return true, else => return false -while a (ms : @i, <5:int>); -
InversionExpression -
not- if value = true return false else return true -ifelse : (not : <true:bool>), %running_block ; -
EqualsExpression -
equals- if first value equals second value return true else return false -ifelse : (equals : @a, @b), %a, %b; -
RunExpression -
run- run block -run : %any_block ; -
LengthExpression -
length- eval length of string or array -while a (ls : @i, (length : @str)); -
AndExpression -
and -
OrExpression -
or -
MinusExpression -
minus -
MultiplyExpression -
multiply -
DivExpression -
div -
ModExpression -
mod -
SetExpression -
set- set value in second argument to value by link in first argument -set : &@a, <0:int> ; -
GetElementExpression -
getByIndex- get object (char) by getted index of string or array -print : <First element of array is :string>, (getByIndex : @arr, <0:int>); -
SetElementExpression -
setElem- set object to getted position of array -setElem : @arr, <Tom:string>, <1:int>;- added in 0.8.2 version -
NewArrayExpression -
newArray- return empty array with getted length -push-local arr (newArray : <3:int> );- added in 0.8.2 version -
ParseIntExpression -
parseInt- get integer from string -print : (plus : <100:int>, (parseInt : (input))); -
ParseDoubleExpression -
parseDouble- get double from string -print : (plus : <35.2465:double>, (parseDouble : (input))); -
TypeofExpression -
typeof- get type by name -typeof : (input);
Some text translate with help of Google.Translate
If you want to more quality info on all languages -> go to official page of WoL VM