Re: [Chicken-users] syntax-case?

2011-01-29 Thread Felix
From: Joe Python jopyt...@gmail.com Subject: [Chicken-users] syntax-case? Date: Fri, 28 Jan 2011 20:29:35 -0500 Is there a egg for syntax-case macros in Chicken 4? No, there isn't, unfortunately. I once tried to implement this but it quickly gets very complicated. If you want to port syntax

[Chicken-users] syntax-case?

2011-01-28 Thread Joe Python
Is there a egg for syntax-case macros in Chicken 4? - Joe ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] syntax-case and Chicken 4.2.0

2009-11-11 Thread John Cowan
Thomas Bushnell BSG scripsit: In one sense, this is good news! The two main pieces of good news in Chicken 4 are built-in macros and built-in modules. A question: does the builtin syntax-rules accept the (... ...) syntax that Dybvig's system does? My code has some macros that expand to

Re: [Chicken-users] syntax-case and Chicken 4.2.0

2009-11-11 Thread Thomas Bushnell BSG
Further investigation shows that (according to the manual) Chicken 4 supports the superior method of srfi 46 (an extra parameter to syntax-rules which binds an identifier as the ellipsis identifier. Which led me to the second part of srfi 46, which allows parameters that live *after* an ellipsis,

Re: [Chicken-users] syntax-case and Chicken 4.2.0

2009-11-11 Thread John Cowan
Thomas Bushnell BSG scripsit: Any hope of that making it in? Is it just awaiting code to implement it? The Chicken community doesn't normally reject new code unless it breaks old code, so such a patch would most likely be welcome. -- Verbogeny is one of the pleasurettesJohn Cowan

Re: [Chicken-users] syntax-case and Chicken 4.2.0

2009-11-11 Thread Dan Liebgold
Do you know if syntax-case support is in the works? Would you recommend I stick with Chicken 3.x if I need it? (I'm test-porting an internal tool from MZScheme to Chicken to see if I can get some performance improvements, and we've taken the plunge with syntax-case enough that I don't see

[Chicken-users] syntax-case and Chicken 4.2.0

2009-11-10 Thread Dan Liebgold
I probably have something obvious wrong, but after installing the syntax-case egg in Chicken 4.2.0 I can't require it, and I can't make sense of the error: csi -R syntax-case CHICKEN (c)2008-2009 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.2.0 - SVN rev. 16023 linux-unix-gnu-x86

Re: [Chicken-users] syntax-case and Chicken 4.2.0

2009-11-10 Thread John Cowan
Dan Liebgold scripsit: I probably have something obvious wrong, but after installing the syntax-case egg in Chicken 4.2.0 I can't require it, and I can't make sense of the error: Chicken 4.x doesn't support the syntax-case egg or any other macrology egg. It now has built-in macros, and

Re: [Chicken-users] syntax-case and Chicken 4.2.0

2009-11-10 Thread Thomas Bushnell BSG
In one sense, this is good news! A question: does the builtin syntax-rules accept the (... ...) syntax that Dybvig's system does? My code has some macros that expand to macro definitions, the canonical case where nested ... is often necessary. (Or, alternatively, does it support some other

Re: [Chicken-users] Syntax-case question

2007-10-12 Thread William Ramsay
They are at the top level in this case, but they are in outer binding forms in other parts of the porogram. felix winkelmann wrote: On 10/12/07, William Ramsay [EMAIL PROTECTED] wrote: Hi, Now I'm confused.I'm writing a program that uses Gtk and Imlib2. Imlib2 requires syntax-case,

Re: [Chicken-users] Syntax-case question

2007-10-12 Thread felix winkelmann
On 10/12/07, William Ramsay [EMAIL PROTECTED] wrote: Hi, Now I'm confused.I'm writing a program that uses Gtk and Imlib2. Imlib2 requires syntax-case, but when I add syntax-case I get errors with my define statements. For instance, my program starts with: (define win-group

Re: [Chicken-users] Syntax-case question

2007-10-12 Thread felix winkelmann
On 10/12/07, William Ramsay [EMAIL PROTECTED] wrote: They are at the top level in this case, but they are in outer binding forms in other parts of the porogram. Syntax-case is, as I said, more restrictive about the placement of definitions, so for example, (let () (...something not a

Re: [Chicken-users] syntax-case and #!rest, second attempt

2007-08-27 Thread mark
First, apologies for not getting back to you. I got side-tracked. That's ok, we're all busy. :-) Zbigniew's response is what I meant by specify them as literals in every 'syntax-rules' 'syntax-case' transformer. You are correct that the 'psyntax' port for Chicken is incomplete in support

Re: [Chicken-users] syntax-case and #!rest, second attempt

2007-08-26 Thread mark
Thanks, Zbigniew. I indeed figured out the renaming of #!rest before Chicken sees it. But I didn't think of the hack and I'll give it a try soon. However, it is not a nice solution and my guess would be that the syntax-case egg should have a build in exception for the #!key and #!rest keywords, so

Re: [Chicken-users] syntax-case and #!rest, second attempt

2007-08-26 Thread Kon Lovett
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 26, 2007, at 7:16 AM, [EMAIL PROTECTED] wrote: Thanks, Zbigniew. I indeed figured out the renaming of #!rest before Chicken sees it. But I didn't think of the hack and I'll give it a try soon. However, it is not a nice solution and my guess

[Chicken-users] syntax-case and #!rest, second attempt

2007-08-25 Thread mark
Folks, Since I'm still having problems with syntax-case and rest arguments, I have devised the following example which hopefully makes my problem clear: (define-syntax test (lambda (x) (syntax-case x () ((_ (name ...) body ...) (syntax (define (name ...) body

Re: [Chicken-users] syntax-case and #!rest, second attempt

2007-08-25 Thread Zbigniew
Mark, The #!rest syntax is supported directly by Chicken and it appears the extra indirection involved in syntax-case is causing the #!rest keyword to be renamed before Chicken sees it (as you've probably surmised). I do not know an easy way to fix this offhand, although some syntax-case wizard

Re: [Chicken-users] syntax-case and #!rest

2007-08-23 Thread mark
Hey Kon, I described my problem, plus an example, in this post: http://groups.google.com/group/comp.lang.scheme/msg/19e37409eee0d7ab I'm relatively new to syntax-case. How do I explicitly specify a literal? Thanks, Mark On Aug 21, 2007, at 8:28 AM, [EMAIL PROTECTED] wrote: Folks, It

Re: [Chicken-users] syntax-case and #!rest

2007-08-22 Thread Kon Lovett
On Aug 21, 2007, at 8:28 AM, [EMAIL PROTECTED] wrote: Folks, It seems to me that syntax-case doesn't support rest arguments (and keyword arguments, for that matter). It fails to recognize #!rest as special syntax, and instead interprets it as a variable. Is there any way around this? How

[Chicken-users] syntax-case and #!rest

2007-08-21 Thread mark
Folks, It seems to me that syntax-case doesn't support rest arguments (and keyword arguments, for that matter). It fails to recognize #!rest as special syntax, and instead interprets it as a variable. Is there any way around this? Thanks, Mark ___

Re: [Chicken-users] syntax-case modules questions

2007-05-28 Thread felix winkelmann
On 5/28/07, Andreas Rottmann [EMAIL PROTECTED] wrote: What about Scheme 48's module system? FWICT, it supports batch compilation (there is a compiler for s48 packages at [0]). It's also pretty nice otherwise; you can read about it on the CSW[1] or in the Nearly complete manual [2]. Yes, I've

Re: [Chicken-users] syntax-case modules questions

2007-05-25 Thread Andreas Rottmann
felix winkelmann [EMAIL PROTECTED] writes: On 5/25/07, Andreas Rottmann [EMAIL PROTECTED] wrote: Since Chicken lacks a built-in module system, I'm playing with the syntax-case egg. I want to take an extension (say SRFI-39) and make that (or parts of it) available as a syntax-case module. It

Re: [Chicken-users] syntax-case modules questions

2007-05-25 Thread Graham Fawcett
On 5/25/07, felix winkelmann [EMAIL PROTECTED] wrote: Modules to be imported by client code should always be available in source code form: the source code is processed by the syntax-case macro expander and binding information (of normal variables and macros) is recorded. So to create an

Re: [Chicken-users] syntax-case and static executables

2007-04-05 Thread felix winkelmann
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

[Chicken-users] syntax-case and static executables

2007-04-04 Thread Mark Voortman
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? Thanks, Mark ___ Chicken-users mailing list Chicken-users@nongnu.org

[Chicken-users] syntax-case macros as extensions?

2007-03-08 Thread Raffael Cavallaro
On Mar 8, 2007, at 5:28 AM, felix winkelmann wrote: Then you have to make those macros available at _compile-time_, or the compiler will not see them. (require ...) loads code at run-time, not at compile-time. Try require-for-syntax. A somewhat related question: I have some macros that are

Re: [Chicken-users] syntax-case update?

2006-08-23 Thread felix winkelmann
On 8/12/06, Dan [EMAIL PROTECTED] wrote: OTOH, syntax-case.egg seems to be stuck in 2002 with version 6.9. Perhaps an upgrade would be beneficial? I've thought about upgrading myself, but the 6.9 psyntax expander has changed at a few places (SRFI-17 support, DSSSL lambda-lists, etc.). I had

[Chicken-users] syntax-case update?

2006-08-11 Thread Dan
Hi all, having recently learned syntax-case, I experienced the following problem: a syntax-case macro defined within a module may not call a function from the same module, i.e. (module mod (mac1) (define (f x) x) (define-syntax mac1 (lambda (syn) (syntax-case syn ()

Fwd: [Chicken-users] syntax-case on mac osx

2006-01-29 Thread Ashish Shrestha
Sending a copy to the mailing list too. Forgot to cc!-- Forwarded message --From: Ashish Shrestha [EMAIL PROTECTED]Date: Jan 29, 2006 12:16 AMSubject: Re: [Chicken-users] syntax-case on mac osxTo: felix winkelmann [EMAIL PROTECTED]asterix:~/Desktop ashishshrestha$ csi -v

Re: [Chicken-users] syntax-case on mac osx

2006-01-29 Thread felix winkelmann
On 1/25/06, Kon Lovett [EMAIL PROTECTED] wrote: Yes. Current Chicken (2.224) will crash w/ a protection fault when compiling syntax-case.scm, also just loops when compiling csc.scm. I have spent nearly a day trying to reproduce this problem - to no avail. Could anybody who experiences this

Re: [Chicken-users] syntax-case on mac osx

2006-01-29 Thread Ashish Shrestha
+ libtoolize --force --copy --automakeautogen.sh: line 3: libtoolize: command not found+ aclocal+ autoheader+ automake --foreign -a --copyconfigure.in: installing `./install-sh' configure.in: installing `./mkinstalldirs'configure.in: installing `./missing'configure.in:11: installing

Re: [Chicken-users] syntax-case on mac osx

2006-01-29 Thread Thomas Chust
On Mon, 30 Jan 2006, AshishShrestha wrote: + libtoolize --force --copy --automake autogen.sh: line 3: libtoolize: command not found [...] This is the output of autogen.sh. Where do I get libtoolize? [...] On 1/29/06, Kon Lovett [EMAIL PROTECTED] wrote: make w/ MacOS X is gmake, just use

Re: [Chicken-users] syntax-case on mac osx

2006-01-25 Thread Kon Lovett
Yes. Current Chicken (2.224) will crash w/ a protection fault when compiling syntax-case.scm, also just loops when compiling csc.scm. I have not investigated. Best Wishes, Kon On Jan 25, 2006, at 11:15 AM, Joel Reymont wrote: Has anyone tried the latest syntax-case on Mac OSX? It does

Re: [Chicken-users] syntax-case on mac osx

2006-01-25 Thread Kon Lovett
The '-s' parameter is the problem. (-dynamic) Best Wishes, Kon On Jan 25, 2006, at 1:09 PM, Ashish Shrestha wrote: I have recently installed syntax-case on mac os x with gcc 4. i just went into the directory syntax-case.egg.dir and ran the 'csc' without all the extra parameters. this

Re: [Chicken-users] syntax-case on mac os x [reposted]

2006-01-22 Thread Zbigniew
Your other message came through. I was able to compile syntax case on 10.4.4 without a problem (and I can't figure out what exit code 10 is). Perhaps run the chicken command (not chicken-setup, but the failing invocation of chicken) by hand, removing -quiet and adding -verbose instead. On

Re: [Chicken-users] syntax-case on mac os x [reposted]

2006-01-22 Thread Ashish Shrestha
Thank you for the suggestion.Running csc with -verbose (-v2) seems to stop with the message 'Pass canonicalised.' However, running 'chicken' manually does generate syntax-case.c and I was able to use it to install syntax-case. Verified with (require-extension syntax-case) Don't really understand

Re: [Chicken-users] syntax-case on mac os x [reposted]

2006-01-22 Thread Ashish Shrestha
I am using chicken version 2 build 2 and yes i think it is bus error. Don't remember what parameter I passed, I think on of the debug level thing and I did see it print Bus Error.Ashish On 1/23/06, felix winkelmann [EMAIL PROTECTED] wrote: On 1/22/06, Ashish Shrestha [EMAIL PROTECTED] wrote: Thank

[Chicken-users] syntax-case on mac os x

2006-01-21 Thread Ashish Shrestha
Hello once again,I am writing a short script to scale images using imlib2. imlib2.egg requires the syntax-case to be installed. I have successfully installed syntax-case and imlib2.egg on Windows (cygwin) and Linux. However, installing syntax-case on Mac OS X ( 10.4.4) fails.---bootstrapping

[Chicken-users] syntax-case Egg license

2005-10-06 Thread Brandon J. Van Every
The syntax-case Egg available at http://www.call-with-current-continuation.org/eggs/index.html#lang-exts says its license is Unknown. However, the web entry http://www.call-with-current-continuation.org/eggs/syntax-case.html has an essentially MIT license at the bottom of it. Cheers,