A simple boolean expression parser.