53 lines
669 B
Markdown
Raw Normal View History

2023-10-17 09:06:14 +00:00
# q
A simple programming language.
2023-10-17 13:10:35 +00:00
## Features
2023-10-21 15:46:20 +00:00
* Fast compilation
* Small binaries
2023-10-17 13:10:35 +00:00
2023-10-17 09:06:14 +00:00
## Installation
```shell
git clone https://git.akyoto.dev/cli/q
cd q
go build
```
2023-10-17 13:10:35 +00:00
## Usage
2023-10-17 09:06:14 +00:00
2023-10-21 15:46:20 +00:00
Build a Linux ELF executable from `examples/hello`:
2023-10-17 13:10:35 +00:00
```shell
2023-10-17 18:29:36 +00:00
./q build examples/hello
2023-10-23 10:37:20 +00:00
./examples/hello/hello
2023-10-17 13:10:35 +00:00
```
2023-10-17 09:06:14 +00:00
2023-10-23 10:37:20 +00:00
## Source
- [main.go](main.go)
- [src/cli/Main.go](src/cli/Main.go)
- [src/cli/Build.go](src/cli/Build.go)
- [src/build/Build.go](src/build/Build.go)
## Tests
2023-10-21 15:46:20 +00:00
```shell
2023-10-23 10:37:20 +00:00
go test -coverpkg=./...
```
## Benchmarks
```shell
go test -bench=. -benchmem
2023-10-21 15:46:20 +00:00
```
2023-10-17 09:06:14 +00:00
## License
Please see the [license documentation](https://akyoto.dev/license).
## Copyright
© 2023 Eduard Urbach