author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 24 Sep 2018 20:52:34 +0100 | |
branch | jv |
changeset 1579 | e6c2667b4692 |
parent 1474 | 5da7d89d0cae |
child 1498 | 71eac66f2d96 |
permissions | -rwxr-xr-x |
1349 | 1 |
#!stx --script |
2 |
"/ |
|
1392 | 3 |
"/ on any system: |
4 |
"/ "stx --script script1.stx |
|
5 |
"/ or: |
|
6 |
"/ "stx --f script.stx" |
|
7 |
"/ or: |
|
8 |
"/ "stx script1.stx" |
|
9 |
"/ |
|
10 |
"/ on Unix: |
|
11 |
"/ make this file executable, |
|
12 |
"/ ensure that stx is in your path, |
|
13 |
"/ then type ./script1.stx |
|
14 |
"/ |
|
1474 | 15 |
"/ will just print some numbers |
1349 | 16 |
"/ |
17 |
1 to:10 do:[:i | |
|
18 |
('the factorial of %1 is %2' |
|
19 |
bindWith:i with:i factorial) printCR |
|
20 |
]. |