🌱 A simple programming language. 393 Commits
2025-02-17 11:17:36 +01:00
2025-02-17 17:49:42 +01:00
2025-02-17 17:49:42 +01:00
2025-02-17 17:49:42 +01:00
2025-02-17 14:31:47 +01:00
2023-10-17 11:06:14 +02:00
2025-02-16 17:30:03 +01:00
2025-02-16 17:30:03 +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
  • Zero dependencies

Installation

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

This will place the compiler inside the repository. Either use ./q or get access to the shorter q in any directory with ln -s $PWD/q ~/.local/bin/q.

Examples

You can take a look at the examples.

q run examples/hello

Usage

Usage:

    q [command] [options]

Commands:

    build [directory | file]       build an executable from a file or directory
        --arch [arch]                  cross-compile for another CPU architecture [x86|arm|riscv]
        --assembler, -a                show assembler instructions
        --dry, -d                      skip writing the executable to disk
        --os [os]                      cross-compile for another OS [linux|mac|windows]
        --statistics, -s               show statistics
        --verbose, -v                  show everything

    run [directory | file]         build and run the executable
    system                         show system information
    help                           show this 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

q is under heavy development and not ready for production yet. Feel free to get in touch if you are interested in helping out.

The biggest obstacle right now is the lack of funding. If you want to help out financially you can donate towards the project.

License

Please see the license documentation.

© 2023 Eduard Urbach