A way to test homework solutions for students
[lambda.git] / lambda-let.html
diff --git a/lambda-let.html b/lambda-let.html
new file mode 100644 (file)
index 0000000..5bb3ac5
--- /dev/null
@@ -0,0 +1,32 @@
+<html>
+<head>
+<title>Lambda tutorial</title>
+<script language=JavaScript src="lambda.js"></script>
+</head>
+<body>
+
+instance, try clicking on the "Reduce" button: <center><form> 
+<textarea cols="80" rows="20" name=input>
+let true = (\x (\y x)) in
+let false = (\x (\y y)) in
+let and = (\l (\r ((l r) false))) in
+
+(
+
+((((and false) false) yes) no)
+
+((((and false) true) yes) no)
+
+((((and true) false) yes) no)
+
+((((and true) true) yes) no)
+
+)
+
+</textarea>
+<br>
+<input type=button value="Reduce" onClick="mytry(this.form)"> <input
+type=Label name=result size=50> </form> </center> You should see the
+
+</body>
+</html>