Edit this page

Forth code examples

These examples have been tested in gForth

drawlines.fs line drawing routines

8 line Mandelbrot. Eight-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 ·