|
4 | 4 | #include <vars.l1h> |
5 | 5 | #include <loops.l1h> |
6 | 6 | (main func) |
7 | | - (set int64 1 zero 0) |
8 | | - (set int64 1 one 1) |
9 | | - (set int64 1 loop 0) |
10 | | - (set int64 1 loop_foo 0) |
11 | | - (set int64 1 maxloop 10) |
12 | | - (set int64 1 f 0) |
13 | | - (set int64 6 array 24, 12, 7, 9, 32, 7) |
14 | | - (set const-int64 1 Parray 0) |
15 | | - (set int64 1 ind 0) |
16 | | - (set int64 1 realind 0) |
17 | | - (set int64 1 a 0) |
18 | | - (set int64 1 asize 0) |
19 | | - // set string length automatic, by setting "s" |
20 | | - (set string s hellostr "Hello world!") |
21 | | - (set string s foostr "foobar!") |
22 | | - (array Parray pointer) |
23 | | - // print string |
24 | | - // for |
25 | | - (zero loop =) |
26 | | - (loop maxloop < :dofor !) |
| 7 | + (set int64 1 zero 0) |
| 8 | + (set int64 1 one 1) |
| 9 | + (set int64 1 loop 0) |
| 10 | + (set int64 1 loop_foo 0) |
| 11 | + (set int64 1 maxloop 10) |
| 12 | + (set int64 1 f 0) |
| 13 | + (set int64 6 array 24, 12, 7, 9, 32, 7) |
| 14 | + (set const-int64 1 Parray 0) |
| 15 | + (set int64 1 ind 0) |
| 16 | + (set int64 1 realind 0) |
| 17 | + (set int64 1 a 0) |
| 18 | + (set int64 1 asize 0) |
| 19 | + // set string length automatic, by setting "s" |
| 20 | + (set string s hellostr "Hello world!") |
| 21 | + (set string s foostr "foobar!") |
| 22 | + (array Parray pointer) |
| 23 | + // print string |
| 24 | + // for |
| 25 | + (zero loop =) |
| 26 | + (loop maxloop < :dofor !) |
27 | 27 | (hellostr :print_lns !) |
28 | | - (zero loop_foo =) |
| 28 | + (zero loop_foo =) |
29 | 29 | (loop_foo maxloop < :dofor !) |
30 | 30 | (foostr :print_lns !) |
31 | | - ((loop_foo one +) loop_foo =) |
32 | | - (next) |
33 | | - ((loop one +) loop =) |
34 | | - (next) |
| 31 | + ((loop_foo one +) loop_foo =) |
| 32 | + (next) |
| 33 | + ((loop one +) loop =) |
| 34 | + (next) |
35 | 35 |
|
36 | 36 | // array print |
37 | | - (Parray realind asize :for-each-in !) |
38 | | - (Parray [ realind ] a =) |
| 37 | + (Parray realind asize :for-each-in !) |
| 38 | + (Parray [ realind ] a =) |
39 | 39 | (a :print_lni !) |
40 | 40 | (ind realind int64_size :next-in !) |
41 | 41 |
|
42 | | - (:print_n !) |
43 | | - (zero ind =) |
44 | | - (zero realind =) |
45 | | - (Parray realind asize f :thr-for-each-in !) |
46 | | - (Parray [ realind ] a =) |
| 42 | + (:print_n !) |
| 43 | + (zero ind =) |
| 44 | + (zero realind =) |
| 45 | + (Parray realind asize f :thr-for-each-in !) |
| 46 | + (Parray [ realind ] a =) |
47 | 47 | (a :print_lni !) |
48 | 48 | (ind realind int64_size :next-in !) |
49 | 49 |
|
|
0 commit comments