|
Public Member Functions |
| char * | getToken (char **pre=NULL) |
| virtual void | fastBranch (ScriptInterp *interp) |
| | Fast branch linkback code.
|
| | ScriptCompiler (ScriptCommand *cmdset, const char *symset) |
| | Construct a new working image.
|
| Name * | include (const char *name) |
| | A method to invoke the script compiler to include a script only if it has not been included already.
|
| int | compile (const char *file) |
| | The script compiler itself.
|
| int | compile (const char *file, char *name) |
| | Compile a script from disk and give it a different internal "name" as passed.
|
| int | compileDefinitions (const char *file) |
| | Compile a defintions library, commonly used for remapping tokens to macros.
|
| int | compile (std::istream *stream, char *name, const char *file=NULL) |
| | Compile an open stream object into a script.
|
| void | commit (void) |
| | Used in the derived constructor to "commit" the current image for new processes.
|
| virtual const char * | getDefined (const char *token) |
| | Used to process '$const' inserts.
|
| const char * | preproc (const char *token) |
| | Check for special preprocessor token.
|
| std::istream * | getSource (void) |
| | Used by embedded interpreters to fetch script from the current source file.
|
Protected Types |
| typedef ost::ScriptCompiler::_merge | merge_t |
Protected Member Functions |
| virtual bool | checkSegment (Name *scr) |
Protected Attributes |
| std::ifstream | scrSource |
| std::istream * | scrStream |
| char * | buffer |
| unsigned | bufsize |
| char * | bp |
| bool | quote |
| unsigned | paren |
| unsigned | inccount |
| const char * | incfiles [256] |
| merge_t * | mlist |
Friends |
| class | ScriptInterp |
Classes |
| struct | _merge |
This includes the script image compiler itself. Typically, a script is compiled one file at a time from a directory, and the committed, during the constructor in a derived class.