309
|
1 /++
|
|
2 Author: Aziz Köksal
|
|
3 License: GPL3
|
|
4 +/
|
|
5
|
|
6 string[] messages = [
|
310
|
7 // Lexer messages:
|
309
|
8 "invalid Unicode character.",
|
|
9 "invalid UTF-8 sequence.",
|
|
10 // ''
|
|
11 "unterminated character literal.",
|
|
12 "empty character literal.",
|
|
13 // #line
|
|
14 "expected 'line' after '#'.",
|
|
15 `the filespec must be defined in a double quote string literal (e.g. "filespec".)`,
|
|
16 "integer expected after #line",
|
|
17 "newline not allowed inside special token.",
|
|
18 "expected a terminating newline after special token.",
|
|
19 // ""
|
|
20 "unterminated string literal.",
|
|
21 // x""
|
|
22 "non-hex character '{1}' found in hex string.",
|
|
23 "odd number of hex digits in hex string.",
|
|
24 "unterminated hex string.",
|
|
25 // /* */ /+ +/
|
|
26 "unterminated block comment (/* */).",
|
|
27 "unterminated nested comment (/+ +/).",
|
|
28 // `` r""
|
|
29 "unterminated raw string.",
|
|
30 "unterminated back quote string.",
|
|
31 // \x \u \U
|
|
32 "found undefined escape sequence.",
|
|
33 "insufficient number of hex digits in escape sequence.",
|
|
34 // \&[a-zA-Z][a-zA-Z0-9]+;
|
|
35 "undefined HTML entity '{1}'",
|
|
36 "unterminated HTML entity.",
|
310
|
37 "HTML entities must begin with a letter.",
|
309
|
38 // integer overflows
|
|
39 "decimal number overflows sign bit.",
|
|
40 "overflow in decimal number.",
|
|
41 "overflow in hexadecimal number.",
|
|
42 "overflow in binary number.",
|
|
43 "overflow in octal number.",
|
|
44 "overflow in float number.",
|
|
45 "digits 8 and 9 are not allowed in octal numbers.",
|
|
46 "invalid hex number; at least one hex digit expected.",
|
|
47 "invalid binary number; at least one binary digit expected.",
|
|
48 "the exponent of a hexadecimal float number is required.",
|
|
49 "missing decimal digits in hexadecimal float exponent.",
|
|
50 "exponents have to start with a digit.",
|
|
51
|
|
52 // Parser messages
|
|
53 "expected '{1}', but found '{2}'.",
|
|
54 "'{1}' is redundant.",
|
|
55
|
310
|
56 // Help messages:
|
309
|
57 `dil v{1}
|
310
|
58 Copyright (c) 2007 by Aziz Köksal. Licensed under the GPL3.
|
309
|
59
|
|
60 Subcommands:
|
|
61 {2}
|
|
62
|
|
63 Type 'dil help <subcommand>' for more help on a particular subcommand.
|
|
64
|
|
65 Compiled with {3} v{4} on {5}.
|
|
66 `
|
|
67 ]; |