Mercurial > projects > dil
comparison trunk/src/dil/lexer/IdTable.d @ 769:5e3ef1b2011c
Added and improved documentation.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 17 Feb 2008 02:21:55 +0100 |
parents | 140469ecb90e |
children | 3b34f6a95a27 |
comparison
equal
deleted
inserted
replaced
768:d84349a60f5c | 769:5e3ef1b2011c |
---|---|
10 import common; | 10 import common; |
11 | 11 |
12 public import dil.lexer.Identifier; | 12 public import dil.lexer.Identifier; |
13 public import dil.lexer.IdentsEnum; | 13 public import dil.lexer.IdentsEnum; |
14 | 14 |
15 /// A namespace for the predefined identifiers. | |
15 struct Ident | 16 struct Ident |
16 { | 17 { |
17 const static | 18 const static |
18 { | 19 { |
19 mixin(generateIdentMembers()); | 20 mixin(generateIdentMembers()); |
23 { | 24 { |
24 return __allIds; | 25 return __allIds; |
25 } | 26 } |
26 } | 27 } |
27 | 28 |
28 /++ | 29 /// Global table for hoarding and retrieving identifiers. |
29 Global table for hoarding and retrieving identifiers. | |
30 +/ | |
31 struct IdTable | 30 struct IdTable |
32 { | 31 { |
33 static: | 32 static: |
34 /// A set of common, predefined identifiers for fast lookups. | 33 /// A set of common, predefined identifiers for fast lookups. |
35 private Identifier*[string] staticTable; | 34 private Identifier*[string] staticTable; |