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

Generalized opcode for first-pass semantic processing. More...

#include <semantics.h>

Data Fields

aint uiId
 
void * vpVecChildList
 
luint luiMin
 
luint luiMax
 
aint uiEmpty
 
aint uiCase
 
aint uiMode
 
int uiStringIndex
 
aint uiStringLength
 
char * cpName
 
aint uiNameLength
 
aint uiBkrIndex
 
aint uiSeq
 

Detailed Description

Generalized opcode for first-pass semantic processing.

Definition at line 50 of file semantics.h.

Field Documentation

◆ cpName

char* semantic_op::cpName

Pointer to rule/UDT/BKR name in input grammar (not null-termed).

Definition at line 60 of file semantics.h.

◆ luiMax

luint semantic_op::luiMax

Maximum count for REP/TRG operator.

Definition at line 54 of file semantics.h.

◆ luiMin

luint semantic_op::luiMin

Minimum count for REP/TRG operator.

Definition at line 53 of file semantics.h.

◆ uiBkrIndex

aint semantic_op::uiBkrIndex

the index to the rule, if < rule Count, or index to UDT if >= rule count

Definition at line 62 of file semantics.h.

◆ uiCase

aint semantic_op::uiCase

ID_BKR_CASE_S or ID_BKR_CASE_I for BKR.

Definition at line 56 of file semantics.h.

◆ uiEmpty

aint semantic_op::uiEmpty

APG_TRUE if UDT can be empty, APG_FALSE otherwise.

Definition at line 55 of file semantics.h.

◆ uiId

aint semantic_op::uiId

Opcode id, ID_ALT, etc.

Definition at line 51 of file semantics.h.

◆ uiMode

aint semantic_op::uiMode

ID_BKR_MODE_U of ID_BKR_MODE_P for BKR.

Definition at line 57 of file semantics.h.

◆ uiNameLength

aint semantic_op::uiNameLength

Number of characters in the name, not including the null term

Definition at line 61 of file semantics.h.

◆ uiSeq

aint semantic_op::uiSeq

used to sequence the remaining opcodes after removal of one-child ALT & CAT and REP(1,1) operators

Definition at line 63 of file semantics.h.

◆ uiStringIndex

int semantic_op::uiStringIndex

Offset into the achar table for the string of a TLS & TBS operators.

Definition at line 58 of file semantics.h.

◆ uiStringLength

aint semantic_op::uiStringLength

The string length.

Definition at line 59 of file semantics.h.

◆ vpVecChildList

void* semantic_op::vpVecChildList

A vector of opcode indexes for children of ALT and CAT operators.

Definition at line 52 of file semantics.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.