From 6d92118cd57ffe6ff3314c99f61ae98d5e490a32 Mon Sep 17 00:00:00 2001 From: Jim Pryor Date: Thu, 23 Sep 2010 03:33:28 -0400 Subject: [PATCH] tweak lambda evaluator Signed-off-by: Jim Pryor --- lambda_evaluator.mdwn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lambda_evaluator.mdwn b/lambda_evaluator.mdwn index 230045b9..99aff252 100644 --- a/lambda_evaluator.mdwn +++ b/lambda_evaluator.mdwn @@ -84,7 +84,9 @@ Object.prototype.error = function (message, t) { // string = JSON.stringify(tree, ['key', 'name', 'message', 'value', 'arity', 'first', 'second', 'third', 'fourth'], 4); // string = JSON.stringify(tree.handler(), ['key', 'name', 'message', 'value', 'arity', 'first', 'second', 'tag', 'variable', 'left', 'right', 'bound', 'body' ], 4); expr = tree.handler(); - string = expr.to_string() + "\n\n~~>\n\n" + reduce(expr, false, false).to_string(); + // string = expr.to_string() + "\n\n~~>\n\n"; + string = ''; + string = string + reduce(expr, false, false).to_string(); } catch (e) { string = JSON.stringify(e, ['name', 'message', 'from', 'to', 'key', 'value', 'arity', 'first', 'second', 'third', 'fourth'], 4); -- 2.11.0