mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-25 13:05:05 +02:00
WIP
This commit is contained in:
parent
ca68ab358a
commit
4d2cef3782
1 changed files with 17 additions and 0 deletions
|
@ -1185,6 +1185,23 @@
|
||||||
(difference fv (built-in-syms)))
|
(difference fv (built-in-syms)))
|
||||||
(list))))))
|
(list))))))
|
||||||
|
|
||||||
|
TODO: upgrade applicable function calls to inlinable primitives
|
||||||
|
first case is char=? => Cyc-fast-char-eq (and rest of the family)
|
||||||
|
(define (inline-applicable-funcs expr)
|
||||||
|
(define (conv ast)
|
||||||
|
(cond
|
||||||
|
((define? ast)
|
||||||
|
`(define ,@(map (lambda (a) (conv a)) (cdr ast))))
|
||||||
|
((set!? ast)
|
||||||
|
`(set! ,@(map (lambda (a) (conv a)) (cdr ast))))
|
||||||
|
((if? ast)
|
||||||
|
TODO
|
||||||
|
((lambda? ast)
|
||||||
|
((app? ast)
|
||||||
|
(else
|
||||||
|
ast)))
|
||||||
|
(conv expr))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Helpers to syntax check primitive calls
|
;; Helpers to syntax check primitive calls
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue