Mercurial > projects > dmdscript-tango
comparison dmdscript_tango/textgen/errmsgs.d @ 2:cca96fbcc1f8
generated sample at linux x64.
just for dev
author | saaadel |
---|---|
date | Sun, 24 Jan 2010 18:17:29 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:987135a700f2 | 2:cca96fbcc1f8 |
---|---|
1 // File generated by textgen.d | |
2 // | |
3 // *** ERROR MESSAGES *** | |
4 // | |
5 module dmdscript_tango.textgen.errmsgs; | |
6 enum { | |
7 ERR_RUNTIME_PREFIX = 0, | |
8 ERR_COM_NO_DEFAULT_VALUE = 1, | |
9 ERR_COM_NO_CONSTRUCT_PROPERTY = 2, | |
10 ERR_DISP_E_TYPEMISMATCH = 3, | |
11 ERR_DISP_E_BADPARAMCOUNT = 4, | |
12 ERR_COM_FUNCTION_ERROR = 5, | |
13 ERR_COM_OBJECT_ERROR = 6, | |
14 ERR_BAD_SWITCH = 7, | |
15 ERR_UNDEFINED_LABEL = 8, | |
16 ERR_BAD_C_COMMENT = 9, | |
17 ERR_BAD_HTML_COMMENT = 10, | |
18 ERR_BAD_CHAR_C = 11, | |
19 ERR_BAD_CHAR_X = 12, | |
20 ERR_BAD_HEX_SEQUENCE = 13, | |
21 ERR_UNDEFINED_ESC_SEQUENCE = 14, | |
22 ERR_STRING_NO_END_QUOTE = 15, | |
23 ERR_UNTERMINATED_STRING = 16, | |
24 ERR_BAD_U_SEQUENCE = 17, | |
25 ERR_UNRECOGNIZED_N_LITERAL = 18, | |
26 ERR_FPL_EXPECTED_IDENTIFIER = 19, | |
27 ERR_FPL_EXPECTED_COMMA = 20, | |
28 ERR_EXPECTED_IDENTIFIER = 21, | |
29 ERR_EXPECTED_GENERIC = 22, | |
30 ERR_EXPECTED_IDENTIFIER_PARAM = 23, | |
31 ERR_EXPECTED_IDENTIFIER_2PARAM = 24, | |
32 ERR_UNTERMINATED_BLOCK = 25, | |
33 ERR_TOO_MANY_IN_VARS = 26, | |
34 ERR_IN_EXPECTED = 27, | |
35 ERR_GOTO_LABEL_EXPECTED = 28, | |
36 ERR_TRY_CATCH_EXPECTED = 29, | |
37 ERR_STATEMENT_EXPECTED = 30, | |
38 ERR_EXPECTED_EXPRESSION = 31, | |
39 ERR_OBJ_LITERAL_IN_INITIALIZER = 32, | |
40 ERR_LABEL_ALREADY_DEFINED = 33, | |
41 ERR_SWITCH_REDUNDANT_CASE = 34, | |
42 ERR_MISPLACED_SWITCH_CASE = 35, | |
43 ERR_SWITCH_REDUNDANT_DEFAULT = 36, | |
44 ERR_MISPLACED_SWITCH_DEFAULT = 37, | |
45 ERR_INIT_NOT_EXPRESSION = 38, | |
46 ERR_MISPLACED_BREAK = 39, | |
47 ERR_MISPLACED_CONTINUE = 40, | |
48 ERR_UNDEFINED_STATEMENT_LABEL = 41, | |
49 ERR_GOTO_INTO_WITH = 42, | |
50 ERR_MISPLACED_RETURN = 43, | |
51 ERR_NO_THROW_EXPRESSION = 44, | |
52 ERR_UNDEFINED_OBJECT_SYMBOL = 45, | |
53 ERR_FUNCTION_WANTS_NUMBER = 46, | |
54 ERR_FUNCTION_WANTS_STRING = 47, | |
55 ERR_FUNCTION_WANTS_DATE = 48, | |
56 ERR_UNDEFINED_NO_CALL2 = 49, | |
57 ERR_UNDEFINED_NO_CALL3 = 50, | |
58 ERR_FUNCTION_WANTS_BOOL = 51, | |
59 ERR_ARRAY_LEN_OUT_OF_BOUNDS = 52, | |
60 ERR_VALUE_OUT_OF_RANGE = 53, | |
61 ERR_TYPE_ERROR = 54, | |
62 ERR_REGEXP_COMPILE = 55, | |
63 ERR_NOT_TRANSFERRABLE = 56, | |
64 ERR_CANNOT_CONVERT_TO_OBJECT2 = 57, | |
65 ERR_CANNOT_CONVERT_TO_OBJECT3 = 58, | |
66 ERR_CANNOT_CONVERT_TO_OBJECT4 = 59, | |
67 ERR_CANNOT_ASSIGN_TO = 60, | |
68 ERR_CANNOT_ASSIGN = 61, | |
69 ERR_CANNOT_ASSIGN_TO2 = 62, | |
70 ERR_FUNCTION_NOT_LVALUE = 63, | |
71 ERR_RHS_MUST_BE_OBJECT = 64, | |
72 ERR_CANNOT_PUT_TO_PRIMITIVE = 65, | |
73 ERR_CANNOT_PUT_INDEX_TO_PRIMITIVE = 66, | |
74 ERR_OBJECT_CANNOT_BE_PRIMITIVE = 67, | |
75 ERR_CANNOT_GET_FROM_PRIMITIVE = 68, | |
76 ERR_CANNOT_GET_INDEX_FROM_PRIMITIVE = 69, | |
77 ERR_PRIMITIVE_NO_CONSTRUCT = 70, | |
78 ERR_PRIMITIVE_NO_CALL = 71, | |
79 ERR_FOR_IN_MUST_BE_OBJECT = 72, | |
80 ERR_ASSERT = 73, | |
81 ERR_OBJECT_NO_CALL = 74, | |
82 ERR_S_S = 75, | |
83 ERR_NO_DEFAULT_PUT = 76, | |
84 ERR_S_NO_CONSTRUCT = 77, | |
85 ERR_S_NO_CALL = 78, | |
86 ERR_S_NO_INSTANCE = 79, | |
87 ERR_LENGTH_INT = 80, | |
88 ERR_TLS_NOT_TRANSFERRABLE = 81, | |
89 ERR_TS_NOT_TRANSFERRABLE = 82, | |
90 ERR_ARRAY_ARGS = 83, | |
91 ERR_MUST_BE_OBJECT = 84, | |
92 ERR_VBARRAY_EXPECTED = 85, | |
93 ERR_VBARRAY_SUBSCRIPT = 86, | |
94 ERR_ACTIVEX = 87, | |
95 ERR_NO_PROPERTY = 88, | |
96 ERR_PUT_FAILED = 89, | |
97 ERR_GET_FAILED = 90, | |
98 ERR_NOT_COLLECTION = 91, | |
99 ERR_NOT_VALID_UTF = 92, | |
100 ERR_E_UNEXPECTED = 93, | |
101 }; | |
102 // *** ERROR MESSAGES *** | |
103 // | |
104 char[][] errmsgtbl = [ | |
105 "DMDScript fatal runtime error: ", | |
106 "No default value for COM object", | |
107 "%s does not have a [[Construct]] property", | |
108 "argument type mismatch for %s", | |
109 "wrong number of arguments for %s", | |
110 "%s Invoke() fails with COM error %x", | |
111 "Dcomobject: %s.%s fails with COM error %x", | |
112 "unrecognized switch '%s'", | |
113 "undefined label '%s' in function '%s'", | |
114 "unterminated /* */ comment", | |
115 "<!-- comment does not end in newline", | |
116 "unsupported char '%s'", | |
117 "unsupported char 0x%02x", | |
118 "escape hex sequence requires 2 hex digits", | |
119 "undefined escape sequence \\%c", | |
120 "string is missing an end quote %s", | |
121 "end of file before end of string", | |
122 "\\u sequence must be followed by 4 hex characters", | |
123 "unrecognized numeric literal", | |
124 "Identifier expected in FormalParameterList, not %s", | |
125 "comma expected in FormalParameterList, not %s", | |
126 "identifier expected", | |
127 "found '%s' when expecting '%s'", | |
128 "identifier expected instead of '%s'", | |
129 "identifier expected following '%s', not '%s'", | |
130 "EOF found before closing ']' of block statement", | |
131 "only one variable can be declared for 'in', not %d", | |
132 "';' or 'in' expected, not '%s'", | |
133 "label expected after goto, not '%s'", | |
134 "catch or finally expected following try", | |
135 "found '%s' instead of statement", | |
136 "expression expected, not '%s'", | |
137 "Object literal in initializer", | |
138 "label '%s' is already defined", | |
139 "redundant case %s", | |
140 "case %s: is not in a switch statement", | |
141 "redundant default in switch statement", | |
142 "default is not in a switch statement", | |
143 "init statement must be expression or var", | |
144 "can only break from within loop or switch", | |
145 "continue is not in a loop", | |
146 "Statement label '%s' is undefined", | |
147 "cannot goto into with statement", | |
148 "can only return from within function", | |
149 "no expression for throw", | |
150 "%s.%s is undefined", | |
151 "Number.prototype.%s() expects a Number not a %s", | |
152 "String.prototype.%s() expects a String not a %s", | |
153 "Date.prototype.%s() expects a Date not a %s", | |
154 "%s %s is undefined and has no Call method", | |
155 "%s %s.%s is undefined and has no Call method", | |
156 "Boolean.prototype.%s() expects a Boolean not a %s", | |
157 "arg to Array(len) must be 0 .. 2**32-1, not %.16g", | |
158 "Number.prototype.%s() %s out of range", | |
159 "TypeError in %s", | |
160 "Error compiling regular expression", | |
161 "%s not transferrable", | |
162 "%s %s cannot convert to Object", | |
163 "%s %s.%s cannot convert to Object", | |
164 "cannot convert %s to Object", | |
165 "cannot assign to %s", | |
166 "cannot assign %s to %s", | |
167 "cannot assign to %s.%s", | |
168 "cannot assign to function", | |
169 "RHS of %s must be an Object, not a %s", | |
170 "can't Put('%s', %s) to a primitive %s", | |
171 "can't Put(%u, %s) to a primitive %s", | |
172 "object cannot be converted to a primitive type", | |
173 "can't Get(%s) from primitive %s(%s)", | |
174 "can't Get(%d) from primitive %s(%s)", | |
175 "primitive %s has no Construct method", | |
176 "primitive %s has no Call method", | |
177 "for-in must be on an object, not a primitive", | |
178 "assert() line %d", | |
179 "object does not have a [[Call]] property", | |
180 "%s: %s", | |
181 "no Default Put for object", | |
182 "%s does not have a [[Construct]] property", | |
183 "%s does not have a [[Call]] property", | |
184 "%s does not have a [[HasInstance]] property", | |
185 "length property must be an integer", | |
186 "Array.prototype.toLocaleString() not transferrable", | |
187 "Function.prototype.toString() not transferrable", | |
188 "Function.prototype.apply(): argArray must be array or arguments object", | |
189 ".prototype must be an Object, not a %s", | |
190 "VBArray expected, not a %s", | |
191 "VBArray subscript out of range", | |
192 "Type mismatch", | |
193 "no property %s", | |
194 "Put of %s failed", | |
195 "Get of %s failed", | |
196 "argument not a collection", | |
197 "%s.%s expects a valid UTF codepoint not \\u%x", | |
198 "Unexpected", | |
199 ]; |