Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
2
Task/Repeat/Forth/repeat-1.fth
Normal file
2
Task/Repeat/Forth/repeat-1.fth
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
: times ( xt n -- )
|
||||
0 ?do dup execute loop drop ;
|
||||
2
Task/Repeat/Forth/repeat-2.fth
Normal file
2
Task/Repeat/Forth/repeat-2.fth
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
: times { xt n -- }
|
||||
n 0 ?do xt execute loop ;
|
||||
2
Task/Repeat/Forth/repeat-3.fth
Normal file
2
Task/Repeat/Forth/repeat-3.fth
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
: times[ ]] 0 ?do [[ ; immediate compile-only
|
||||
: ]times postpone loop ; immediate compile-only
|
||||
4
Task/Repeat/Forth/repeat-4.fth
Normal file
4
Task/Repeat/Forth/repeat-4.fth
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[: cr ." Hello" ;] 3 times
|
||||
|
||||
: 3-byes ( -- ) 3 times[ cr ." Bye" ]times ;
|
||||
3-byes
|
||||
Loading…
Add table
Add a link
Reference in a new issue