[Dev-luatex] Implementing \pdfmatch via LPEG - opinions?

David Kastrup dak at gnu.org
Fri Apr 17 15:27:25 CEST 2009


Taco Hoekwater <taco at elvenkind.com> writes:

> David Kastrup wrote:
>> Hi,
>> 
>> I am pondering using \pdfmatch for some application that might
>> eventually be migrated to LuaTeX.  My scraps of half-knowledge right of
>> the top of my head indicate that LPEG is compiled into LuaTeX, 
>
> This is 100% true.
>
>> and that LPEG contains a module that is able to parse regular 
>> expression syntax into LPEG.
>
> A specific form of regular expression syntax, yes.
>
>   http://www.inf.puc-rio.br/~roberto/lpeg/re.html
>
> But I do not know whether that matches up with libc's regex routines.

Uh, no.  That's not really anything close to standard syntax.  Looks
more like a convenience interface than trying to track existing usage.
But standard syntax can probably be translated into that syntax
reasonably well using regular expressions...

Thanks for the pointer,

-- 
David Kastrup


More information about the dev-luatex mailing list