1 /***************************************************************************
3 * $Id: lexer.h 152 2010-10-10 14:17:37Z Michael.McTernan $
5 * Extra lexer/scanner API functions.
6 * Copyright (C) 2010 Michael C McTernan, Michael.McTernan.2001@cs.bris.ac.uk
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 ***************************************************************************/
23 #ifndef MSCGEN_LEXER_H
24 #define MSCGEN_LEXER_H
26 /*****************************************************************************
28 *****************************************************************************/
30 #include "mscgen_bool.h"
32 /*****************************************************************************
33 * Preprocessor Macros & Constants
34 *****************************************************************************/
36 /*****************************************************************************
38 *****************************************************************************/
40 /*****************************************************************************
41 * Global Variable Declarations
42 *****************************************************************************/
44 /*****************************************************************************
45 * Global Function Declarations
46 *****************************************************************************/
51 Boolean lex_getutf8(void);
56 unsigned long lex_getlinenum(void);
57 char *lex_getline(void);
58 void lex_destroy(void);
59 void lex_resetparser(void);
61 #endif /* MSCGEN_LEXER_H */