\PHPExcel_Calculation_FormulaParser

PHPExcel_Calculation_FormulaParser

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

Summary

Methods
Properties
Constants
__construct()
getFormula()
getToken()
getTokenCount()
getTokens()
No public properties found
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
No protected methods found
No protected properties found
N/A
parseToTokens()
$formula
$tokens
N/A

Constants

QUOTE_DOUBLE

QUOTE_DOUBLE = '"'

QUOTE_SINGLE

QUOTE_SINGLE = '\''

BRACKET_CLOSE

BRACKET_CLOSE = ']'

BRACKET_OPEN

BRACKET_OPEN = '['

BRACE_OPEN

BRACE_OPEN = '{'

BRACE_CLOSE

BRACE_CLOSE = '}'

PAREN_OPEN

PAREN_OPEN = '('

PAREN_CLOSE

PAREN_CLOSE = ')'

SEMICOLON

SEMICOLON = ';'

WHITESPACE

WHITESPACE = ' '

COMMA

COMMA = ','

ERROR_START

ERROR_START = '#'

OPERATORS_SN

OPERATORS_SN = "+-"

OPERATORS_INFIX

OPERATORS_INFIX = "+-*/^&=><"

OPERATORS_POSTFIX

OPERATORS_POSTFIX = "%"

Properties

$formula

$formula : string

Formula

Type

string

Methods

__construct()

__construct(string  $pFormula = '') 

Create a new PHPExcel_Calculation_FormulaParser

Parameters

string $pFormula

Formula to parse

Throws

\PHPExcel_Calculation_Exception

getFormula()

getFormula() : string

Get Formula

Returns

string

getToken()

getToken(integer  $pId) : string

Get Token

Parameters

integer $pId

Token id

Throws

\PHPExcel_Calculation_Exception

Returns

string

getTokenCount()

getTokenCount() : string

Get Token count

Returns

string

parseToTokens()

parseToTokens() 

Parse to tokens