Version 6.3
Copyright © 2005 - 2012 Lowell D. Thomas
APG
  … ABNF Parser Generator
All Data Structures Files Functions Variables Typedefs Macros Pages
Functions
main.c File Reference

The driver for the SIP tests. More...

#include "main.h"

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

The driver for the SIP tests.

This is an in-depth study of using UDTs to significantly speed up the parsing process without altering the language of interest.

The timing results will vary, of course, between computers and even between different runs on the same computer. But in my tests, I was able to see a 10-fold increase in parsing speed in the debug version of the code. In the optimized, release version this was somewhat less.

Be patient. The timing tests can take up to several minutes to complete.

To regenerate the grammars for the six stages:

apg /in:Grammar1.bnf /C:Grammar1 /dwarnings /dtypes
apg /in:Grammar2.bnf /C:Grammar2 /dwarnings /dtypes
apg /in:Grammar3.bnf /C:Grammar3 /dwarnings /dtypes
apg /in:Grammar4.bnf /C:Grammar4 /dwarnings /dtypes
apg /in:Grammar5.bnf /C:Grammar5 /dwarnings /dtypes
apg /in:SIP.bnf /C:SIPGrammar /dwarnings /dtypes

Definition in file main.c.

Function Documentation

◆ main()

int main ( )

Definition at line 78 of file main.c.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/licenses.html or write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.