#include <ShTokenizer.hpp>
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). |
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.
|
Retrieve and remove the oldest parsed argument at the current level Definition at line 78 of file ShTokenizer.cpp. References SH::shError(). |
|
Call this to alllocate an argument queue. Always returns true. Definition at line 42 of file ShTokenizer.cpp. |