Mercurial > projects > dil
diff trunk/src/dil/Token.d @ 502:4e14cd1b24da
Refactored code and added modules related to tabulated Identifiers.
Rearranged members of struct Identifier and added new member ID identID.
Moved idTableLookup to module dil.IdTable.
Renamed module TokenIDs to TokensEnum.
Added member Identifier* ident to struct Token.
Changed string switchtes in Parser to integer switches using enum ID.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 11 Dec 2007 14:19:30 +0100 |
parents | 41b7f9e439bd |
children | 996041463028 |
line wrap: on
line diff
--- a/trunk/src/dil/Token.d Sun Dec 09 23:27:40 2007 +0100 +++ b/trunk/src/dil/Token.d Tue Dec 11 14:19:30 2007 +0100 @@ -4,11 +4,12 @@ +/ module dil.Token; import dil.Location; +import dil.Identifier; import tango.stdc.stdlib : malloc, free; import tango.core.Exception; import common; -public import dil.TokenIDs; +public import dil.TokensEnum; /++ A Token is a sequence of characters formed by the lexical analyzer. @@ -48,6 +49,7 @@ /// doubly linked list. The last token is always '}' or /// EOF in case end of source text is "q{" EOF. } + Identifier* ident; dchar dchar_; long long_; ulong ulong_;