[plt-scheme] slatex and including unit testable code

From: Grant Rettke (grettke at acm.org)
Date: Wed May 16 09:49:46 EDT 2007

On 5/16/07, Robby Findler <robby at cs.uchicago.edu> wrote:
> On 5/15/07, Grant Rettke <grettke at acm.org> wrote:
> > On 5/15/07, Robby Findler <robby at cs.uchicago.edu> wrote:
> > > Slatex lets you include code directly from a file, but I find that I
> > > often end up writing scripts that chop up my Scheme file in order to
> > > insert it into a slatex document.
> >
> > How do you go about chopping up your files, by line number range, or
> > procedure name?
> >
>
> Depends, but a way that works well is to have a comment that says
> "START CHOPPING HERE" and another one that says "STOP". Usually, I'll
> put a filename into the first comment. To read them out, I use regexp
> matchign directly on the port.
>
> Its a hack, but sometimes useful.

That hack sounds like it may be a better use of time than hacking the
parser to be able to extract definitions by name, though!


Posted on the users mailing list.