Mercurial > projects > ldc
comparison dmd2/lexer.c @ 1577:e4f7b5d9c68a
DMD 2.032 Merge.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Tue, 08 Sep 2009 10:07:56 +0100 |
parents | 54b3c1394d62 |
children |
comparison
equal
deleted
inserted
replaced
1576:4551475bc6b6 | 1577:e4f7b5d9c68a |
---|---|
1158 SINGLE('?', TOKquestion) | 1158 SINGLE('?', TOKquestion) |
1159 SINGLE(',', TOKcomma) | 1159 SINGLE(',', TOKcomma) |
1160 SINGLE(';', TOKsemicolon) | 1160 SINGLE(';', TOKsemicolon) |
1161 SINGLE(':', TOKcolon) | 1161 SINGLE(':', TOKcolon) |
1162 SINGLE('$', TOKdollar) | 1162 SINGLE('$', TOKdollar) |
1163 SINGLE('@', TOKat) | |
1163 | 1164 |
1164 #undef SINGLE | 1165 #undef SINGLE |
1165 | 1166 |
1166 #define DOUBLE(c1,tok1,c2,tok2) \ | 1167 #define DOUBLE(c1,tok1,c2,tok2) \ |
1167 case c1: \ | 1168 case c1: \ |
3086 Token::tochars[TOKidentity] = "is"; | 3087 Token::tochars[TOKidentity] = "is"; |
3087 Token::tochars[TOKnotidentity] = "!is"; | 3088 Token::tochars[TOKnotidentity] = "!is"; |
3088 | 3089 |
3089 Token::tochars[TOKorass] = "|="; | 3090 Token::tochars[TOKorass] = "|="; |
3090 Token::tochars[TOKidentifier] = "identifier"; | 3091 Token::tochars[TOKidentifier] = "identifier"; |
3092 Token::tochars[TOKat] = "@"; | |
3091 | 3093 |
3092 // For debugging | 3094 // For debugging |
3093 Token::tochars[TOKdotexp] = "dotexp"; | 3095 Token::tochars[TOKdotexp] = "dotexp"; |
3094 Token::tochars[TOKdotti] = "dotti"; | 3096 Token::tochars[TOKdotti] = "dotti"; |
3095 Token::tochars[TOKdotvar] = "dotvar"; | 3097 Token::tochars[TOKdotvar] = "dotvar"; |