Mercurial > projects > dil
comparison trunk/src/Token.d @ 107:722c05bbd5eb
- Implemented parseEnumDeclaration() and added class EnumDeclaration.
- Added 'alias srcText identifier' to Token for Identifiers.
- Replaced all instances of token.srcText with token.identifier where applicable.
author | aziz |
---|---|
date | Sun, 08 Jul 2007 15:22:03 +0000 |
parents | 1a83e5070a84 |
children | ce636f3981cc |
comparison
equal
deleted
inserted
replaced
106:441962b0f526 | 107:722c05bbd5eb |
---|---|
119 float float_; | 119 float float_; |
120 double double_; | 120 double double_; |
121 real real_; | 121 real real_; |
122 } | 122 } |
123 | 123 |
124 alias srcText identifier; | |
125 | |
124 string srcText() | 126 string srcText() |
125 { | 127 { |
126 assert(start && end); | 128 assert(start && end); |
127 return start[0 .. end - start]; | 129 return start[0 .. end - start]; |
128 } | 130 } |