squash Advent of Code log output
This commit is contained in:
@@ -211,10 +211,10 @@ class EmbeddedScript {
|
|||||||
// fields, otherwise DSL state will be lost when forking, which is unacceptable
|
// fields, otherwise DSL state will be lost when forking, which is unacceptable
|
||||||
var fork = new kiss.cloner.Cloner().clone(this);
|
var fork = new kiss.cloner.Cloner().clone(this);
|
||||||
fork.instructions[instructionPointer] = command;
|
fork.instructions[instructionPointer] = command;
|
||||||
trace(fork.breakPoints);
|
// trace(fork.breakPoints);
|
||||||
trace('running a fork from ' + Std.string(instructionPointer + 1));
|
// trace('running a fork from ' + Std.string(instructionPointer + 1));
|
||||||
fork.run();
|
fork.run();
|
||||||
trace("fork finished");
|
// trace("fork finished");
|
||||||
fork;
|
fork;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -6,5 +6,4 @@
|
|||||||
(defmethod acc [v :Dynamic self] (self.setBreakPoint) (set self.accumulator (+ self.accumulator v)))
|
(defmethod acc [v :Dynamic self] (self.setBreakPoint) (set self.accumulator (+ self.accumulator v)))
|
||||||
(defmethod jmp [v :Dynamic self]
|
(defmethod jmp [v :Dynamic self]
|
||||||
(self.setBreakPoint)
|
(self.setBreakPoint)
|
||||||
(print (+ "jumping " (Std.string v) " from " (Std.string (+ 1 self.instructionPointer))))
|
|
||||||
(set self.instructionPointer (+ self.instructionPointer (- v 1))))
|
(set self.instructionPointer (+ self.instructionPointer (- v 1))))
|
||||||
Reference in New Issue
Block a user