diff lexer/Token.d @ 72:628cb46ab13b new_gen

First update on the way to Arrays! :) Lexer and ast/Exp now have the types needed. All that needs to be updated now is the Parser. I suggest two options: 1) Making the Id a class that we can make a ArrayId and PointerId for at some point. 2) Use a struct as now, but adding some bools / ints to give a more abstract description of the type 2) is messy and 1) is slower... :/
author Anders Johnsen <skabet@gmail.com>
date Thu, 01 May 2008 23:08:41 +0200
parents 381975d76baf
children 192da4976daa
line wrap: on
line diff
--- a/lexer/Token.d	Thu May 01 19:51:22 2008 +0200
+++ b/lexer/Token.d	Thu May 01 23:08:41 2008 +0200
@@ -109,6 +109,8 @@
     CloseParentheses,
     OpenBrace,
     CloseBrace,
+    OpenBracket,
+    CloseBracket,
     Seperator,
     Colon,
     Dot,
@@ -170,6 +172,8 @@
         Tok.CloseParentheses:"CloseParentheses",
         Tok.OpenBrace:"OpenBrace",
         Tok.CloseBrace:"CloseBrace",
+        Tok.OpenBracket:"OpenBracket",
+        Tok.CloseBracket:"CloseBracket",
         Tok.Dot:"Dot",
         Tok.Assign:"Assign",
         Tok.Add:"Add",