Rename emit to compiler
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
705c6a8818
commit
d72f888849
9 changed files with 221 additions and 15 deletions
|
|
@ -3,18 +3,18 @@ use std::collections::HashMap;
|
|||
use displaydoc::Display;
|
||||
use thiserror::Error;
|
||||
|
||||
use crate::emit::VMInstructions;
|
||||
use crate::compiler::VMInstructions;
|
||||
use crate::functions::FunctionMap;
|
||||
use crate::input::NomoInput;
|
||||
use crate::value::NomoValue;
|
||||
use crate::value::NomoValueError;
|
||||
|
||||
pub mod parser;
|
||||
pub mod emit;
|
||||
pub mod compiler;
|
||||
pub mod eval;
|
||||
pub mod functions;
|
||||
pub mod input;
|
||||
pub mod lexer;
|
||||
pub mod parser;
|
||||
pub mod value;
|
||||
|
||||
#[derive(Debug, Error, Display)]
|
||||
|
|
@ -68,7 +68,7 @@ impl Nomo {
|
|||
let parse = lexer::parse(source.clone())?;
|
||||
let ast = parser::parse(parse.tokens())?;
|
||||
|
||||
let instructions = emit::emit_machine(ast);
|
||||
let instructions = compiler::emit_machine(ast);
|
||||
|
||||
self.templates
|
||||
.insert(name.into(), Template { instructions });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue