[gambit-list] some help with syntax-case

Marijn Schouten (hkBst) hkBst at gentoo.org
Tue Apr 28 05:10:14 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marijn Schouten (hkBst) wrote:
> Hi,
> 
> I'm trying to construct a function that will walk all paths on a 2- or
> 3-dimensional rectangular grid and calculate their squared lengths, using macros
>  to account for the differences in dimension.
> 
> Unfortunately I do not understand syntax-case very well yet, so I'm unable to
> solve the errors that are reported. If someone could take a look at my code that
> would be much appreciated. Currently it errors with:
> 
> $ gsi -:s stripped-randomwalk -e "(main 10)"
> *** ERROR IN %%rebuild-macro-output1427, "/usr/lib64/syntax-case.scm"@9057.7 --
> encountered raw symbol + in output of macro (step)
> 
> Thanks in advance,
> 
> Marijn

I could still use some help with that program. In the mean time I noticed that
psyntax[2] (and gambit) have `syntax-object->datum' and `datum->syntax-object'
while R6RS[1] and PLT have `syntax->datum' and `datum->syntax'.

Marijn


[1]:http://www.r6rs.org/final/html/r6rs-lib/r6rs-lib-Z-H-13.html#node_sec_12.6
[2]:http://www.cs.indiana.edu/chezscheme/syntax-case/7.3/psyntax.ss

- --
If you cannot read my mind, then listen to what I say.

Marijn Schouten (hkBst), Gentoo Lisp project, Gentoo ML
<http://www.gentoo.org/proj/en/lisp/>, #gentoo-{lisp,ml} on FreeNode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn2x/YACgkQp/VmCx0OL2yvEQCgsfReb7gtzMhJt5j8TOsDKfVb
FYYAn0DyUSjPGsHa0g37Hu/YPZ80q/yL
=xrle
-----END PGP SIGNATURE-----



More information about the Gambit-list mailing list