chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] alexpander egg bug, fix


From: felix winkelmann
Subject: Re: [Chicken-users] alexpander egg bug, fix
Date: Mon, 20 Nov 2006 21:15:40 +0100

On 11/20/06, Dan <address@hidden> wrote:
The alexpander egg's setup file marks the extension as
(syntax). It is not. The alexpander provides plain
procedures for expanding macros (which are currently
invisible). Removing the (syntax) mark fixes the
problem.

The alexpander egg is certainly syntax, should work
as intended and modifies internal expansion hooks
when loaded.


Is the author of the egg Al himself, or did someone
else just package Al's code?

I packaged it.


Another note: usage information is hidden in the
sources (see comments at top of alexpander.scm, search
for BASIC USAGE). The html file that gets installed
(as well as the one on the website) doesn't describe
the egg's interface.

It doesn't have to describe any interface, as it automatically
installs itself as the default macro-expansion mechanism.

% chicken-setup alexpander
 /usr/bin/csc -feature compiling-extension -s -O2 -d0 alexpander.scm
Warning: global variable `expand-program' is never used
 rm -fr /usr/lib/chicken/1/alexpander.so
 cp -r alexpander.so /usr/lib/chicken/1/alexpander.so
 cp -r alexpander.html /usr/lib/chicken/1/alexpander.html

* Installing documentation files in /usr/lib/chicken/1:

% csi -q
#;1> (use alexpander)
#;2> (define-syntax foo if)
#;3> (if #t 1)
1
#;4>
% cat foo.scm
(define-syntax foo if)
(if #t (print "ok"))% csc -R alexpander foo.scm
% foo
ok
%

Something must be wrong with your installation.


cheers,
felix

--
http://galinha.ucpel.tche.br:8081/blog/blog.ssp




reply via email to

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