From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Per-module reader, take #2 Date: Thu, 20 Oct 2005 11:22:46 +1000 Message-ID: <87sluxugm1.fsf@zip.com.au> References: <87u0gp9lm3.fsf@laas.fr> <877jd3lkdq.fsf@ossau.uklinux.net> <87hdc62a6c.fsf@laas.fr> <87irw49twc.fsf@laas.fr> <87irw3prgp.fsf@ossau.uklinux.net> <8764rw7b9q.fsf_-_@laas.fr> <871x2j98qb.fsf@ossau.uklinux.net> <87u0ffnudk.fsf@laas.fr> <87sluxb0xt.fsf@ossau.uklinux.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129771465 21481 80.91.229.2 (20 Oct 2005 01:24:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Oct 2005 01:24:25 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 20 03:24:21 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESP9Y-0000Hv-Di for guile-devel@m.gmane.org; Thu, 20 Oct 2005 03:23:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESP9X-0001K7-Pn for guile-devel@m.gmane.org; Wed, 19 Oct 2005 21:23:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESP9F-00015N-3k for guile-devel@gnu.org; Wed, 19 Oct 2005 21:23:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESP9D-00013K-AR for guile-devel@gnu.org; Wed, 19 Oct 2005 21:23:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESP9C-00012n-Uz for guile-devel@gnu.org; Wed, 19 Oct 2005 21:23:11 -0400 Original-Received: from [61.8.0.115] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESP9C-0002Cd-G5 for guile-devel@gnu.org; Wed, 19 Oct 2005 21:23:11 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9K1N6Qb020109; Thu, 20 Oct 2005 11:23:06 +1000 Original-Received: from localhost (ppp2AA5.dyn.pacific.net.au [61.8.42.165]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9K1N5Tu002807; Thu, 20 Oct 2005 11:23:05 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1ESP8p-0003rV-00; Thu, 20 Oct 2005 11:22:47 +1000 Original-To: Neil Jerram Mail-Copies-To: never In-Reply-To: <87sluxb0xt.fsf@ossau.uklinux.net> (Neil Jerram's message of "Wed, 19 Oct 2005 23:23:58 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5324 Archived-At: Neil Jerram 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) ...) (my-zany-reader) 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. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel