oxur-comp

Crates.iooxur-comp
lib.rsoxur-comp
version0.2.0
created_at2026-01-03 17:47:03.507485+00
updated_at2026-01-17 00:24:34.868487+00
descriptionOxur compiler: lowers Core Forms to Rust and generates binaries
homepage
repositoryhttps://github.com/oxur/oxur
max_upload_size
id2020518
size66,616
Duncan McGreggor (oubiwann)

documentation

README

oxur-comp

Oxur compiler library and binary.

Compiler Binary (oxurc)

# Compile an Oxur file
oxurc input.ox -o output

# Keep generated Rust source
oxurc input.ox --emit-rust

# Verbose output
oxurc input.ox -v

Library

The oxur-comp library provides:

  • Lowering: Core Forms → Rust AST (Stage 3)
  • Code Generation: Rust AST → Rust source (Stage 4)
  • Compilation: Rust source → Binary via rustc (Stage 5)

Architecture

The compiler takes Core Forms (from oxur-lang) and:

  1. Lowers them to Rust AST using the syn crate
  2. Generates formatted Rust source using prettyplease
  3. Invokes rustc to produce the final binary
Commit count: 489

cargo fmt