2 Copyright (C) 1999-2006 Id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
5 This file is part of GtkRadiant.
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 //**************************************************************************
27 //**************************************************************************
46 #define ASCII_SPACE 32
47 #define ASCII_QUOTE 34
48 #define ASCII_UNDERSCORE 95
49 #define EOF_CHARACTER 127
50 #define MAX_IDENTIFIER_LENGTH 64
51 #define MAX_QUOTED_LENGTH 1024
52 #define MAX_FILE_NAME_LENGTH 1024
59 TK_IDENTIFIER, // VALUE: (char *) tk_String
60 TK_STRING, // VALUE: (char *) tk_String
61 TK_INTNUMBER, // VALUE: (int) tk_IntNumber
62 TK_FLOATNUMBER, // VALUE: (float) tk_FloatNumber
103 TK_NUM_CLUSTER_VERTICES,
113 void TK_OpenSource(char *fileName);
114 void TK_CloseSource(void);
115 tokenType_t TK_Fetch(void);
116 void TK_Require(tokenType_t tokType);
117 void TK_FetchRequire(tokenType_t tokType);
118 tokenType_t TK_RequireFetch(tokenType_t tokType);
119 tokenType_t TK_FetchRequireFetch(tokenType_t tokType);
120 tokenType_t TK_Beyond(tokenType_t tokType);
121 void TK_BeyondRequire(tokenType_t bTok, tokenType_t rTok);
122 tokenType_t TK_Search(tokenType_t tokType);
123 tokenType_t TK_Get(tokenType_t tokType);
125 extern tokenType_t tk_Token;
127 extern int tk_IntNumber;
128 extern float tk_FloatNumber;
129 extern char *tk_String;
130 extern char tk_SourceName[MAX_FILE_NAME_LENGTH];