Linux support only so far.
- nasm
- gcc
curl -sSL https://oxynium.org/scripts/install | bash
Can also install from development branch, which will include the latest features
curl -sSL https://oxynium.org/scripts/install | bash -s -- "latest"
- cargo
- rustc
- python3
- Docker (and cli)
See test/spec/*
for more examples
$ oxy -e 'print("Hello, World!")' && ./oxy-out
Hello, world!
$ more hello_world.oxy
print("Hello, World!")
$ oxy hello_world.oxy && ./oxy-out
Hello, world!
$ oxy [input_file?] [options]
Quote the input to escape shell expansion,
e.g. oxy -e "(1+1)*2"
instead of oxy -e (1+1)*2
Command | Type | Description | Default |
---|---|---|---|
-o , --output |
Str | Output assembly file path | 'out.asm' |
-e , --eval |
Str | Pass the program on the CLI | |
-s , --std |
Str | Path to STD asm file | /usr/local/bin/oxy-std.asm |
-k , --keep |
Bool | Keep outputted .asm and .o files |
0 |
-x , --exec_mode |
Int | Exec mode | 0 |
0
Compile to application
1
Compile as library