comparison dmd2/lexer.h @ 1452:638d16625da2

LDC 2 compiles again.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 30 May 2009 17:23:32 +0100
parents f04dde6e882c
children e4f7b5d9c68a
comparison
equal deleted inserted replaced
1423:42bd767ec5a4 1452:638d16625da2
49 TOKsemicolon, TOKdotdotdot, 49 TOKsemicolon, TOKdotdotdot,
50 TOKeof, TOKcast, 50 TOKeof, TOKcast,
51 TOKnull, TOKassert, 51 TOKnull, TOKassert,
52 TOKtrue, TOKfalse, 52 TOKtrue, TOKfalse,
53 TOKarray, TOKcall, 53 TOKarray, TOKcall,
54 TOKaddress, TOKtypedot, 54 TOKaddress,
55 TOKtype, TOKthrow, 55 TOKtype, TOKthrow,
56 TOKnew, TOKdelete, 56 TOKnew, TOKdelete,
57 TOKstar, TOKsymoff, 57 TOKstar, TOKsymoff,
58 TOKvar, TOKdotvar, 58 TOKvar, TOKdotvar,
59 TOKdotti, TOKdotexp, 59 TOKdotti, TOKdotexp,
154 TOKtraits, 154 TOKtraits,
155 TOKoverloadset, 155 TOKoverloadset,
156 TOKpure, 156 TOKpure,
157 TOKnothrow, 157 TOKnothrow,
158 TOKtls, 158 TOKtls,
159 TOKgshared,
159 TOKline, 160 TOKline,
160 TOKfile, 161 TOKfile,
161 TOKshared, 162 TOKshared,
162 #endif 163 #endif
163 164
276 static Identifier *uniqueId(const char *s); 277 static Identifier *uniqueId(const char *s);
277 static Identifier *uniqueId(const char *s, int num); 278 static Identifier *uniqueId(const char *s, int num);
278 279
279 TOK nextToken(); 280 TOK nextToken();
280 TOK peekNext(); 281 TOK peekNext();
282 TOK peekNext2();
281 void scan(Token *t); 283 void scan(Token *t);
282 Token *peek(Token *t); 284 Token *peek(Token *t);
283 Token *peekPastParen(Token *t); 285 Token *peekPastParen(Token *t);
284 unsigned escapeSequence(); 286 unsigned escapeSequence();
285 TOK wysiwygStringConstant(Token *t, int tc); 287 TOK wysiwygStringConstant(Token *t, int tc);
292 TOK charConstant(Token *t, int wide); 294 TOK charConstant(Token *t, int wide);
293 void stringPostfix(Token *t); 295 void stringPostfix(Token *t);
294 unsigned wchar(unsigned u); 296 unsigned wchar(unsigned u);
295 TOK number(Token *t); 297 TOK number(Token *t);
296 TOK inreal(Token *t); 298 TOK inreal(Token *t);
297 void error(const char *format, ...); 299 void error(const char *format, ...) IS_PRINTF(2);
298 void error(Loc loc, const char *format, ...); 300 void error(Loc loc, const char *format, ...) IS_PRINTF(3);
299 void pragma(); 301 void pragma();
300 unsigned decodeUTF(); 302 unsigned decodeUTF();
301 void getDocComment(Token *t, unsigned lineComment); 303 void getDocComment(Token *t, unsigned lineComment);
302 304
303 static int isValidIdentifier(char *p); 305 static int isValidIdentifier(char *p);