Gforth
A free, fast, featureful and portable implementation of the Forth 2012 language.
\ a comment followed by the shortest quine
source type
\ another shorty, hello world looks like that
." hello world"
\ tell me, what else can we do? ask the system itself!
words \ this will yield all defined words
Download / Install
Build from Tarballwget https://www.complang.tuwien.ac.at/forth/gforth/Snapshots/current/gforth.tar.xz
tar xvfJ gforth.tar.xz
cd gforth-*
./install-deps.sh
./configure
make
sudo make install
Git repositorygit clone https://git.savannah.gnu.org/git/gforth/
cd gforth
./install-deps.sh
./autogen.sh
./configure
make
sudo make install
See INSTALL.md for further details
Debian
Depending on your distribution use oldstable
, stable
or unstable
instead oftesting
. Reason: broken libc.
- Obtain the pubkey:
wget -O - https://net2o.de/bernd@net2o.de-yubikey.pgp.asc | apt-key add -
- Add repository: place the following line into
/etc/apt/sources.list.d/gforth.list
:deb [arch=i386,amd64,armhf,armel,arm64,powerpc,mips,mipsel,all] https://net2o.de/debian testing main
- Update apt:
apt-get update
- Install gforth:
apt-get install gforth
Docker docker run -it --rm rundockerforth/gforth-alpine
orpodman run -it --rm rundockerforth/gforth-alpine
Supported systems
Gforth runs under GNU, BSD, and similar systems, MS Windows and MacOS X and should not be hard to port to other systems supported by GCC. Version 0.7.9_20160714 has been tested successfully on the following platforms:
GNU/Linux
Gforth EC(embedded)
Windows
MacOS
Related links
Read about the Language and find communities
Forth package repository
Contact
Mailing List
Ancient, yet highly active news group.