class PHPExcel_Calculation_FormulaParser

PHPExcelCalculationFormulaParser

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Constants

QUOTE_DOUBLE

QUOTE_SINGLE

BRACKET_CLOSE

BRACKET_OPEN

BRACE_OPEN

BRACE_CLOSE

PAREN_OPEN

PAREN_CLOSE

SEMICOLON

WHITESPACE

COMMA

ERROR_START

OPERATORS_SN

OPERATORS_INFIX

OPERATORS_POSTFIX

Methods

__construct(string $pFormula = '')

Create a new PHPExcelCalculationFormulaParser

string
getFormula()

Get Formula

string
getToken(int $pId)

Get Token

string
getTokenCount()

Get Token count

Details

at line 102
__construct(string $pFormula = '')

Create a new PHPExcelCalculationFormulaParser

Parameters

string $pFormula Formula to parse

Exceptions

PHPExcel_Calculation_Exception

at line 120
string getFormula()

Get Formula

Return Value

string

at line 132
string getToken(int $pId)

Get Token

Parameters

int $pId Token id

Return Value

string

Exceptions

PHPExcel_Calculation_Exception

at line 146
string getTokenCount()

Get Token count

Return Value

string

at line 156
PHPExcel_Calculation_FormulaToken[] getTokens()

Get Tokens