Add parsing for conditionals (cont.)
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
974086a877
commit
8afc2d1bde
29 changed files with 994 additions and 746 deletions
10
src/lib.rs
10
src/lib.rs
|
|
@ -65,13 +65,8 @@ impl Nomo {
|
|||
|
||||
let instructions = emit::emit_machine(ast);
|
||||
|
||||
self.templates.insert(
|
||||
name.into(),
|
||||
Template {
|
||||
source,
|
||||
instructions,
|
||||
},
|
||||
);
|
||||
self.templates
|
||||
.insert(name.into(), Template { instructions });
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
@ -89,7 +84,6 @@ impl Nomo {
|
|||
}
|
||||
|
||||
struct Template {
|
||||
source: NomoInput,
|
||||
instructions: Vec<Instruction>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue