added to example program

master
xerox 5 years ago
parent 02183ac8e3
commit 6000d5d8b5

@ -1,7 +1,20 @@
def Main : { // another function
printf["hello world"]; def AnotherFunction : {
printf["wtf2"]; printf["Hello from another function!"];
printf["wtf1"];
}; };
// 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; call Main;

Loading…
Cancel
Save