private function forExpr(ForNode $parent, $terminator, $property_name, $is_last = FALSE, $terminator_name = NULL) {
    if ($this->tryMatch($terminator, $parent)) {
      $parent->addChild(new CommaListNode(), $property_name);
      return;
    }
    $parent->addChild($this->exprList(), $property_name);
    $this->mustMatch($terminator, $parent, $terminator_name, $is_last, FALSE);
  }
private function forExpr(ForNode $parent, $terminator, $property_name, $is_last = FALSE, $terminator_name = NULL) {
    if ($this->tryMatch($terminator, $parent)) {
      $parent->addChild(new CommaListNode(), $property_name);
      return;
    }
    $parent->addChild($this->exprList(), $property_name);
    $this->mustMatch($terminator, $parent, $terminator_name, $is_last, FALSE);
  }
private function forExpr ( ForNode $ parent , $ terminator , $ property_name , $ is_last = FALSE , $ terminator_name = NULL ) { if ( $ this -> tryMatch ( $ terminator , $ parent ) ) { $ parent -> addChild ( new CommaListNode ( ) , $ property_name ) ; return ; } $ parent -> addChild ( $ this -> exprList ( ) , $ property_name ) ; $ this -> mustMatch ( $ terminator , $ parent , $ terminator_name , $ is_last , FALSE ) ; }
Parse a for expression.
@param ForNode $parent Parent for node
@param int|string $terminator Token type that terminates the for expression
@param string $property_name
@param bool $is_last TRUE if last for expression
@param string $terminator_name
Parse a for expression .