tweak lambda evaluator
authorJim Pryor <profjim@jimpryor.net>
Thu, 23 Sep 2010 09:08:14 +0000 (05:08 -0400)
committerJim Pryor <profjim@jimpryor.net>
Thu, 23 Sep 2010 09:08:14 +0000 (05:08 -0400)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
lambda_evaluator.mdwn

index 7a037d5..93870a5 100644 (file)
@@ -88,7 +88,7 @@ Object.prototype.error = function (message, t) {
 //                     string = expr.to_string() + "\n\n~~>\n\n";
                        string = '';
                        eta = document.getElementById('ETA').checked;
 //                     string = expr.to_string() + "\n\n~~>\n\n";
                        string = '';
                        eta = document.getElementById('ETA').checked;
-                       string = "("+eta+")"+string + reduce(expr, eta, false).to_string();
+                       string = string + reduce(expr, eta, false).to_string();
         } catch (e) {
             string = JSON.stringify(e, ['name', 'message', 'from', 'to', 'key',
                     'value', 'arity', 'first', 'second', 'third', 'fourth'], 4);
         } catch (e) {
             string = JSON.stringify(e, ['name', 'message', 'from', 'to', 'key',
                     'value', 'arity', 'first', 'second', 'third', 'fourth'], 4);