chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Compiling w/ syntax-case


From: felix winkelmann
Subject: Re: [Chicken-users] Compiling w/ syntax-case
Date: Mon, 8 Dec 2008 09:11:44 +0100

On Mon, Dec 8, 2008 at 4:52 AM, Matt Gushee <address@hidden> wrote:
>
> But anyway, I have previously worked through various tutorials and developed
> a few simple programs w/ Chicken, and I'm now attempting to create an
> extension library for the first time. Not my original work, though--this is
> in fact a port from PLT Scheme of the 'scm-pdf' package, which in turn was
> ported to PLT from the 'cl-pdf' Common Lisp package.

Hey, cool! I'd be interested to try that out.

Now, there are basically three ways of making your code work:

1. remove the module stuff, put syntax-definitions and non-syntax definitions
  into separate files and, when using the syntax, pass "-X <syntax-defs-file>"
  to csc to make the syntax available at compile time. If you want to build
  an extensions, then do not bother with "unit" or "uses" declarations.
  A proper extension (as installed with chicken-setup) has certain options
  to make the use of syntax easier (the "syntax" and "require-at-runtime"
  setup properties, for example).

2. use syntax-case modules, but load modules that you import at compile-
  time with "-X <module>", in particular if that module exports syntax.

3. Use chicken 4 - but this doesn't provide many eggs yet, and can be
  considered experimental.

Can you send me the code? Perhaps I find some time to give it a try.


cheers,
felix




reply via email to

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