X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lambda_evaluator.mdwn;h=93870a559a704c9fa221c0951427775416076d17;hb=492cb946fbc21f0d3db9de9bd57bd755bf4ca620;hp=c0697abd148f771170b18087c9af813f601cb8df;hpb=efc414adb5e2372295701927bc1115afedf44ce7;p=lambda.git diff --git a/lambda_evaluator.mdwn b/lambda_evaluator.mdwn index c0697abd..93870a55 100644 --- a/lambda_evaluator.mdwn +++ b/lambda_evaluator.mdwn @@ -87,8 +87,8 @@ 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 = ''; - eta = document.getElementById('ETA').value === "on"; - string = "("+eta+")"+string + reduce(expr, eta, false).to_string(); + eta = document.getElementById('ETA').checked; + 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);