Skip to content
Install

Install

There is nothing to install. The repository carries the compiler as a single file, bootstrap/qdx, and the standard library as source in std/. You need a checkout of the repository and a Linux machine with an x86-64 processor.

Check that it runs

From the root of the checkout, ask the compiler to build itself and run its tests.

bootstrap/qdx run std/*.qdx build.qdx

It rebuilds the compiler three times, checks that the last two builds are identical, runs every test, and ends with a line that counts the tests that passed and failed.

Compile a program

Write a one-line program, then give the compiler the standard library, your file, and a name for the result.

echo 'fn main() -> int { print("hello\n") }' > hello.qdx
bootstrap/qdx std/*.qdx hello.qdx -o hello
./hello

To compile and run in one step, without leaving a file behind, use run.

bootstrap/qdx run std/*.qdx hello.qdx

Work from the root of the checkout, so that std/*.qdx finds the library.

Next: the guide.