aboutsummaryrefslogtreecommitdiff
path: root/php/step3_env.php
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-19 13:04:09 -0500
committerJoel Martin <github@martintribe.org>2014-04-19 13:04:09 -0500
commit86b689f3d7111a9fa13da389a30f3dfdf877d1a4 (patch)
treed72b065f9f987e291f892ceee5a8640363bfd9df /php/step3_env.php
parent718887c3019c49fc807bc18fbd5feb975ec03c85 (diff)
downloadmal-86b689f3d7111a9fa13da389a30f3dfdf877d1a4.tar.gz
mal-86b689f3d7111a9fa13da389a30f3dfdf877d1a4.zip
All: *ARGV* and *host-language*. Misc syncing/fixes.
Diffstat (limited to 'php/step3_env.php')
-rw-r--r--php/step3_env.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/step3_env.php b/php/step3_env.php
index 3c46b04..6585fe7 100644
--- a/php/step3_env.php
+++ b/php/step3_env.php
@@ -78,6 +78,7 @@ $repl_env->set('-', function ($a, $b) { return intval($a - $b,10); });
$repl_env->set('*', function ($a, $b) { return intval($a * $b,10); });
$repl_env->set('/', function ($a, $b) { return intval($a / $b,10); });
+// repl loop
do {
try {
$line = mal_readline("user> ");
@@ -93,4 +94,4 @@ do {
}
} while (true);
-?>
+?>