Retro is a modern, pragmatic Forth drawing influences from many sources. It's clean, elegant, small, easy to grasp, and adaptable to many tasks.
Find a file
crc 6d14ef7ce6 notes on the interpreter design
FossilOrigin-Name: b3de33b2ab32fa194274c33701589ece2f92160bda46123472af6f44f43c5aeb
2017-10-22 17:36:22 +00:00
bin improve "listener" 2017-10-17 00:52:07 +00:00
doc notes on the interpreter design 2017-10-22 17:36:22 +00:00
example String to Number example now goes from number to string as well 2017-10-22 17:04:57 +00:00
interfaces add s:const to stdlib 2017-10-20 13:30:31 +00:00
literate add s:const to stdlib 2017-10-20 13:30:31 +00:00
tools more move from ```` to ~~~ fencing 2017-10-20 13:02:14 +00:00
LICENSE.md fix 99bottles example 2017-10-20 01:57:27 +00:00
Makefile source -> interfaces; remove tanu 2017-10-20 01:16:46 +00:00
ngaImage add s:const to stdlib 2017-10-20 13:30:31 +00:00
README.md typo fix 2017-10-20 01:58:25 +00:00
test-core.forth Initial checkin (from 58fa921 in the old git repo) 2017-10-16 16:09:39 +00:00
Words.txt add s:const to stdlib 2017-10-20 13:30:31 +00:00

RETRO

RETRO is a modern, pragmatic Forth drawing influences from many sources.

Features:

  • Open Source (ISC License)
  • Portable (runs on a MISC-style virtual machine)
  • Small source & binaries
  • Builds into a single, self contained binary for easy deployment
  • Sources in literate format, using a Markdown variant

The language is a Forth dialect drawing influence from some of Chuck Moore's newer ideas. It's clean, elegant, tiny, and easy to grasp and adapt to various uses.

Quick Start

For FreeBSD, macOS, Linux:

make

Binaries will be found in the bin directory. The ones of interest are:

rre

Short for run retro and exit, this is the primary interface for RETRO. The rre interface is used to run the examples and Atua Gopher and HTTP servers that power forthworks.com.

rre embeds the RETRO image into the binary, making it trivial to copy and deploy.

repl

This is a basic read-evaluate-print-loop for interactive use. It's intended for quick tests and as an easy starting point for new interfaces. The repl interface requires the RETRO image (ngaImage) in the current working directory to operate.

listener

Wrapping a shell script, some RETRO code, and using the rre interface, this is a slightly nicer alternative to the basic repl for interactive use.