Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
5
Task/Loops-For/Forth/loops-for-1.fth
Normal file
5
Task/Loops-For/Forth/loops-for-1.fth
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
: triangle ( n -- )
|
||||
1+ 1 do
|
||||
cr i 0 do [char] * emit loop
|
||||
loop ;
|
||||
5 triangle
|
||||
5
Task/Loops-For/Forth/loops-for-2.fth
Normal file
5
Task/Loops-For/Forth/loops-for-2.fth
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
: limit_example
|
||||
15 1 do r> r@ dup rot >r drop \ Bring limit on stack
|
||||
. \ And print it
|
||||
loop ;
|
||||
\ Gforth and JSForth all work, SP-Forth brakes (different 'for' implementation?)
|
||||
Loading…
Add table
Add a link
Reference in a new issue