[plt-scheme] scribble/lp and modules
No, I don't think that is possible, currently. The module form is
dictated by the #lang scribble/lp line (it is scheme/base).
Robby
On Wed, Jul 1, 2009 at 10:23 PM, Jon Stenerson<jonstenerson at comcast.net> wrote:
> I just started trying out the literate programming feature in scribble. Is
> there a way to put a module form in a @chunk. The following gives me an
> error "module: illegal use (not at top-level) ...."
>
> Jon
>
> #lang scribble/lp
>
> @chunk[<main>
> (module example-module scheme
> (provide foo bar)
> (define foo 2)
> (define (bar x)
> (+ x 1)))
> ]
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>