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

View File

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

1
os.rkt
View File

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