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

Information about each rule or UDT in the SABNF pattern. More...

#include <apgex.h>

Collaboration diagram for apgex_rule:
Collaboration graph
[legend]

Data Fields

const char * cpRuleName
 The rule or UDT name. More...
 
apgex_phrasespPhrases
 The list of matched phrases. Any given rule or UDT may have multiple matched sub-phrases. More...
 
aint uiPhraseCount
 The number of matched sub-phrases for this rule/UDT. More...
 
aint uiIndex
 The rule or UDT grammar index. More...
 

Detailed Description

Information about each rule or UDT in the SABNF pattern.

Note that even though UDTs are terminal nodes, they have in common with rule nodes that they are named. Therefore, the phrases for matched UDTs are presented together with the named rule phrases. Note that recursive rules and rules that appear in the SABNF grammar in more than one place may match multiple phrases.

Definition at line 58 of file apgex.h.

Field Documentation

◆ cpRuleName

const char* apgex_rule::cpRuleName

The rule or UDT name.

Definition at line 59 of file apgex.h.

◆ spPhrases

apgex_phrase* apgex_rule::spPhrases

The list of matched phrases. Any given rule or UDT may have multiple matched sub-phrases.

Definition at line 60 of file apgex.h.

◆ uiIndex

aint apgex_rule::uiIndex

The rule or UDT grammar index.

Definition at line 62 of file apgex.h.

◆ uiPhraseCount

aint apgex_rule::uiPhraseCount

The number of matched sub-phrases for this rule/UDT.

Definition at line 61 of file apgex.h.


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.