[LLVMdev] Regular Expressions
Sandeep Patel
deeppatel1987 at gmail.com
Tue Jun 9 12:12:50 PDT 2009
On Tue, Jun 9, 2009 at 12:00 PM, David Greene<dag at cray.com> wrote:
> On Tuesday 09 June 2009 04:35, Török Edwin wrote:
>> On 2009-06-09 12:27, Howard Su wrote:
>> > This change break the MSVC build since no regex by default in Windows
>> > MSVC platform.
>>
>> Perhaps we should add a regex implementation to lib/System?
>
> That's potentially a lot of work. I started looking at it and it would
> involve hiding the OpenBSD library under some other lib/System facade.
> Designing that facade takes time and we probably won't get it right
> the first or second time.
>
> Another option is to just provide the OpenBSD regex code as an optional
> library that gets compiled and linked for MSVC systems. I'm not at all
> familiar with MSVC build procedures so I don't know how involved that is.
>
> The advantage to the second approach is that we keep the POSIX interfaces
> in the rest of the LLVM code, we don't have to design another set of
> interfaces and we just use the OpenBSD library when we have to.
<http://www.laurikari.net/tre/> looks somewhat promising as a
POSIX-compatible regex library with a suitable license.
deep
More information about the llvm-dev
mailing list