This is a php boolean expression verifier/parser I built for a Postgres full text index search input.