83 lines
1.8 KiB
Text
83 lines
1.8 KiB
Text
---
|
|
source: tests/file_tests.rs
|
|
expression: emit
|
|
input_file: tests/cases/if_else_if.nomo
|
|
---
|
|
VMInstructions {
|
|
labels: {
|
|
LabelSlot {
|
|
index: 2,
|
|
}: 7,
|
|
LabelSlot {
|
|
index: 4,
|
|
}: 14,
|
|
LabelSlot {
|
|
index: 0,
|
|
}: 14,
|
|
},
|
|
instructions: [
|
|
LoadFromContextToSlot {
|
|
name: "test" (6..10),
|
|
slot: VariableSlot {
|
|
index: 1,
|
|
},
|
|
},
|
|
JumpIfNotTrue {
|
|
emit_slot: VariableSlot {
|
|
index: 1,
|
|
},
|
|
jump: LabelSlot {
|
|
index: 2,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n " (13..18),
|
|
},
|
|
AppendContent {
|
|
content: "Not Hello World! :C" (18..37),
|
|
},
|
|
AppendContent {
|
|
content: "\n" (37..38),
|
|
},
|
|
Jump {
|
|
jump: LabelSlot {
|
|
index: 0,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n " (13..18),
|
|
},
|
|
LoadFromContextToSlot {
|
|
name: "another_test" (49..61),
|
|
slot: VariableSlot {
|
|
index: 3,
|
|
},
|
|
},
|
|
JumpIfNotTrue {
|
|
emit_slot: VariableSlot {
|
|
index: 3,
|
|
},
|
|
jump: LabelSlot {
|
|
index: 4,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n " (64..69),
|
|
},
|
|
AppendContent {
|
|
content: "Hello World!" (69..81),
|
|
},
|
|
AppendContent {
|
|
content: "\n" (81..82),
|
|
},
|
|
Jump {
|
|
jump: LabelSlot {
|
|
index: 0,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n " (64..69),
|
|
},
|
|
NoOp,
|
|
],
|
|
}
|