cvs: pear /Spreadsheet_Excel_Writer/Writer Parser.php

From: Date: Tue, 31 Dec 2002 13:15:44 +0000
Subject: cvs: pear /Spreadsheet_Excel_Writer/Writer Parser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8022@lists.php.net to get a copy of this message
xnoguer Tue Dec 31 08:15:44 2002 EDT Modified files: /pear/Spreadsheet_Excel_Writer/Writer Parser.php Log: PHPDoc commentaries for all attributes of the class Index: pear/Spreadsheet_Excel_Writer/Writer/Parser.php diff -u pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.1 pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.2 --- pear/Spreadsheet_Excel_Writer/Writer/Parser.php:1.1 Fri Dec 20 17:04:56 2002 +++ pear/Spreadsheet_Excel_Writer/Writer/Parser.php Tue Dec 31 08:15:44 2002 @@ -74,6 +74,48 @@ 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 * * @param integer $byte_order The byte order (Little endian or Big endian) of the architecture @@ -81,7 +123,7 @@ */ 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->_formula = ""; // The formula to parse. $this->_lookahead = ''; // The character ahead of the current char. @@ -89,7 +131,6 @@ $this->_initializeHashes(); // Initialize the hashes: ptg's and function's ptg's $this->_byte_order = $byte_order; // Little Endian or Big Endian $this->_func_args = 0; // Number of arguments for the current function - $this->_volatile = 0; } /** @@ -517,9 +558,6 @@ $args = $this->_functions[$token][1]; $volatile = $this->_functions[$token][3]; - if($volatile) { - $this->_volatile = 1; - } // Fixed number of args eg. TIME($i,$j,$k). if ($args >= 0) { return(pack("Cv", $this->ptg['ptgFuncV'], $this->_functions[$token][0]));

« previous php.pear.cvs (#8022) next »