clstrfsck / jombloforth

Minimal FORTH interpreter for 64-bit Linux systems. Based on jonesforth.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jombloforth

Minimal FORTH interpreter for 64-bit Linux systems. Based on jonesforth tutorial.

Compile

You needs make, nasm, and ld to build the executable. Runs the following to build them

make jombloforth

Running

For a full forth system, runs:

make run

The interpreter will starts accepting input from stdin.

Quick Forth Tutorial

After the interpreter starts, you can execute any forth command defined in the system. For example, adding two number and display it.

42 24 + . CR

Will print 66 followed by newline.

Defining new word and runs it:

: double DUP + ;
100 double . CR

Will print 200.

To exit the program, press CTRL+D

License

UNLICENSE. See UNLICENSE.txt

About

Minimal FORTH interpreter for 64-bit Linux systems. Based on jonesforth.

License:The Unlicense


Languages

Language:Assembly 85.6%Language:Forth 13.4%Language:Makefile 0.6%Language:GDB 0.3%