rename debug-print

This commit is contained in:
2020-10-04 15:42:30 -06:00
parent 4d3cac8a11
commit 6b960151be
4 changed files with 6 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ class Story {
interp.importFunction(this, hissRead, "hiss-read");
interp.importFunction(reader, reader.readDelimitedList, "hiss-read-delimited-list", List([Int(3)]) /* keep blankELements wrapped */, ["terminator", "delimiters", "start", "stream"]);
interp.importFunction(this, debugPrint, "debug-print", T);
interp.importFunction(this, debugPrint, "print", T);
interp.load("hanklib.hiss");
}

View File

@@ -14,6 +14,7 @@ class TestStoryExamples {
transcripts = transcripts.filter((file) -> file.endsWith(".hlog"));
for (transcript in transcripts) {
Sys.println(example + " " + transcript);
new Story("examples/" + example + "/main.hank", new StoryTester("examples/" + example + "/" + transcript)).run();
}
}

View File

@@ -39,7 +39,7 @@
`(let (c (make-choice ,@args)
label (choice-label c)
id (length *choices*))
(debug-print c)
(print c)
(push! *choices* c)
(when label (dict-set! *labeled-choices* label c))
id))
@@ -59,7 +59,7 @@
(for o choice-outputs (eval o)))
(enable-continuations)
(begin
(setlocal player-choice-index (debug-print (get-player-choice-index choice-texts)))
(setlocal player-choice-index (print (get-player-choice-index choice-texts)))
(disable-continuations)
(let (player-choice

View File

@@ -3,7 +3,7 @@
(hiss-read-delimited-list "\n" ["->"] t nil start stream)
divert-calls
(for target targets 'divert))
(debug-print (cons
(print (cons
'begin
(case (last targets)
// tunnel statement:
@@ -30,7 +30,7 @@
(read-all (first (HStream:take-until stream ["=="] nil nil t))))
// Define the knot's function at READ-TIME
(eval (debug-print `(defun ,knot-name () ,@knot-body (quit))))
(eval (print `(defun ,knot-name () ,@knot-body (quit))))
nil))
(defun read-choice (start stream)