| 1 |
/* |
| 2 |
* $Id: keyword.h 658 2008-04-20 23:21:35Z elliotth $ |
| 3 |
* |
| 4 |
* Copyright (c) 1998-2002, Darren Hiebert |
| 5 |
* |
| 6 |
* This source code is released for free distribution under the terms of the |
| 7 |
* GNU General Public License. |
| 8 |
* |
| 9 |
* External interface to keyword.c |
| 10 |
*/ |
| 11 |
#ifndef _KEYWORD_H |
| 12 |
#define _KEYWORD_H |
| 13 |
|
| 14 |
/* |
| 15 |
* INCLUDE FILES |
| 16 |
*/ |
| 17 |
#include "general.h" /* must always come first */ |
| 18 |
|
| 19 |
#include "parse.h" |
| 20 |
|
| 21 |
/* |
| 22 |
* FUNCTION PROTOTYPES |
| 23 |
*/ |
| 24 |
extern void addKeyword (const char *const string, langType language, int value); |
| 25 |
extern int lookupKeyword (const char *const string, langType language); |
| 26 |
extern void freeKeywordTable (void); |
| 27 |
#ifdef DEBUG |
| 28 |
extern void printKeywordTable (void); |
| 29 |
#endif |
| 30 |
extern int analyzeToken (vString *const name, langType language); |
| 31 |
|
| 32 |
#endif /* _KEYWORD_H */ |
| 33 |
|
| 34 |
/* vi:set tabstop=4 shiftwidth=4: */ |