parent
02183ac8e3
commit
6000d5d8b5
@ -1,7 +1,20 @@
|
||||
def Main : {
|
||||
printf["hello world"];
|
||||
printf["wtf2"];
|
||||
printf["wtf1"];
|
||||
// another function
|
||||
def AnotherFunction : {
|
||||
printf["Hello from another function!"];
|
||||
};
|
||||
|
||||
|
||||
// every program needs a main :)
|
||||
def Main : {
|
||||
// define variables
|
||||
a = 10;
|
||||
b = 20;
|
||||
|
||||
// print statements
|
||||
printf["a + b: "];
|
||||
printf[{ int } a + b];
|
||||
|
||||
// calling functions
|
||||
call AnotherFunction;
|
||||
};
|
||||
call Main;
|
||||
|
Loading…
Reference in new issue