Introduce JumpLabels instead of manually correct jump positions
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
e64256b65f
commit
7182024342
12 changed files with 485 additions and 381 deletions
|
|
@ -6,6 +6,7 @@ use serde::Serialize;
|
|||
use thiserror::Error;
|
||||
|
||||
use crate::emit::Instruction;
|
||||
use crate::emit::VMInstructions;
|
||||
use crate::input::NomoInput;
|
||||
|
||||
pub mod ast;
|
||||
|
|
@ -84,7 +85,7 @@ impl Nomo {
|
|||
}
|
||||
|
||||
struct Template {
|
||||
instructions: Vec<Instruction>,
|
||||
instructions: VMInstructions,
|
||||
}
|
||||
|
||||
pub struct Context {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue