diff trunk/src/Expressions.d @ 309:b4d842b0d2c7

- Added new files Settings.d, config.d and lang_en.d - Removed redundant break statements from Lexer.d. - Added function Cast() to SyntaxTree.d. - Relocated compiler version info to Settings.d. - Removed messages variable from module Messages. Compiler messages are loaded dynamically now. - Relocated some functions from module Information to module Messages, and added some format functions to it. - Message tables are located in their own lang_*.d files. - Added getString() method to class StringLiteralsExpression. - Module Settings has a static struct GlobalSettings. It loads global settings from config.d and a language file.
author aziz
date Wed, 15 Aug 2007 16:07:05 +0000
parents df237b3b5f09
children fa0b6f32c1ae
line wrap: on
line diff
--- a/trunk/src/Expressions.d	Tue Aug 14 18:35:02 2007 +0000
+++ b/trunk/src/Expressions.d	Wed Aug 15 16:07:05 2007 +0000
@@ -693,6 +693,16 @@
     mixin(set_kind);
     this.strings = strings;
   }
+
+  string getString()
+  {
+    char[] buffer;
+    foreach (strTok; strings)
+    {
+      buffer ~= strTok.str[0..$-1];
+    }
+    return buffer;
+  }
 }
 
 class ArrayLiteralExpression : Expression