Re: [Chicken-users] set-finalizer! and cons

2006-01-23 Thread felix winkelmann
On 1/23/06, Zbigniew [EMAIL PROTECTED] wrote: Sorry if I'm being dense---why does it need to release any finalizers at all, if the pending buffer is totally empty? I thought the size of the pending buffer was the issue here. It's me who is dense, I guess - even if the pending buffer is empty

[Chicken-users] Compiling Chicken with Watcom

2006-01-23 Thread Sergey Khorev
Finally I've figured out the main showstopper to get Chicken compiled by Watcom (at least at the moment). To be precise, chicken.exe and chicken-static.exe can be compiled but they don't work :) The problem is in the default Watcom calling convention (it's similar to MSVC's __fastcall): it

[Chicken-users] LALR parser examples

2006-01-23 Thread Joel Reymont
Folks, I'm looking for LALR (egg) parser examples. Can you share any? An example of using a lexer like Silex (egg) with LALR would be most helpful. I'm trying to build a parser for a Pascal-like language but have trouble with a few things. For example: (require 'lalr) (define parser

RE: [Chicken-users] LALR parser examples

2006-01-23 Thread Dominique Boucher
Hi Joel! I'm looking for LALR (egg) parser examples. Can you share any? An example of using a lexer like Silex (egg) with LALR would be most helpful. See below: (require 'lalr) (define parser (lalr-parser ;; terminal symbols (ABOVE AGO ALERT AND ARRAY ARRAY-NUMERIC

RE: [Chicken-users] LALR parser examples

2006-01-23 Thread Thomas Chust
On Mon, 23 Jan 2006, Dominique Boucher wrote: [...] How do I quote the parens and brackets above and use them later? Is that even possible without renaming them to L-BRACKET, etc.? Terminals can only be denoted by Scheme symbols. So yes, you'll have to rename all special characters to

Re: [Chicken-users] set-finalizer! and cons

2006-01-23 Thread Zbigniew
For what it's worth, attached is a quick and dirty patch to resize the pending finalizer buffer upward dynamically. Not being an expert in Chicken internals, I'm sure there are subtleties I overlooked. Example run: 5600 finalizers, normally takes 27 seconds and 3575 major GCs (at -:f2048), and

RE: [Chicken-users] LALR parser examples

2006-01-23 Thread Dominique Boucher
Terminals can only be denoted by Scheme symbols. So yes, you'll have to rename all special characters to LBRACKET, RBRACKET, SEMICOLON, etc. [...] Hello, if the terminals are symbols, couldn't you use symbol quoting syntax then, like |\[|, |\]|, ... ? Of course! But I much

Re: [Chicken-users] objc egg v0.4

2006-01-23 Thread Kon Lovett
No, I do not support a chg. I was just thinking of the text form abbreviation of Objective-C. Your right, obj-c:class-name is more confusing. Best Wishes, Kon On Jan 21, 2006, at 12:21 PM, Zbigniew wrote: On 1/21/06, Kon Lovett [EMAIL PROTECTED] wrote: objc:box/unbox instead of

[Chicken-users] Re: Documentation error for stack.egg for chicken

2006-01-23 Thread Kon Lovett
No. You are correct. Best Wishes, Kon On Jan 21, 2006, at 2:18 PM, Toby Butzon wrote: Hi, I haven't tried your stack.egg, so please correct me if I'm wrong, but I noticed in the description it says it implements FIFO queue (stack) operations on this page:

Re: [Chicken-users] Compiling Chicken with Watcom .. type errors

2006-01-23 Thread Bob McIsaac
Sergey Khorev wrote: Finally I've figured out the main showstopper to get Chicken compiled by Watcom (at least at the moment). To be precise, chicken.exe and chicken-static.exe can be compiled but they don't work :) The problem is in the default Watcom calling convention (it's similar to

Re[2]: [Chicken-users] Compiling Chicken with Watcom .. type errors

2006-01-23 Thread Sergey Khorev
BM I moved my computer away from the internet, fired up ol win98 and tried BM your program.  As expected, it compiled ok and printed garbage. BM BM Next I removed the cast from the function pointer BM proc3 p = (proc3)proc; // (proc3) cast hides error BM BM BM BM Now the problem is