* everything seems to work. Now working on exporting the primitives
directly and eliminating the primitive-set! calls.
This commit is contained in:
parent
af69d9b3b1
commit
d75f2ef04d
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -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 '()]
|
||||
|
|
Loading…
Reference in New Issue