[racket] Help: Scribble does not see readtable extensions when loading a module

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Jun 27 17:07:37 EDT 2011

About a minute ago, Carl Eastlund wrote:
> On Mon, Jun 27, 2011 at 4:43 PM, Eli Barzilay <eli at barzilay.org> wrote:
> > An hour ago, Carl Eastlund wrote:
> >> This probably requires a new language implementation similar to
> >> #lang s-exp that specifies the reader but allows you to specify any
> >> language bindings, in this case scribble/manual.
> >
> > IIUC, this part is equivalent to just using `#reader' before the
> > `#lang' line.
> [shuffled]
> I thought #lang s-exp worked by using the subsequent term as a
> module path for bindings only, not a reader path.

It does.

> Is it?  Doesn't #lang set up its own reader that might override the
> previous #reader?

The `#lang' reader can override the previous one, but good readers
won't.  Remember the way to get scribble syntax before `at-exp':

  #reader scribble/reader
  #lang racket

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

Posted on the users mailing list.