Mercurial > projects > dil
comparison trunk/src/Token.d @ 163:f27a98bb17c7
- Fix: when parsing Declarator fails, type and ident is set to null.
- Added an opEquals method to Token.
author | aziz |
---|---|
date | Fri, 13 Jul 2007 22:41:03 +0000 |
parents | ce636f3981cc |
children | 0a9bccf74046 |
comparison
equal
deleted
inserted
replaced
162:c7b250662c74 | 163:f27a98bb17c7 |
---|---|
130 return start[0 .. end - start]; | 130 return start[0 .. end - start]; |
131 } | 131 } |
132 | 132 |
133 bool isKeyword() | 133 bool isKeyword() |
134 { | 134 { |
135 if (KeywordsBegin <= type && type <= KeywordsEnd) | 135 return KeywordsBegin <= type && type <= KeywordsEnd; |
136 return true; | |
137 return false; | |
138 } | 136 } |
137 /+ | |
138 int opEquals(TOK type2) | |
139 { | |
140 return type == type2; | |
141 } | |
142 +/ | |
139 } | 143 } |