OK, I think I've figured it out.
In the calling code (calc.scm), I have to do something like:
(cond-expand
(compiling (declare (uses calc-yy)))
(else (load "calc-yy.scm")))
In compiling, I have to do:
csc -unit calc-yy -c calc-yy.scm
csc calc.scm calc-yy.o
That seem to work.
I have code where I 'include' other files. Suppose I compile that file.
As part of execution, it will try to load those other files, which isn't
what I want.
Is there a way of telling chicken that during the interpretation or
compilation, the file should be loaded, but during execution, don't
On 15/08/18 16:25, Christian Kellermann wrote:
Does this help?
Thanks, it helps.
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users
On 10/08/18 23:08, David Ireland wrote:
Can you show us the code you wrote?
I'm thinking the problem has something to do with low-level-macros.
I was really just looking for 'define-syntax-rule'. I managed to write
my own version:
(define-syntax define-syntax-rule
(syntax-rules ()
I'm new to Scheme. I wrote a little program: cacc.scm.
When I type
csi cacc.scm
the program runs successfully. However, when I try to compile it:
csc cacc.scm
it prints out the following errors:
Error: during expansion of (dbind322 ...) - unbound variable:
Is this a bug in chicken?
(rational? 6/10) = #f
Also
(* 1.0 5/2)
produces
Error: (*) bad argument type: 5/2
Call history:
syntax (* 1.0 5/2)
eval(* 1.0 5/2)
CHICKEN
(c)2008-2011 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version
If I want to reproduce this, do I need to type in anything else?
It doesn't happen here.
After some experimenting, the statistics eggs seems to introduce some
peculiarity. Here's a session:
--
#;1 (* 1.0 5/2)
Warning: cannot
Here's one for your mystery file:
foo.scm:
(use bindings)
(bind (a b c) '(1 2 3)
(print a))
(write-line Finished)
$ csj -bq foo.scm
1
Finished
BUT:
$ csc foo.scm
Error: [internal compiler error] type of literal not supported: #procedure
Call
Is there a way I can use a file in the current directory?
Here's what I'm trying to achieve: I want to be able to use some functionality
interactively in the interpreter, but also create an executable. In the
executable, I will probably do some command-line argument parsing, and
automatically
Christian Kellermann ck...@pestilenz.org
http://api.call-cc.org/doc/chicken/special-forms/cond-expand
Check for the 'csi feature to see whether you are running in the
interpreter.
Does this help then?
Very much so! Thanks for your help.
___
Christian Kellermann ck...@pestilenz.org
* Mark Carter mcar...@markcarter.me.uk [120316 14:45]:
chicken-install combinators
An attempt to use the egg fails:
Error: (import) during expansion of (import ...) - cannot import from
The egg is named combinators, but there is no such module
Doing
chicken-install combinators
causes a number of complaints:
Warning: obsolete compiler option: -lambda-lift
Note: type-definition `left-section' for toplevel binding `deprecated'
conflicts with previously loaded type `(procedure ((procedure (#!rest) *)
#!rest) (procedure (#!rest) *))'
I'm getting a segfault with srfi-34:
$ csi
CHICKEN
(c)2008-2011 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.7.0.5-st
linux-unix-gnu-x86 [ manyargs dload ptables ]
compiled 2012-03-07 on miro (Linux)
#;1 (use srfi-34)
; loading
chicken-doc looks like a useful feature, but how should I document my
eggs to use it? The eggdoc egg says not to document eggs using
eggdoc anymore, but to use the chicken wiki. My egg (well actually, it's
just a module made into an extension) just resides in a directory,
however. Does that
I'm trying to put some functions into a module, but I'm having
difficulties. Everything seems to work when I use csi - putting it into a
module causes errors. Here's the specific errors I am encountering:
Warning: reference to possibly unbound identifier `read-lines' in:
Warning:
Christian Kellermann ck...@pestilenz.org
Thanks for noticing this!
I'm not sure if I in some way corrupted my install of chicken, but I
removed the Debian version of chicken and obtained
4.7.0.5-st.tar.gz
from
http://wiki.call-cc.org/stability
That seems to have fixed my
---BeginMessage---
Christian Kellermann ck...@pestilenz.org
Which information would you've liked to have before stumbling on
all of this? Maybe that would be a good place to start the
improvements,
It's difficult to say. I'm in no way saying it's the document's fault, but as
a newbie to
There seems to be a problem with srfi 47
root@miro:~# chicken-install srfi-47
retrieving ...
resolving alias `kitten-technologies' to: http://chicken.kitten-
technologies.co.uk/henrietta.cgi
connecting to host chicken.kitten-technologies.co.uk, port 80 ...
requesting
I'm a bit confused about how to create extensions. I have the following
files in an mccsl directory:
mccsl.setup:
(compile -s mccsl.scm)
(install-extension 'mccsl mccsl.so)
mccsl.scm:
(module
mccsl ( define-simple-syntax)
(import scheme)
... ;; lots of definitions
)
I have managed to
Christian Kellermann ck...@pestilenz.org
* Mark Carter mcar...@markcarter.me.uk [120306 17:07]:
Warning: extension `srfi-47' has no .meta file - assuming it has no
Why are you needing this srfi?
I want to create a matrix, and populate it. I have a list of triplets
consisting of a row number
John Cowan co...@mercury.ccil.org
SRFI-63 is definitely your friend.
Thanks. I've converted my code to use that SRFI.
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users
Mario Domenech Goulart mario.goul...@gmail.com
Maybe this document can be useful:
http://wiki.call-cc.org/eggs%20tutorial
OK, after many chicken sacrifices (strangely appropriate somehow), I was
able to build my extension and load it. Just one comment: I think there is
a doc fix needed at
Here's my attempt to build chicken on cygwin:
git clone http://chicken.wiki.br/git/chicken-core.git
commit
c95dc5f62be34284716025ddb0d5e5431566c24f
Author: felix
fe...@call-with-current-continuation.org
Date: Thu Mar 18 12:01:06 2010 +0100
cd chicken-core
mmake='make
PLATFORM=cygwin
Sorry guys.
In my recent report, I mentioned about not being able to bootstrap. I didn't
read the README :( I'm supposed to obtain a bootstrapper from
http://chicken.wiki.br/chicken-projects/bootstrap/
Unfortunately, there isn't one available for cygwin. I guess it's a case of ...
wait for it
I seem to be able to get chicken to install and run OK on MSYS (includes MINGW,
naturally). Here's the steps I followed:
Open up a MSYS shell
git clone http://chicken.wiki.br/git/chicken-core.git
cd chicken-core
make PLATFORM=mingw-msys confclean
mmake='make PLATFORM=mingw-msys
The following is an installation report of attempting to compile
chicken from git using mingw-msys on 17-Mar-2010. The topmost entry in
the git log is:
commit 590e58d9cfaed30d1b79abcc8bab4c13b80691ce
Author: felix fe...@call-with-current-continuation.org
Date: Fri Mar 12 07:51:21 2010
For those who would prefer to read the Silex docs as a PDF rather than PS, I
have performed a conversion and made it available from my site at:
http://www.zen113241.zen.co.uk/
The direct link is:
http://www.zen113241.zen.co.uk/silex.pdf
___
Hi,
Felix asked me to try compiling the latest version of chicken from git. I am
happy to announce that it all goes very well - expect for the command
chicken-install - which seems to be a Win7/Vista problem. Here's a more
detailed report of what I did:
I installed a fresh copy of cygwin -
- Original Message
From: John Cowan co...@ccil.org
http://www.mail-archive.com/libtool-patc...@gnu.org/msg04773.html
It seems there's two approaches: embedding the manifest inside the executable,
or adding a file alongside the executable. I added chicken-install.exe.manifest
Hi, I'm a n00b to scheme, and I thought I'd check out Chicken. I tried to get
the readline egg installed, which is dependent on easyffi. I installed the
easyffi egg, but if I type
foreign-parse
I get the response
Error: unbound variable: foreign-parse
All the other easyffi procedures
30 matches
Mail list logo