RosettaCodeData/Task/Stack/Oforth/stack-2.oforth
2016-12-05 23:44:36 +01:00

11 lines
197 B
Text

: 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 ] ;