* everything seems to work. Now working on exporting the primitives

directly and eliminating the primitive-set! calls.
This commit is contained in:
Abdulaziz Ghuloum 2007-05-04 07:50:42 -04:00
parent af69d9b3b1
commit d75f2ef04d
2 changed files with 2 additions and 16 deletions

Binary file not shown.

View File

@ -78,17 +78,13 @@
[or (macro . or)]))
(define ikarus-system-primitives
'())
'(print-greeting))
(define (make-collection)
(let ([set '()])
(define (set-cons x ls)
(cond
[(memq x ls) ls]
[else (cons x ls)]))
(case-lambda
[() set]
[(x) (set! set (set-cons x set))])))
[(x) (set! set (cons x set))])))
(define (make-system-data subst env)
(let ([export-subst (make-collection)]
@ -149,16 +145,6 @@
(pretty-print code)
code))
; (define (env->primlocs env)
; (let ([locs (make-collection)])
; (for-each
; (lambda (x)
; (let ([label (car x)] [binding (cdr x)])
; (let ([type (car binding)] [value (cdr binding)])
; (case type
; [(global) (locs (cons
(define (expand-all files)
(let ([code* '()]
[subst '()]