#include "cpptoken.h"
#include "cppvarinit.h"
#include "parser.l.h"
#include "lexer-helper.h"
#include <iostream>
Go to the source code of this file.
◆ BEGINCONTEXT
#define BEGINCONTEXT |
( |
|
ctx | ) |
|
Value: { \
int prevState = YYSTATE; \
yy_push_state(ctx); \
}
const char * contextNameFromState(int ctx)
Definition at line 62 of file parser.l.
◆ ENDCONTEXT
Value: { \
int prevState = YYSTATE; \
yy_pop_state(); \
}
Definition at line 69 of file parser.l.
◆ INCREMENT_INPUT_LINE_NUM
#define INCREMENT_INPUT_LINE_NUM |
( |
| ) |
|
Value:{\
{ \
printf(
"parser.l line#%4d: Incrementing g.mLineNo, found @input-line#%d\n", __LINE__,
g.
mLineNo); \
} \
}
Definition at line 97 of file parser.l.
◆ LOG
#define LOG |
( |
| ) |
Log(__LINE__, g.mLineNo) |
◆ register
◆ RETURN
#define RETURN |
( |
|
ret | ) |
return LogAndReturn(ret, __LINE__, g.mLineNo) |
◆ YYLessProc
◆ cleanupScanBuffer()
void cleanupScanBuffer |
( |
| ) |
|
◆ codeSegmentDependsOnMacroDefinition()
static bool codeSegmentDependsOnMacroDefinition |
( |
| ) |
|
|
static |
◆ contextNameFromState()
const char * contextNameFromState |
( |
int |
ctx | ) |
|
◆ findMatchedClosingBracket()
static const char * findMatchedClosingBracket |
( |
const char * |
start, |
|
|
char |
openingBracketType = '(' |
|
) |
| |
|
static |
◆ getLexerContext()
◆ Log()
static void Log |
( |
int |
codelinenum, |
|
|
int |
srclinenum |
|
) |
| |
|
static |
◆ LogAndReturn()
static int LogAndReturn |
( |
int |
ret, |
|
|
int |
codelinenum, |
|
|
int |
srclinenum |
|
) |
| |
|
static |
◆ setBlobToken()
◆ setCommentTokenizationState()
◆ setOldYytext()
static void setOldYytext |
( |
const char * |
p | ) |
|
|
static |
◆ setupScanBuffer()
void setupScanBuffer |
( |
char * |
buf, |
|
|
size_t |
bufsize |
|
) |
| |
◆ setupToken() [1/2]
◆ setupToken() [2/2]
◆ startNewMacroDependentParsing()
static void startNewMacroDependentParsing |
( |
| ) |
|
|
static |
◆ tokenizeBracketedContent()
static void tokenizeBracketedContent |
( |
YYLessProc |
yylessfn | ) |
|
|
static |
◆ updateMacroDependence()
static void updateMacroDependence |
( |
| ) |
|
|
static |
◆ yylex()
Global data.
Definition at line 44 of file parser.l.
◆ gDefinedNames
std::map<std::string, int> gDefinedNames |
|
extern |
◆ gIgnorableMacroNames
std::set<std::string> gIgnorableMacroNames |
|
extern |
◆ gKnownApiDecorNames
std::set<std::string> gKnownApiDecorNames |
|
extern |
◆ gMacroNames
std::set<std::string> gMacroNames |
|
extern |
◆ gParseBuffer
YY_BUFFER_STATE gParseBuffer = nullptr |
|
static |
◆ gParseEnumBodyAsBlob
bool gParseEnumBodyAsBlob |
|
extern |
◆ gParseFunctionBodyAsBlob
bool gParseFunctionBodyAsBlob |
|
extern |
◆ gRenamedKeywords
std::map<std::string, int> gRenamedKeywords |
|
extern |
◆ gUndefinedNames
std::set<std::string> gUndefinedNames |
|
extern |