#include <PreprocessorParser.h>
|
Array< PreMacro * > * | macroStack () const |
|
PreLevelState * | levelState () const |
|
PreParserState * | parserState () const |
|
PreMacroManager * | macroManager () const |
|
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 |
|
void | macroManager (PreMacroManager *m) |
|
void | fileIncluder (PreFileIncluder *f) |
|
void | predicateManager (PrePredicateManager *p) |
|
PreTree * | syntaxTree () const |
|
| PreprocessorParser (ErrorStream *, UnitManager *, UnitManager *, std::ostream &out=std::cout, int max_depth=400) |
|
| ~PreprocessorParser () |
|
void | reset (ErrorStream *, UnitManager *, UnitManager *, std::ostream &out=std::cout, int max_depth=400) |
|
void | freeSyntaxTree () |
|
void | configure (const Config &, bool=true) |
|
Token * | next () |
| Get the next token.
|
|
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 | defUndefinedMacro (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 | addSysInclPath (const char *) const |
|
void | supportGNU (bool) |
|
virtual | ~TokenSource () |
| Destructor.
|
|
◆ PreMode
Enumerator |
---|
INITIAL | |
DEFINING | |
MAYBEMACRO | |
ASSERT | |
TOKENLIST | |
DIRECTIVE | |
MACRO | |
◆ PreprocessorParser()
◆ ~PreprocessorParser()
Puma::PreprocessorParser::~PreprocessorParser |
( |
| ) |
|
◆ addInclPath()
void Puma::PreprocessorParser::addInclPath |
( |
const char * | | ) |
const |
◆ addSysInclPath()
void Puma::PreprocessorParser::addSysInclPath |
( |
const char * | | ) |
const |
◆ configure()
void Puma::PreprocessorParser::configure |
( |
const Config & | , |
|
|
bool | = true ) |
◆ cscanner()
CScanner & Puma::PreprocessorParser::cscanner |
( |
| ) |
const |
|
inline |
◆ defMacro()
void Puma::PreprocessorParser::defMacro |
( |
const char * | , |
|
|
const char * | = (const char *) 0, |
|
|
char | = 0 ) const |
◆ defPredicate()
void Puma::PreprocessorParser::defPredicate |
( |
const char * | , |
|
|
const char * | ) const |
◆ defUndefinedMacro()
void Puma::PreprocessorParser::defUndefinedMacro |
( |
const char * | , |
|
|
const char * | = (const char *) 0, |
|
|
char | = 0 ) const |
◆ fileIncluder() [1/2]
◆ fileIncluder() [2/2]
◆ freeSyntaxTree()
void Puma::PreprocessorParser::freeSyntaxTree |
( |
| ) |
|
◆ importHandler()
const char * Puma::PreprocessorParser::importHandler |
( |
| ) |
const |
|
inline |
◆ levelState()
◆ locals()
UnitManager * Puma::PreprocessorParser::locals |
( |
| ) |
const |
|
inline |
◆ macroManager() [1/2]
◆ macroManager() [2/2]
◆ macroStack()
Array< PreMacro * > * Puma::PreprocessorParser::macroStack |
( |
| ) |
const |
|
inline |
◆ map_token()
int Puma::PreprocessorParser::map_token |
( |
Token * | token, |
|
|
bool & | parse ) |
◆ next()
Token * Puma::PreprocessorParser::next |
( |
| ) |
|
|
virtual |
Get the next token.
- Returns
- The next token from the source, or NULL if no more tokens.
Implements Puma::TokenSource.
◆ parse()
void Puma::PreprocessorParser::parse |
( |
| ) |
|
◆ parserState()
◆ pre_mode()
PreMode Puma::PreprocessorParser::pre_mode |
( |
| ) |
const |
|
inline |
◆ predicateManager() [1/2]
◆ predicateManager() [2/2]
◆ reset()
◆ scanner()
TokenStream * Puma::PreprocessorParser::scanner |
( |
| ) |
const |
|
inline |
◆ silentMode()
void Puma::PreprocessorParser::silentMode |
( |
bool | mode = true | ) |
|
|
inline |
◆ stream()
void Puma::PreprocessorParser::stream |
( |
TokenStream * | s | ) |
|
|
inline |
◆ supportGNU() [1/2]
bool Puma::PreprocessorParser::supportGNU |
( |
| ) |
const |
|
inline |
◆ supportGNU() [2/2]
void Puma::PreprocessorParser::supportGNU |
( |
bool | | ) |
|
◆ syntaxTree()
PreTree * Puma::PreprocessorParser::syntaxTree |
( |
| ) |
const |
◆ undefMacro()
void Puma::PreprocessorParser::undefMacro |
( |
const char * | | ) |
const |
◆ undefPredicate()
void Puma::PreprocessorParser::undefPredicate |
( |
const char * | | ) |
const |
◆ unitManager()
UnitManager * Puma::PreprocessorParser::unitManager |
( |
| ) |
const |
|
inline |