PHPDoc commentaries for all attributes of the class
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@109513 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
dc0a731457
commit
50b6b6ade4
|
|
@ -73,6 +73,48 @@ require_once('PEAR.php');
|
||||||
|
|
||||||
class Parser extends PEAR
|
class Parser extends PEAR
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The index of the character we are currently looking at
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
var $_current_char;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The token we are working on.
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $_current_token;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The formula to parse
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $_formula;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The character ahead of the current char
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $_lookahead;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The parse tree to be generated
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $_parse_tree;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The byte order. 1 => big endian, 0 => little endian.
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
var $_byte_order;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of arguments for the current function
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
var $_func_args;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The class constructor
|
* The class constructor
|
||||||
*
|
*
|
||||||
|
|
@ -81,7 +123,7 @@ class Parser extends PEAR
|
||||||
*/
|
*/
|
||||||
function Parser($byte_order = 0)
|
function Parser($byte_order = 0)
|
||||||
{
|
{
|
||||||
$this->_current_char = 0; // The index of the character we are currently looking at.
|
$this->_current_char = 0;
|
||||||
$this->_current_token = ''; // The token we are working on.
|
$this->_current_token = ''; // The token we are working on.
|
||||||
$this->_formula = ""; // The formula to parse.
|
$this->_formula = ""; // The formula to parse.
|
||||||
$this->_lookahead = ''; // The character ahead of the current char.
|
$this->_lookahead = ''; // The character ahead of the current char.
|
||||||
|
|
@ -89,7 +131,6 @@ class Parser extends PEAR
|
||||||
$this->_initializeHashes(); // Initialize the hashes: ptg's and function's ptg's
|
$this->_initializeHashes(); // Initialize the hashes: ptg's and function's ptg's
|
||||||
$this->_byte_order = $byte_order; // Little Endian or Big Endian
|
$this->_byte_order = $byte_order; // Little Endian or Big Endian
|
||||||
$this->_func_args = 0; // Number of arguments for the current function
|
$this->_func_args = 0; // Number of arguments for the current function
|
||||||
$this->_volatile = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -517,9 +558,6 @@ class Parser extends PEAR
|
||||||
$args = $this->_functions[$token][1];
|
$args = $this->_functions[$token][1];
|
||||||
$volatile = $this->_functions[$token][3];
|
$volatile = $this->_functions[$token][3];
|
||||||
|
|
||||||
if($volatile) {
|
|
||||||
$this->_volatile = 1;
|
|
||||||
}
|
|
||||||
// Fixed number of args eg. TIME($i,$j,$k).
|
// Fixed number of args eg. TIME($i,$j,$k).
|
||||||
if ($args >= 0) {
|
if ($args >= 0) {
|
||||||
return(pack("Cv", $this->ptg['ptgFuncV'], $this->_functions[$token][0]));
|
return(pack("Cv", $this->ptg['ptgFuncV'], $this->_functions[$token][0]));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue