comparison src/TypeRulesGenerator.d @ 835:451ede0105e0

Applied minor fixes and tidied some code up a bit.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Tue, 12 Aug 2008 02:59:11 +0200
parents bcb74c9b895c
children e7cb5e38d567
comparison
equal deleted inserted replaced
834:8bcf482b2062 835:451ede0105e0
10 10
11 alias char[] string; 11 alias char[] string;
12 12
13 void main(char[][] args) 13 void main(char[][] args)
14 { 14 {
15 char[] text = "// Generated by TypeRulesGenerator.d\n" 15 char[] text = "/// Generated by TypeRulesGenerator.d\n"
16 "module TypeRules.d;\n\n"; 16 "module TypeRulesData;\n\n";
17 text ~= Format(`const char[] compilerNameVersion = "{} {}.{,:d3}";`\n, __VENDOR__, __VERSION__/1000, __VERSION__%1000);
17 text ~= "char[][][] unaryExpsResults = [\n"; 18 text ~= "char[][][] unaryExpsResults = [\n";
18 foreach (results; unaryExpsResults) 19 foreach (results; unaryExpsResults)
19 { 20 {
20 text ~= " ["; 21 text ~= " [";
21 foreach (result; results) 22 foreach (result; results)