On Mon, 28 Jan 2013 12:15:22 +0100, Stephan Beal <[email protected]>
wrote:
On Sat, Nov 24, 2012 at 3:21 PM, Richard Hipp <[email protected]> wrote:
One big problem here is that the user will doubtless expect to have full
Perl regular expressions. That will mean another compile-time
dependency.
And maybe also a run-time dependency if a shared library is used (as
most
distribution packages managers will likely require). Suddenly, Fossil
becomes much less stand-alone and self-contained.
When I get around to working on this, perhaps I'll compromise and use a
simpler Posix Extended Regular Expression library that can be compiled
in,
and thus avoid the extra dependencies.
i know this topic is a bit dated now, but this might be of interest:
https://code.google.com/p/lua-regex-standalone/
a small, standalone implementation of regexes ported out of the LUA
sources. Has a MIT license.
I'm quite sure that this is _not_ a standard regexp lib, but rather lua's
own (and somewhat different) substitute, called lua patterns, I believe.
the lua authors used to make a point of the fact, that the whole lua
implementation is smaller (in terms of LOC) than the usual regexp libs...
the syntax for lua patterns is somewhat different from regexp syntax (but
quite nice/reasonable: eg. one or more white space chars would be "%s+",
"%w" is an alphanumeric char, etc.. there are also "captures"
(backreferences to matched subpatterns), so capabilities are good,
sometimes maybe superior to standard regexp). the one thing which used to
be missing (and quite probably still is) is logical alterations (OR
combination within patterns, such as "(apple|banana)").
this is only to clarify the situation. otherwise I fully support this
proposal (since the lua patterns implementation is quite powerful and also
very light, much lighter than perl or standard regexp).
j.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users