Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Empty-string/Quackery/empty-string.quackery
Normal file
19
Task/Empty-string/Quackery/empty-string.quackery
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
Welcome to Quackery.
|
||||
|
||||
Enter "leave" to leave the shell.
|
||||
|
||||
/O> $ "" temp put ( move an empty string to temp )
|
||||
... temp share ( copy the empty string on temp to the stack )
|
||||
... $ '' = ( compare the top of stack to an empty string, and replace it with
|
||||
... 1 (true) if it is an empty string and 0 (false) if it is not. )
|
||||
... temp take ( move the empty string on temp to the stack )
|
||||
... $ '' != ( compare the top of stack to an empty string, and replace it with
|
||||
... 1 (true) if it is not an empty string and 0 (false) if it is. )
|
||||
...
|
||||
|
||||
Stack: 1 0
|
||||
|
||||
/O> leave
|
||||
...
|
||||
|
||||
Aloha.
|
||||
Loading…
Add table
Add a link
Reference in a new issue