[Rio-pm] :engine::TRE

Aureliano Guedes guedes_1000 em hotmail.com
Quarta Julho 4 12:18:26 PDT 2012


hahaha... resolveu resover....

Mas otimo, darei uma olhada depois.

ABS.

From: creaktive em gmail.com
Date: Wed, 4 Jul 2012 16:01:18 -0300
To: saopaulo-pm em mail.pm.org; rio-pm em pm.org
Subject: Re: [Rio-pm] :engine::TRE

A quem interessar, duas notícias.A boa é que o re::engine::TRE foi desenterrado e ressuscitado: https://metacpan.org/module/re::engine::TRE

A ruim é que o coveiro e o Dr. Frankenstein na mesma pessoa "soy jo".


ABS()




On Thu, Jun 28, 2012 at 6:20 PM, Stanislaw Pusep <creaktive em gmail.com> wrote:



Perlssoal, esses dias me deparei com a biblioteca TRE (http://laurikari.net/tre/about/):




TRE is a lightweight, robust, and efficient POSIX compliant regexp matching library with some exciting features such as approximate (fuzzy) matching.
Um dos exemplos de aplicação prática dela é o utilitário 'agrep' (approximate grep).



Obviamente, tentei compilar a interface para Perl (https://github.com/avar/re-engine-tre). Porém esse módulo não está no CPAN, e me parece bastante desatualizado.



De fato, não compila. retorna erros como:
cc -c  -Itre -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC "-I/home/stas/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux/CORE"   TRE.c



In file included from TRE.xs:7:0:TRE.h:22:5: warning: initialization from incompatible pointer type [enabled by default]TRE.h:22:5: warning: (near initialization for ‘engine_tre.comp’) [enabled by default]



TRE.xs: In function ‘TRE_comp’:TRE.xs:42:7: error: ‘REGEXP’ has no member named ‘refcnt’TRE.xs:43:7: error: ‘REGEXP’ has no member named ‘extflags’TRE.xs:44:7: error: ‘REGEXP’ has no member named ‘engine’



TRE.xs:47:7: error: ‘REGEXP’ has no member named ‘prelen’...
Analisando outros módulos do namespace re::engine::* (RE2, PCRE, Plan9), percebi que a struct REGEXP em questão é recorrente. Aliás, re::engine::Plan9 não compila por causa do mesmo erro.



E, infelizmente, o nome REGEXP é ambíguo demais para googlar :(Alguém faz alguma ideia do que esteja acontecendo?
ABS()





_______________________________________________
Rio-pm mailing list
Rio-pm em pm.org
http://mail.pm.org/mailman/listinfo/rio-pm 		 	   		  
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/rio-pm/attachments/20120704/9c780f26/attachment.html>


Mais detalhes sobre a lista de discussão Rio-pm