summaryrefslogtreecommitdiff
path: root/docs/fype.txt
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2010-05-09 09:43:11 +0000
committerPaul Buetow <paul@buetow.org>2010-05-09 09:43:11 +0000
commitb16caaa631ac8143c021c99fb16ce96cf69ead91 (patch)
treec07690651871a929583fb858360a72f20c3e1a1e /docs/fype.txt
parent38fee5e1e07acb428eba8974483bcdf262dcd89d (diff)
Diffstat (limited to 'docs/fype.txt')
-rw-r--r--docs/fype.txt43
1 files changed, 43 insertions, 0 deletions
diff --git a/docs/fype.txt b/docs/fype.txt
new file mode 100644
index 0000000..3a2726c
--- /dev/null
+++ b/docs/fype.txt
@@ -0,0 +1,43 @@
+Global Frame
+
+v?: Variables
+p?: Parameters
+b?: Boolean expression (Returns #t or #f)
+t?: Term
+f: Function
+l?: List
+
+(f p1 p2 ...)
+
+(define v1 t1)
+
+(lambda (v1 v2 ...) t1)
+
+(define foo (lambda (v1 v2 ...) t1))
+(define (foo (v1 v2 ...) t1))
+
+(if b1 t1 t2)
+(unless b1 t1 t2)
+(eq? t1 t2)
+(neq? t1 t2)
+(and b1 b2)
+(or b1 b2)
+(xor b1 b2)
+(not b1)
+
+(cond ((b1 t1)
+ (b2 t2)
+ ...
+ (else tn)))
+
+(let ((v1 t1)
+ (v2 t2)
+ ...)
+ t3)
+
+(cons t1 l1)
+(car l1)
+(cdr l1)
+(set-car l1 t1)
+(set-cdr l1 t1)
+(list p1 p2 ...)