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