Statistics
| Branch: | Revision:

root / src / sim / expryydefs.h @ fbe00e73

History | View | Annotate | Download (1.21 KB)

1
//==========================================================================
2
//  EXPRYYDEFS.H - part of
3
//
4
//                     OMNeT++/OMNEST
5
//            Discrete System Simulation in C++
6
//
7
//==========================================================================
8

    
9
/*--------------------------------------------------------------*
10
  Copyright (C) 2002-2008 Andras Varga
11
  Copyright (C) 2006-2008 OpenSim Ltd.
12

13
  This file is distributed WITHOUT ANY WARRANTY. See the file
14
  `license' for details on this and other legal matters.
15
*--------------------------------------------------------------*/
16

    
17
#ifndef __EXPRYYDEFS_H
18
#define __EXPRYYDEFS_H
19

    
20
#include "cdynamicexpression.h"
21

    
22
//NAMESPACE_BEGIN
23

    
24
//
25
// misc bison/flex related stuff, shared among *.lex and *.y files
26
//
27
#ifdef YYLTYPE
28
#error 'YYLTYPE defined before expryydefs.h -- type clash?'
29
#endif
30

    
31
struct my_yyltype {
32
   int dummy;
33
   int first_line, first_column;
34
   int last_line, last_column;
35
   char *text;
36
};
37
#define YYLTYPE  struct my_yyltype
38
#define YYSTYPE  char*
39

    
40
typedef struct {int li; int co;} LineColumn;
41
extern LineColumn xpos, xprevpos;
42

    
43
void doParseExpression(const char *nedtext, OPP::cDynamicExpression::Elem *&elems, int& nelems);
44

    
45
//NAMESPACE_END
46

    
47

    
48
#endif
49

    
50

    
51