llvm-6502/projects/Stacker/samples/fibonacci.st
Chris Lattner 9d014e70bb Initial checkin of stacker samples
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10181 91177308-0d34-0410-b5e6-96231b3b80d8
2003-11-23 17:55:19 +00:00

7 lines
144 B
Smalltalk

#
# Fibonacci Algorithm in Stacker.
#
: print >d CR;
: fibonacci RROT DUP2 + print 3 PICK -- ;
: MAIN 0 print 1 print 44 WHILE fibonacci END ;