Regular expressions
I wonder, why so nice thing as Cocoa has nothing built in for regular expressions matching. There are various 3rd-party frameworks, and I can still use plain PCRE.
If this was Mac-only project I’d just use RegexKit framework. It looks very nice, and has rich documentation. Bad thing that it is a framework. It might be possible to build it into a shared library, but that all just increases numbers of various hacks that FOW would depend on.
Currently FOW code includes:
- base code for FOWRequest and FOWResponse classes (that would be expanded with categories later);
- FOWCGIConnectionHandler that can handle exactly one CGI request and die (FastCGI coming soon);
- FOWRequestHandler based on RegexKit, that does the main job of processing and routing FOWRequest.
I’ve decided to go with MIT license. As soon as I get some template rendering code (read: write Objective-C wrapper for CTemplate) I’ll be publishing it.
PS: the code does not currently work with Cocotron.