lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Everyone

I am using LPEG patterns in a project I am working on.

I was thinking about creating nick names for all the patterns I was planning on using and putting them in a table.

For instance, a simple example from PIL, patterns.anyWord = "%a+"

Wouldn't the overhead of creating a table of let's say 100 or so of these patterns be minimal? People could just copy and paste the table into their code and use the nick name instead of the pattern itself. I could find quite a few patterns on the wiki and once I posted the table back to the wiki others could add to it?

-Patrick