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, and that LPEG contains a module that is able to parse regular expression syntax into LPEG. Given those basics, do people see major stumbling blocks for implementing a mostly compatible \pdfmatch as LuaTeX macros? If not, I might just use \pdfmatch in my application and leave the problem of a LuaTeX based implementation for later. All the best, -- David Kastrup
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. Best wishes, Taco
Taco Hoekwater
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
participants (3)
-
Arthur Reutenauer
-
David Kastrup
-
Taco Hoekwater