Cross-platform boolean expression parser and interpreter