heraclitus-compiler 1.9.0

Compiler frontend for developing great programming languages
Documentation
use heraclitus_compiler::prelude::*;
mod arith_modules;

#[test]
fn arith() {
    let symbols = vec!['+', '/'];
    let region = reg![
        reg!(string as "string literal" => {
            begin: "'",
            end: "'"
        }),
        reg!(comment as "comment line" => {
            begin: "//",
            end: "\n"
        })
    ];
    let rules = Rules::new(symbols, vec![], region);
    let mut compiler = Compiler::new("Arith", rules);
    compiler.load("// test\n12.24 +.123 + 12 + 321");
    let mut expr = arith_modules::Expr::new();
    compiler.debug();
    assert!(compiler.compile(&mut expr).is_ok());
}