Edit this page

Forth code examples

These examples have been tested in gforth

drawlines.fs line drawing routines

8 line mandelbrot 8 line forth program that generates a PPM image of the Mandelbrot Set.

4 line mandelbrot shortest mandelbrot program ever.

sqrt.fs calculate the square root (integers)

asciibox.fs print a box made of asterisks

bf.fs bf interpreter

cons.fs simple cons cells/linked lists

http://qualdan.com/forth/jedi-bob-1.tar.bz2 using xlib with gforth's FFI.

See Also

forth

Edit this page · home ·