Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Structures | Functions
main.c File Reference

Driver for the basic examples. More...

#include "../../utilities/utilities.h"
#include "./float.h"
Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  my_data
 

Functions

int main (int argc, char **argv)
 Main function for the basic application. More...
 

Detailed Description

Driver for the basic examples.

This is a simple demonstration of constructing a parser from pre-generated grammar files. The parser state is displayed and a second case demonstrates the use of rule name call back functions.

The compiled example will execute the following cases. Run the application with no arguments for application usage.

Definition in file main.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Main function for the basic application.

This example has several cases. Run the main program with no arguments to see a help screen with usage and a list of the cases with a brief description of each.

Parameters
argcThe number of command line arguments.
argvAn array of pointers to the command line arguments.
Returns
The application's exit code.

Definition at line 382 of file main.c.

APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.