🌱 A simple programming language. 355 Commits
2025-02-10 10:56:32 +01:00
2025-02-09 23:52:07 +01:00
2025-02-09 23:52:07 +01:00
2025-02-09 23:52:07 +01:00
2025-02-09 23:52:07 +01:00
2023-10-17 11:06:14 +02:00
2025-02-08 00:26:50 +01:00
2025-02-08 00:26:50 +01:00
2023-10-20 17:07:44 +02:00

q

A programming language that compiles down to machine code.

Features

  • Fast compilation
  • High performance
  • Small executables

Installation

git clone https://git.akyoto.dev/cli/q
cd q
go build

This will place the compiler inside the repository. Either use ./q for the following examples or get access to the shorter q in any directory via symlink:

ln -s $PWD/q ~/.local/bin/q

This assumes that your shell loads ~/.local/bin.

Usage

q [command] [options]

The build command creates an executable:

q build examples/hello

The run command does everything build does but also executes it:

q run examples/hello

You don't have to use physical directories, it's perfectly valid to use a list of files:

q build hello.q world.q

To show verbose compiler output use -v or --verbose:

q build examples/hello -v

For more information see q help.

Platforms

You can cross-compile executables for Linux, Mac and Windows.

q build examples/hello --os linux
q build examples/hello --os mac
q build examples/hello --os windows

Status

This project is under heavy development. Feel free to get in touch if you are interested in helping out.

License

Please see the license documentation.

© 2023 Eduard Urbach