Version 6.3
Copyright © 2005 - 2012 Lowell D. Thomas
APG
  … ABNF Parser Generator
All Data Structures Files Functions Variables Typedefs Macros Pages
Data Fields
APG_CBDATA Struct Reference

The data structure passed to all syntax and AST callback functions, both rule and UDT. More...

#include <Apg.h>

Data Fields

void * vpCtx
 
const apg_acharacpSrc
 
apg_uint uiSrcLen
 
apg_uint uiPhraseOffset
 
apg_uint uiState
 
apg_uint uiPhraseLength
 
void * vpUserData
 

Detailed Description

The data structure passed to all syntax and AST callback functions, both rule and UDT.

The data structure passed to all syntax and AST callback functions, both rule and UDT.

It has been convenient to use a single data structure and function prototype for all callback functions, whether rule or UDT callback, whether syntax or semantic analysis. However, the variables in the callback data structure have slightly different meanings in each case. See APG_CALLBACK for the details about the different types of usage.

See also
APG_CALLBACK

Definition at line 453 of file Apg.h.

Field Documentation

◆ acpSrc

const apg_achar* APG_CBDATA::acpSrc

pointer to the input string (user must not be modify this string)

Definition at line 455 of file Apg.h.

◆ uiPhraseLength

apg_uint APG_CBDATA::uiPhraseLength

the phrase length. Varies with usage.

See also
APG_CALLBACK.

Definition at line 459 of file Apg.h.

◆ uiPhraseOffset

apg_uint APG_CBDATA::uiPhraseOffset

offset to the first character of the phrase matched or to be matched

Definition at line 457 of file Apg.h.

◆ uiSrcLen

apg_uint APG_CBDATA::uiSrcLen

the input string length

Definition at line 456 of file Apg.h.

◆ uiState

apg_uint APG_CBDATA::uiState

the state of the parser. Varies with usage.

See also
APG_CALLBACK.

Definition at line 458 of file Apg.h.

◆ vpCtx

void* APG_CBDATA::vpCtx

the parser's context handle. For system use only.

Definition at line 454 of file Apg.h.

◆ vpUserData

void* APG_CBDATA::vpUserData

user-defined data passed to uiParserSyntaxAnalysis() or uiParserAstTranslate(). Ignored by Parser.

Definition at line 460 of file Apg.h.


The documentation for this struct was generated from the following file:
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/licenses.html or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.