Skip to content

revers3ntropy/oxynium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example workflow

Oxynium Compiler in Rust

Linux support only so far.

Requirements

  • nasm
  • gcc

Installation

curl -sSL https://oxynium.org/scripts/install | bash

Unstable

Can also install from development branch, which will include the latest features

curl -sSL https://oxynium.org/scripts/install | bash -s -- "latest"

Dev Requirements

  • cargo
  • rustc

For running full testing suite:

  • python3
  • Docker (and cli)

Examples

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!

Usage

$ 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

Options

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

Exec Mode

0 Compile to application

1 Compile as library