From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=3.0 tests=BAYES_50,FORGED_GMAIL_RCVD, FREEMAIL_FROM,PDS_FROM_2_EMAILS autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a0c:e9c2:: with SMTP id q2mr44256030qvo.1.1609101078746; Sun, 27 Dec 2020 12:31:18 -0800 (PST) X-Received: by 2002:ad4:4b21:: with SMTP id s1mr19300822qvw.59.1609101078557; Sun, 27 Dec 2020 12:31:18 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 27 Dec 2020 12:31:18 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=79.205.30.147; posting-account=Md_OIgoAAAAkZyQ6nYoc3WBIThMpPfV7 NNTP-Posting-Host: 79.205.30.147 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <59d6ed44-f4dd-4375-be3b-bdcda66cff90n@googlegroups.com> Subject: Re: Easiest way to use redular expressions? From: "oliverm...@gmail.com" Injection-Date: Sun, 27 Dec 2020 20:31:18 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60951 List-Id: On Sunday, December 27, 2020 at 12:14:48 PM UTC+1, briot.e...@gmail.com wrote: > [...] > Nowadays, I think it would be better to write a small binding to the pcre library (which has quite a > simple API, so the binding should not be too hard). About "should not be too hard", if you mean a low level binding then I agree - given the wonders of `gcc -fdump-ada-spec`. However, IMO the low level binding is quite ugly and cumbersome to use. The tough part is to make a thick binding that is comfortable for Ada programmers. > This binding would be a nice small project for someone who wants to get started with writing > Ada bindings There are some questions attached: - Target pcre or pcre2 ? - Support all three character sizes UTF-8/16/32 ? In separate packages? Oliver