Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net