3 * @author Niklas Laxström, Tim Starling
8 namespace CLDRPluralRuleParser\Converter;
10 use CLDRPluralRuleParser\Converter;
13 * Helper for Converter.
14 * An expression object, representing a region of the input string (for error
15 * messages), the RPN notation used to evaluate it, and the result type for
18 class Expression extends Fragment {
25 function __construct( Converter $parser, $type, $rpn, $pos, $length ) {
26 parent::__construct( $parser, $pos, $length );
31 public function isType( $type ) {
32 if ( $type === 'range' && ( $this->type === 'range' || $this->type === 'number' ) ) {
35 if ( $type === $this->type ) {