[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Per-module reader, take #2

From: Kevin Ryde
Subject: Re: [PATCH] Per-module reader, take #2
Date: Thu, 20 Oct 2005 11:22:46 +1000
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Neil Jerram <address@hidden> writes:
> 1. A way to say "change the reader to XXX for the rest of this file".

I think that may be possible already using current-load-port.
Something like

        (define-module (foo bar)

where `my-zany-reader' reads and parses from current-load-port and
does whatever with the results, like make new defines presumably.

This could be used for the entire rest of the file, or stop at some
point like a "here-document" perhaps.

Wouldn't be compiler-friendly, but I wouldn't worry about that until
there's an actual compiler to be friendly with :-).

> 2. A way to say "load FILE using reader XXX".

`load' is pretty simple, isn't it?  One can make a new open/read/eval
without too much trouble.  I guess there's bits like path searching
and current module saving.  Maybe they only need to be better
documented though.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]