Boolean expression parser and interpreter