diff lexer/Token.d @ 37:858b9805843d new_gen

Bug-fixes Void can now be used and is recognized as a keyword by lexer Fixed a problem with casting on pointer types The expression is now optional for a ReturnStmt (only legal in void funcs)
author Anders Halager <halager@gmail.com>
date Sun, 20 Apr 2008 23:53:05 +0200
parents ce17bea8e9bd
children 4e879f82dd64
line wrap: on
line diff
--- a/lexer/Token.d	Sun Apr 20 22:39:07 2008 +0200
+++ b/lexer/Token.d	Sun Apr 20 23:53:05 2008 +0200
@@ -78,6 +78,8 @@
 
     Bool,
 
+    Void,
+
     Struct,
 
     If, Else,
@@ -100,6 +102,7 @@
         Tok.Int:"Int",
         Tok.Long:"Long",
         Tok.Bool:"Bool",
+        Tok.Void:"Void",
         Tok.Eq:"Eq",
         Tok.Ne:"Ne",
         Tok.Lt:"Lt",