@@ 379-387 (lines=9) @@ | ||
376 | } |
|
377 | ||
378 | // standard infix operators |
|
379 | if (strpos(self::OPERATORS_INFIX, $this->formula[$index]) !== false) { |
|
380 | if (strlen($value) > 0) { |
|
381 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_OPERAND); |
|
382 | $value = ''; |
|
383 | } |
|
384 | $tokens1[] = new FormulaToken($this->formula[$index], FormulaToken::TOKEN_TYPE_OPERATORINFIX); |
|
385 | ++$index; |
|
386 | ||
387 | continue; |
|
388 | } |
|
389 | ||
390 | // standard postfix operators (only one) |
|
@@ 391-399 (lines=9) @@ | ||
388 | } |
|
389 | ||
390 | // standard postfix operators (only one) |
|
391 | if (strpos(self::OPERATORS_POSTFIX, $this->formula[$index]) !== false) { |
|
392 | if (strlen($value) > 0) { |
|
393 | $tokens1[] = new FormulaToken($value, FormulaToken::TOKEN_TYPE_OPERAND); |
|
394 | $value = ''; |
|
395 | } |
|
396 | $tokens1[] = new FormulaToken($this->formula[$index], FormulaToken::TOKEN_TYPE_OPERATORPOSTFIX); |
|
397 | ++$index; |
|
398 | ||
399 | continue; |
|
400 | } |
|
401 | ||
402 | // start subexpression or function |