|
APG
… an ABNF Parser Generator
|
Private header file for the trace functions. More...
#include <stdio.h>

Go to the source code of this file.
Data Structures | |
| struct | trace_record |
| The information recorded & displayed by the trace object for each node visited. More... | |
| struct | trace_config |
| Configuration defining the subset of nodes to display information for. More... | |
| struct | trace |
| The trace object context. Maintains the trace object's state. More... | |
Macros | |
Trace Header Handling | |
The header may be handled by the trace object directly or if apgex is tracing, apgex will handle the header. | |
| #define | TRACE_HEADER_APGEX 2 |
| Identifies apgex as the header handler. More... | |
| #define | TRACE_HEADER_TRACE 3 |
| Identifies the trace object as the header handler. More... | |
Functions | |
Special Tracing Functions | |
These tracing functions are designed especially and exclusively for apgex tracing. | |
| void | vTraceApgexSeparator (void *vpCtx, aint uiLastIndex) |
| Only called by apgex. More... | |
| void | vTraceApgexType (void *vpCtx, aint uiType) |
| Called only by apgex. Sets the display type for apgex tracing. More... | |
| void | vTraceApgexHeader (void *vpCtx) |
| Only called by apgex. More... | |
| void | vTraceApgexFooter (void *vpCtx) |
| Only called by apgex. More... | |
Private Tracing Functions | |
These functions are only used by the trace and parser objects. | |
| void | vTraceBegin (void *vpCtx) |
| Called by the parser to start the trace. More... | |
| void | vTraceEnd (void *vpCtx) |
| Called by the parser to end the trace. More... | |
| void | vTraceDown (void *vpCtx, const opcode *spOp, aint uiOffset) |
| Called by the parser prior to downward traversal of a parse tree node. More... | |
| void | vTraceUp (void *vpCtx, const opcode *spOp, aint uiState, aint uiOffset, aint uiPhraseLength) |
| Called by the parser following upward traversal of a parse tree node. More... | |
| void | vDisplayRecord (trace *spCtx, trace_record *spRec, abool bIsMatchedPppt) |
| Display one trace record. More... | |
| void | vDisplayHeader (trace *spCtx) |
| Display the trace header. More... | |
| void | vDisplaySeparator (trace *spCtx, aint uiLastIndex) |
| Display a separator between trace outputs (apgex only) More... | |
| void | vDisplayFooter (trace *spCtx) |
| Display the trace footer. More... | |
| void | vSetDefaultConfig (trace *spTrace) |
| Sets the default trace configuration on construction. More... | |
Private header file for the trace functions.
Structures and function prototypes used only by the trace object.
Definition in file tracep.h.
| #define TRACE_HEADER_APGEX 2 |
| #define TRACE_HEADER_TRACE 3 |
| void vDisplayFooter | ( | trace * | spCtx | ) |
Display the trace footer.
Definition at line 141 of file trace-out.c.
| void vDisplayHeader | ( | trace * | spCtx | ) |
Display the trace header.
Definition at line 98 of file trace-out.c.
| void vDisplayRecord | ( | trace * | spCtx, |
| trace_record * | spRec, | ||
| abool | bIsMatchedPppt | ||
| ) |
Display one trace record.
Definition at line 110 of file trace-out.c.
Display a separator between trace outputs (apgex only)
Definition at line 129 of file trace-out.c.
| void vSetDefaultConfig | ( | trace * | spTrace | ) |
Sets the default trace configuration on construction.
Definition at line 56 of file trace-config.c.
| void vTraceApgexFooter | ( | void * | vpCtx | ) |
| void vTraceApgexHeader | ( | void * | vpCtx | ) |
| void vTraceApgexSeparator | ( | void * | vpCtx, |
| aint | uiLastIndex | ||
| ) |
| void vTraceApgexType | ( | void * | vpCtx, |
| aint | uiType | ||
| ) |
Called only by apgex. Sets the display type for apgex tracing.
Definition at line 116 of file trace-config.c.
| void vTraceBegin | ( | void * | vpCtx | ) |
Called by the parser to start the trace.
Called via the macro TRACE_BEGIN only trace is implemented.
| void vTraceDown | ( | void * | vpCtx, |
| const opcode * | spOp, | ||
| aint | uiOffset | ||
| ) |
Called by the parser prior to downward traversal of a parse tree node.
Called via the macro TRACE_DOWN only trace is implemented.
| void vTraceEnd | ( | void * | vpCtx | ) |
1.8.17