X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=lambda_evaluator.mdwn;h=3fba8fadf354258c694900734a4fd00dbc0ebdab;hp=d46fc78577d3884c031e3f8446185283ddb3568a;hb=9a92978d1e62e3abd8e23b5b243d04d429dfaba5;hpb=eb2a14f6c7111e6c308b72dd0e8567e4296fcfe0 diff --git a/lambda_evaluator.mdwn b/lambda_evaluator.mdwn index d46fc785..3fba8fad 100644 --- a/lambda_evaluator.mdwn +++ b/lambda_evaluator.mdwn @@ -38,6 +38,7 @@ let and = \l r. l r false in ) +do eta-reductions too @@ -86,7 +87,7 @@ Object.prototype.error = function (message, t) { // string = JSON.stringify(expr, ['key', 'name', 'message', 'value', 'arity', 'first', 'second', 'tag', 'variable', 'left', 'right', 'bound', 'body' ], 4); // string = expr.to_string() + "\n\n~~>\n\n"; string = ''; - string = string + reduce(expr, false, false).to_string(); + string = string + reduce(expr, document.getElementById('ETA').value, false).to_string(); } catch (e) { string = JSON.stringify(e, ['name', 'message', 'from', 'to', 'key', 'value', 'arity', 'first', 'second', 'third', 'fourth'], 4);