Statistics
| Branch: | Revision:

root / src / common / matchexpressionlexer.h @ e1750c09

History | View | Annotate | Download (989 Bytes)

1
//==========================================================================
2
//  MATCHEXPRESSIONLEXER.H - part of
3
//                 OMNeT++/OMNEST
4
//              Discrete System Simulation in C++
5
//
6
//  Author: Tamas Borbely
7
//
8
//==========================================================================
9

    
10
/*--------------------------------------------------------------*
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

    
18
#ifndef __MATCHEXPRESSIONLEXER_H__
19
#define __MATCHEXPRESSIONLEXER_H__
20

    
21

    
22
NAMESPACE_BEGIN
23

    
24
/**
25
 * Handcoded lexer, because Flex-generated one was not reentrant.
26
 */
27
class MatchExpressionLexer
28
{
29
    private:
30
        const char *input;
31
        const char *ptr;
32
    public:
33
        MatchExpressionLexer(const char *input);
34
        int getNextToken(char **valuep);
35
};
36

    
37
NAMESPACE_END
38

    
39

    
40
#endif
41

    
42