4q, pronounced fork, is a compiler for a
Forth-like
programming language.
4q compiles Forth words into
QBE
intermediate language.
4q acts as both a compiler and compiler driver, enabling binaries to
be produced with a single command-line invocation.
4q is written in
D
and can use any D compiler to build. The configure script will
autodetect the first D compiler it finds in order:
LDC,
GDC,
and
DMD.
4q should be able to be built on any supported platform that can run
a D compiler.
$ ./configure
$ make
$ sudo make install- macOS on arm64 and x86_64
- Linux (Debian and Ubuntu, others welcome) on aarch64 and x86_64
- FreeBSD on amd64
ISC license. See LICENSE for more details.