(no commit message)
authorbarker <barker@web>
Tue, 21 Sep 2010 00:46:26 +0000 (20:46 -0400)
committerLambda Wiki <lambda@SERVER.PHILOSOPHY.FAS.NYU.EDU>
Tue, 21 Sep 2010 00:46:26 +0000 (20:46 -0400)
lambda_evaluator.mdwn

index 16eace7..552ac68 100644 (file)
@@ -13,10 +13,21 @@ In this toy system, `let`s should only be used at the beginning of a file.  If w
 
     let true = (\x (\y x)) in
     let false = (\x (\y y)) in
-    ((true true) false)
+    ((true yes) no)
 
-the result is `true`.
+the result is `yes`.  Things to watch out for: the expression after the equal sign must have balanced parentheses,
+and the "in" is obligatory.  The system will still produce a result, but it won't make much sense.
+
+*Comments*: anything following a semicolon to the end of the line is ignored.
+Blank lines are fine.
+
+Under the hood
+---------------
+
+The interpreter is written in JavaScript (which is not closely related to Java), and runs inside your browser.
+So if you decide to reduce a term that does not terminate (such as `((\x (x x)) (\x (x x)))`), it will be your 
+browser that stops responding, not the wiki server.
+
+You can inspect the code [here](http://lambda.jimpryor.net/code/lambda.js).  Suggestions for improvements welcome.
 
-*Comments*:
 
-[more soon]