comparison src/dil/lexer/Keywords.d @ 806:bcb74c9b895c

Moved out files in the trunk folder to the root.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 09 Mar 2008 00:12:19 +0100
parents trunk/src/dil/lexer/Keywords.d@cf2ad5df025c
children
comparison
equal deleted inserted replaced
805:a3fab8b74a7d 806:bcb74c9b895c
1 /++
2 Author: Aziz Köksal
3 License: GPL3
4 +/
5 module dil.lexer.Keywords;
6
7 import dil.lexer.Token;
8 import dil.lexer.Identifier;
9
10 /// Table of reserved identifiers.
11 static const Identifier[] g_reservedIds = [
12 {"abstract", TOK.Abstract},
13 {"alias", TOK.Alias},
14 {"align", TOK.Align},
15 {"asm", TOK.Asm},
16 {"assert", TOK.Assert},
17 {"auto", TOK.Auto},
18 {"body", TOK.Body},
19 {"bool", TOK.Bool},
20 {"break", TOK.Break},
21 {"byte", TOK.Byte},
22 {"case", TOK.Case},
23 {"cast", TOK.Cast},
24 {"catch", TOK.Catch},
25 {"cdouble", TOK.Cdouble},
26 {"cent", TOK.Cent},
27 {"cfloat", TOK.Cfloat},
28 {"char", TOK.Char},
29 {"class", TOK.Class},
30 {"const", TOK.Const},
31 {"continue", TOK.Continue},
32 {"creal", TOK.Creal},
33 {"dchar", TOK.Dchar},
34 {"debug", TOK.Debug},
35 {"default", TOK.Default},
36 {"delegate", TOK.Delegate},
37 {"delete", TOK.Delete},
38 {"deprecated", TOK.Deprecated},
39 {"do", TOK.Do},
40 {"double", TOK.Double},
41 {"else", TOK.Else},
42 {"enum", TOK.Enum},
43 {"export", TOK.Export},
44 {"extern", TOK.Extern},
45 {"false", TOK.False},
46 {"final", TOK.Final},
47 {"finally", TOK.Finally},
48 {"float", TOK.Float},
49 {"for", TOK.For},
50 {"foreach", TOK.Foreach},
51 {"foreach_reverse", TOK.Foreach_reverse},
52 {"function", TOK.Function},
53 {"goto", TOK.Goto},
54 {"idouble", TOK.Idouble},
55 {"if", TOK.If},
56 {"ifloat", TOK.Ifloat},
57 {"import", TOK.Import},
58 {"in", TOK.In},
59 {"inout", TOK.Inout},
60 {"int", TOK.Int},
61 {"interface", TOK.Interface},
62 {"invariant", TOK.Invariant},
63 {"ireal", TOK.Ireal},
64 {"is", TOK.Is},
65 {"lazy", TOK.Lazy},
66 {"long", TOK.Long},
67 {"macro", TOK.Macro}, // D2.0
68 {"mixin", TOK.Mixin},
69 {"module", TOK.Module},
70 {"new", TOK.New},
71 {"nothrow", TOK.Nothrow}, // D2.0
72 {"null", TOK.Null},
73 {"out", TOK.Out},
74 {"override", TOK.Override},
75 {"package", TOK.Package},
76 {"pragma", TOK.Pragma},
77 {"private", TOK.Private},
78 {"protected", TOK.Protected},
79 {"public", TOK.Public},
80 {"pure", TOK.Pure}, // D2.0
81 {"real", TOK.Real},
82 {"ref", TOK.Ref},
83 {"return", TOK.Return},
84 {"scope", TOK.Scope},
85 {"short", TOK.Short},
86 {"static", TOK.Static},
87 {"struct", TOK.Struct},
88 {"super", TOK.Super},
89 {"switch", TOK.Switch},
90 {"synchronized", TOK.Synchronized},
91 {"template", TOK.Template},
92 {"this", TOK.This},
93 {"throw", TOK.Throw},
94 {"__traits", TOK.Traits}, // D2.0
95 {"true", TOK.True},
96 {"try", TOK.Try},
97 {"typedef", TOK.Typedef},
98 {"typeid", TOK.Typeid},
99 {"typeof", TOK.Typeof},
100 {"ubyte", TOK.Ubyte},
101 {"ucent", TOK.Ucent},
102 {"uint", TOK.Uint},
103 {"ulong", TOK.Ulong},
104 {"union", TOK.Union},
105 {"unittest", TOK.Unittest},
106 {"ushort", TOK.Ushort},
107 {"version", TOK.Version},
108 {"void", TOK.Void},
109 {"volatile", TOK.Volatile},
110 {"wchar", TOK.Wchar},
111 {"while", TOK.While},
112 {"with", TOK.With},
113 // Special tokens:
114 {"__FILE__", TOK.FILE},
115 {"__LINE__", TOK.LINE},
116 {"__DATE__", TOK.DATE},
117 {"__TIME__", TOK.TIME},
118 {"__TIMESTAMP__", TOK.TIMESTAMP},
119 {"__VENDOR__", TOK.VENDOR},
120 {"__VERSION__", TOK.VERSION},
121 {"__EOF__", TOK.EOF}, // D2.0
122 ];