Mercurial > projects > dil
diff 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 |
line wrap: on
line diff
--- a/trunk/src/dil/lexer/IdTable.d Fri Feb 29 19:25:21 2008 +0100 +++ b/trunk/src/dil/lexer/IdTable.d Fri Feb 29 22:51:24 2008 +0100 @@ -38,7 +38,7 @@ /// Loads keywords and predefined identifiers into the static table. static this() { - foreach (ref k; keywords) + foreach (ref k; g_reservedIds) staticTable[k.str] = &k; foreach (id; Ident.allIds()) staticTable[id.str] = id;