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

This data controls the flow of the main program of the APG parser generator. More...

#include <config.h>

Data Fields

char * cpCwd
 the current working directory More...
 
char * cpDefaultConfig
 if non-n=NULL, generate a default configuration file using this file name More...
 
char * cpUseConfig
 if non-n=NULL, use this configuration file instead of command line arguments More...
 
char * cpOutput
 the path name for the generated C source & header files More...
 
char * cpGrammarHtml
 if non-null, the file name for the HTML version of the annotated input grammar More...
 
char * cpRulesHtml
 if non-null, the file name for the HTML version of the rule/UDT names and dependencies More...
 
char * cpLfOut
 if non-null, the file name for the converted LF line ends file More...
 
char * cpCrLfOut
 if non-null, the file name for the converted CRLF line ends file More...
 
char ** cppInput
 array of uiInputFiles input file names More...
 
aint uiInputFiles
 the number of input files found More...
 
char ** cppPRules
 array of protected rule names
More...
 
aint uiPRules
 the number of protected rule names found More...
 
abool bHelp
 the help flag, if set the help screen is printed and processing stops More...
 
abool bVersion
 the version flag, if set the version number is printed and processing stops More...
 
abool bStrict
 if set, the grammar is treated as strict ABNF More...
 
abool bNoPppt
 if set, Partially-Predictive Parsing Tables (PPPTs) will not be produced More...
 
abool bDv
 verobose - sets options -dc, -dg, -dr, and -da
More...
 
abool bDc
 display the complete configuration as found on command line or configuration file More...
 
abool bDg
 display an annotated version of the input grammar More...
 
abool bDa
 display grammar attributes More...
 
abool bDr
 display grammar rule/UDT names in the order they occur in the grammar More...
 
abool bDra
 display the grammar rule/UDT names alphabetically More...
 
abool bDo
 display the opcodes for each rule in human-readable form More...
 
abool bDp
 display the PPPT size More...
 

Detailed Description

This data controls the flow of the main program of the APG parser generator.

The input command line or file is parsed to fill in this data.

Definition at line 106 of file config.h.

Field Documentation

◆ bDa

abool config::bDa

display grammar attributes

Definition at line 126 of file config.h.

◆ bDc

abool config::bDc

display the complete configuration as found on command line or configuration file

Definition at line 124 of file config.h.

◆ bDg

abool config::bDg

display an annotated version of the input grammar

Definition at line 125 of file config.h.

◆ bDo

abool config::bDo

display the opcodes for each rule in human-readable form

Definition at line 129 of file config.h.

◆ bDp

abool config::bDp

display the PPPT size

Definition at line 130 of file config.h.

◆ bDr

abool config::bDr

display grammar rule/UDT names in the order they occur in the grammar

Definition at line 127 of file config.h.

◆ bDra

abool config::bDra

display the grammar rule/UDT names alphabetically

Definition at line 128 of file config.h.

◆ bDv

abool config::bDv

verobose - sets options -dc, -dg, -dr, and -da

Definition at line 123 of file config.h.

◆ bHelp

abool config::bHelp

the help flag, if set the help screen is printed and processing stops

Definition at line 119 of file config.h.

◆ bNoPppt

abool config::bNoPppt

if set, Partially-Predictive Parsing Tables (PPPTs) will not be produced

Definition at line 122 of file config.h.

◆ bStrict

abool config::bStrict

if set, the grammar is treated as strict ABNF

Definition at line 121 of file config.h.

◆ bVersion

abool config::bVersion

the version flag, if set the version number is printed and processing stops

Definition at line 120 of file config.h.

◆ cpCrLfOut

char* config::cpCrLfOut

if non-null, the file name for the converted CRLF line ends file

Definition at line 114 of file config.h.

◆ cpCwd

char* config::cpCwd

the current working directory

Definition at line 107 of file config.h.

◆ cpDefaultConfig

char* config::cpDefaultConfig

if non-n=NULL, generate a default configuration file using this file name

Definition at line 108 of file config.h.

◆ cpGrammarHtml

char* config::cpGrammarHtml

if non-null, the file name for the HTML version of the annotated input grammar

Definition at line 111 of file config.h.

◆ cpLfOut

char* config::cpLfOut

if non-null, the file name for the converted LF line ends file

Definition at line 113 of file config.h.

◆ cpOutput

char* config::cpOutput

the path name for the generated C source & header files

Definition at line 110 of file config.h.

◆ cppInput

char** config::cppInput

array of uiInputFiles input file names

Definition at line 115 of file config.h.

◆ cppPRules

char** config::cppPRules

array of protected rule names

Definition at line 117 of file config.h.

◆ cpRulesHtml

char* config::cpRulesHtml

if non-null, the file name for the HTML version of the rule/UDT names and dependencies

Definition at line 112 of file config.h.

◆ cpUseConfig

char* config::cpUseConfig

if non-n=NULL, use this configuration file instead of command line arguments

Definition at line 109 of file config.h.

◆ uiInputFiles

aint config::uiInputFiles

the number of input files found

Definition at line 116 of file config.h.

◆ uiPRules

aint config::uiPRules

the number of protected rule names found

Definition at line 118 of file config.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.