A portable and concise Forth implementation in modern C++
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Clyne 27742595b5
add 2/ and 2*
2 years ago
.gitignore build as library; add small target 2 years ago
LICENSE initial commit 2 years ago
Makefile build as library; add small target 2 years ago
README.md add README 2 years ago
alee.cpp implement if and then 2 years ago
alee.hpp build as library; add small target 2 years ago
core.fth add 2/ and 2* 2 years ago
corewords.cpp add else 2 years ago
corewords.hpp add else 2 years ago
dictionary.cpp implement if and then 2 years ago
dictionary.hpp add more core.fth words 2 years ago
executor.cpp build as library; add small target 2 years ago
executor.hpp build as library; add small target 2 years ago
memdict.hpp initial commit 2 years ago
parser.cpp implement if and then 2 years ago
parser.hpp build as library; add small target 2 years ago
state.cpp build as library; add small target 2 years ago
state.hpp build as library; add small target 2 years ago
types.cpp initial commit 2 years ago
types.hpp build as library; add small target 2 years ago

README.md

Alee Forth

Still very much in development! Not suitable for real applications yet.

Alee is a portable and concise Forth implementation in modern C++. Its primary aims are for reduced program size and execution efficiency. Portability includes bare-metal platforms, with intentions to support microcontrollers with kilobytes of memory.

Built-in words

drop dup swap pick rot >r r>
here allot const imm @ ! : ; (
+ - * / %
= <
& | ^ << >>
sys

The sys word links to a C++ function for user-defined functionality.

Building

Alee requires make and a C++17-compatible compiler.

To compile, simply run the make command. The resulting binary, alee, runs a read-eval-print loop.