Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SH::ShTokenizer Class Reference

A tokenizer. More...

#include <ShTokenizer.hpp>

List of all members.

Public Member Functions

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 ()
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 ()
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 78 of file ShTokenizer.hpp.


Member Function Documentation

ShTokenArgument SH::ShTokenizer::getArgument  ) 
 

Retrieve and remove the oldest parsed argument at the current level

Definition at line 78 of file ShTokenizer.cpp.

References SH::shError().

bool SH::ShTokenizer::pushArgQueue  ) 
 

Call this to alllocate an argument queue. Always returns true.

Definition at line 42 of file ShTokenizer.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 18:38:24 2005 for Sh by  doxygen 1.4.1