You are here

function PHPExcel_Writer_Excel5_Parser::_term in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php \PHPExcel_Writer_Excel5_Parser::_term()

* It parses a term. It assumes the following rule: * Term -> Fact [("*" | "/") Fact] * * @access private *

Return value

mixed The parsed ptg'd tree on success

1 call to PHPExcel_Writer_Excel5_Parser::_term()
PHPExcel_Writer_Excel5_Parser::_expression in vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php
* It parses a expression. It assumes the following rule: * Expr -> Term [("+" | "-") Term] * -> "string" * -> "-" Term : Negative value * -> "+" Term : Positive…

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Parser.php, line 1339

Class

PHPExcel_Writer_Excel5_Parser
PHPExcel_Writer_Excel5_Parser

Code

function _term() {
  $result = $this
    ->_fact();
  while ($this->_current_token == "*" or $this->_current_token == "/") {

    /**/
    if ($this->_current_token == "*") {
      $this
        ->_advance();
      $result2 = $this
        ->_fact();
      $result = $this
        ->_createTree('ptgMul', $result, $result2);
    }
    else {
      $this
        ->_advance();
      $result2 = $this
        ->_fact();
      $result = $this
        ->_createTree('ptgDiv', $result, $result2);
    }
  }
  return $result;
}