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

Class: PHP_ParserGenerator_State

Source Location: /PHP_ParserGenerator-0.1.7/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:

  • Release: @package_version@

Copyright:

  • 2006 Gregory Beaver

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

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


[ Top ]


Class Variables

$ap =

[line 105]

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



[ Top ]

$bp =

[line 89]

The basis configurations for this state
  • Access: public



[ Top ]

$cfp =

[line 94]

All configurations in this state
  • Access: public



[ Top ]

$iDflt =

[line 135]

Default action
  • Access: public

Type:   int


[ Top ]

$iNtOfst =

[line 124]

  • Access: public

Type:   mixed


[ Top ]

$iTknOfst =

[line 123]

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

Type:   int


[ Top ]

$nNtAct =

[line 112]

  • Access: public

Type:   mixed


[ Top ]

$nTknAct =

[line 111]

Number of terminal (token) actions
  • Access: public

Type:   int


[ Top ]

$statenum =

[line 100]

Sequential number for this state
  • Access: public

Type:   int


[ Top ]

$states = array()

[line 147]

Array of PHP_ParserGenerator_State objects
  • Access: public

Type:   array


[ Top ]

$x3a = array()

[line 141]

Associative array of PHP_ParserGenerator_State objects
  • Access: public

Type:   array


[ Top ]



Method Detail

statecmp   [line 171]

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 155]

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 279]

array State_arrayof( )

Get an array indexed by state number

[ Top ]

State_find   [line 211]

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 238]

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 Mon, 11 Mar 2019 15:41:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.