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

Format of an AST record. More...

#include <ast.h>

Data Fields

const char * cpName
 Name of the rule or UDT of this record. More...
 
aint uiIndex
 Index of the rule or UDT of this record. More...
 
aint uiThisRecord
 The record number. More...
 
aint uiThatRecord
 The matching record number. That is, if uiThisRecord the number of the record that opens the rule, uiThatRecord is the number of the record that closes the rule. And vice versa. More...
 
aint uiPhraseOffset
 The offset into the input string to the first character of the matched phrase. More...
 
aint uiPhraseLength
 The number of characters in the matched phrase. More...
 
aint uiState
 ID_AST_PRE if the current record opens the rule, ID_AST_POST if the current record closes the rule. More...
 
abool bIsUdt
 True if this record is for a UDT. More...
 

Detailed Description

Format of an AST record.

Available if user wants to write a custom AST translator.

Definition at line 42 of file ast.h.

Field Documentation

◆ bIsUdt

abool ast_record::bIsUdt

True if this record is for a UDT.

Definition at line 51 of file ast.h.

◆ cpName

const char* ast_record::cpName

Name of the rule or UDT of this record.

Definition at line 43 of file ast.h.

◆ uiIndex

aint ast_record::uiIndex

Index of the rule or UDT of this record.

Definition at line 44 of file ast.h.

◆ uiPhraseLength

aint ast_record::uiPhraseLength

The number of characters in the matched phrase.

Definition at line 49 of file ast.h.

◆ uiPhraseOffset

aint ast_record::uiPhraseOffset

The offset into the input string to the first character of the matched phrase.

Definition at line 48 of file ast.h.

◆ uiState

aint ast_record::uiState

ID_AST_PRE if the current record opens the rule, ID_AST_POST if the current record closes the rule.

Definition at line 50 of file ast.h.

◆ uiThatRecord

aint ast_record::uiThatRecord

The matching record number. That is, if uiThisRecord the number of the record that opens the rule, uiThatRecord is the number of the record that closes the rule. And vice versa.

Definition at line 46 of file ast.h.

◆ uiThisRecord

aint ast_record::uiThisRecord

The record number.

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