APG
… an ABNF Parser Generator
|
Driver for the basic examples. More...
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... | |
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.
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.
argc | The number of command line arguments. |
argv | An array of pointers to the command line arguments. |