comparison 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
comparison
equal deleted inserted replaced
308:3b9fc1e72210 309:b4d842b0d2c7
691 this(Token*[] strings) 691 this(Token*[] strings)
692 { 692 {
693 mixin(set_kind); 693 mixin(set_kind);
694 this.strings = strings; 694 this.strings = strings;
695 } 695 }
696
697 string getString()
698 {
699 char[] buffer;
700 foreach (strTok; strings)
701 {
702 buffer ~= strTok.str[0..$-1];
703 }
704 return buffer;
705 }
696 } 706 }
697 707
698 class ArrayLiteralExpression : Expression 708 class ArrayLiteralExpression : Expression
699 { 709 {
700 Expression[] values; 710 Expression[] values;