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

The parser's final state. More...

#include <parser.h>

Data Fields

aint uiSuccess
 True (>0) if the input string was matched in its entirety, false (0) otherwise. More...
 
aint uiState
 One of ID_EMPTY, ID_MATCH or ID_NOMATCH. Note that it is possible for the parser to match a phrase without matching the entire input string. In this case the state would be ID_MATCH or ID_EMPTY but uiSuccess would be false. More...
 
aint uiPhraseLength
 Length of the matched phrase. More...
 
aint uiStringLength
 Length of the input string. More...
 
aint uiMaxTreeDepth
 The maximum tree depth reached during the parse. More...
 
aint uiHitCount
 The number of nodes visited during the traversal of the parse tree. More...
 

Detailed Description

The parser's final state.

Definition at line 183 of file parser.h.

Field Documentation

◆ uiHitCount

aint parser_state::uiHitCount

The number of nodes visited during the traversal of the parse tree.

Definition at line 191 of file parser.h.

◆ uiMaxTreeDepth

aint parser_state::uiMaxTreeDepth

The maximum tree depth reached during the parse.

Definition at line 190 of file parser.h.

◆ uiPhraseLength

aint parser_state::uiPhraseLength

Length of the matched phrase.

Definition at line 188 of file parser.h.

◆ uiState

aint parser_state::uiState

One of ID_EMPTY, ID_MATCH or ID_NOMATCH. Note that it is possible for the parser to match a phrase without matching the entire input string. In this case the state would be ID_MATCH or ID_EMPTY but uiSuccess would be false.

Definition at line 185 of file parser.h.

◆ uiStringLength

aint parser_state::uiStringLength

Length of the input string.

Definition at line 189 of file parser.h.

◆ uiSuccess

aint parser_state::uiSuccess

True (>0) if the input string was matched in its entirety, false (0) otherwise.

Definition at line 184 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.