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
var fork = new kiss.cloner.Cloner().clone(this);
fork.instructions[instructionPointer] = command;
trace(fork.breakPoints);
trace('running a fork from ' + Std.string(instructionPointer + 1));
// trace(fork.breakPoints);
// trace('running a fork from ' + Std.string(instructionPointer + 1));
fork.run();
trace("fork finished");
// trace("fork finished");
fork;
}
];

View File

@@ -6,5 +6,4 @@
(defmethod acc [v :Dynamic self] (self.setBreakPoint) (set self.accumulator (+ self.accumulator v)))
(defmethod jmp [v :Dynamic self]
(self.setBreakPoint)
(print (+ "jumping " (Std.string v) " from " (Std.string (+ 1 self.instructionPointer))))
(set self.instructionPointer (+ self.instructionPointer (- v 1))))