[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
PHP_ParserGenerator, a php 5 parser generator. This is a direct port of the Lemon parser generator, found at {@link http://www.hwaci.com/sw/lemon/}
Author: | Gregory Beaver <[email protected]> |
Copyright: | 2006 Gregory Beaver |
License: | http://www.php.net/license/3_01.txt PHP License 3.01 |
Version: | CVS: $Id$ |
File Size: | 253 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
PHP_ParserGenerator_StateNode:: (0 methods):
PHP_ParserGenerator_State:: (6 methods):
stateResortCompare()
statecmp()
statehash()
State_find()
State_insert()
State_arrayof()
Class: PHP_ParserGenerator_StateNode - X-Ref
The structure used to represent a state in the associative arrayClass: PHP_ParserGenerator_State - X-Ref
Each state of the generated parser's finite state machinestateResortCompare($a, $b) X-Ref |
Compare two states for sorting purposes. The smaller state is the one with the most non-terminal actions. If they have the same number of non-terminal actions, then the smaller is the one with the most token actions. |
statecmp($a, $b) X-Ref |
Compare two states based on their configurations param: PHP_ParserGenerator_Config|0 $a param: PHP_ParserGenerator_Config|0 $b return: int |
statehash(PHP_ParserGenerator_Config $a) X-Ref |
Hash a state based on its configuration return: int |
State_find(PHP_ParserGenerator_Config $key) X-Ref |
Return a pointer to data assigned to the given key. Return NULL if no such key. param: PHP_ParserGenerator_Config return: null|PHP_ParserGenerator_State |
State_insert(PHP_ParserGenerator_State $state,PHP_ParserGenerator_Config $key) X-Ref |
Insert a new record into the array. Return TRUE if successful. Prior data with the same key is NOT overwritten param: PHP_ParserGenerator_State $state param: PHP_ParserGenerator_Config $key return: unknown |
State_arrayof() X-Ref |
Get an array indexed by state number return: array |
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |