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

Data structure for a single rule. More...

#include <parserp.h>

Collaboration diagram for rule:
Collaboration graph
[legend]

Data Fields

const char * cpRuleName
 Pointer to the (null-terminated) ASCII rule name. More...
 
const uint8_t * ucpPpptMap
 Pointer to the PPPT map for the rule. More...
 
const union opcode_tagspOp
 Pointer to the first opcode of the rule. More...
 
aint uiOpcodeCount
 Number of opcodes in this rule. More...
 
parser_callback pfnCallback
 Pointer to the call back function for this rule. NULL if the user has not defined a call back function for this rule. See vParserSetRuleCallback(). More...
 
aint uiEmpty
 APG_TRUE if this rule can be empty, APG_FALSE otherwise. More...
 
aint uiRuleIndex
 The rule index - zero-based order in which the rule appears in the SABNF grammar. More...
 

Detailed Description

Data structure for a single rule.

Definition at line 119 of file parserp.h.

Field Documentation

◆ cpRuleName

const char* rule::cpRuleName

Pointer to the (null-terminated) ASCII rule name.

Definition at line 120 of file parserp.h.

◆ pfnCallback

parser_callback rule::pfnCallback

Pointer to the call back function for this rule. NULL if the user has not defined a call back function for this rule. See vParserSetRuleCallback().

Definition at line 124 of file parserp.h.

◆ spOp

const union opcode_tag* rule::spOp

Pointer to the first opcode of the rule.

Definition at line 122 of file parserp.h.

◆ ucpPpptMap

const uint8_t* rule::ucpPpptMap

Pointer to the PPPT map for the rule.

Definition at line 121 of file parserp.h.

◆ uiEmpty

aint rule::uiEmpty

APG_TRUE if this rule can be empty, APG_FALSE otherwise.

Definition at line 126 of file parserp.h.

◆ uiOpcodeCount

aint rule::uiOpcodeCount

Number of opcodes in this rule.

Definition at line 123 of file parserp.h.

◆ uiRuleIndex

aint rule::uiRuleIndex

The rule index - zero-based order in which the rule appears in the SABNF grammar.

Definition at line 127 of file parserp.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.