Andrew Garrett
8f9f814784
Revert to r39167. This is the last version I can find which compiles correctly.
2009-01-17 01:25:31 +00:00
River Tarnell
5e073fa2be
move include files to include/
2008-08-13 17:40:09 +00:00
River Tarnell
dac72d2d9a
- untemplatise parser and ast, force Unicode (UChar32) only
...
- set an svn:ignore
2008-08-12 14:02:33 +00:00
River Tarnell
646ffc5a78
- fray::find(fray, size_type) was broken, caused infinite recursion in count()
...
- advance last_pos in count() by the size of the matched needle
- add tests for all built-in functions
2008-08-10 21:09:54 +00:00
River Tarnell
dc5e0e67ff
fix match() prototypes for gcc 4.3.1
2008-08-10 15:19:24 +00:00
River Tarnell
6ad335fbe9
cleanup: move ast_evaluator into its own module, move expr functions from parser to affunctions
2008-08-10 04:21:28 +00:00
River Tarnell
bbf1737cc2
- convert parser to AST. while this is slower than the previous implementation, it's clearer, and more correct (lazy evaluation is supported)
...
- to compensate for the slower parser, optimised it a little
- change basic_string to fray, a refcounted immutable string
- add 'xml' tool, prints the parser tree in XML
2008-08-10 03:52:17 +00:00
River Tarnell
337d39f713
- remove utf8.{cpp,h} which are no longer used
...
- convert request (and syntax_check) to use u32expressor
2008-08-09 16:34:34 +00:00
River Tarnell
04554a30de
Unicode conversion: affunctions and filter_evaluator should be templated on character type
2008-08-09 15:07:07 +00:00
River Tarnell
305efb0961
- implement 'rlike' and 'regex' operators
...
- copyright header for all files
2008-08-08 12:35:13 +00:00
River Tarnell
ff2465007f
- remove unused isInVector
...
- move AFP stuff into its own namespace
- move utf8 and equivset into seperate modules
- parser should understand /* */ comments
2008-08-08 03:23:34 +00:00
River Tarnell
9d6e37fd51
- remove svn:executable prop from source files
2008-08-08 00:25:23 +00:00
River Tarnell
1e98809fde
- delete afparser, afutils; unused
...
- cleanups for affunctions, aftypes
2008-08-08 00:23:30 +00:00
River Tarnell
1912d62d09
- rewrote AFPData to use boost::variant (type safe, no manual memory management)
...
- rewrote parser to use boost.spirit instead of a hand-written parser
- refactored request loading into 'request' object
- added 'expr', a command-line tool to test the new parser
- some performance fixes for affunctions
2008-08-08 00:01:22 +00:00
River Tarnell
4ac7f67766
makefile: cleanups
...
affunctions: change glib to ICU (untested)
eval.cpp: remote obsolete libxml include
2008-08-07 13:57:40 +00:00
Andrew Garrett
b283904b81
AbuseFilter native parser:
...
* Revert r38187 for now:
** Introduced a memory leak.
** Used an unnecessary library. The point is taken, and this will be fixed in a few days (using glibc instead).
* Fix logic error in boolean ops.
* Integrate with the PHP abuse filter using AbuseFilterParserNative class.
* Fix memory leak.
* Fix a few miscellaneous bugs
2008-07-31 16:28:24 +00:00
Andrew Garrett
62dd7d3da7
Add native parser for AbuseFilter. Currently being made into a PHP extension. Also some PLURAL stuff that somehow wasn't committed previously
2008-07-29 11:03:26 +00:00