mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
WIP
This commit is contained in:
parent
c7476fb1ed
commit
0e092da703
1 changed files with 13 additions and 1 deletions
|
@ -28,8 +28,20 @@
|
|||
prim:cont/no-args?
|
||||
prim:arg-count?
|
||||
prim:allocates-object?
|
||||
prim:immutable-args/result?)
|
||||
prim:immutable-args/result?
|
||||
;; User defined function primitives
|
||||
;*udf-prims*
|
||||
;*udf-cps->inline*
|
||||
prim:add-udf!
|
||||
)
|
||||
(begin
|
||||
(define *udf-prims* '())
|
||||
(define *udf-cps->inline* '())
|
||||
(define (prim:add-udf! cps-sym inline-sym)
|
||||
(set! *udf-cps->inline*
|
||||
(cons (cons cps-sym inline-sym) *udf-cps->inline*))
|
||||
(set! *udf-prims* (cons inline-sym *udf-prims*)))
|
||||
|
||||
; prim? : exp -> boolean
|
||||
(define (prim? exp)
|
||||
(member exp *primitives*))
|
||||
|
|
Loading…
Add table
Reference in a new issue