[ 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: | 546 lines (16 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
PHP_ParserGenerator_Config:: (19 methods):
newconfig()
Configshow()
Configlist_init()
Configtable_reset()
Configtable_clear()
Configlist_reset()
Configlist_add()
Configlist_addbasis()
Configlist_closure()
Configlist_sort()
Configlist_sortbasis()
Configlist_return()
Configlist_basis()
Configlist_eat()
Configcmp()
ConfigPrint()
confighash()
Configtable_insert()
Configtable_find()
Class: PHP_ParserGenerator_Config - X-Ref
a mark (dot) showing how much of that rule has been processed so far.newconfig() X-Ref |
Return a pointer to a new configuration return: PHP_ParserGenerator_Config |
Configshow(PHP_ParserGenerator_Config $cfp) X-Ref |
Display the current configuration for the .out file param: PHP_ParserGenerator_Config $cfp |
Configlist_init() X-Ref |
Initialize the configuration list builder for a new state. |
Configtable_reset($f) X-Ref |
Remove all data from the table. Pass each data to the function $f as it is removed if $f is a valid callback. param: callback|null |
Configtable_clear($f) X-Ref |
Remove all data from the associative array representation of configurations. Pass each data to the function $f as it is removed if $f is a valid callback. param: callback|null |
Configlist_reset() X-Ref |
Reset the configuration list builder for a new state. |
Configlist_add($rp, $dot) X-Ref |
Add another configuration to the configuration list for this parser state. param: PHP_ParserGenerator_Rule the rule param: int Index into the right-hand side of the rule where the dot goes return: PHP_ParserGenerator_Config |
Configlist_addbasis($rp, $dot) X-Ref |
Add a basis configuration to the configuration list for this parser state. Basis configurations are the root for a configuration. This method also inserts the configuration into the regular list of configurations for this reason. param: PHP_ParserGenerator_Rule the rule param: int Index into the right-hand side of the rule where the dot goes return: PHP_ParserGenerator_Config |
Configlist_closure(PHP_ParserGenerator_Data $lemp) X-Ref |
Compute the closure of the configuration list. This calculates all of the possible continuations of each configuration, ensuring that each state accounts for every configuration that could arrive at that state. |
Configlist_sort() X-Ref |
Sort the configuration list |
Configlist_sortbasis() X-Ref |
Sort the configuration list |
Configlist_return() X-Ref |
Return a pointer to the head of the configuration list and reset the list return: PHP_ParserGenerator_Config |
Configlist_basis() X-Ref |
Return a pointer to the head of the basis list and reset the list return: PHP_ParserGenerator_Config |
Configlist_eat($cfp) X-Ref |
Free all elements of the given configuration list param: PHP_ParserGenerator_Config |
Configcmp($a, $b) X-Ref |
Compare two configurations for sorting purposes. Configurations based on higher precedence rules (those earlier in the file) are chosen first. Two configurations that are the same rule are sorted by dot (see {@link $dot}), and those configurations with a dot closer to the left-hand side are chosen first. param: unknown_type $a param: unknown_type $b return: unknown |
ConfigPrint($fp) X-Ref |
Print out information on this configuration. param: resource $fp |
confighash(PHP_ParserGenerator_Config $a) X-Ref |
Hash a configuration for the associative array {@link $x4a} |
Configtable_insert(PHP_ParserGenerator_Config $data) X-Ref |
Insert a new record into the array. Return TRUE if successful. Prior data with the same key is NOT overwritten |
Configtable_find(PHP_ParserGenerator_Config $key) X-Ref |
Return a pointer to data assigned to the given key. Return NULL if no such key. return: PHP_ParserGenerator_Config|0 |
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |