Rename ast to parser

Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
Marcel Müller 2026-03-15 11:33:40 +01:00
parent f87f4a0262
commit 705c6a8818
18 changed files with 32 additions and 32 deletions

View file

@ -9,7 +9,7 @@ use crate::input::NomoInput;
use crate::value::NomoValue;
use crate::value::NomoValueError;
pub mod ast;
pub mod parser;
pub mod emit;
pub mod eval;
pub mod functions;
@ -27,7 +27,7 @@ pub enum NomoError {
/// Invalid Template
AstError {
#[from]
source: ast::AstFailure,
source: parser::AstFailure,
},
/// An error occurred while evaluating
@ -66,7 +66,7 @@ impl Nomo {
) -> Result<(), NomoError> {
let source = value.into();
let parse = lexer::parse(source.clone())?;
let ast = ast::parse(parse.tokens())?;
let ast = parser::parse(parse.tokens())?;
let instructions = emit::emit_machine(ast);