[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: pattern nick name table, would it be handy?
- From: "Patrick Mc(avery" <spell_gooder_now@...>
- Date: Tue, 31 May 2011 07:29:30 -0400
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?