Fix up provided bindings.

This commit is contained in:
Tony Garnock-Jones 2012-01-11 16:25:40 -05:00
parent 43a76580d6
commit d44f0fb14c
3 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,6 @@
#lang racket/base
(require racket/port)
(require "os.rkt")
(require "os-userland.rkt")
(define (rpc req)
@ -75,5 +74,5 @@
(rpc `(sleep 1000))
(send `(display "Goodbye\n")))
(ground-vm (lambda (p m) (p m)) ;; pattern-predicate
(lambda () (userland main)))
(ground-vm/userland (lambda (p m) (p m)) ;; pattern-predicate
main)

View File

@ -9,7 +9,9 @@
(provide (struct-out wait-clause)
message-handlers
meta-message-handlers
userland
ground-vm/userland
send
meta-send
@ -44,6 +46,9 @@
'finish))
void)))
(define (ground-vm/userland pattern-predicate boot)
(ground-vm pattern-predicate (lambda () (userland boot))))
(define ((reply-to k) v)
(call-with-continuation-prompt (lambda () (k (v))) prompt))

1
os.rkt
View File

@ -23,7 +23,6 @@
run-vm
;; Grounding out the infinite tower of VMs
nested-vm-inert?
ground-vm
)