SH::ShTokenizer Class Reference

A tokenizer. More...

#include <ShTokenizer.hpp>

List of all members.

Public Member Functions

 ShTokenizer ()
ShBlockListPtr blockList ()
 Get the currently active list.
Pushing and processing arguments
These should always be called together, like so: pushArgQueue() && pushArg() && processArg(foo) && pushArg() && processArg(bar)

bool pushArgQueue ()
 Call this to alllocate an argument queue.
bool pushArg ()
 Indicate that an argument is coming. Always returns true.
bool processArg (const ShVariable &result)
 Tokenize an argument, then add it to the argument queue. Always returns true.
Retrieving arguments
ShTokenArgument getArgument ()
 Retrieve and remove the oldest parsed argument at the current level.
void popArgQueue ()
 Pop the argument context (call after you've retrieved all your arguments).


Detailed Description

A tokenizer.

This is used during construction of the program, i.e. within a BeginShader/EndShader block, to process control statements in a tokenized fashion.

Once the shader has been parsed there is no more need for the tokenizer.

Definition at line 71 of file ShTokenizer.hpp.


Member Function Documentation

bool SH::ShTokenizer::pushArgQueue  ) 
 

Call this to alllocate an argument queue.

Always returns true.

Definition at line 35 of file ShTokenizer.cpp.


The documentation for this class was generated from the following files:
Generated on Wed Nov 9 15:36:40 2005 for Sh by  doxygen 1.4.5