Multiple statements, generalized expressions.

This commit is contained in:
Marvin Blum
2015-09-21 16:44:14 +02:00
parent 6cd9caef99
commit af7a0a9f4c
7 changed files with 67 additions and 36 deletions

View File

@@ -1,17 +1,24 @@
var _a = 1;
var _b = 2;
func somefunc(_x, _y, _z) {
func myFunc(_x, _y) {
if _x < _y {
hint(_z);
myFunc(_y, _x);
}
}
if _a < _b {
somefunc(1, "two", 3);
}
else{
_a = 3;
if _b < _a {
myFunc(_a, _b+9-(2/2));
}
}
hint("this is a hint");
if (_a+_b)/2 > 10 {
hint("a");
} else {
myFunc("multiple", "statements");
hint("b");
}
myFunc(_a, _b);
myFunc(_a, _b);