view trunk/src/dil/IdentsEnum.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
children
line wrap: on
line source

/++
  Author: Aziz Köksal
  License: GPL3
+/
module dil.IdentsEnum;
import dil.IdentsGenerator;

mixin(
  "enum ID : ushort {"
    "Null,"
    ~ generateIDMembers ~
  "}"
);