annotate trunk/src/lang_en.d @ 789:c1d5cfd7aa44

Implemented string literal conversion. Removed two MID messages. Added MSG.InvalidUTF8SequenceInString. Added toUTF16() and toUTF32(). Fixed escape sequences. Added formatBytes() and findInvalidUTF8Sequence().
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 25 Feb 2008 02:56:22 +0100
parents 3ead178e0662
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
1 /++
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
2 Author: Aziz Köksal
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
3 License: GPL3
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
4 +/
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
5
349
a0711c57c1db - Added variable 'lang_code' to language files.
aziz
parents: 342
diff changeset
6 string lang_code = "en";
a0711c57c1db - Added variable 'lang_code' to language files.
aziz
parents: 342
diff changeset
7
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
8 string[] messages = [
310
f01cdff9db0c - Added German translation of compiler messages.
aziz
parents: 309
diff changeset
9 // Lexer messages:
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
10 "illegal character found: '{0}'",
789
c1d5cfd7aa44 Implemented string literal conversion.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 432
diff changeset
11 // "invalid Unicode character.",
c1d5cfd7aa44 Implemented string literal conversion.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 432
diff changeset
12 "invalid UTF-8 sequence: '{0}'",
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
13 // ''
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
14 "unterminated character literal.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
15 "empty character literal.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
16 // #line
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
17 "expected 'line' after '#'.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
18 "integer expected after #line",
789
c1d5cfd7aa44 Implemented string literal conversion.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 432
diff changeset
19 // `expected filespec string (e.g. "path\to\file".)`,
323
6259fb93e3dd - Rewrote scanSpecialToken().
aziz
parents: 310
diff changeset
20 "unterminated filespec string.",
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
21 "expected a terminating newline after special token.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
22 // ""
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
23 "unterminated string literal.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
24 // x""
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
25 "non-hex character '{0}' found in hex string.",
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
26 "odd number of hex digits in hex string.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
27 "unterminated hex string.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
28 // /* */ /+ +/
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
29 "unterminated block comment (/* */).",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
30 "unterminated nested comment (/+ +/).",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
31 // `` r""
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
32 "unterminated raw string.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
33 "unterminated back quote string.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
34 // \x \u \U
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
35 "found undefined escape sequence '{0}'.",
432
3ead178e0662 Added message MID.InvalidUnicodeEscapeSequence.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 427
diff changeset
36 "found invalid Unicode escape sequence '{0}'.",
789
c1d5cfd7aa44 Implemented string literal conversion.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 432
diff changeset
37 "insufficient number of hex digits in escape sequence: '{0}'",
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
38 // \&[a-zA-Z][a-zA-Z0-9]+;
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
39 "undefined HTML entity '{0}'",
432
3ead178e0662 Added message MID.InvalidUnicodeEscapeSequence.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 427
diff changeset
40 "unterminated HTML entity '{0}'.",
310
f01cdff9db0c - Added German translation of compiler messages.
aziz
parents: 309
diff changeset
41 "HTML entities must begin with a letter.",
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
42 // integer overflows
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
43 "decimal number overflows sign bit.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
44 "overflow in decimal number.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
45 "overflow in hexadecimal number.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
46 "overflow in binary number.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
47 "overflow in octal number.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
48 "overflow in float number.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
49 "digits 8 and 9 are not allowed in octal numbers.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
50 "invalid hex number; at least one hex digit expected.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
51 "invalid binary number; at least one binary digit expected.",
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
52 "the exponent of a hexadecimal float number is required.",
389
c4bfceab7246 Applied fixes and improvements to hex float scanner.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 387
diff changeset
53 "hexadecimal float exponents must start with a digit.",
c4bfceab7246 Applied fixes and improvements to hex float scanner.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 387
diff changeset
54 "exponents must start with a digit.",
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
55
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
56 // Parser messages
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
57 "expected '{0}', but found '{1}'.",
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
58 "'{0}' is redundant.",
341
3ac651ea83fb - Fix: created TemplateAliasParameter instead of TemplateTypeParameter.
aziz
parents: 338
diff changeset
59 "template tuple parameters can only be last.",
342
f13d551d7c4f - Added error messages MID.InContract and MID.OutContract.
aziz
parents: 341
diff changeset
60 "the functions 'in' contract was already parsed.",
f13d551d7c4f - Added error messages MID.InContract and MID.OutContract.
aziz
parents: 341
diff changeset
61 "the functions 'out' contract was already parsed.",
359
511c14950cac - Added messages MissingLinkageType and UnrecognizedLinkageType.
aziz
parents: 349
diff changeset
62 "no linkage type was specified.",
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
63 "unrecognized linkage type '{0}'; valid types are C, C++, D, Windows, Pascal und System.",
405
e2529923a0cb Added two error messages.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 391
diff changeset
64 "expected one or more base classes, not '{0}'.",
e2529923a0cb Added two error messages.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 391
diff changeset
65 "base classes are not allowed in forward declarations.",
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
66
310
f01cdff9db0c - Added German translation of compiler messages.
aziz
parents: 309
diff changeset
67 // Help messages:
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
68 `dil v{0}
789
c1d5cfd7aa44 Implemented string literal conversion.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 432
diff changeset
69 Copyright (c) 2007-2008 by Aziz Köksal. Licensed under the GPL3.
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
70
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
71 Subcommands:
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
72 {1}
309
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
73 Type 'dil help <subcommand>' for more help on a particular subcommand.
b4d842b0d2c7 - Added new files Settings.d, config.d and lang_en.d
aziz
parents:
diff changeset
74
391
33b566df6af4 Migrated project to Tango.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 390
diff changeset
75 Compiled with {2} v{3} on {4}.`,
375
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
76
329
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
77 `Generate an XML or HTML document from a D source file.
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
78 Usage:
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
79 dil gen file.d [Options]
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
80
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
81 Options:
338
63c6afb915f7 - Made some corrections to the message catalogs.
aziz
parents: 329
diff changeset
82 --syntax : generate tags for the syntax tree
63c6afb915f7 - Made some corrections to the message catalogs.
aziz
parents: 329
diff changeset
83 --xml : use XML format (default)
329
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
84 --html : use HTML format
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
85
17f43b0d6106 - Renamed command highlight to generate.
aziz
parents: 323
diff changeset
86 Example:
338
63c6afb915f7 - Made some corrections to the message catalogs.
aziz
parents: 329
diff changeset
87 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
88
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
89 `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
90 Usage:
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
91 dil igraph file.d Format [Options]
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
92
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
93 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
94
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
95 Format:
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
96 --dot : generate a dot document
427
e2bbc6406a14 Added a new option '-m' to the igraph command.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 405
diff changeset
97 Further options for --dot:
375
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
98 -gbp : Group modules by package names
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
99 -gbf : Group modules by full package name
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
100 -hle : highlight cyclic edges in the graph
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
101 -hlv : highlight modules in cyclic relationship
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
102
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
103 --paths : print a list of paths to the modules imported by file.d
427
e2bbc6406a14 Added a new option '-m' to the igraph command.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 405
diff changeset
104 --list : print a list of the module names imported by file.d
e2bbc6406a14 Added a new option '-m' to the igraph command.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 405
diff changeset
105 Options common to --paths and --list:
375
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
106 -lN : print N levels.
427
e2bbc6406a14 Added a new option '-m' to the igraph command.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 405
diff changeset
107 -m : mark modules in cyclic relationships with a star.
375
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
108
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
109 Options:
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
110 -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
111 looked for
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
112 -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
113 REGEXP
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
114 -i : include unlocatable modules
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
115
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
116 Example:
0bd21b746a04 - Added code to main() for recognizing options to the importgraph command.
aziz
parents: 359
diff changeset
117 dil igraph src/main.d`,
789
c1d5cfd7aa44 Implemented string literal conversion.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents: 432
diff changeset
118 ];