diff lexer/Keyword.d @ 1:2168f4cb73f1

First push
author johnsen@johnsen-desktop
date Fri, 18 Apr 2008 02:01:38 +0200
parents
children 2c5a8f4c254a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lexer/Keyword.d	Fri Apr 18 02:01:38 2008 +0200
@@ -0,0 +1,25 @@
+module lexer.Keyword;
+
+import lexer.Token;
+
+Tok[char[]] keywords;
+
+static this ()
+{
+    keywords =
+    [
+        "byte"[]    : Tok.Byte,
+        "ubyte"     : Tok.Ubyte,
+        "short"     : Tok.Short,
+        "ushort"    : Tok.Ushort,
+        "int"       : Tok.Int,
+        "uint"      : Tok.Uint,
+        "long"      : Tok.Long,
+        "ulong"     : Tok.Ulong,
+
+        "float"     : Tok.Float,
+        "double"    : Tok.Double,
+
+        "return"    : Tok.Return
+    ];
+}