mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 16:50:21 +02:00
$prompt is now its own kind of CPS term.
* module/language/cps.scm ($prompt): Rework to be its own term kind. Now $continue always continues to a single continuation. Adapt callers.
This commit is contained in:
parent
29fee39c2a
commit
ee15ca1455
22 changed files with 198 additions and 195 deletions
|
@ -853,7 +853,7 @@
|
|||
(with-cps cps
|
||||
(let$ body (convert body krest subst))
|
||||
(letk kbody ($kargs () () ,body))
|
||||
(build-term ($continue kbody src ($prompt #t tag khargs))))
|
||||
(build-term ($prompt kbody khargs src #t tag)))
|
||||
(convert-arg cps body
|
||||
(lambda (cps thunk)
|
||||
(with-cps cps
|
||||
|
@ -861,8 +861,8 @@
|
|||
($continue krest (tree-il-src body)
|
||||
($primcall 'call-thunk/no-inline #f
|
||||
(thunk)))))
|
||||
(build-term ($continue kbody (tree-il-src body)
|
||||
($prompt #f tag khargs))))))))
|
||||
(build-term ($prompt kbody khargs (tree-il-src body)
|
||||
#f tag)))))))
|
||||
(with-cps cps
|
||||
(letv prim vals apply)
|
||||
(let$ hbody (convert hbody k subst))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue