rulox 0.2.0

A lightweight scripting language embedded in Rust.
Documentation

rulox

rulox is a lightweight scripting language embedded in Rust. It is based on the Lox language from Crafting Interpreters.

Examples

use rulox::lox;
use rulox_types::prelude::*;

fn main() {
    lox! {
        var a = 5;

        print a + 2;
    }

    let b: f64 = a.try_into().unwrap();

    println!("{}", b);
}

Features

  • Variable declarations
  • Print statements
  • Control flow statements
  • Loops
  • Functions
  • Object orientation (possibly)