Mercurial > projects > dil
comparison trunk/src/dil/lexer/TokensEnum.d @ 798:c24be8d4f6ab
Added documentation comments.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 01 Mar 2008 02:53:06 +0100 |
parents | d887184efb3c |
children |
comparison
equal
deleted
inserted
replaced
797:cf2ad5df025c | 798:c24be8d4f6ab |
---|---|
4 +/ | 4 +/ |
5 module dil.lexer.TokensEnum; | 5 module dil.lexer.TokensEnum; |
6 | 6 |
7 import common; | 7 import common; |
8 | 8 |
9 /// Enumeration of token kinds. | |
9 enum TOK : ushort | 10 enum TOK : ushort |
10 { | 11 { |
11 Invalid, | 12 Invalid, |
12 | 13 |
13 Illegal, | 14 Illegal, |
118 alias TOK.Char IntegralTypeBegin; | 119 alias TOK.Char IntegralTypeBegin; |
119 alias TOK.Void IntegralTypeEnd; | 120 alias TOK.Void IntegralTypeEnd; |
120 alias TOK.FILE SpecialTokensBegin; | 121 alias TOK.FILE SpecialTokensBegin; |
121 alias TOK.VERSION SpecialTokensEnd; | 122 alias TOK.VERSION SpecialTokensEnd; |
122 | 123 |
123 /// A table mapping each TOK to a string. | 124 /// A table that maps each token kind to a string. |
124 const string[TOK.MAX] tokToString = [ | 125 const string[TOK.MAX] tokToString = [ |
125 "Invalid", | 126 "Invalid", |
126 | 127 |
127 "Illegal", | 128 "Illegal", |
128 "Comment", | 129 "Comment", |