nomo/tests/checks.rs
Marcel Müller f87f4a0262 Rename parser to lexer
Signed-off-by: Marcel Müller <neikos@neikos.email>
2026-03-15 11:31:40 +01:00

18 lines
445 B
Rust

#[test]
fn check_files() {
let files = std::fs::read_dir("tests/checks/").unwrap();
for file in files {
let input = std::fs::read_to_string(file.unwrap().path()).unwrap();
let Ok(parsed) = nomo::lexer::parse(input.into()) else {
continue;
};
let Ok(ast) = nomo::ast::parse(parsed.tokens()) else {
continue;
};
let _emit = nomo::emit::emit_machine(ast);
}
}