nedyydefs.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __NEDYYDEFS_H
00018 #define __NEDYYDEFS_H
00019
00020 #include "nedxmldefs.h"
00021
00022
00023
00024
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