Mercurial > projects > dil
comparison trunk/src/dil/Keywords.d @ 497:0ffcc4ff82f3
Refactored a few things in the Lexer.
Fix: SpecialTokensEnd should be TOK.VERSION not TOK.Version.
Fixed assert statement in textSpan().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 09 Dec 2007 14:58:38 +0100 |
parents | cca83c0c00fd |
children | 4e14cd1b24da |
comparison
equal
deleted
inserted
replaced
496:5a607597dc22 | 497:0ffcc4ff82f3 |
---|---|
4 +/ | 4 +/ |
5 module dil.Keywords; | 5 module dil.Keywords; |
6 import dil.Token; | 6 import dil.Token; |
7 import dil.Identifier; | 7 import dil.Identifier; |
8 | 8 |
9 /// Table of reserved identifiers. | |
9 static const Identifier[] keywords = [ | 10 static const Identifier[] keywords = [ |
10 {TOK.Abstract, "abstract"}, | 11 {TOK.Abstract, "abstract"}, |
11 {TOK.Alias, "alias"}, | 12 {TOK.Alias, "alias"}, |
12 {TOK.Align, "align"}, | 13 {TOK.Align, "align"}, |
13 {TOK.Asm, "asm"}, | 14 {TOK.Asm, "asm"}, |