aboutsummaryrefslogtreecommitdiff
path: root/php/step2_eval.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/step2_eval.php')
-rw-r--r--php/step2_eval.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/step2_eval.php b/php/step2_eval.php
index b9d2e8e..e96e8fd 100644
--- a/php/step2_eval.php
+++ b/php/step2_eval.php
@@ -46,7 +46,7 @@ function MAL_EVAL($ast, $env) {
// print
function MAL_PRINT($exp) {
- return _pr_str($exp, True) . "\n";
+ return _pr_str($exp, True);
}
// repl
@@ -67,7 +67,7 @@ do {
$line = mal_readline("user> ");
if ($line === NULL) { break; }
if ($line !== "") {
- print(rep($line));
+ print(rep($line) . "\n");
}
} catch (BlankException $e) {
continue;