LeXer is a project mainly written in PHP, it's free.
An early implementation of a Lexer that recognizes a Boolean Expression Language