-
-
Notifications
You must be signed in to change notification settings - Fork 1
Start Writing Own Program
Alexander (Arkasha) edited this page Nov 10, 2019
·
2 revisions
Welcome to tutorial how write own programs on WoL Virtual.
All program divise on blocks:
-
_loads- need for load frameworks -
stack- need for initilization stack -
main- need for writing script and also keywordendwhich marks the end of the program (after this keyword you can write anything). These blocks can go in any order.
Almost any program start with _loads block. Syntax of this block:
_loads {
<name of framework>;
<name of other framework>
}
If we load only one framework (fw) we don`t write semicolon after name of fw. For work with console and base functions we load wolSystem framework. In the next we initilizate stack.
stack {
....
}
In stack go blocks for classes, functions and variables (these blocks can go in any order):
classes {
...
};
func {
....
};
var {
....
};
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