On 4/5/07, Mark Voortman <[EMAIL PROTECTED]> wrote:
Hello,
Is it possible to compile the syntax-case egg into a statically linked
executable? If yes, how? If no, is there any chance this will be possible
in the near future?
I assume you want to use the expander stand-alone, right?
Fetch the syntax-case egg, untar it and run:
% csi -s psyntax-bootstrap.scm
% csc syntax-case.scm -c -static -v -unit syntax-case
% cat x.scm
(declare (uses syntax-case utils))
(port-for-each
(lambda (x)
(pp (sc-expand x)))
read)
% csc x.scm -static-libs syntax-case.o -o x
% x
123
'123
(let loop ()(loop))
((let ((g1334 (##core#undefined)))
(begin (##core#set! g1334 (lambda () (g1334))) g1334)))
Note that this only supports standard syntax. To use chicken-specific
syntax, do a
(load "syntax-case-chicken-macros.scm")
in your code (the syntax-case egg doesn't support compiled expanders).
Hope this helps.
cheers,
felix
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users