phpDocumentor PHP_ParserGenerator
[ class tree: PHP_ParserGenerator ] [ index: PHP_ParserGenerator ] [ all elements ]

Class: PHP_ParserGenerator_State

Source Location: /ParserGenerator/State.php

Class PHP_ParserGenerator_State

Class Overview

Each state of the generated parser's finite state machine is encoded as an instance of this class

Located in /ParserGenerator/State.php [line 78]



		
				Author(s):
		
		
		
Information Tags:
Since:  Class available since Release 0.1.0
Version:  @package_version@
License:  PHP License 3.01
Copyright:  2006 Gregory Beaver

Properties

Methods

[ Top ]
Property Summary
static array   $states   Array of PHP_ParserGenerator_State objects
static array   $x3a   Associative array of PHP_ParserGenerator_State objects
PHP_ParserGenerator_Action   $ap   Linked list of actions for this state.
PHP_ParserGenerator_Config   $bp   The basis configurations for this state
PHP_ParserGenerator_Config   $cfp   All configurations in this state
int   $iDflt   Default action
mixed   $iNtOfst  
int   $iTknOfst   The offset into the $yy_action table for terminal tokens.
mixed   $nNtAct  
int   $nTknAct   Number of terminal (token) actions
int   $statenum   Sequential number for this state

[ Top ]
Method Summary
static int   statecmp()   Compare two states based on their configurations
static void   stateResortCompare()   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.
static array   State_arrayof()   Get an array indexed by state number
static null|PHP_ParserGenerator_State   State_find()   Return a pointer to data assigned to the given key. Return NULL if no such key.
static unknown   State_insert()   Insert a new record into the array. Return TRUE if successful.

[ Top ]
Properties
static array   $states = array() [line 141]

Array of PHP_ParserGenerator_State objects

API Tags:
Access:  public


[ Top ]
static array   $x3a = array() [line 135]

Associative array of PHP_ParserGenerator_State objects

API Tags:
Access:  public


[ Top ]

Linked list of actions for this state.

API Tags:
Access:  public


[ Top ]

The basis configurations for this state

API Tags:
Access:  public


[ Top ]
PHP_ParserGenerator_Config   $cfp [line 88]

All configurations in this state

API Tags:
Access:  public


[ Top ]
int   $iDflt [line 129]

Default action

API Tags:
Access:  public


[ Top ]
mixed   $iNtOfst [line 118]
API Tags:
Access:  public


[ Top ]
int   $iTknOfst [line 117]

The offset into the $yy_action table for terminal tokens.

API Tags:
Access:  public


[ Top ]
mixed   $nNtAct [line 106]
API Tags:
Access:  public


[ Top ]
int   $nTknAct [line 105]

Number of terminal (token) actions

API Tags:
Access:  public


[ Top ]
int   $statenum [line 94]

Sequential number for this state

API Tags:
Access:  public


[ Top ]
Methods
static method statecmp  [line 165]

  static int statecmp( PHP_ParserGenerator_Config|0 $a, PHP_ParserGenerator_Config|0 $b  )

Compare two states based on their configurations

Parameters:
PHP_ParserGenerator_Config|0   $a: 
PHP_ParserGenerator_Config|0   $b: 


[ Top ]
static method stateResortCompare  [line 149]

  static void stateResortCompare( $a, $b  )

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.

Parameters:
   $a: 
   $b: 


[ Top ]
static method State_arrayof  [line 273]

  static array State_arrayof( )

Get an array indexed by state number



[ Top ]
static method State_find  [line 204]

  static null|PHP_ParserGenerator_State State_find( PHP_ParserGenerator_Config $key  )

Return a pointer to data assigned to the given key. Return NULL if no such key.

Parameters:
PHP_ParserGenerator_Config   $key: 


[ Top ]
static method State_insert  [line 231]

  static unknown State_insert( PHP_ParserGenerator_State $state, PHP_ParserGenerator_Config $key  )

Insert a new record into the array. Return TRUE if successful.

Prior data with the same key is NOT overwritten

Parameters:
PHP_ParserGenerator_State   $state: 
PHP_ParserGenerator_Config   $key: 


[ Top ]

Documentation generated on Sun, 02 Jul 2006 09:11:11 -0400 by phpDocumentor 1.3.0