/** * Convert a rule to RPN. This is the only public entry point. * * @param string $rule The rule to convert * @return string The RPN representation of the rule */ public static function convert($rule) { $parser = new self($rule); return $parser->doConvert(); }