PageRenderTime 19ms CodeModel.GetById 15ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/dscribe/main.d

http://github.com/wilkie/djehuty
D | 42 lines | 25 code | 11 blank | 6 comment | 0 complexity | fc5f4fe765852a67765060a1ca5d4a26 MD5 | raw file
 1/*
 2 * dscribe.d
 3 *
 4 * This tool will use the parser to parse source and produce documentation
 5 *
 6 */
 7
 8import console.main;
 9
10import core.main;
11import core.string;
12import core.unicode;
13import core.arguments;
14import core.application;
15
16import tools.dscribe.lexer;
17
18char[] usage = `
19dscribe rev0
20
21USAGE: dscribe [-I<PATH>] -o<PATH>
22EXAMPLE: dscribe -odocs/.`;
23
24class DScribe : Application {
25	static this() { new DScribe(); }
26
27	this() {
28		super("djehuty-dscribe");
29	}
30
31	void OnApplicationStart() {
32		Console.putln(usage);
33
34		lexer = new LexerD();
35
36		push(lexer);
37		lexer.work();
38	}
39
40private:
41	LexerD lexer;
42}