Mercurial > projects > dil
annotate trunk/src/lang_en.d @ 375:0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
- Added HelpImportGraph message.
- Added enum IGraphOption.
- Added class Vertex inheriting from Module. Changed struct Edge to a class.
- Modified a lot of code in cmd.ImportGraph; too many to list here.
- Made some minor changes to dil.Parser.
author | aziz |
---|---|
date | Sat, 08 Sep 2007 16:42:02 +0000 |
parents | 511c14950cac |
children | ad0cbd1c8881 |
rev | line source |
---|---|
309 | 1 /++ |
2 Author: Aziz Köksal | |
3 License: GPL3 | |
4 +/ | |
5 | |
349 | 6 string lang_code = "en"; |
7 | |
309 | 8 string[] messages = [ |
310 | 9 // Lexer messages: |
309 | 10 "invalid Unicode character.", |
11 "invalid UTF-8 sequence.", | |
12 // '' | |
13 "unterminated character literal.", | |
14 "empty character literal.", | |
15 // #line | |
16 "expected 'line' after '#'.", | |
17 "integer expected after #line", | |
323 | 18 `expected filespec string (e.g. "path\to\file".)`, |
19 "unterminated filespec string.", | |
309 | 20 "expected a terminating newline after special token.", |
21 // "" | |
22 "unterminated string literal.", | |
23 // x"" | |
24 "non-hex character '{1}' found in hex string.", | |
25 "odd number of hex digits in hex string.", | |
26 "unterminated hex string.", | |
27 // /* */ /+ +/ | |
28 "unterminated block comment (/* */).", | |
29 "unterminated nested comment (/+ +/).", | |
30 // `` r"" | |
31 "unterminated raw string.", | |
32 "unterminated back quote string.", | |
33 // \x \u \U | |
34 "found undefined escape sequence.", | |
35 "insufficient number of hex digits in escape sequence.", | |
36 // \&[a-zA-Z][a-zA-Z0-9]+; | |
37 "undefined HTML entity '{1}'", | |
38 "unterminated HTML entity.", | |
310 | 39 "HTML entities must begin with a letter.", |
309 | 40 // integer overflows |
41 "decimal number overflows sign bit.", | |
42 "overflow in decimal number.", | |
43 "overflow in hexadecimal number.", | |
44 "overflow in binary number.", | |
45 "overflow in octal number.", | |
46 "overflow in float number.", | |
47 "digits 8 and 9 are not allowed in octal numbers.", | |
48 "invalid hex number; at least one hex digit expected.", | |
49 "invalid binary number; at least one binary digit expected.", | |
50 "the exponent of a hexadecimal float number is required.", | |
51 "missing decimal digits in hexadecimal float exponent.", | |
52 "exponents have to start with a digit.", | |
53 | |
54 // Parser messages | |
55 "expected '{1}', but found '{2}'.", | |
56 "'{1}' is redundant.", | |
341
3ac651ea83fb
- Fix: created TemplateAliasParameter instead of TemplateTypeParameter.
aziz
parents:
338
diff
changeset
|
57 "template tuple parameters can only be last.", |
342
f13d551d7c4f
- Added error messages MID.InContract and MID.OutContract.
aziz
parents:
341
diff
changeset
|
58 "the functions 'in' contract was already parsed.", |
f13d551d7c4f
- Added error messages MID.InContract and MID.OutContract.
aziz
parents:
341
diff
changeset
|
59 "the functions 'out' contract was already parsed.", |
359
511c14950cac
- Added messages MissingLinkageType and UnrecognizedLinkageType.
aziz
parents:
349
diff
changeset
|
60 "no linkage type was specified.", |
511c14950cac
- Added messages MissingLinkageType and UnrecognizedLinkageType.
aziz
parents:
349
diff
changeset
|
61 "unrecognized linkage type '{1}'; valid types are C, C++, D, Windows, Pascal und System.", |
309 | 62 |
310 | 63 // Help messages: |
309 | 64 `dil v{1} |
310 | 65 Copyright (c) 2007 by Aziz Köksal. Licensed under the GPL3. |
309 | 66 |
67 Subcommands: | |
338 | 68 {2} |
309 | 69 Type 'dil help <subcommand>' for more help on a particular subcommand. |
70 | |
338 | 71 Compiled with {3} v{4} on {5}.`, |
375
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
72 |
329 | 73 `Generate an XML or HTML document from a D source file. |
74 Usage: | |
75 dil gen file.d [Options] | |
76 | |
77 Options: | |
338 | 78 --syntax : generate tags for the syntax tree |
79 --xml : use XML format (default) | |
329 | 80 --html : use HTML format |
81 | |
82 Example: | |
338 | 83 dil gen Parser.d --html --syntax > Parser.html`, |
375
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
84 |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
85 `Parse a module and extract information from the resulting module dependency graph. |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
86 Usage: |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
87 dil igraph file.d Format [Options] |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
88 |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
89 The directory of file.d is implicitly added to the list of import paths. |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
90 |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
91 Format: |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
92 --dot : generate a dot document |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
93 -gbp : Group modules by package names |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
94 -gbf : Group modules by full package name |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
95 -hle : highlight cyclic edges in the graph |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
96 -hlv : highlight modules in cyclic relationship |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
97 |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
98 --paths : print a list of paths to the modules imported by file.d |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
99 -lN : print N levels. |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
100 |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
101 --list : print a list of the module names imported by file.d |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
102 -lN : print N levels. |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
103 |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
104 Options: |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
105 -Ipath : add 'path' to the list of import paths where modules are |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
106 looked for |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
107 -rREGEXP : exclude modules whose names match the regular expression |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
108 REGEXP |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
109 -i : include unlocatable modules |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
110 |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
111 Example: |
0bd21b746a04
- Added code to main() for recognizing options to the importgraph command.
aziz
parents:
359
diff
changeset
|
112 dil igraph src/main.d`, |
309 | 113 ]; |