RosettaCodeData/Task/Stack/Oforth/stack-2.fth
2023-07-01 13:44:08 -04:00

11 lines
197 B
Forth

: testStack
| s |
Stack new ->s
s push(10)
s push(11)
s push(12)
s top println
s pop println
s pop println
s pop println
s isEmpty ifTrue: [ "Stack is empty" println ] ;