Mercurial > projects > mde
annotate mde/mde.d @ 3:485c98ecbd91
text.parse: fixed a small bug with char[]'s.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 03 Nov 2007 16:06:06 +0000 |
parents | 78eb491bd642 |
children | 9a990644948c |
rev | line source |
---|---|
0 | 1 /** Modular D Engine |
2 * | |
3 * This module contains main(). | |
4 */ | |
5 module mde.mde; | |
6 | |
7 // External library imports | |
8 import tango.io.Stdout; | |
9 | |
10 // Package imports | |
11 import mde.init; | |
12 import test = mde.test; | |
13 | |
2
78eb491bd642
mergetag: partially redesigned dataset and text reader classes. Changed text format.
Diggory Hardy <diggory.hardy@gmail.com>
parents:
0
diff
changeset
|
14 import mde.input.input; |
0 | 15 |
16 import mde.mergetag.read; | |
17 | |
18 int main() | |
19 { | |
20 scope init = new Init(); // initialisation | |
21 | |
22 Reader MTread; | |
23 try { | |
24 MTread = new Reader ("test.mtt", null, true); | |
3
485c98ecbd91
text.parse: fixed a small bug with char[]'s.
Diggory Hardy <diggory.hardy@gmail.com>
parents:
2
diff
changeset
|
25 static DataSection dataPrinter (ID id) { return new test.DataPrinter (id); } |
485c98ecbd91
text.parse: fixed a small bug with char[]'s.
Diggory Hardy <diggory.hardy@gmail.com>
parents:
2
diff
changeset
|
26 MTread.dataSecCreator = &dataPrinter; |
0 | 27 MTread.read(); |
28 } catch (Exception e) { | |
29 Stdout (e.msg).newline; | |
30 } | |
3
485c98ecbd91
text.parse: fixed a small bug with char[]'s.
Diggory Hardy <diggory.hardy@gmail.com>
parents:
2
diff
changeset
|
31 //Stdout ("Data read from file:").newline; |
485c98ecbd91
text.parse: fixed a small bug with char[]'s.
Diggory Hardy <diggory.hardy@gmail.com>
parents:
2
diff
changeset
|
32 //test.printDataSet (MTread.dataset); |
0 | 33 return 0; |
34 | |
35 // cleanup handled by init's DTOR | |
36 } |