X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=lambda_evaluator.mdwn;h=c0e19a531499796c90931258d38ce0cc1cbf51db;hp=99aff2521d32ccdb527ff4799c06019fe7523a02;hb=f1f6d69fed9bb6e5199825b2ffa2e629d4b9733b;hpb=0a787c1b90bcdd2eb935541c67640ddf6715fddb diff --git a/lambda_evaluator.mdwn b/lambda_evaluator.mdwn index 99aff252..c0e19a53 100644 --- a/lambda_evaluator.mdwn +++ b/lambda_evaluator.mdwn @@ -82,11 +82,11 @@ Object.prototype.error = function (message, t) { try { tree = parse(source); // 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); + 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"; - string = ''; - string = string + reduce(expr, false, false).to_string(); + // 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);