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

Defines a pointer to an achar array plus its length. That is, a phrase as is often used by APG. More...

#include <lib.h>

Data Fields

const acharacpPhrase
 Pointer to an array of type achar APG alphabet characters. More...
 
aint uiLength
 The number of characters in the array. More...
 

Detailed Description

Defines a pointer to an achar array plus its length. That is, a phrase as is often used by APG.

ABNF grammars define phrases of the grammar's alphabet characters. APG must deal with them specifically and often. A phrase is nothing more than an array of type achar characters. Since all values may be present in the array it is not possible to use a special character as an array ending character as is done with the C-language strings of char characters. Also, the length of the array may easily be longer than the maximum achar character, APG_MAX_ACHAR. Therefore, a special structure is required to hold the array and length information.

Definition at line 60 of file lib.h.

Field Documentation

◆ acpPhrase

const achar* apg_phrase::acpPhrase

Pointer to an array of type achar APG alphabet characters.

Definition at line 61 of file lib.h.

◆ uiLength

aint apg_phrase::uiLength

The number of characters in the array.

Definition at line 62 of file lib.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.