[Push] Push2 Fibonacci Code

Rud Merriam rudm at mindspring.com
Fri Oct 31 17:16:19 EST 2003


Lee,

My Push2 interpreter is running with the operations necessary to execute the Fibonacci example. The file input I used is 

( 5 
  CODE.QUOTE
( CODE.QUOTE ( INTEGER.POP 1 )
            CODE.QUOTE
            ( CODE.DUP INTEGER.DUP 1 INTEGER.- CODE.DO INTEGER.* )
            INTEGER.DUP
            2
            INTEGER.<
            CODE.IF )
CODE.DO)

In your interpreter are you reading in two separate files,  one for the program and the other for the data? 

In your configuration file you are loading FLOAT.%. Does a floating modulus operator have meaning?

Rud
K5RUD







More information about the Push mailing list