| 1 |
function main() |
| 2 |
my_int := 12; |
| 3 |
my_bool := false; |
| 4 |
my_float := 0; |
| 5 |
if (my_int > 23, my_float := 13, my_bool := true) |
| 6 |
|
| 7 |
function main_alt() |
| 8 |
my_int := 44; |
| 9 |
my_bool := false; |
| 10 |
my_float := 0; |
| 11 |
if (my_int > 23, my_float := 13, my_bool := true) |
| 12 |
|
| 13 |
function main_alt_while() |
| 14 |
my_int := 0; |
| 15 |
my_string := 'foo'; |
| 16 |
while(my_int := my_int + 1; my_int <= 12, |
| 17 |
my_string := my_string + ' ' + string(my_int)) |
| 18 |
|
| 19 |
{ just a test of for() loop } |
| 20 |
function main_alt_for() |
| 21 |
my_string := 'foo'; |
| 22 |
for(my_int, 4, 14, my_string := 'x' + my_string + 'x') |