X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=lambda_evaluator.mdwn;h=c9e21644124be4c830b25d8c136b62e1138878e0;hp=37908ab5c58608b7abbf70649ddb6670e268c219;hb=35ab33cfa5ca8a4460068037b52fa088783d09df;hpb=6fb1c5023184b865e5adf586a31b19315020754c diff --git a/lambda_evaluator.mdwn b/lambda_evaluator.mdwn index 37908ab5..c9e21644 100644 --- a/lambda_evaluator.mdwn +++ b/lambda_evaluator.mdwn @@ -19,7 +19,7 @@ Blank lines are fine. *Abbreviations*: In an earlier version, you couldn't use abbreviations. `\x y. y x x` had to be written `(\x (\y ((y x) x)))`. We've upgraded the parser though, so now it should be able to understand any lambda term that you can. -*Constants*: The combinators `S`, `K`, `I`, `C`, `B`, `W`, and `T` are pre-defined to their standard values. Also, integers will automatically be converted to Church numerals. (`0` is `\s z. z`, `1` is `\s z. s z`, and so on.) +*Constants*: The combinators `S`, `K`, `I`, `C`, `B`, `W`, `T`, `M` (aka ω) and `L` are pre-defined to their standard values. Also, integers will automatically be converted to Church numerals. (`0` is `\s z. z`, `1` is `\s z. s z`, and so on.) @@ -85,7 +85,7 @@ Object.prototype.error = function (message, t) { // string = expr.to_string() + "\n\n~~>\n\n"; string = ''; eta = document.getElementById('ETA').checked; - string = string + reduce(expr, eta, 2).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);