Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
6
Task/Empty-string/Forth/empty-string.fth
Normal file
6
Task/Empty-string/Forth/empty-string.fth
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
\ string words operate on the address and count left on the stack by a string
|
||||
\ ? means the word returns a true/false flag on the stack
|
||||
|
||||
: empty? ( c-addr u -- ? ) nip 0= ;
|
||||
: filled? ( c-addr u -- ? ) empty? 0= ;
|
||||
: ="" ( c-addr u -- ) drop 0 ; \ It's OK to copy syntax from other languages
|
||||
Loading…
Add table
Add a link
Reference in a new issue