[plt-scheme] s-exp and custom reader

From: YC (yinso.chen at gmail.com)
Date: Mon Jul 14 17:27:18 EDT 2008

On Mon, Jul 14, 2008 at 1:50 PM, Sam TH <samth at ccs.neu.edu> wrote:

> It should be fairly easy to write a language like `s-exp' but where
> the reader and the language are both specified.  Invocations would
> look something like this:
> #lang custom (lib "my-reader.ss") (lib "my-lang.ss")
> ..code goes here..

Agreed - it should be fairly straight forward. But as `#lang` cannot
take a `(planet
...)` module spec - the language custom will have to be built-in instead of
user supplied, otherwise anyone doing this will have to manually copy the
custom lib to collects-dir with each upgrade.

These solutions came about because of the restrictions placed on `#lang`.
Are there technical difficulties for `#lang` to handle `(planet ...)`?

The nice thing of `#lang` versus `#reader` is of course that `#lang` denotes
the use of a language...

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080714/85f475a2/attachment.html>

Posted on the users mailing list.