diff trunk/src/Token.d @ 3:4bbce78bfb1e

- Added TOK enum. - Added two methods to Lexer class.
author aziz
date Thu, 21 Jun 2007 18:36:04 +0000
parents 8ba2570de175
children 92df59b1ec4a
line wrap: on
line diff
--- a/trunk/src/Token.d	Wed May 30 13:14:00 2007 +0000
+++ b/trunk/src/Token.d	Thu Jun 21 18:36:04 2007 +0000
@@ -10,14 +10,16 @@
   size_t col;
 }
 
+enum TOK
+{
+  Identifier,
+  Whitespace,
+  Comment
+}
+
 struct Token
 {
-  enum Type
-  {
-
-  }
-
-  Type type;
+  TOK type;
   Position pos;
 
   union