APG
… ABNF Parser Generator
|
The data structure passed to all syntax and AST callback functions, both rule and UDT. More...
#include <Apg.h>
Data Fields | |
void * | vpCtx |
const apg_achar * | acpSrc |
apg_uint | uiSrcLen |
apg_uint | uiPhraseOffset |
apg_uint | uiState |
apg_uint | uiPhraseLength |
void * | vpUserData |
The data structure passed to all syntax and AST callback functions, both rule and UDT.
The data structure passed to all syntax and AST callback functions, both rule and UDT.
It has been convenient to use a single data structure and function prototype for all callback functions, whether rule or UDT callback, whether syntax or semantic analysis. However, the variables in the callback data structure have slightly different meanings in each case. See APG_CALLBACK for the details about the different types of usage.
const apg_achar* APG_CBDATA::acpSrc |
apg_uint APG_CBDATA::uiPhraseLength |
apg_uint APG_CBDATA::uiPhraseOffset |
apg_uint APG_CBDATA::uiState |
the state of the parser. Varies with usage.
void* APG_CBDATA::vpCtx |
void* APG_CBDATA::vpUserData |
user-defined data passed to uiParserSyntaxAnalysis() or uiParserAstTranslate(). Ignored by Parser.