Rename library to nomo

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-07 10:07:47 +01:00
parent d691fb9198
commit d2e0405033
28 changed files with 92 additions and 92 deletions

View file

@ -1,10 +1,10 @@
use std::collections::HashMap;
use temple::Context;
use nomo::Context;
#[test]
fn check_cases() {
insta::glob!("cases/*.temple", |path| {
insta::glob!("cases/*.nomo", |path| {
let mut settings = insta::Settings::clone_current();
settings.set_snapshot_path("cases");
settings.set_snapshot_suffix(path.file_stem().unwrap().display().to_string());
@ -27,19 +27,19 @@ fn check_cases() {
context.insert(k, v);
}
let parsed = temple::parser::parse(input.into()).unwrap();
let parsed = nomo::parser::parse(input.into()).unwrap();
insta::assert_debug_snapshot!("1-parsed", parsed);
let ast = temple::ast::parse(parsed.tokens()).unwrap();
let ast = nomo::ast::parse(parsed.tokens()).unwrap();
insta::assert_debug_snapshot!("2-ast", ast);
let emit = temple::emit::emit_machine(ast);
let emit = nomo::emit::emit_machine(ast);
insta::assert_debug_snapshot!("3-instructions", emit);
let output = temple::eval::execute(&emit, &context).unwrap();
let output = nomo::eval::execute(&emit, &context).unwrap();
insta::assert_debug_snapshot!("4-output", output);
});