Re: [racket] Using Scribble to evalute code blocks in different runtimes

2011-11-19 Thread Grant Rettke
Thanks Matt and Eric. On Sat, Nov 19, 2011 at 10:12 AM, Eric Tanter wrote: > Sorry I misunderstood the question. `show-system' below is really useful! > > -- Éric > > > On Nov 19, 2011, at 12:09 PM, Matthew Flatt wrote: > >> At Fri, 18 Nov 2011 16:19:22 -0300, Eric Tanter wrote: >>> You should re

Re: [racket] Using Scribble to evalute code blocks in different runtimes

2011-11-19 Thread Eric Tanter
Sorry I misunderstood the question. `show-system' below is really useful! -- Éric On Nov 19, 2011, at 12:09 PM, Matthew Flatt wrote: > At Fri, 18 Nov 2011 16:19:22 -0300, Eric Tanter wrote: >> You should require both evaluation and sandboxing: > > That's right for evaluation within Racket, bu

Re: [racket] Using Scribble to evalute code blocks in different runtimes

2011-11-19 Thread Matthew Flatt
At Fri, 18 Nov 2011 16:19:22 -0300, Eric Tanter wrote: > You should require both evaluation and sandboxing: That's right for evaluation within Racket, but I think the question was about calling external programs (that happen to implement other Lisp dialects). Here's an example that uses `system'

Re: [racket] Using Scribble to evalute code blocks in different runtimes

2011-11-18 Thread Eric Tanter
Hi, You should require both evaluation and sandboxing: @(require scribble/eval racket/sandbox) Then define as many evaluators as you need: @(define ex-eval (make-base-eval)) you can import modules into a given evaluator: @interaction-eval[#:eval ex-eval (require "foo.rkt")] and then