| Puma Reference Manual | Puma: Puma::PreprocessorParser Class Reference |
#include <PreprocessorParser.h>

Public Types | |
| enum | PreMode { INITIAL, DEFINING, MAYBEMACRO, ASSERT, TOKENLIST, DIRECTIVE, MACRO } |
Public Member Functions | |
| Array< PreMacro * > * | macroStack () const |
| set< Token * > * | prescanned () const |
| PreLevelState * | levelState () const |
| PreParserState * | parserState () const |
| PreMacroManager * | macroManager () const |
| void | macroManager (PreMacroManager *m) |
| PreFileIncluder * | fileIncluder () const |
| PrePredicateManager * | predicateManager () const |
| UnitManager * | unitManager () const |
| UnitManager * | locals () const |
| PreMode | pre_mode () const |
| bool | supportGNU () const |
| CScanner & | cscanner () const |
| const char * | importHandler () const |
| PreTree * | syntaxTree () const |
| PreprocessorParser (ErrorStream *, UnitManager *, UnitManager *, ostream &out=cout, int max_depth=400) | |
| ~PreprocessorParser () | |
| void | reset (ErrorStream *, UnitManager *, UnitManager *, ostream &out=cout, int max_depth=400) |
| void | freeSyntaxTree () |
| void | configure (const Config &, bool=true) |
| Token * | next () |
| TokenStream * | scanner () const |
| void | stream (TokenStream *s) |
| int | map_token (Token *token, bool &parse) |
| void | parse () |
| void | silentMode (bool mode=true) |
| void | defMacro (const char *, const char *=(const char *) 0, char=0) const |
| void | undefMacro (const char *) const |
| void | defPredicate (const char *, const char *) const |
| void | undefPredicate (const char *) const |
| void | addInclPath (const char *) const |
| void | supportGNU (bool) |
| Puma::PreprocessorParser::PreprocessorParser | ( | ErrorStream * | , | |
| UnitManager * | , | |||
| UnitManager * | , | |||
| ostream & | out = cout, |
|||
| int | max_depth = 400 | |||
| ) |
| Puma::PreprocessorParser::~PreprocessorParser | ( | ) |
| set<Token*>* Puma::PreprocessorParser::prescanned | ( | ) | const [inline] |
| PreLevelState* Puma::PreprocessorParser::levelState | ( | ) | const [inline] |
| PreParserState* Puma::PreprocessorParser::parserState | ( | ) | const [inline] |
| PreMacroManager* Puma::PreprocessorParser::macroManager | ( | ) | const [inline] |
| void Puma::PreprocessorParser::macroManager | ( | PreMacroManager * | m | ) | [inline] |
| PreFileIncluder* Puma::PreprocessorParser::fileIncluder | ( | ) | const [inline] |
| PrePredicateManager* Puma::PreprocessorParser::predicateManager | ( | ) | const [inline] |
| UnitManager* Puma::PreprocessorParser::unitManager | ( | ) | const [inline] |
| UnitManager* Puma::PreprocessorParser::locals | ( | ) | const [inline] |
| PreMode Puma::PreprocessorParser::pre_mode | ( | ) | const [inline] |
| bool Puma::PreprocessorParser::supportGNU | ( | ) | const [inline] |
| CScanner& Puma::PreprocessorParser::cscanner | ( | ) | const [inline] |
| const char* Puma::PreprocessorParser::importHandler | ( | ) | const [inline] |
| PreTree* Puma::PreprocessorParser::syntaxTree | ( | ) | const |
| void Puma::PreprocessorParser::reset | ( | ErrorStream * | , | |
| UnitManager * | , | |||
| UnitManager * | , | |||
| ostream & | out = cout, |
|||
| int | max_depth = 400 | |||
| ) |
| void Puma::PreprocessorParser::freeSyntaxTree | ( | ) |
| void Puma::PreprocessorParser::configure | ( | const Config & | , | |
| bool | = true | |||
| ) |
| Token* Puma::PreprocessorParser::next | ( | ) | [virtual] |
Implements Puma::PumaTokenSource.
| TokenStream* Puma::PreprocessorParser::scanner | ( | ) | const [inline] |
| void Puma::PreprocessorParser::stream | ( | TokenStream * | s | ) | [inline] |
| int Puma::PreprocessorParser::map_token | ( | Token * | token, | |
| bool & | parse | |||
| ) |
| void Puma::PreprocessorParser::parse | ( | ) |
| void Puma::PreprocessorParser::silentMode | ( | bool | mode = true |
) | [inline] |
| void Puma::PreprocessorParser::defMacro | ( | const char * | , | |
| const char * | = (const char *) 0, |
|||
| char | = 0 | |||
| ) | const |
| void Puma::PreprocessorParser::undefMacro | ( | const char * | ) | const |
| void Puma::PreprocessorParser::defPredicate | ( | const char * | , | |
| const char * | ||||
| ) | const |
| void Puma::PreprocessorParser::undefPredicate | ( | const char * | ) | const |
| void Puma::PreprocessorParser::addInclPath | ( | const char * | ) | const |
| void Puma::PreprocessorParser::supportGNU | ( | bool | ) |