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
|
|
@ -3,22 +3,25 @@ source: tests/file_tests.rs
|
|||
expression: emit
|
||||
input_file: tests/cases/interpolation.nomo
|
||||
---
|
||||
[
|
||||
AppendContent {
|
||||
content: "Hello! I'm" (0..10),
|
||||
},
|
||||
AppendContent {
|
||||
content: " " (10..11),
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "name" (15..19),
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
VMInstructions {
|
||||
labels: {},
|
||||
instructions: [
|
||||
AppendContent {
|
||||
content: "Hello! I'm" (0..10),
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
AppendContent {
|
||||
content: " " (10..11),
|
||||
},
|
||||
},
|
||||
]
|
||||
LoadFromContextToSlot {
|
||||
name: "name" (15..19),
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue