Mercurial > projects > dil
comparison src/TypeRules.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 | 110f741dab45 |
comparison
equal
deleted
inserted
replaced
834:8bcf482b2062 | 835:451ede0105e0 |
---|---|
1 #! /usr/bin/rdmd | |
1 /++ | 2 /++ |
2 Author: Aziz Köksal | 3 Author: Aziz Köksal |
3 License: GPL3 | 4 License: GPL3 |
4 +/ | 5 +/ |
5 module TypeRules; | 6 module TypeRules; |
7 import TypeRulesData; | |
8 import cmd.Highlight : xml_escape; | |
6 | 9 |
7 import cmd.Generate : xml_escape; | |
8 | 10 |
9 import TypeRulesData; | |
10 import common; | 11 import common; |
12 | |
13 void main(char[][] args) | |
14 { | |
15 genHTMLTypeRulesTables(); | |
16 } | |
11 | 17 |
12 static const string[] basicTypes = [ | 18 static const string[] basicTypes = [ |
13 "char"[], "wchar", "dchar", "bool", | 19 "char"[], "wchar", "dchar", "bool", |
14 "byte", "ubyte", "short", "ushort", | 20 "byte", "ubyte", "short", "ushort", |
15 "int", "uint", "long", "ulong", | 21 "int", "uint", "long", "ulong", |
74 ` .X { color: darkorange; }`\n | 80 ` .X { color: darkorange; }`\n |
75 ` .Y { color: darkblue; }`\n | 81 ` .Y { color: darkblue; }`\n |
76 ` </style>`\n | 82 ` </style>`\n |
77 `</head>`\n | 83 `</head>`\n |
78 `<body>`\n | 84 `<body>`\n |
79 `<p>These tables show what the type results of certain expressions are.</p>`\n | 85 `<p>The following tables show the type results of different expressions. Compiler used: ` ~ |
86 compilerNameVersion ~ `.` | |
80 ); | 87 ); |
81 | 88 |
82 Stdout.format("<table>\n<tr><th colspan=\"{}\">Unary Expressions</th></tr>\n", unaryExpressions.length); | 89 Stdout.format("<table>\n<tr><th colspan=\"{}\">Unary Expressions</th></tr>\n", unaryExpressions.length); |
83 Stdout("<tr><td><!--typecol--></td>"); | 90 Stdout("<tr><td><!--typecol--></td>"); |
84 foreach (unaryExpression; unaryExpressions) | 91 foreach (unaryExpression; unaryExpressions) |