comparison trunk/src/dil/lexer/IdTable.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
36 private Identifier*[string] growingTable; 36 private Identifier*[string] growingTable;
37 37
38 /// Loads keywords and predefined identifiers into the static table. 38 /// Loads keywords and predefined identifiers into the static table.
39 static this() 39 static this()
40 { 40 {
41 foreach (ref k; keywords) 41 foreach (ref k; g_reservedIds)
42 staticTable[k.str] = &k; 42 staticTable[k.str] = &k;
43 foreach (id; Ident.allIds()) 43 foreach (id; Ident.allIds())
44 staticTable[id.str] = id; 44 staticTable[id.str] = id;
45 staticTable.rehash; 45 staticTable.rehash;
46 } 46 }