🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59777

Re: [slrn] possible to use 'or' expression in s-lang regular expression?

#59777
From: Thomas Schultz
Date: Wed, 29 Mar 2000 00:00
36 lines
2787 bytes
On 28 March 2000 at 17:03 GMT, John E. Davis <davis@space.mit.edu> wrote:
[...]
> If you want to send me patches to that allow one to use, say pcre,
> instead of slang regular expressions, then I will integrate those
> patches because it is a no-brainer.  Of course such patches must
> include changes to Makefile.in, configure.in, etc.

I am willing to write such a patch; however, I might not find time for
it until my exams are over (17th of May). If someone else wants to
give it a try, please drop me a note so that no duplicate work is done.

[...]
> In fact, I would be highly surprised if you were able to patch the
> slang library with a different RE library and still keep a portable
> interface. [...]

I think I see your point. It would not be possible to write portable
programs using slang if the behavior of SLang_regexp_match et al.
depended on a compile-time option of slang. Then, what about having
_additional_ RegExp functions in slang which encapsulate pcre (or
similar packages) where available and use the native slang routines
otherwise?

When full portability is needed, developers could use slang RegExps.
An example of this in slrn would be the parsing of error messages from
the newsserver. In other situations, developers could chose to let
users work with whichever syntax they are more accustomed to. An
example of this would be the scorefile functions in slrn which could
use the new, customizable RegExp functions in slang.

Having such functions in slang would spare us the job of encapsulating
pcre in every single application that might want to use it.
-- 
Thomas Schultz <tststs@gmx.de>

Technical Details
Message-ID: <slrn8e41bp.12i.tststs@starflower.tststs.ddns.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn8dpjcj.9s1._hate_spam_thunder7@middle.of.nowhere> <slrn8dq0rs.h84.bluemoon@ux6.cso.uiuc.edu> <slrn8dqcuf.i6u.tststs@starflower.tststs.ddns.org> <slrn8dr094.9lh.davis@aluche.mit.edu> <slrn8dr2gg.4fi.thorfinn@netizen.com.au> <slrn8dsavg.l3l.tststs@starflower.tststs.ddns.org> <slrn8dsfk7.aud.davis@aluche.mit.edu> <slrn8e1gfk.9m.tststs@starflower.tststs.ddns.org> <slrn8e1pff.gpt.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8e41bp.12i.tststs@starflower.tststs.ddns.org>
Subject: Re: [slrn] possible to use 'or' expression in s-lang regular expression?
Date: Wed, 29 Mar 2000 00:00:00 +0000
From: tststs@gmx.de (Thomas Schultz)
References: <slrn8dpjcj.9s1._hate_spam_thunder7@middle.of.nowhere> <slrn8dq0rs.h84.bluemoon@ux6.cso.uiuc.edu> <slrn8dqcuf.i6u.tststs@starflower.tststs.ddns.org> <slrn8dr094.9lh.davis@aluche.mit.edu> <slrn8dr2gg.4fi.thorfinn@netizen.com.au> <slrn8dsavg.l3l.tststs@starflower.tststs.ddns.org> <slrn8dsfk7.aud.davis@aluche.mit.edu> <slrn8e1gfk.9m.tststs@starflower.tststs.ddns.org> <slrn8e1pff.gpt.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 603864624
X-Server-Date: 29 Mar 2000 14:12:20 GMT
X-Complaints-To: abuse@cityweb.de
Organization: Pinguin online.
User-Agent: slrn/0.9.6.2+ (Linux)
NNTP-Posting-Date: 29 Mar 2000 14:17:25 GMT
Newsgroups: news.software.readers