diff --git a/src/fact.ss b/src/fact.ss deleted file mode 100644 index 9ddb8df..0000000 --- a/src/fact.ss +++ /dev/null @@ -1,6 +0,0 @@ - -(define (fact n ac) - (if (zero? n) - ac - (fact (- n 1) (* n ac)))) -(begin (fact 10000 1) #f) diff --git a/src/ikarus.boot b/src/ikarus.boot index 0de3379..76d3175 100644 Binary files a/src/ikarus.boot and b/src/ikarus.boot differ diff --git a/src/libaltcogen.ss b/src/libaltcogen.ss new file mode 100644 index 0000000..1da10f9 --- /dev/null +++ b/src/libaltcogen.ss @@ -0,0 +1,980 @@ + +(module (alt-cogen) +;;; input to cogen is : +;;; ::= (constant x) +;;; | (var) +;;; | (primref name) +;;; | (bind var* * ) +;;; | (fix var* * ) +;;; | (conditional ) +;;; | (seq ) +;;; | (closure *) ; thunk special case +;;; | (primcall op *) +;;; | (forcall "name" *) +;;; | (funcall *) +;;; | (jmpcall