Lisp HUG Maillist Archive

Re: stack overflow with regular expressions

Well, I never could get things working correctly with pregexp, but have 
happily switched to Edi Weitz's CL-PPCRE library and its working fine.

Thanks for all your help and to Edi for his "shameless self-plug".

larry

>From: Edi Weitz <edi@agharta.de>
>Reply-To: Edi Weitz <edi@agharta.de>
>To: "Larry White" <ljw1001@hotmail.com>
>CC: lisp-hug@xanalys.com
>Subject: Re: stack overflow with regular expressions
>Date: 01 Jul 2003 21:05:52 +0200
>
>"Larry White" <ljw1001@hotmail.com> writes:
>
> > When i try to use the pregexp regular expression library with
> > Lispworks Personal Edition 4.2.0 for anything other than trivial
> > matches, I get an error, either "Stack overflow (stack size 16000)"
> > or "recursive stack overflow".  The same code works fine in CLISP.
> >
> > Can someone tell me:
> > (1) whether or not i'm doing something wrong
> > (2) if this is a limitation of Lispworks
> > (3) if its a limitation of the personal edition
> > (4) if there is anything I can do about it?
>
>You might be able to extend the stack, see
>
>   
><http://www1.xanalys.com/support/lisp/kbase.nsf/51fe6e1cdfe748a180256639005a2ba9/f35acd8100dfd9ba8525670b0074a8d6?OpenDocument>
>
>for an explanation. Don't know if this works with the Personal
>Edition, though.
>
>However, as you might know, pregexp is a CL program that was
>auto-generated from a Scheme program and thus relies on tail-call
>optimization (or whatever they call it nowadays). Maybe you'll have
>more luck with "real" Common Lisp regex libraries like the one from
>Michael Parker or (shameless self-plug) CL-PPCRE. See
>
>   <http://www.cliki.net/Regular%20Expression>
>
>Good luck,
>Edi.
>

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


Updated at: 2020-12-10 09:00 UTC