Mercurial > projects > dil
comparison trunk/src/dil/ast/NodesEnum.d @ 797:cf2ad5df025c
Added documentation comments.
Removed Lexer.loadKeywords() and revised Lexer.isReservedIdentifier().
Also removed Lexer.getTokens().
Renamed keywords to g_reservedIds.
Renamed classNames to g_classNames.
Added PRE and DMDBUG macros.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 29 Feb 2008 22:51:24 +0100 |
parents | 3b34f6a95a27 |
children |
comparison
equal
deleted
inserted
replaced
796:f7688996bf08 | 797:cf2ad5df025c |
---|---|
14 Type, | 14 Type, |
15 Other | 15 Other |
16 } | 16 } |
17 | 17 |
18 /// A list of all class names that inherit from Node. | 18 /// A list of all class names that inherit from Node. |
19 static const char[][] classNames = [ | 19 static const char[][] g_classNames = [ |
20 // Declarations: | 20 // Declarations: |
21 "CompoundDeclaration", | 21 "CompoundDeclaration", |
22 "EmptyDeclaration", | 22 "EmptyDeclaration", |
23 "IllegalDeclaration", | 23 "IllegalDeclaration", |
24 "ModuleDeclaration", | 24 "ModuleDeclaration", |
214 | 214 |
215 /// Generates the members of enum NodeKind. | 215 /// Generates the members of enum NodeKind. |
216 char[] generateNodeKindMembers() | 216 char[] generateNodeKindMembers() |
217 { | 217 { |
218 char[] text; | 218 char[] text; |
219 foreach (className; classNames) | 219 foreach (className; g_classNames) |
220 text ~= className ~ ","; | 220 text ~= className ~ ","; |
221 return text; | 221 return text; |
222 } | 222 } |
223 // pragma(msg, generateNodeKindMembers()); | 223 // pragma(msg, generateNodeKindMembers()); |
224 | 224 |