66 lines
1.4 KiB
Text
66 lines
1.4 KiB
Text
---
|
|
source: tests/file_tests.rs
|
|
expression: emit
|
|
info:
|
|
input: "{{ if test }}\n Hello World!\n{{ end }}\n\n{{= stuff }}"
|
|
context:
|
|
stuff: more
|
|
test: true
|
|
---
|
|
VMInstructions {
|
|
labels: {
|
|
LabelSlot {
|
|
index: 0,
|
|
}: 7,
|
|
LabelSlot {
|
|
index: 2,
|
|
}: 7,
|
|
},
|
|
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: "Hello World!" (18..30),
|
|
},
|
|
AppendContent {
|
|
content: "\n" (30..31),
|
|
},
|
|
Jump {
|
|
jump: LabelSlot {
|
|
index: 0,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n " (13..18),
|
|
},
|
|
AppendContent {
|
|
content: "\n\n" (40..42),
|
|
},
|
|
LoadFromContextToSlot {
|
|
name: "stuff" (46..51),
|
|
slot: VariableSlot {
|
|
index: 3,
|
|
},
|
|
},
|
|
EmitFromSlot {
|
|
slot: VariableSlot {
|
|
index: 3,
|
|
},
|
|
},
|
|
],
|
|
}
|