| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Module cpp :: Class DumbPreProcessor |
|
PreProcessor --+
|
DumbPreProcessor
A preprocessor that ignores all #if/#elif/#else/#endif directives and just reports back all of the #include files (like the classic SCons scanner did).
This is functionally equivalent to using a regular expression to find all of the #include lines, only slower. It exists mainly as an example of how the main PreProcessor class can be sub-classed to tailor its behavior.
| Method Summary | |
|---|---|
__init__(self,
*args,
**kw)
| |
| Inherited from PreProcessor | |
Pre-processes a file contents. | |
| |
Default handling of a #define line. | |
Default handling of a #elif line. | |
Default handling of a #else line. | |
Default handling of a #endif line. | |
Default handling of a #if line. | |
Default handling of a #ifdef line. | |
Default handling of a #ifndef line. | |
Default handling of a #import line. | |
Default handling of a #include line. | |
Default handling of a #include line. | |
Null method for when we explicitly want the action for a specific preprocessor directive to do nothing. | |
Default handling of a #undef line. | |
Evaluates a C preprocessor expression. | |
Finds the #include file for a given preprocessor tuple. | |
Resolve a tuple-ized #include line. | |
Pops the previous dispatch table off the stack and makes it the current one. | |
Pushes the current dispatch table on the stack and re-initializes the current dispatch table to the default. | |
Causes the PreProcessor object to start processing #import, #include and #include_next lines. | |
Causes the PreProcessor object to stop processing #import, #include and #include_next lines. | |
Turns the contents of a file into a list of easily-processed tuples describing the CPP lines in the file. | |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 | http://epydoc.sf.net |