diff trunk/src/main.d @ 392:bb935c6f9b7a

Applied fixes and improvements to the Lexer class. In scanDelimitedStringLiteral: - leading newlines are skipped now. - passed c instead of closing_delim to isUniAlpha(). - the matching string delimiter must follow a newline. - corrected if-statements and an assert(). Added inTokenString member: - in scanTokenStringLiteral() this member is increment at the start and decremented at the end. - in scanSpecialTokenSequence() this member is checked and #line is not evaluated if it is not zero. Added missing break to case 'L' in scanNumber(). In scanReal(): - changed debug switch to a delegate inside an assert(). - removing underscores from buffer more efficiently. Made some other trivial changes and fixes to other modules.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 17 Sep 2007 20:35:08 +0200
parents 33b566df6af4
children fcdf7ac5ad27
line wrap: on
line diff
--- a/trunk/src/main.d	Sat Sep 15 17:12:26 2007 +0200
+++ b/trunk/src/main.d	Mon Sep 17 20:35:08 2007 +0200
@@ -61,7 +61,7 @@
       else if(strbeg(arg, "-r"))
         regexps ~= arg[2..$];
       else if(strbeg(arg, "-l"))
-        levels = Integer.parse (arg[2..$]);
+        levels = Integer.toInt(arg[2..$]);
       else
         switch (arg)
         {