squash Advent of Code log output

This commit is contained in:
2021-04-28 15:19:13 -06:00
parent 1a67868ec2
commit fcf422386d
2 changed files with 3 additions and 4 deletions

View File

@@ -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;
} }
]; ];

View File

@@ -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))))