Class SimpleStateStack

Description

States for a stack machine.

Located in /php_parser.php (line 124)


	
			
Method Summary
 SimpleStateStack __construct (string $start)
 void enter (string $state)
 string getCurrent ()
 boolean leave ()
Methods
Constructor __construct (line 132)

Constructor. Starts in named state.

  • access: public
SimpleStateStack __construct (string $start)
  • string $start: Starting state name.
enter (line 151)

Adds a state to the stack and sets it to be the current state.

  • access: public
void enter (string $state)
  • string $state: New state.
getCurrent (line 141)

Accessor for current state.

  • return: State.
  • access: public
string getCurrent ()
leave (line 162)

Leaves the current state and reverts to the previous one.

  • return: False if we drop off the bottom of the list.
  • access: public
boolean leave ()

Documentation generated on Sun, 31 Oct 2010 16:32:07 -0500 by phpDocumentor 1.4.3