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

Class: PHP_ParserGenerator_State

Source Location: /PHP_ParserGenerator-0.1.5/ParserGenerator/State.php

Class Overview


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


Author(s):

Version:

  • 0.1.5

Copyright:

  • 2006 Gregory Beaver

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 78]
Each state of the generated parser's finite state machine is encoded as an instance of this class
  • Author: Gregory Beaver <cellog@php.net>
  • Version: 0.1.5
  • Copyright: 2006 Gregory Beaver
  • Since: Class available since Release 0.1.0
  • License: PHP License 3.01


[ Top ]


Class Variables

$ap =

[line 99]

Linked list of actions for this state.
  • Access: public



[ Top ]

$bp =

[line 83]

The basis configurations for this state
  • Access: public



[ Top ]

$cfp =

[line 88]

All configurations in this state
  • Access: public



[ Top ]

$iDflt =

[line 129]

Default action
  • Access: public

Type:   int


[ Top ]

$iNtOfst =

[line 118]

  • Access: public

Type:   mixed


[ Top ]

$iTknOfst =

[line 117]

The offset into the $yy_action table for terminal tokens.
  • Access: public

Type:   int


[ Top ]

$nNtAct =

[line 106]

  • Access: public

Type:   mixed


[ Top ]

$nTknAct =

[line 105]

Number of terminal (token) actions
  • Access: public

Type:   int


[ Top ]

$statenum =

[line 94]

Sequential number for this state
  • Access: public

Type:   int


[ Top ]

$states = array()

[line 141]

Array of PHP_ParserGenerator_State objects
  • Access: public

Type:   array


[ Top ]

$x3a = array()

[line 135]

Associative array of PHP_ParserGenerator_State objects
  • Access: public

Type:   array


[ Top ]



Method Detail

statecmp   [line 165]

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 ]

stateResortCompare   [line 149]

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 ]

State_arrayof   [line 273]

array State_arrayof( )

Get an array indexed by state number

[ Top ]

State_find   [line 204]

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 ]

State_insert   [line 231]

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 Thu, 10 Dec 2015 05:43:59 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.