comparison dmd/lexer.h @ 658:50383e476c7e

Upgraded frontend to DMD 1.035
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 06 Oct 2008 16:22:11 +0200
parents 4435f57956e7
children eef8ac26c66c
comparison
equal deleted inserted replaced
657:c42173b3557b 658:50383e476c7e
156 TOKpure, 156 TOKpure,
157 TOKnothrow, 157 TOKnothrow,
158 TOKtls, 158 TOKtls,
159 TOKline, 159 TOKline,
160 TOKfile, 160 TOKfile,
161 TOKshared,
161 #endif 162 #endif
162 163
163 // LLVMDC specific 164 // LLVMDC specific
164 #if IN_LLVM 165 #if IN_LLVM
165 TOKgep, 166 TOKgep,
238 }; 239 };
239 #ifdef IN_GCC 240 #ifdef IN_GCC
240 real_t float80value; // can't use this in a union! 241 real_t float80value; // can't use this in a union!
241 #endif 242 #endif
242 243
243 static char *tochars[TOKMAX]; 244 static const char *tochars[TOKMAX];
244 static void *operator new(size_t sz); 245 static void *operator new(size_t sz);
245 246
246 int isKeyword(); 247 int isKeyword();
247 void print(); 248 void print();
248 char *toChars(); 249 const char *toChars();
249 static char *toChars(enum TOK); 250 static const char *toChars(enum TOK);
250 }; 251 };
251 252
252 struct Lexer 253 struct Lexer
253 { 254 {
254 static StringTable stringtable; 255 static StringTable stringtable;