Class SimpleStateStack

Description

States for a stack machine.

Located in /parser.php (line 124)


	
			
Variable Summary
 mixed $_stack
Method Summary
 SimpleStateStack SimpleStateStack (string $start)
 void enter (string $state)
 string getCurrent ()
 boolean leave ()
Variables
mixed $_stack (line 125)
Methods
Constructor SimpleStateStack (line 132)

Constructor. Starts in named state.

  • access: public
SimpleStateStack SimpleStateStack (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, 04 May 2008 09:21:55 -0500 by phpDocumentor 1.3.0