APG
… an ABNF Parser Generator
|
Detailed information about the apgex
object after vApgexPattern() has been called.
More...
#include <apgex.h>
Data Fields | |
void * | vpParser |
Pointer to the parser object context. More... | |
void * | vpAst |
Pointer to the AST object context. NULL unless the a flag is used. More... | |
void * | vpTrace |
Pointer to the trace object context. NULL unless the t flag is used. More... | |
const char * | cpFlags |
The original string of flags from vApgexPattern(). More... | |
const char * | cpPattern |
Internally preserve copy of the SABNF grammar defining the string to match. NULL if the pattern is defined with vApgexPatternParser(). More... | |
apg_phrase | sOriginalSource |
The original source or input string as a phrase. More... | |
apg_phrase | sLastSource |
The last source or input string as a phrase - may be different from original if sApgexReplace() or sApgexReplaceFunc() has been called. More... | |
apgex_phrase | sLastMatch |
The last-matched phrase. Same as spResult from the last call to sApgexExec(). More... | |
apgex_phrase | sLeftContext |
The left context of the last match - that is the phrase prefix to the matched phrase. More... | |
apgex_phrase | sRightContext |
The right context of the last match - that is the phrase suffix to the matched phrase. More... | |
aint | uiLastIndex |
The index of the character in the input string where the attempted pattern match begins. Use vApgexSetLastIndex() to manually override the defaults. More... | |
abool | bDefaultMode |
True if the cpFlags parameter in vApgexPattern() is NULL or empty. More... | |
abool | bGlobalMode |
True if the g flag is set prior to any occurrence of y in the cpFlags string. More... | |
abool | bPpptMode |
True if the p flag is set. The parser will use Partially-Predictive Parsing Tables. More... | |
abool | bStickyMode |
True if the y flag is set prior to any occurrence of g in the cpFlags string. More... | |
abool | bTraceMode |
True if the t flag is set in the cpFlags string. More... | |
abool | bTraceHtmlMode |
True if the th flags ar set for HTML trace output in the cpFlags string. More... | |
Detailed information about the apgex
object after vApgexPattern() has been called.
Note that all data pointers in this structure are, in general, valid only until the next function call on the apgex
object. If the application needs to retain any phrases or other pointer data for future use it must make a copy of it into its own memory space.
abool apgex_properties::bDefaultMode |
True if the cpFlags
parameter in vApgexPattern() is NULL or empty.
abool apgex_properties::bGlobalMode |
abool apgex_properties::bPpptMode |
abool apgex_properties::bStickyMode |
abool apgex_properties::bTraceHtmlMode |
abool apgex_properties::bTraceMode |
const char* apgex_properties::cpFlags |
The original string of flags from vApgexPattern().
const char* apgex_properties::cpPattern |
Internally preserve copy of the SABNF grammar defining the string to match. NULL if the pattern is defined with vApgexPatternParser().
apgex_phrase apgex_properties::sLastMatch |
The last-matched phrase. Same as spResult
from the last call to sApgexExec().
apg_phrase apgex_properties::sLastSource |
The last source or input string as a phrase - may be different from original if sApgexReplace() or sApgexReplaceFunc() has been called.
apgex_phrase apgex_properties::sLeftContext |
apg_phrase apgex_properties::sOriginalSource |
apgex_phrase apgex_properties::sRightContext |
aint apgex_properties::uiLastIndex |
The index of the character in the input string where the attempted pattern match begins. Use vApgexSetLastIndex() to manually override the defaults.
void* apgex_properties::vpAst |
void* apgex_properties::vpParser |
void* apgex_properties::vpTrace |