Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
|
Go to the documentation of this file.
99 #define CONFIG_FILE "apg-configuration"
char * cpRulesHtml
if non-null, the file name for the HTML version of the rule/UDT names and dependencies
char ** cppInput
array of uiInputFiles input file names
aint uiPRules
the number of protected rule names found
abool bDo
display the opcodes for each rule in human-readable form
abool bDv
verobose - sets options -dc, -dg, -dr, and -da
void vConfigDisplay(const config *spConfig, int iArgCount, char **cppArgs)
Displays the full configuration as determined from the command line or command file arguments.
const config * spConfigOptions(void *vpCtx, int iArgCount, char **cppArgs)
Reads the command line arguments and parses them into a configuration structure.
void * vpConfigCtor(exception *spEx)
Constructs a configuration object to hold all data relating to this instance of the configuration.
char * cpDefaultConfig
if non-n=NULL, generate a default configuration file using this file name
aint uiInputFiles
the number of input files found
This data controls the flow of the main program of the APG parser generator.
abool bHelp
the help flag, if set the help screen is printed and processing stops
abool bDp
display the PPPT size
abool bNoPppt
if set, Partially-Predictive Parsing Tables (PPPTs) will not be produced
char * cpCwd
the current working directory
abool bDc
display the complete configuration as found on command line or configuration file
void vConfigHelp(void)
Prints the help screen when requested or if there is a command line options error.
abool bStrict
if set, the grammar is treated as strict ABNF
uint_fast32_t aint
The APG parser's unsigned integer type.
void vConfigDefault(void *vpCtx, char *cpFileName)
Prints a default configuration file.
char * cpLfOut
if non-null, the file name for the converted LF line ends file
void vConfigDtor(void *vpCtx)
The configuration destructor.
char * cpGrammarHtml
if non-null, the file name for the HTML version of the annotated input grammar
abool bDra
display the grammar rule/UDT names alphabetically
void vConfigVersion(void)
Display the version number.
A structure to describe the type and location of a caught exception.
abool bDg
display an annotated version of the input grammar
char * cpCrLfOut
if non-null, the file name for the converted CRLF line ends file
char ** cppPRules
array of protected rule names
char * cpUseConfig
if non-n=NULL, use this configuration file instead of command line arguments
abool bDr
display grammar rule/UDT names in the order they occur in the grammar
abool bVersion
the version flag, if set the version number is printed and processing stops
uint8_t abool
abool is the APG bool type.
char * cpOutput
the path name for the generated C source & header files
abool bDa
display grammar attributes
APG Version 7.0 is licensed under the
2-Clause BSD License,
an Open Source Initiative Approved License.