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

Sets up and runs a parser for the MEGACO grammar. More...

#include "Apg.h"
#include "ApgUtilities.h"
#include "MEGACO.h"
#include <iostream>

Go to the source code of this file.

Macros

#define MASSERT(cond, msg)   if(!(cond)){vTerminalAlertMsg(__LINE__, __FILE__, (msg));}
 

Functions

int main ()
 

Detailed Description

Sets up and runs a parser for the MEGACO grammar.

The grammar file for this test has been generated with the parser generator command:

apg /in:MEGACO.bnf /C++:MEGACO /dwarnings /dtypes

Definition in file main.cpp.

Macro Definition Documentation

◆ MASSERT

#define MASSERT (   cond,
  msg 
)    if(!(cond)){vTerminalAlertMsg(__LINE__, __FILE__, (msg));}

An assertion macro which calls the vTerminalAlertMsg() alert handler on errors.

See also
vTerminalAlertMsg()

Definition at line 33 of file main.cpp.

Function Documentation

◆ main()

int main ( )

The main function. Takes no command line arguments.

Definition at line 45 of file main.cpp.

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.