nedyydefs.h

Go to the documentation of this file.
00001 //==========================================================================
00002 //  NEDYYDEFS.H - part of
00003 //
00004 //                     OMNeT++/OMNEST
00005 //            Discrete System Simulation in C++
00006 //
00007 //==========================================================================
00008 
00009 /*--------------------------------------------------------------*
00010   Copyright (C) 2002-2008 Andras Varga
00011   Copyright (C) 2006-2008 OpenSim Ltd.
00012 
00013   This file is distributed WITHOUT ANY WARRANTY. See the file
00014   `license' for details on this and other legal matters.
00015 *--------------------------------------------------------------*/
00016 
00017 #ifndef __NEDYYDEFS_H
00018 #define __NEDYYDEFS_H
00019 
00020 #include "nedxmldefs.h"
00021 
00022 
00023 //
00024 // misc bison/flex related stuff, shared among *.lex, *.y and nedparser.cc/h files
00025 //
00026 NAMESPACE_BEGIN
00027 
00028 class NEDElement;
00029 class NEDParser;
00030 
00031 NAMESPACE_END
00032 
00033 #ifdef YYLTYPE
00034 #error 'YYLTYPE defined before nedyydefs.h -- type clash?'
00035 #endif
00036 
00037 struct my_yyltype {
00038    int dummy;
00039    int first_line, first_column;
00040    int last_line, last_column;
00041    char *text;
00042 };
00043 #define YYLTYPE  struct my_yyltype
00044 #define YYSTYPE  OPP::NEDElement*
00045 
00046 NAMESPACE_BEGIN
00047 
00048 typedef struct {int li; int co;} LineColumn;
00049 extern LineColumn pos, prevpos;
00050 
00051 NAMESPACE_END
00052 
00053 OPP::NEDElement *doParseNED2(OPP::NEDParser *p, const char *nedtext);
00054 OPP::NEDElement *doParseNED1(OPP::NEDParser *p, const char *nedtext);
00055 OPP::NEDElement *doParseMSG2(OPP::NEDParser *p, const char *nedtext);
00056 
00057 #endif
00058 
00059 
00060 
Generated on Tue Dec 2 11:16:31 2014 for OMNeT++ NEDXML by  doxygen 1.6.3