mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 09:17:35 +02:00
Add check for CPS prims
This commit is contained in:
parent
07683bf273
commit
729c0d4025
1 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,12 @@
|
|||
(scan (if->else exp) fail?))
|
||||
((app? exp)
|
||||
(cond
|
||||
;;; TODO: may need to check for prim:cont? and abort accordingly
|
||||
;; check out code generated for scheme/cyclone/util.sld WRT symbol->string
|
||||
;; cannot proceed with this since by definition these functions require CPS
|
||||
((and (prim? (car exp))
|
||||
(prim:cont? (car exp)))
|
||||
(return #f))
|
||||
((and (equal? (car exp) sym)
|
||||
(not fail?))
|
||||
(map (lambda (e) (scan e fail?)) (cdr exp))) ;; Sym is OK, skip
|
||||
|
|
Loading…
Add table
Reference in a new issue