Factor(); while ($this->_isNextToken('*') || $this->_isNextToken('/')) { if ($this->_isNextToken('*')) { $this->_parser->match('*'); } else { $this->_parser->match('/'); } $this->Factor(); } } }