Struct ILexerCallback#
Defined in File lexerbase.h
Inheritance Relationships#
Derived Types#
public CParser
(Class CParser)public SLexerDummyCallback
(Struct SLexerDummyCallback)public SLexerStoreCallback
(Struct SLexerStoreCallback)
Struct Documentation#
-
struct ILexerCallback#
Lexer callback interface.
Subclassed by CParser, SLexerDummyCallback, SLexerStoreCallback
Public Functions
-
virtual void InsertWhitespace(const CToken &rtoken) = 0#
Insert whitespace - used to preserve whitespace.
- Parameters:
rtoken – [in] Reference to the token structure pointing to the whitespace.
-
virtual void InsertComment(const CToken &rtoken) = 0#
Insert a comment, either standalone, belonging to the last statement or belonging to the next statement.
- Parameters:
rtoken – [in] Reference to the token structure pointing to the comment.
-
virtual void ProcessPreprocDirective(CCodePos &rCode) = 0#
Process a preprocessor directive. Preprocessor directives occur at the beginning of a line and can be preceded by whitespace. The directive starts with the ‘#’ character.
- Parameters:
rCode – [in] Reference to the current code position starting the directive.
-
virtual void InsertWhitespace(const CToken &rtoken) = 0#