Getting Started

Installation

Rue is currently in early development. To try it out, you'll need to build from source. If you do try it out, you'll certainly find bugs, and if you do please file them!

Prerequisites

  • Rust toolchain (for building the compiler)
  • Buck2 build system

Building from Source

git clone https://github.com/rue-language/rue
cd rue
./buck2 build //crates/rue:rue

Your First Program

Create a file called hello.rue:

fn main() -> i32 {
    @dbg(42);
    0
}

Compile and run it:

./buck2 run //crates/rue:rue -- hello.rue hello
./hello
# prints: [hello.rue:2] 42 = 42
echo $?  # prints: 0

Next Steps