PUMA Library Reference Manual
Loading...
Searching...
No Matches
Puma::PreParserState Class Reference

#include <PreParserState.h>

Public Member Functions

 PreParserState ()
 
 ~PreParserState ()
 
bool checkMacroName (PreMacro *)
 
PreMacrocheckPredefined (PreMacro *, TokenStream *, PreMacroManager &)
 
bool isSelfReferentialMacro (PreMacro *, Array< PreMacro * > &)
 
void putMacroOnStack (Array< PreMacro * > &, PreMacro *, int stream_len)
 
void removeMacroFromStack (Array< PreMacro * > &macroStack, const char *name)
 
void updateMacroStack (Array< PreMacro * > &macroStack, int stream_len)
 
int getIncludeLevel (TokenStream *stream)
 
bool inMacroExpansion (Array< PreMacro * > &macroStack)
 

Public Attributes

int maxIncludeDepth
 
bool noFILE
 
bool noLINE
 
bool noDATE
 
bool noTIME
 
bool noINCLUDE_LEVEL
 
bool syntaxError
 
bool errorDirective
 
bool passOnToken
 
bool forcedIncludes
 
bool parseMacroArgs
 
Tokensl_token
 
TokencurrToken
 
TokenlastToken
 
int currType
 
int lastType
 
void * pParser
 
ErrorStreamerr
 
PreTreesyntaxTree
 
Tokennewline
 

Constructor & Destructor Documentation

◆ PreParserState()

Puma::PreParserState::PreParserState ( )

◆ ~PreParserState()

Puma::PreParserState::~PreParserState ( )
inline

Member Function Documentation

◆ checkMacroName()

bool Puma::PreParserState::checkMacroName ( PreMacro )

◆ checkPredefined()

PreMacro * Puma::PreParserState::checkPredefined ( PreMacro ,
TokenStream ,
PreMacroManager  
)

◆ getIncludeLevel()

int Puma::PreParserState::getIncludeLevel ( TokenStream stream)

◆ inMacroExpansion()

bool Puma::PreParserState::inMacroExpansion ( Array< PreMacro * > &  macroStack)

◆ isSelfReferentialMacro()

bool Puma::PreParserState::isSelfReferentialMacro ( PreMacro ,
Array< PreMacro * > &   
)

◆ putMacroOnStack()

void Puma::PreParserState::putMacroOnStack ( Array< PreMacro * > &  ,
PreMacro ,
int  stream_len 
)

◆ removeMacroFromStack()

void Puma::PreParserState::removeMacroFromStack ( Array< PreMacro * > &  macroStack,
const char *  name 
)

◆ updateMacroStack()

void Puma::PreParserState::updateMacroStack ( Array< PreMacro * > &  macroStack,
int  stream_len 
)

Member Data Documentation

◆ currToken

Token* Puma::PreParserState::currToken

◆ currType

int Puma::PreParserState::currType

◆ err

ErrorStream* Puma::PreParserState::err

◆ errorDirective

bool Puma::PreParserState::errorDirective

◆ forcedIncludes

bool Puma::PreParserState::forcedIncludes

◆ lastToken

Token* Puma::PreParserState::lastToken

◆ lastType

int Puma::PreParserState::lastType

◆ maxIncludeDepth

int Puma::PreParserState::maxIncludeDepth

◆ newline

Token* Puma::PreParserState::newline

◆ noDATE

bool Puma::PreParserState::noDATE

◆ noFILE

bool Puma::PreParserState::noFILE

◆ noINCLUDE_LEVEL

bool Puma::PreParserState::noINCLUDE_LEVEL

◆ noLINE

bool Puma::PreParserState::noLINE

◆ noTIME

bool Puma::PreParserState::noTIME

◆ parseMacroArgs

bool Puma::PreParserState::parseMacroArgs

◆ passOnToken

bool Puma::PreParserState::passOnToken

◆ pParser

void* Puma::PreParserState::pParser

◆ sl_token

Token* Puma::PreParserState::sl_token

◆ syntaxError

bool Puma::PreParserState::syntaxError

◆ syntaxTree

PreTree* Puma::PreParserState::syntaxTree