Re: IMCC Reentarancy

2006-07-18 Thread Audrey Tang
Vishal, 在 2006/7/16 下午 11:57 時,Vishal Soni 寫到: a. Remove flex and implement re2c b. Remove static and global variables Now that the flex part is done, are you still willing to help removing the remaining static/global state? Apart from this we also need to refactor the code to get

Re: IMCC Reentarancy

2006-07-17 Thread Audrey Tang
在 2006/7/17 下午 3:41 時,Joshua Hoblitt 寫到: 4th Option: fix flex. ;) Turns out flex 2.5.30+ has a reentrant mode. However, it also has an incompatible API with earlier flex, even in non-reentrant mode. I've attached a patch under http:// rt.perl.org/rt3//Public/Bug/Display.html?id=34669 (ne

Re: IMCC Reentarancy

2006-07-17 Thread Sam Phillips
On 17 Jul 2006, at 05:22, Audrey Tang wrote: 在 2006/7/16 下午 11:57 時,Vishal Soni 寫到: I think that the lemon+re2c, being the more modern parsing tools, will make refactoring/hacking considerably easier. For future reference Ragel is definitely worth a look too: http://www.cs.queensu.ca/~th

Re: IMCC Reentarancy

2006-07-17 Thread Joshua Hoblitt
4th Option: fix flex. ;) -J -- On Sun, Jul 16, 2006 at 10:57:07PM -0500, Vishal Soni wrote: > Hi, > > Please disregard the previous mail. Hit the wrong shortcut key!! > > I have been working on trying to make reenterant and/or thread-safe. There > are couple of things that have come up which mi

Re: IMCC Reentarancy

2006-07-16 Thread Audrey Tang
在 2006/7/16 下午 11:57 時,Vishal Soni 寫到: a. A clean implementation rather than a prototypish implementation I think that the lemon+re2c, being the more modern parsing tools, will make refactoring/hacking considerably easier. Whilst you are converting the current IMCC implementation into

Re: IMCC Reentarancy

2006-07-16 Thread Vishal Soni
Hi, Please disregard the previous mail. Hit the wrong shortcut key!! I have been working on trying to make reenterant and/or thread-safe. There are couple of things that have come up which might make it difficult to make the existing implementation thread-safe/re-entrant. The current implementa

IMCC Reentarancy

2006-07-16 Thread Vishal Soni
Hi, I have been working on trying to make reenterant and/or thread-safe. There are couple of things that have come up which might make it difficult to make the existing implemention thread-safe/re-entrant. The current implementation is implemented using Flex and YACC. Flex implementation has li