<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.go')
-rw-r--r--main/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/main.go b/main/main.go
index 3a864ad..3fb1cbf 100644
--- a/main/main.go
+++ b/main/main.go
@@ -10,6 +10,7 @@ import (
type ProgramState struct {
value, xreg, yreg, zreg []walk.Value
+ start, prevStart, end, nextEnd bool
in walk.StredReader
out walk.StredWriter
program []Command
@@ -42,6 +43,10 @@ func run(config config) {
break
}
state.value = []walk.Value{walkItem.Value}
+ state.start = walkItem.Start
+ state.prevStart = walkItem.PrevStart
+ state.end = walkItem.End
+ state.nextEnd = walkItem.NextEnd
state.pc = 0
for state.pc < len(state.program) {
state.program[state.pc].exec(&state)