Re: [racket] using scribble/eval in conjunction with scribble/lp

2015-01-05 Thread Joel McCracken
eate >>> > the lp language version 2 as an afterthought. Awesome. >>> > >>> > On Tue, Dec 16, 2014 at 3:04 PM, Matthew Flatt wrote: >>> >> ... after the next build, at least. >>> >> >>> >> Problems related to the repo

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-17 Thread Matthew Flatt
the current snapshot: > >>> > >>> http://www.cs.utah.edu/plt/snapshots/ > >>> > >>> > >>> > >>> > >>> On Dec 16, 2014, at 1:28 PM, Joel McCracken > wrote: > >>> > >>> > Forwa

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-17 Thread Joel McCracken
t; >>> You probably want the current snapshot: >>> >>> http://www.cs.utah.edu/plt/snapshots/ >>> >>> >>> >>> >>> On Dec 16, 2014, at 1:28 PM, Joel McCracken >>> wrote: >>> >>> > Forwardi

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-16 Thread Joel McCracken
;> >> > Forwarding to users, since I forgot to reply-all. >> > >> > >> > ------ Forwarded message ------ >> > From: Joel McCracken >> > Date: Tue, Dec 16, 2014 at 1:27 PM >> > Subject: Re: [racket] using scribble/eval in conjuncti

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-16 Thread Matthew Flatt
> > From: Joel McCracken > > Date: Tue, Dec 16, 2014 at 1:27 PM > > Subject: Re: [racket] using scribble/eval in conjunction with scribble/lp > > To: Matthew Flatt > > > > > > Hmm, I'm having trouble finding this new release of Racket that wil

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-16 Thread Matthias Felleisen
c 16, 2014 at 1:27 PM > Subject: Re: [racket] using scribble/eval in conjunction with scribble/lp > To: Matthew Flatt > > > Hmm, I'm having trouble finding this new release of Racket that will > allow a #lang scribble/lp2 -- I'll keep looking later. This is aweso

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-15 Thread Matthew Flatt
At Mon, 15 Dec 2014 15:49:38 -0700, Matthew Flatt wrote: > Meanwhile, I'll work on changing `scribble/lp` so that a module > implemented with `#lang scribble/lp` can be passed directly to > Scribble. That turned out to be `scribble/lp2`, since the changes would be incompatible with existing uses o

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-15 Thread Matthew Flatt
The `examples` form uses a fresh namespace for its evaluation. As part of "lp.rkt", you could set up an evaluator that is initialized to use the enclosing module's namespace. ;; lp.rkt: #lang scribble/lp @(require scribble/eval) This would be a wonderful

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-14 Thread Benjamin Greenman
No, that doesn't work for me either. Anyway, I was hoping I could export f and then run the examples in a second file (because we have to lp-include the literate program anyway): ;; lp.scrbl #lang scribble/manual @require[scribble/lp-include] @require[scribble/eval] @lp-include["example.rkt"] @ex

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-14 Thread Joel McCracken
I have tried a few different things. In you case, I think adding a: @chunk[ (provide f)] ... will make lp-test work. I'm still can't get lp.rkt to become self-referential, though. On Sun, Dec 14, 2014 at 4:46 PM, Benjamin Greenman wrote: > I tried and failed to figure this out. In parti

Re: [racket] using scribble/eval in conjunction with scribble/lp

2014-12-14 Thread Benjamin Greenman
I tried and failed to figure this out. In particular, when I create the example "lp.rkt" file described at the top of the scribble/lp docs and require it "in the normal manner", the identifier f is unbound for me. The code I'm using is pasted below: ;; lp.rkt #lang scribble/lp Literate programs