Lugforth

Lugforth

A small Forth interpreter: a C kernel plus Forth boot code, in the spirit of (u)eForth.

Download

The manual (PDF). Builds on the latest release: Linux (tarball, AppImage), Windows (zip, built with MSVC or MinGW, with the SDL2 DLLs, examples and docs), macOS (zip), Android (APK), Raspberry Pi and PC UEFI images. The zips carry examples/ and docs/.

Try it

The web version, with Breakout, drums, a roguelike, a 3D maze with the raycaster (steered with the mouse) and a pinball (touch buttons on phones). Any game file also runs with terminal.html?run=sdl2_roguelike.fs. Drawing from HTML buttons: Forth word called by a button, vector lettering, outline lettering, string art (sources).

Platforms

Linux, macOS, Windows, web, Android, Raspberry Pi, PC (UEFI), ESP32, Raspberry Pi Pico, pico-ice, Game Boy Advance. See ports.

Added to uEforth

Quick start

git clone https://github.com/luginf/lugforth.git
cd lugforth
sudo apt install ninja-build
./configure.py
ninja
out/posix/lugforth
--> : square dup * ;
--> 12 square .
144  ok