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

Input data to the AST callback functions. More...

#include <ast.h>

Collaboration diagram for ast_data:
Collaboration graph
[legend]

Data Fields

const acharacpString
 
aint uiStringLength
 
aint uiPhraseOffset
 
aint uiPhraseLength
 
aint uiState
 
const char * cpName
 Name of the rule or UDT. More...
 
aint uiIndex
 Index of the rule or UDT. More...
 
abool bIsUdt
 True if this record is for a UDT. False if it is for a rule. More...
 
exceptionspException
 Use but don't alter. Use to throw exceptions to the AST catch block. More...
 
void * vpUserData
 

Detailed Description

Input data to the AST callback functions.

Definition at line 69 of file ast.h.

Field Documentation

◆ acpString

const achar* ast_data::acpString

pointer to the input string

Definition at line 70 of file ast.h.

◆ bIsUdt

abool ast_data::bIsUdt

True if this record is for a UDT. False if it is for a rule.

Definition at line 77 of file ast.h.

◆ cpName

const char* ast_data::cpName

Name of the rule or UDT.

Definition at line 75 of file ast.h.

◆ spException

exception* ast_data::spException

Use but don't alter. Use to throw exceptions to the AST catch block.

Definition at line 78 of file ast.h.

◆ uiIndex

aint ast_data::uiIndex

Index of the rule or UDT.

Definition at line 76 of file ast.h.

◆ uiPhraseLength

aint ast_data::uiPhraseLength

matched phrase length

Definition at line 73 of file ast.h.

◆ uiPhraseOffset

aint ast_data::uiPhraseOffset

offset to the first character of the matched phrase

Definition at line 72 of file ast.h.

◆ uiState

aint ast_data::uiState

ID_AST_PRE on pre-node traversal, ID_AST_POST on post-node traversal

Definition at line 74 of file ast.h.

◆ uiStringLength

aint ast_data::uiStringLength

input string length

Definition at line 71 of file ast.h.

◆ vpUserData

void* ast_data::vpUserData

user-supplied data, if any. Not used by AST

Definition at line 80 of file ast.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.