comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.s.sandberg@bahnhof.se>
Subject: Re: Easiest way to use redular expressions?
Date: Mon, 28 Dec 2020 09:01:48 +0100	[thread overview]
Message-ID: <MhgGH.870503$kmNf.351700@fx04.ams1> (raw)
In-Reply-To: <59d6ed44-f4dd-4375-be3b-bdcda66cff90n@googlegroups.com>

Had a small play and i would say
* pcre2
* three separate specs (Character, Wide_Character and 
Wide_Wide_Character) and since the interface is equal i would do the 
Character first and then use that one as a template generate the two others.
I got some very initial play hacks on:
   https://github.com/Ada-bindings-project/a-pcre

/P

On 27/12/2020 21:31, oliverm...@gmail.com wrote:
> 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
> 

  reply	other threads:[~2020-12-28  8:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27  8:20 Easiest way to use redular expressions? reinert
2020-12-27  8:36 ` J-P. Rosen
2020-12-27 11:14   ` Emmanuel Briot
2020-12-27 20:31     ` oliverm...@gmail.com
2020-12-28  8:01       ` Per Sandberg [this message]
2020-12-28 13:58         ` Maxim Reznik
2020-12-28 21:07 ` Jeffrey R. Carter
2020-12-31 10:29   ` reinert
2021-01-05  1:31 ` Shark8
2021-01-05  9:27   ` Dmitry A. Kazakov
2021-01-05 10:46     ` Paul Rubin
2021-01-05 11:20       ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox