Comments: on this page. Click to read or post your own.

Class SimpleStateStack

Description

States for a stack machine.

Located in /sapphire/dev/simpletest/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 ()
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:44:03 +1300 by phpDocumentor 1.3.2