[gambit-list] how to get syntax-case to work
Marc Feeley
feeley at iro.umontreal.ca
Sat Apr 7 00:58:55 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6-Apr-07, at 9:48 PM, dillo gimp wrote:
> someone give an example on how to get syntax-case to work with the
> gsi compiler. (the command line options)
% gsi
Gambit Version 4.0 beta 22
> (load "~~/syntax-case")
"/Users/feeley/Gambit-C/4.0b22/syntax-case.scm"
> (define n 100)
> (define-syntax foo (syntax-rules () ((foo x) (list 'x '= x))))
> (foo n)
(n = 100)
or
% gsi ~~/syntax-case -
> (define n 100)
> (define-syntax foo (syntax-rules () ((foo x) (list 'x '= x))))
> (foo n)
(n = 100)
Marc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFGFyUP//V9Zc2T/v4RAoHfAJ4mOTyGRaaEtRoZhoVMc3VAkRAPFwCfYfaV
Pv2HbPTh3cykUcIFUoCP1o8=
=mN9d
-----END PGP SIGNATURE-----
More information about the Gambit-list
mailing list