|
Public Member Functions |
| char * | getToken (char **pre=NULL) |
| virtual Name * | getScript (const char *name) |
| | Fetch named script.
|
| virtual Name * | dupScript (const char *name, const char *target) |
| | Duplicate script if needed.
|
| unsigned | gather (const char *suffix, Name **array, unsigned size) |
| | Fetch list of relational scripts.
|
| std::istream * | getSource (void) |
| | Used by embedded interpreters to fetch script from the current source file.
|
Protected Member Functions |
| Method | getHandler (const char *keyword) |
| | Get the interpreter method pointer for a given keyword.
|
| | ScriptImage (ScriptCommand *cmdset, const char *symset) |
| | Construct a new working image.
|
| void | purge (void) |
| | Purge and reload the script image workspace.
|
| Name * | include (const char *scrfile) |
| | A method to invoke the script compiler to include a script only if it has not been included already.
|
| int | compile (const char *scrfile) |
| | The script compiler itself.
|
| int | compile (const char *scrfile, char *name) |
| | Compile a script from disk and give it a different internal "name" as passed.
|
| int | compile (std::istream *str, char *name, const char *scrname=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.
|
| void | load (Initial *ilist) |
| | Used by a derived constructor to load an initialization list.
|
| void | initial (const char *keyword, const char *value, unsigned size=0) |
| | Used to load a single initialization list entry.
|
| const char * | preproc (const char *token) |
| | Check for special preprocessor token.
|
Protected Attributes |
| std::ifstream | scrSource |
| std::istream * | scrStream |
| ScriptCommand * | cmds |
| int | refcount |
| Name * | index [37+1] |
| char * | buffer |
| unsigned | bufsize |
| char * | bp |
| bool | quote |
| unsigned | paren |
| Mutex | duplock |
| unsigned | inccount |
| const char * | incfiles [256] |
| ScriptImage::InitialList * | ilist |
Friends |
| class __EXPORT | ScriptInterp |
| class __EXPORT | ScriptModule |
Classes |
| class | InitialList |
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.