[tex-live] texdoc in luatex

Hans Hagen pragma at wxs.nl
Tue Jun 26 22:50:44 CEST 2007

Frank Küster wrote:
> karl at freefriends.org (Karl Berry) wrote:
>>       pronounciation/spelling relations, but 'colo(u|)r' does not work (but
>> Don't Lua regexps support alternation?
> Not according to http://www.lua.org/manual/5.1/manual.html#5.4.1 ( The
> pipe symbol | matches itself).
>> (Well, I gather regexps aren't "built in" to Lua proper, but whatever
>> external thingy implements them.)
> string.foo
> Or is there something else?

a regexp library in lua would result in more code being dedicated to 
regexp than to lua itself

alternation can be done by using a loop (of a few nested loops if there 
are more alternations); pretty fast btw

there is also an experimental lpeg parser which is alpha stage and the 
interface may change but here is a good chance that something like that 
will make it into the lua core some time in the future; we decided to 
add it to luatex prematurely in orde to be able to play with it

(at tug 2005 the lua author will do a workshop on lpeg)


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl

More information about the tex-live mailing list