Struct SLexerStoreCallback#

Inheritance Relationships#

Base Type#

Struct Documentation#

struct SLexerStoreCallback : public ILexerCallback#

Callback interface for the lexer storing the provided information.

Public Functions

inline void Clear()#

Clear the value of the callback structure.

inline virtual void InsertWhitespace(const CToken &rtoken) override#

Insert whitespace. Overload of ILexerCallback::InsertWhitespace.

Parameters:

rtoken[in] Reference to token containing the whitespace.

inline virtual void InsertComment(const CToken &rtoken) override#

Insert a comment. Overload of ILexerCallback::InsertComment.

Parameters:

rtoken[in] Reference to the token containing the comment.

inline virtual void ProcessPreprocDirective(CCodePos &rCode) override#

Process a preprocessor directive. Overload of ILexerCallback::ProcessPreprocDirective.

Parameters:

rCode[in] Reference to the source code to process the preproc directive for.

Public Members

CToken tokenWhitespace#

Token holding whitespace.

CToken tokenComment#

Token holding comment.

std::string ssPreprocLine#

String holding preprocessing line.