charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Jun 15, 2011 2:11 am
LPeg Lua Intergration (feature request?) |
I'm learning a bit more about lua simply because it broadens my bases (and makes it easier to code mprogs and whatnot on test port for Aardwolf). With that said, one of the things that Lua (as a base download) does not have is a full regex library. That can be solved with LPeg. The problem is that you need to compile the lpeg.c as a dll, otherwise you can't utilise it.
Unfortunately, I don't know how to do that myself, and I really don't even know where to begin.
However, I do know that MUSHclient automatically compiles the library, and as such, the LPeg library can be used in the regexes there. So, I'm hoping I can appeal to Zugg to include this lua add-on and have it compile at runtime with CMUD. I'd love to be able to use re.match(page, "(?:(Whatever|This too|Blink))") in a lua script... would help me out a lot |
|