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

Defines the input string and other configuration parameters for the parser,. More...

#include <parser.h>

Data Fields

const acharacpInput
 Pointer to the input string. More...
 
aint uiInputLength
 Number of input string alphabet characters. More...
 
aint uiStartRule
 Index of the start rule. Any rule in the SABNF grammar may be used as the start rule. More...
 
abool bParseSubString
 If true (non-zero), only parse the defined sub-string of the input string. More...
 
aint uiSubStringBeg
 The first character of the sub-string to parse. Must be < uiInputLength or exception is thrown. More...
 
aint uiSubStringLength
 The number of characters in the sub-string. If 0, then the remainder of the string from uiSubStringBeg is used. If uiSubStringBeg + uiSubStringLength > uiInputLength, then uiSubStringLength is truncated. More...
 
aint uiLookBehindLength
 The maximum length to look behind for a match. Use 0 or APG_INFINITE for infinite look behind. More...
 
void * vpUserData
 Pointer to user data, if any. Not examined or used by the parser in any way. Presented to the user's callback functions. More...
 

Detailed Description

Defines the input string and other configuration parameters for the parser,.

Definition at line 198 of file parser.h.

Field Documentation

◆ acpInput

const achar* parser_config::acpInput

Pointer to the input string.

Definition at line 199 of file parser.h.

◆ bParseSubString

abool parser_config::bParseSubString

If true (non-zero), only parse the defined sub-string of the input string.

Definition at line 202 of file parser.h.

◆ uiInputLength

aint parser_config::uiInputLength

Number of input string alphabet characters.

Definition at line 200 of file parser.h.

◆ uiLookBehindLength

aint parser_config::uiLookBehindLength

The maximum length to look behind for a match. Use 0 or APG_INFINITE for infinite look behind.

Definition at line 208 of file parser.h.

◆ uiStartRule

aint parser_config::uiStartRule

Index of the start rule. Any rule in the SABNF grammar may be used as the start rule.

Definition at line 201 of file parser.h.

◆ uiSubStringBeg

aint parser_config::uiSubStringBeg

The first character of the sub-string to parse. Must be < uiInputLength or exception is thrown.

Definition at line 203 of file parser.h.

◆ uiSubStringLength

aint parser_config::uiSubStringLength

The number of characters in the sub-string. If 0, then the remainder of the string from uiSubStringBeg is used. If uiSubStringBeg + uiSubStringLength > uiInputLength, then uiSubStringLength is truncated.

Definition at line 205 of file parser.h.

◆ vpUserData

void* parser_config::vpUserData

Pointer to user data, if any. Not examined or used by the parser in any way. Presented to the user's callback functions.

Definition at line 210 of file parser.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.