Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Fields
udt_r Struct Reference

For internal object use only. Relative offsets to phrase information for UDTs. More...

Collaboration diagram for udt_r:
Collaboration graph
[legend]

Data Fields

const char * cpUdtName
 UDT name. More...
 
parser_callback pfnUdt
 The UDT callback, if this is a UDT. Cannot be NULL;. More...
 
aint uiUdtIndex
 Rule or UDT index or index. More...
 
aint uiPhraseCount
 The number of matched phrases. More...
 
aint uiFirstPhrase
 Offset in vpVecRelPhases for the first phrase match for this rule. More...
 
aint uiLastPhrase
 Index into vpVecRelPhrases for the next match or APG_UNDEFINED if this is the last block. More...
 
abool bEnabled
 True if this UDT has been enabled for phrase capture. More...
 

Detailed Description

For internal object use only. Relative offsets to phrase information for UDTs.

One struct for each UDT. Handles all information needed by this UDT. Note that since these are user-defined functions, one function must be supplied with a call to vApgexDefineUDT() for every UDT in the grammar. Disabling the UDT simply means that its matched phrase will not be saved. The callback function is still needed for successful parsing of the input string.

Definition at line 87 of file apgex.c.

Field Documentation

◆ bEnabled

abool udt_r::bEnabled

True if this UDT has been enabled for phrase capture.

Definition at line 95 of file apgex.c.

◆ cpUdtName

const char* udt_r::cpUdtName

UDT name.

Definition at line 88 of file apgex.c.

◆ pfnUdt

parser_callback udt_r::pfnUdt

The UDT callback, if this is a UDT. Cannot be NULL;.

Because these are user-defined functions, they must be supplied with a call to vApgexDefineUDT().

Definition at line 89 of file apgex.c.

◆ uiFirstPhrase

aint udt_r::uiFirstPhrase

Offset in vpVecRelPhases for the first phrase match for this rule.

Definition at line 93 of file apgex.c.

◆ uiLastPhrase

aint udt_r::uiLastPhrase

Index into vpVecRelPhrases for the next match or APG_UNDEFINED if this is the last block.

Definition at line 94 of file apgex.c.

◆ uiPhraseCount

aint udt_r::uiPhraseCount

The number of matched phrases.

Definition at line 92 of file apgex.c.

◆ uiUdtIndex

aint udt_r::uiUdtIndex

Rule or UDT index or index.

Definition at line 91 of file apgex.c.


The documentation for this struct was generated from the following file:
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.