A Minimalist, Self-Hosted Stack Machine Environment
r3forth is a programming language and environment inspired by ColorForth and the Forth philosophy. It’s designed to be a complete, self-contained system that balances extreme minimalism with practical creative power.
R3 can load and call procedures from any dynamic library (.DLL in windows) or (.SO in linux) the distro use SDL2 library for make games.
You don't need to clone the repository; you can download the latest version here. latest release(.zip)
r3 requires SDL2 development libraries.
sudo apt install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
2a. Run the precompiled binary:
./r3lin
or
2b. Build and Run: If you want to build the VM from source (recommended for compatibility):
# Clone the VM core
git clone https://github.com/phreda4/r3evm
cd r3evm && make
# Move the binary back to the main folder
mv r3lin ../ && cd ..
./r3lin
Use the fhs.nix from distro
nix-shell fhs.nix
./r3lin
Extract and run r3.exe. No installation required.
r3 is flexible. You can use the built-in environment or stay in your favorite terminal/editor.
By default, running the binary without arguments loads the internal system.
./r3lin (Linux) or r3.exe (Windows).main.r3. This script acts as the entry point, scanning the /r3 folder to build the internal menu and tools.If you prefer using Emacs, Vim or Notepad++, you can use r3 as a traditional compiler/interpreter.
.r3 extension (e.g., hello.r3).| linux
./r3lin hello.r3
| windows
r3 hello.r3
Red box in the corner program
^r3/lib/sdl2gfx.r3
:main
0 cls
$ff0000 color
10 10 100 100 frect
sdlredraw
sdlkey
>esc< =? ( exit )
drop ;
:
"red box in the corner" 800 600 SDLinit
'main SDLShow
SDLquit
;
main.r3: The core startup script./r3: Contains all the code, the system libraries, the IDE code, and core tools, etc.. all in .r3 code/asm: Compiler folder, not used if you not invoke it./dll: In WIN you not install anything, the dll is here./doc: Documentation./media: graphics, sounds, models, font..etc/mem: use like static memory (for keep info when exit r3)main.xml: syntax coloring for notepad++r3 is not just a language; it's a creative suite. Here is what you can find:
In the /doc folder.
Forth
94.0%
Assembly
4.5%
GLSL
1.1%
A Minimalist, Self-Hosted Stack Machine Environment
r3forth is a programming language and environment inspired by ColorForth and the Forth philosophy. It’s designed to be a complete, self-contained system that balances extreme minimalism with practical creative power.
R3 can load and call procedures from any dynamic library (.DLL in windows) or (.SO in linux) the distro use SDL2 library for make games.
You don't need to clone the repository; you can download the latest version here. latest release(.zip)
r3 requires SDL2 development libraries.
sudo apt install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-mixer-dev
2a. Run the precompiled binary:
./r3lin
or
2b. Build and Run: If you want to build the VM from source (recommended for compatibility):
# Clone the VM core
git clone https://github.com/phreda4/r3evm
cd r3evm && make
# Move the binary back to the main folder
mv r3lin ../ && cd ..
./r3lin
Use the fhs.nix from distro
nix-shell fhs.nix
./r3lin
Extract and run r3.exe. No installation required.
r3 is flexible. You can use the built-in environment or stay in your favorite terminal/editor.
By default, running the binary without arguments loads the internal system.
./r3lin (Linux) or r3.exe (Windows).main.r3. This script acts as the entry point, scanning the /r3 folder to build the internal menu and tools.If you prefer using Emacs, Vim or Notepad++, you can use r3 as a traditional compiler/interpreter.
.r3 extension (e.g., hello.r3).| linux
./r3lin hello.r3
| windows
r3 hello.r3
Red box in the corner program
^r3/lib/sdl2gfx.r3
:main
0 cls
$ff0000 color
10 10 100 100 frect
sdlredraw
sdlkey
>esc< =? ( exit )
drop ;
:
"red box in the corner" 800 600 SDLinit
'main SDLShow
SDLquit
;
main.r3: The core startup script./r3: Contains all the code, the system libraries, the IDE code, and core tools, etc.. all in .r3 code/asm: Compiler folder, not used if you not invoke it./dll: In WIN you not install anything, the dll is here./doc: Documentation./media: graphics, sounds, models, font..etc/mem: use like static memory (for keep info when exit r3)main.xml: syntax coloring for notepad++r3 is not just a language; it's a creative suite. Here is what you can find:
In the /doc folder.
Forth
94.0%
Assembly
4.5%
GLSL
1.1%