public function _whileStmt() { $this->parser->match(Tag::T_WHILE); $condition = $this->_expr(); $body = iterator_to_array($this->_innerStmtList()); $this->parser->match(Tag::T_END); return new WhileStmt($condition, $body); }