dimgigov 60d4260c93 fix: C backend, parser, sema, HIR lowering for all examples
- C backend: strip c8/c16/c32 string prefixes in emitted C
- C backend: resolve imports to fully-qualified names (Std_Io_PrintLine)
- Parser: fix infinite loop on < in comparisons vs generic calls
- Parser: fix enum patterns without parens (Option::None)
- Parser: fix match expressions inside blocks
- Sema: extract pattern bindings for match arms
- HIR: lower match expressions to if-else chains with enum tag checks
- HIR/C backend: support block expressions as function return values
- Makefile: add integration tests for all 9 examples
- Add pattern_matching.bux example
2026-05-31 01:07:45 +03:00

Bux Programming Language

Status: Bootstrap phase — compiler written in Nim, targeting self-hosting.

Bux is a fast, compiled, strongly-typed systems programming language inspired by Rux. The long-term goal is a self-hosted compiler with a minimal runtime, native x86-64 backend, and modern tooling.

Quick Start

# Build the bootstrap compiler (Nim)
make build

# Create a new project
bux new hello

# Build and run
bux run

Syntax Preview

import Std::Io::PrintLine;

func Main() -> int {
    let message: *char8 = c8"Hello, Bux!";
    PrintLine(message);
    return 0;
}

Roadmap

See PLAN.md for the full roadmap to self-hosting.

License

MIT

S
Description
No description provided
Readme MIT 12 MiB
Languages
C 74.6%
Nim 23.4%
HTML 1.2%
Makefile 0.3%
Go 0.3%