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

Driver for the line parsing utilities examples.. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Driver for the line parsing utilities examples..

This example will demonstrate the construction and use of the line parsing utilities.

SABNF grammars and many other files used by parser applications are defined as "lines" of text or characters. Lines are typically ended with one or more of the ASCII control characters

Parsing or separating the text into separate line and line ending data is needed in many APG applications and objects. The lines object provides a unified means for identifying separate lines and iterating over them.

Similarly, arrays of Unicode characters often need the same facility. The linesu object will do much the same for arrays of 32-bit Unicode code points as the lines object does for character strings.

Unicode recognizes the following line ending characters:

Application requirements.

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.

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 350 of file main.c.

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