~ubuntu-branches/ubuntu/wily/gargoyle-free/wily-proposed

« back to all changes in this revision

Viewing changes to tads/tads3/tcerrnum.h

  • Committer: Bazaar Package Importer
  • Author(s): Sylvain Beucler
  • Date: 2009-09-11 20:09:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090911200943-idgzoyupq6650zpn
Tags: upstream-2009-08-25
ImportĀ upstreamĀ versionĀ 2009-08-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Header: d:/cvsroot/tads/tads3/TCERRNUM.H,v 1.5 1999/07/11 00:46:53 MJRoberts Exp $ */
 
2
 
 
3
/* 
 
4
 *   Copyright (c) 1999, 2002 Michael J. Roberts.  All Rights Reserved.
 
5
 *   
 
6
 *   Please see the accompanying license file, LICENSE.TXT, for information
 
7
 *   on using and copying this software.  
 
8
 */
 
9
/*
 
10
Name
 
11
  tcerrnum.h - T3 Compiler Error Numbers
 
12
Function
 
13
 
 
14
Notes
 
15
  All T3 Compiler error numbers are in the range 10000-19999.
 
16
Modified
 
17
  04/15/99 MJRoberts  - Creation
 
18
*/
 
19
 
 
20
#ifndef TCERRNUM_H
 
21
#define TCERRNUM_H
 
22
 
 
23
 
 
24
/* ------------------------------------------------------------------------ */
 
25
/*
 
26
 *   Tokenizer and Preprocessor Errors 
 
27
 */
 
28
 
 
29
/* out of memory for source line - source line is too long */
 
30
#define TCERR_LINE_MEM            10001
 
31
 
 
32
/* invalid preprocessor directive "%.*s" */
 
33
#define TCERR_INV_PP_DIR          10002
 
34
 
 
35
/* unable to load character set specified in #charset directive */
 
36
#define TCERR_CANT_LOAD_CHARSET   10003
 
37
 
 
38
/* 
 
39
 *   unexpected or invalid #charset - directive must be at the very
 
40
 *   beginning of the file, and must specify a character set name enclosed
 
41
 *   in double quotes 
 
42
 */
 
43
#define TCERR_UNEXPECTED_CHARSET  10004
 
44
 
 
45
/* invalid #include syntax - required '"' or '< >' around filename */
 
46
#define TCERR_BAD_INC_SYNTAX      10005
 
47
 
 
48
/* #include file "%.*s" not found */
 
49
#define TCERR_INC_NOT_FOUND       10006
 
50
 
 
51
/* #include file "%.*s" previously included; redundant inclusion ignored */
 
52
#define TCERR_REDUNDANT_INCLUDE   10007
 
53
 
 
54
/* invalid symbol "%.*s" for #define */
 
55
#define TCERR_BAD_DEFINE_SYM      10008
 
56
 
 
57
/* out of memory for token text */
 
58
#define TCERR_NO_MEM_TOKEN        10009
 
59
 
 
60
/* missing ')' in macro parameter list */
 
61
#define TCERR_MACRO_NO_RPAR       10010
 
62
 
 
63
/* invalid macro parameter name "%.*s" */
 
64
#define TCERR_BAD_MACRO_ARG_NAME  10011
 
65
 
 
66
/* expected comma or ')' in macro parameter list */
 
67
#define TCERR_MACRO_EXP_COMMA     10012
 
68
 
 
69
/* redefinition of macro "%.*s" */
 
70
#define TCERR_MACRO_REDEF         10013
 
71
 
 
72
/* unrecognized pragma "%.*s" */
 
73
#define TCERR_UNKNOWN_PRAGMA      10014
 
74
 
 
75
/* pragma syntax error */
 
76
#define TCERR_BAD_PRAGMA_SYNTAX   10015
 
77
 
 
78
/* extra characters after end of preprocessor directive */
 
79
#define TCERR_PP_EXTRA            10016
 
80
 
 
81
/* #if nesting too deep */
 
82
#define TCERR_IF_NESTING_OVERFLOW 10017
 
83
 
 
84
/* #else without #if */
 
85
#define TCERR_PP_ELSE_WITHOUT_IF  10018
 
86
 
 
87
/* #endif without #if */
 
88
#define TCERR_PP_ENDIF_WITHOUT_IF 10019
 
89
 
 
90
/* #elif without #if */
 
91
#define TCERR_PP_ELIF_WITHOUT_IF  10020
 
92
 
 
93
/* numeric value required in preprocessor constant expression */
 
94
#define TCERR_PP_INT_REQUIRED     10021
 
95
 
 
96
/* incompatible types for comparison in preprocessor constant expression */
 
97
#define TCERR_PP_INCOMP_TYPES     10022
 
98
 
 
99
/* extra characters after end of preprocessor constant expression */
 
100
#define TCERR_PP_EXPR_EXTRA       10023
 
101
 
 
102
/* division by zero in preprocessor constant expression */
 
103
#define TCERR_PP_DIV_ZERO         10024
 
104
 
 
105
/* 
 
106
 *   expected number, symbol, or single-quoted string in preprocessor
 
107
 *   constant expression, got "%.*s"
 
108
 */
 
109
#define TCERR_PP_INVALID_VALUE    10025
 
110
 
 
111
/* unterminated string */
 
112
#define TCERR_PP_UNTERM_STRING    10026
 
113
 
 
114
/* unmatched left parenthesis in preprocessor constant expression */
 
115
#define TCERR_PP_UNMATCHED_LPAR   10027
 
116
 
 
117
/* number or true/nil required for "!" operator in preprocessor expression */
 
118
#define TCERR_PP_BAD_NOT_VAL      10028
 
119
 
 
120
/* missing right paren in macro expansion (must be on same line for #) */
 
121
#define TCERR_PP_MACRO_ARG_RPAR_1LINE 10029
 
122
 
 
123
/* argument list must be provided in macro invocation */
 
124
#define TCERR_PP_NO_MACRO_ARGS    10030
 
125
 
 
126
/* not enough arguments in macro invocation */
 
127
#define TCERR_PP_FEW_MACRO_ARGS   10031
 
128
 
 
129
/* no close paren in macro argument list */
 
130
#define TCERR_PP_MACRO_ARG_RPAR   10032
 
131
 
 
132
/* too many arguments in macro invocation */
 
133
#define TCERR_PP_MANY_MACRO_ARGS  10033
 
134
 
 
135
/* symbol required for defined() preprocessor operator */
 
136
#define TCERR_PP_DEFINED_NO_SYM   10034
 
137
 
 
138
/* missing ')' in defined() preprocess operator */
 
139
#define TCERR_PP_DEFINED_RPAR     10035
 
140
 
 
141
/* symbol "%.*s" too long; truncated to "%.*s" */
 
142
#define TCERR_SYMBOL_TRUNCATED    10036
 
143
 
 
144
/* too many formal parameters defined for macro (maximum %d) */
 
145
#define TCERR_TOO_MANY_MAC_PARMS  10037
 
146
 
 
147
/* out of memory for string buffer */
 
148
#define TCERR_NO_STRBUF_MEM       10038
 
149
 
 
150
/* unable to open source file "%.*s" */
 
151
#define TCERR_CANT_OPEN_SRC       10039
 
152
 
 
153
/* #error - %.*s */
 
154
#define TCERR_ERROR_DIRECTIVE     10040
 
155
 
 
156
/* out of memory for macro expansion */
 
157
#define TCERR_OUT_OF_MEM_MAC_EXP  10041
 
158
 
 
159
/* integer value required for line number in #line */
 
160
#define TCERR_LINE_REQ_INT        10042
 
161
 
 
162
/* string value required for filename in #line */
 
163
#define TCERR_LINE_FILE_REQ_STR   10043
 
164
 
 
165
/* #if without #endif at line %ld in file %s */
 
166
#define TCERR_IF_WITHOUT_ENDIF    10044
 
167
 
 
168
/* internal error: unsplicing not from current line */
 
169
#define TCERR_UNSPLICE_NOT_CUR    10045
 
170
 
 
171
/* internal error: unsplicing more than once in same line */
 
172
#define TCERR_MULTI_UNSPLICE      10046
 
173
 
 
174
/* #elif not in same file as #if */
 
175
#define TCERR_PP_ELIF_NOT_IN_SAME_FILE 10047
 
176
 
 
177
/* #else not in same file as #if */
 
178
#define TCERR_PP_ELSE_NOT_IN_SAME_FILE 10048
 
179
 
 
180
/* #endif not in same file as #if */
 
181
#define TCERR_PP_ENDIF_NOT_IN_SAME_FILE 10049
 
182
 
 
183
/* cannot #define "defined" - symbol reserved as preprocessor operator */
 
184
#define TCERR_REDEF_OP_DEFINED    10050
 
185
 
 
186
/* string appears unterminated (';' or '}' appears alone on a line) */
 
187
#define TCERR_POSSIBLE_UNTERM_STR 10051
 
188
 
 
189
/* source line too long after macro expansion */
 
190
#define TCERR_SRCLINE_TOO_LONG    10052
 
191
 
 
192
/* invalid character */
 
193
#define TCERR_INVALID_CHAR        10053
 
194
 
 
195
/* ":" missing in "?" expression */
 
196
#define TCERR_PP_QC_MISSING_COLON 10054
 
197
 
 
198
/* preprocessor expression is not a constant value */
 
199
#define TCERR_PP_EXPR_NOT_CONST   10055
 
200
 
 
201
/* unable to load default character set "%s" */
 
202
#define TCERR_CANT_LOAD_DEFAULT_CHARSET 10056
 
203
 
 
204
/* '...' in macro formal parameter list must be followed by ')' */
 
205
#define TCERR_MACRO_ELLIPSIS_REQ_RPAR 10057
 
206
 
 
207
/* #foreach nesting too deep */
 
208
#define TCERR_PP_FOREACH_TOO_DEEP 10058
 
209
 
 
210
/* trailing whitespace after backslash */
 
211
#define TCERR_TRAILING_SP_AFTER_BS 10059
 
212
 
 
213
/* extraneous characters after #include filename */
 
214
#define TCERR_EXTRA_INC_SYNTAX    10060
 
215
 
 
216
/* nested comment? */
 
217
#define TCERR_NESTED_COMMENT      10061
 
218
 
 
219
/* unmappable character */
 
220
#define TCERR_UNMAPPABLE_CHAR     10062
 
221
 
 
222
/* decimal digit found in octal constant */
 
223
#define TCERR_DECIMAL_IN_OCTAL    10063
 
224
 
 
225
/* '<>' operator is obsolete */
 
226
#define TCERR_LTGT_OBSOLETE       10064
 
227
 
 
228
 
 
229
/* ------------------------------------------------------------------------ */
 
230
/*
 
231
 *   General Messages 
 
232
 */
 
233
 
 
234
/* internal error explanation */
 
235
#define TCERR_INTERNAL_EXPLAN     10500
 
236
 
 
237
/* 
 
238
 *   internal error - after we log an internal error, we'll throw this
 
239
 *   generic error code; since internal errors are unrecoverable, any
 
240
 *   frames that catch this error should simply clean up and terminate as
 
241
 *   gracefully as possible 
 
242
 */
 
243
#define TCERR_INTERNAL_ERROR      10501
 
244
 
 
245
/*
 
246
 *   fatal error - after we log a fatal error, we'll throw this generic
 
247
 *   error code; any frames that catch this error should simply clean up
 
248
 *   and terminate 
 
249
 */
 
250
#define TCERR_FATAL_ERROR         10502
 
251
 
 
252
 
 
253
/* ------------------------------------------------------------------------ */
 
254
/*
 
255
 *   "Make" errors 
 
256
 */
 
257
 
 
258
/* cannot create symbol file "%s" */
 
259
#define TCERR_MAKE_CANNOT_CREATE_SYM 10600
 
260
 
 
261
/* cannot create object file "%s" */
 
262
#define TCERR_MAKE_CANNOT_CREATE_OBJ 10601
 
263
 
 
264
/* cannot create image file "%s" */
 
265
#define TCERR_MAKE_CANNOT_CREATE_IMG 10602
 
266
 
 
267
/* cannot open symbol file "%s" for reading */
 
268
#define TCERR_MAKE_CANNOT_OPEN_SYM 10603
 
269
 
 
270
/* cannot open object file "%s" for reading */
 
271
#define TCERR_MAKE_CANNOT_OPEN_OBJ 10604
 
272
 
 
273
/* cannot open image file "%s" */
 
274
#define TCERR_MAKE_CANNOT_OPEN_IMG 10605
 
275
 
 
276
/* maximum error count exceeded */
 
277
#define TCERR_TOO_MANY_ERRORS      10606
 
278
 
 
279
/* same name used for more than one source module */
 
280
#define TCERR_MODULE_NAME_COLLISION   10607
 
281
 
 
282
/* same name used for module as for module from a given library */
 
283
#define TCERR_MODULE_NAME_COLLISION_WITH_LIB  10608
 
284
 
 
285
/* "source-file-name (from library library-name)" */
 
286
#define TCERR_SOURCE_FROM_LIB      10609
 
287
 
 
288
 
 
289
/* ------------------------------------------------------------------------ */
 
290
/*
 
291
 *   Parsing Errors 
 
292
 */
 
293
 
 
294
/* divide by zero in constant expression */
 
295
#define TCERR_CONST_DIV_ZERO      11001
 
296
 
 
297
/* out of memory for parse tree block */
 
298
#define TCERR_NO_MEM_PRS_TREE     11002
 
299
 
 
300
/* parse tree node too large (size = %ld) (internal error) */
 
301
#define TCERR_PRS_BLK_TOO_BIG     11003
 
302
 
 
303
/* invalid lvalue (operator "%s") */
 
304
#define TCERR_INVALID_LVALUE      11004
 
305
 
 
306
/* expected ':' in '?' operator expression */
 
307
#define TCERR_QUEST_WITHOUT_COLON 11005
 
308
 
 
309
/* invalid lvalue for unary operator (++ or --) */
 
310
#define TCERR_INVALID_UNARY_LVALUE 11006
 
311
 
 
312
/* operator delete is obsolete */
 
313
#define TCERR_DELETE_OBSOLETE     11007
 
314
 
 
315
/* can't take address of expression */
 
316
#define TCERR_NO_ADDRESS          11008
 
317
 
 
318
/* invalid constant type for unary '%s': number required */
 
319
#define TCERR_CONST_UNARY_REQ_NUM 11009
 
320
 
 
321
/* invalid constant type for binary '%s': number required */
 
322
#define TCERR_CONST_BINARY_REQ_NUM 11010
 
323
 
 
324
/* incompatible constant types for '+' operator */
 
325
#define TCERR_CONST_BINPLUS_INCOMPAT 11011
 
326
 
 
327
/* missing ')' in expression */
 
328
#define TCERR_EXPR_MISSING_RPAR   11012
 
329
 
 
330
/* invalid primary expression */
 
331
#define TCERR_BAD_PRIMARY_EXPR    11013
 
332
 
 
333
/* constant types are not comparable */
 
334
#define TCERR_CONST_BAD_COMPARE   11014
 
335
 
 
336
/* expected ';', found "%.*s" */
 
337
#define TCERR_EXPECTED_SEMI       11015
 
338
 
 
339
/* expected ">>" and the continuation of the string, found "%.*s" */
 
340
#define TCERR_EXPECTED_DSTR_CONT  11016
 
341
 
 
342
/* expected ',' in argument list, found "%.*s" */
 
343
#define TCERR_EXPECTED_ARG_COMMA  11017
 
344
 
 
345
/* expected ']' in subscript, found "%.*s" */
 
346
#define TCERR_EXPECTED_SUB_RBRACK 11018
 
347
 
 
348
/* invalid expression after '.' - property name or expression required */
 
349
#define TCERR_INVALID_PROP_EXPR   11019
 
350
 
 
351
/* found "%.*s" in list, assuming that list is missing ']' */
 
352
#define TCERR_LIST_MISSING_RBRACK 11020
 
353
 
 
354
/* extraneous ')' in list */
 
355
#define TCERR_LIST_EXTRA_RPAR     11021
 
356
 
 
357
/* expected ',' separating list elements, but found "%.*s" */
 
358
#define TCERR_LIST_EXPECT_COMMA   11022
 
359
 
 
360
/* constant list index value must be an integer value */
 
361
#define TCERR_CONST_IDX_NOT_INT   11023
 
362
 
 
363
/* constant list index out of range */
 
364
#define TCERR_CONST_IDX_RANGE     11024
 
365
 
 
366
/* unterminated string (string started with %c%*.s%c) */
 
367
#define TCERR_UNTERM_STRING       11025
 
368
 
 
369
/* missing ')' in argument list */
 
370
#define TCERR_EXPECTED_ARG_RPAR   11026
 
371
 
 
372
/* extra ')' - ignoring */
 
373
#define TCERR_EXTRA_RPAR          11027
 
374
 
 
375
/* extra ']' - ignoring */
 
376
#define TCERR_EXTRA_RBRACK        11028
 
377
 
 
378
/* expected operand, found '%s' */
 
379
#define TCERR_EXPECTED_OPERAND    11029
 
380
 
 
381
/* expected property name pattern string after 'propertyset', found "%.*s" */
 
382
#define TCERR_PROPSET_REQ_STR     11030
 
383
 
 
384
/* invalid "inherited class" syntax - expected '.', found "%.*s" */
 
385
#define TCERR_INH_CLASS_SYNTAX    11031
 
386
 
 
387
/* undefined symbol "%.*s" */
 
388
#define TCERR_UNDEF_SYM           11032
 
389
 
 
390
/* undefined symbol "%.*s" - assuming that it's a property */
 
391
#define TCERR_ASSUME_SYM_PROP     11033
 
392
 
 
393
/* incompatible constant types for '-' operator */
 
394
#define TCERR_CONST_BINMINUS_INCOMPAT 11034
 
395
 
 
396
/* expected a symbol in formal parameter list, found "%.*s" */
 
397
#define TCERR_REQ_SYM_FORMAL      11035
 
398
 
 
399
/* expected a comma in formal parameter list, found "%.*s" */
 
400
#define TCERR_REQ_COMMA_FORMAL    11036
 
401
 
 
402
/* missing parameter at end of formal parameter list */
 
403
#define TCERR_MISSING_LAST_FORMAL 11037
 
404
 
 
405
/* missing right paren at end of formal parameter list (found "%.*s") */
 
406
#define TCERR_MISSING_RPAR_FORMAL 11038
 
407
 
 
408
/* formal parameter "%.*s" defined more than once */
 
409
#define TCERR_FORMAL_REDEF        11039
 
410
 
 
411
/* '=' in method definition is obsolete */
 
412
#define TCERR_EQ_WITH_METHOD_OBSOLETE 11040
 
413
 
 
414
/* '{' required at the start of code body - found "%.*s" */
 
415
#define TCERR_REQ_LBRACE_CODE     11041
 
416
 
 
417
/* unexpected end of file - '}' required */
 
418
#define TCERR_EOF_IN_CODE         11042
 
419
 
 
420
/* expected '(' after 'if', but found "%.*s" */
 
421
#define TCERR_REQ_LPAR_IF         11043
 
422
 
 
423
/* misplaced 'else' */
 
424
#define TCERR_MISPLACED_ELSE      11044
 
425
 
 
426
/* misplaced 'case' */
 
427
#define TCERR_MISPLACED_CASE      11045
 
428
 
 
429
/* misplaced 'default' */
 
430
#define TCERR_MISPLACED_DEFAULT   11046
 
431
 
 
432
/* ellipsis must be the last formal parameter */
 
433
#define TCERR_ELLIPSIS_NOT_LAST   11047
 
434
 
 
435
/* expected ',' or ';' after symbol, but found "%.*s" */
 
436
#define TCERR_LOCAL_REQ_COMMA     11048
 
437
 
 
438
/* expected symbol name in local variable definition, but found "%.*s" */
 
439
#define TCERR_LOCAL_REQ_SYM       11049
 
440
 
 
441
/* expected symbol name in function defintion */
 
442
#define TCERR_FUNC_REQ_SYM        11050
 
443
 
 
444
/* expected code body */
 
445
#define TCERR_REQ_CODE_BODY       11051
 
446
 
 
447
/* expected function or object definition */
 
448
#define TCERR_REQ_FUNC_OR_OBJ     11052
 
449
 
 
450
/* expected ';' or expression after 'return', but found "%.*s" */
 
451
#define TCERR_RET_REQ_EXPR        11053
 
452
 
 
453
/* unreachable code */
 
454
#define TCERR_UNREACHABLE_CODE    11054
 
455
 
 
456
/* code has 'return' statements both with and without values */
 
457
#define TCERR_RET_VAL_AND_VOID    11055
 
458
 
 
459
/* code has value returns but also falls off end */
 
460
#define TCERR_RET_VAL_AND_IMP_VOID 11056
 
461
 
 
462
/* function set name expected after 'intrinsic' keyword, but found "%.*s" */
 
463
#define TCERR_REQ_INTRINS_NAME    11057
 
464
 
 
465
/* open brace required ater intrinsic function set name */
 
466
#define TCERR_REQ_INTRINS_LBRACE  11058
 
467
 
 
468
/* end of file in 'intrinsic' function set list */
 
469
#define TCERR_EOF_IN_INTRINS      11059
 
470
 
 
471
/* missing open paren after function name in 'instrinsic' - found "%.*s" */
 
472
#define TCERR_REQ_INTRINS_LPAR    11060
 
473
 
 
474
/* expected function name in 'intrinsic' list, but found "%.*s" */
 
475
#define TCERR_REQ_INTRINS_SYM     11061
 
476
 
 
477
/* expected '(' after 'for', but found "%.*s" */
 
478
#define TCERR_REQ_FOR_LPAR        11062
 
479
 
 
480
/* local variable "%.*s" is already defined in this scope */
 
481
#define TCERR_LOCAL_REDEF         11063
 
482
 
 
483
/* initializer is required for "local" in "for" - found "%.*s" */
 
484
#define TCERR_REQ_FOR_LOCAL_INIT  11064
 
485
 
 
486
/* missing expression after ',' in "for" initializer */
 
487
#define TCERR_MISSING_FOR_INIT_EXPR 11065
 
488
 
 
489
/* missing expression in "for" statement */
 
490
#define TCERR_MISSING_FOR_PART    11066
 
491
 
 
492
/* ',' or ';' expected in "for" initializer, but found "%.*s" */
 
493
#define TCERR_REQ_FOR_INIT_COMMA  11067
 
494
 
 
495
/* ';' expected in "for" after condition expression, but found "%.*s" */
 
496
#define TCERR_REQ_FOR_COND_SEM    11068
 
497
 
 
498
/* missing ')' at end of 'for' statement expression list */
 
499
#define TCERR_REQ_FOR_RPAR        11069
 
500
 
 
501
/* "for" condition is always false - reinitializer and body are unreachable */
 
502
#define TCERR_FOR_COND_FALSE      11070
 
503
 
 
504
/* '(' missing after 'while' - found "%.*s" instead */
 
505
#define TCERR_REQ_WHILE_LPAR      11071
 
506
 
 
507
/* ')' missing at end of 'while' expression - found "%.*s" instead */
 
508
#define TCERR_REQ_WHILE_RPAR      11072
 
509
 
 
510
/* "while" condition is always false - body is unreachable */
 
511
#define TCERR_WHILE_COND_FALSE    11073
 
512
 
 
513
/* "while" missing in "do" statement (found "%.*s" instead) */
 
514
#define TCERR_REQ_DO_WHILE        11074
 
515
 
 
516
/* misplaced "catch" - not part of "try" */
 
517
#define TCERR_MISPLACED_CATCH     11075
 
518
 
 
519
/* misplaced "finally" - not part of "try" */
 
520
#define TCERR_MISPLACED_FINALLY   11076
 
521
 
 
522
/* '(' missing after 'switch' - found "%.*s" instead */
 
523
#define TCERR_REQ_SWITCH_LPAR     11077
 
524
 
 
525
/* ')' missing at end of 'switch' expression - found "%.*s" instead */
 
526
#define TCERR_REQ_SWITCH_RPAR     11078
 
527
 
 
528
/* '{' missing after 'switch' expression - found "%.*s" instead */
 
529
#define TCERR_REQ_SWITCH_LBRACE   11079
 
530
 
 
531
/* code preceding first 'case' or 'default' label in switch is not allowed */
 
532
#define TCERR_UNREACHABLE_CODE_IN_SWITCH 11080
 
533
 
 
534
/* end of file in switch body */
 
535
#define TCERR_EOF_IN_SWITCH       11081
 
536
 
 
537
/* duplicate code label "%.*s" */
 
538
#define TCERR_CODE_LABEL_REDEF    11082
 
539
 
 
540
/* ':' missing after 'case' expression - found "%.*s" instead */
 
541
#define TCERR_REQ_CASE_COLON      11083
 
542
 
 
543
/* 'case' expression has a non-constant value */
 
544
#define TCERR_CASE_NOT_CONSTANT   11084
 
545
 
 
546
/* ':' missing after 'default' - found "%.*s" instead */
 
547
#define TCERR_REQ_DEFAULT_COLON   11085
 
548
 
 
549
/* switch already has 'default' label */
 
550
#define TCERR_DEFAULT_REDEF       11086
 
551
 
 
552
/* 'try' has no 'catch' or 'finally' clauses */
 
553
#define TCERR_TRY_WITHOUT_CATCH   11087
 
554
 
 
555
/* '(' required after 'catch' - found "%.*s" instead */
 
556
#define TCERR_REQ_CATCH_LPAR      11088
 
557
 
 
558
/* ')' required after 'catch' variable name - found "%.*s" instead */
 
559
#define TCERR_REQ_CATCH_RPAR      11089
 
560
 
 
561
/* exception class name symbol required in 'catch' - found "%.*s" instead */
 
562
#define TCERR_REQ_CATCH_CLASS     11090
 
563
 
 
564
/* variable name symbol required in 'catch' - found "%.*s" instead */
 
565
#define TCERR_REQ_CATCH_VAR       11091
 
566
 
 
567
/* 'catch' target variable "%.*s" is not a local variable */
 
568
#define TCERR_CATCH_VAR_NOT_LOCAL 11092
 
569
 
 
570
/* label expected after 'break' - found "%.*s" */
 
571
#define TCERR_BREAK_REQ_LABEL     11093
 
572
 
 
573
/* label expected after 'continue' - found "%.*s" */
 
574
#define TCERR_CONT_REQ_LABEL      11094
 
575
 
 
576
/* label expected after 'goto' - found "%.*s" */
 
577
#define TCERR_GOTO_REQ_LABEL      11095
 
578
 
 
579
/* symbol "%.*s" is already defined - can't use as a new function name */
 
580
#define TCERR_REDEF_AS_FUNC       11096
 
581
 
 
582
/* expected 'function' or 'object' after 'extern', but found '%.*s' */
 
583
#define TCERR_INVAL_EXTERN        11097
 
584
 
 
585
/* code body is not allowed in an 'extern function' definition */
 
586
#define TCERR_EXTERN_NO_CODE_BODY 11098
 
587
 
 
588
/* function "%.*s" is already defined */
 
589
#define TCERR_FUNC_REDEF          11099
 
590
 
 
591
/* function "%.*s" has a previous incompatible definition */
 
592
#define TCERR_INCOMPAT_FUNC_REDEF 11100
 
593
 
 
594
/* expected ':' in object definition after object name, but found "%.*s" */
 
595
#define TCERR_OBJDEF_REQ_COLON    11101
 
596
 
 
597
/* expected superclass name in object definition, but found "%.*s" */
 
598
#define TCERR_OBJDEF_REQ_SC       11102
 
599
 
 
600
/* superclasses cannot be specified with 'object' as the base class */
 
601
#define TCERR_OBJDEF_OBJ_NO_SC    11103
 
602
 
 
603
/* symbol "%.*s" is already defined - can't redefine as an object */
 
604
#define TCERR_REDEF_AS_OBJ        11104
 
605
 
 
606
/* object "%.*s" is already defined */
 
607
#define TCERR_OBJ_REDEF           11105
 
608
 
 
609
/* expected property name in definition of object "%.*s", but found "%.*s" */
 
610
#define TCERR_OBJDEF_REQ_PROP     11106
 
611
 
 
612
/* redefining symbol "%.*s" as property */
 
613
#define TCERR_REDEF_AS_PROP       11107
 
614
 
 
615
/* expected prop value or method after property name %.*s, but found %.*s */
 
616
#define TCERR_OBJDEF_REQ_PROPVAL  11108
 
617
 
 
618
/* expected 'function' or object name after 'replace', but found '%.*s' */
 
619
#define TCERR_REPLACE_REQ_OBJ_OR_FUNC 11109
 
620
 
 
621
/* replace/modify cannot be used with an undefined object */
 
622
#define TCERR_REPMODOBJ_UNDEF     11110
 
623
 
 
624
/* double-quoted strings cannot be used within expressions */
 
625
#define TCERR_DQUOTE_IN_EXPR      11111
 
626
 
 
627
/* assignment in condition (possible use of '=' where '==' was intended) */
 
628
#define TCERR_ASI_IN_COND         11112
 
629
 
 
630
/* replace/modify cannot be used with an undefined function */
 
631
#define TCERR_REPFUNC_UNDEF       11113
 
632
 
 
633
/* 'replace' can only be applied to a property in a 'modify' object */
 
634
#define TCERR_REPLACE_PROP_REQ_MOD_OBJ 11114
 
635
 
 
636
/* expected object name symbol in 'extern' but found "%.*s" */
 
637
#define TCERR_EXTERN_OBJ_REQ_SYM  11115
 
638
 
 
639
/* property "%.*s" is already defined in object "%.*s" */
 
640
#define TCERR_PROP_REDEF_IN_OBJ   11116
 
641
 
 
642
/* '=' required between property name and value - found "%.*s" */
 
643
#define TCERR_PROP_REQ_EQ         11117
 
644
 
 
645
/* extra list element expected after comma, but found end of list */
 
646
#define TCERR_LIST_EXPECT_ELEMENT  11118
 
647
 
 
648
/* expected class name string after name string but found "%.*s" */
 
649
#define TCERR_REQ_INTRINS_CLASS_NAME  11119
 
650
 
 
651
/* open brace required ater intrinsic class name */
 
652
#define TCERR_REQ_INTRINS_CLASS_LBRACE  11120
 
653
 
 
654
/* end of file in 'intrinsic class' property list */
 
655
#define TCERR_EOF_IN_INTRINS_CLASS  11121
 
656
 
 
657
/* expected property name in 'intrinsic class' list, but found "%.*s" */
 
658
#define TCERR_REQ_INTRINS_CLASS_PROP  11122
 
659
 
 
660
/* expected class name symbol after 'intrinsic class' but found "%.*s" */
 
661
#define TCERR_REQ_INTRINS_CLASS_NAME_SYM 11123
 
662
 
 
663
/* redefining symbol "%.*s" as a metaclass name */
 
664
#define TCERR_REDEF_INTRINS_NAME  11124
 
665
 
 
666
/* cannot evaluate metaclass symbol */
 
667
#define TCERR_CANNOT_EVAL_METACLASS 11125
 
668
 
 
669
/* expected 'property' or object name after 'dictionary', but found "%.*s" */
 
670
#define TCERR_DICT_SYNTAX         11126
 
671
 
 
672
/* expected property name in 'dictionary property' list, but found "%.*s" */
 
673
#define TCERR_DICT_PROP_REQ_SYM   11127
 
674
 
 
675
/* expected comma in 'dictionary property' list, but found "%.*s" */
 
676
#define TCERR_DICT_PROP_REQ_COMMA 11128
 
677
 
 
678
/* redefining object "%.*s" as dictionary */
 
679
#define TCERR_REDEF_AS_DICT       11129
 
680
 
 
681
/* undefined symbol "%.*s" (used as superclass of "%.*s") */
 
682
#define TCERR_UNDEF_SYM_SC        11130
 
683
 
 
684
/* vocabulary property requires one or more single-quoted string values */
 
685
#define TCERR_VOCAB_REQ_SSTR      11131
 
686
 
 
687
/* vocabulary property cannot be used without a dictionary */
 
688
#define TCERR_VOCAB_NO_DICT       11132
 
689
 
 
690
/* list varargs parameter not last */
 
691
#define TCERR_LISTPAR_NOT_LAST    11133
 
692
 
 
693
/* expected ']' after list varargs parameter name, found "%.*s" */
 
694
#define TCERR_LISTPAR_REQ_RBRACK  11134
 
695
 
 
696
/* expected list varargs parameter name, but found "%.*s" */
 
697
#define TCERR_LISTPAR_REQ_SYM     11135
 
698
 
 
699
/* anonymous functions are not allowed in the debugger */
 
700
#define TCERR_DBG_NO_ANON_FUNC    11136
 
701
 
 
702
/* anonymous function requires 'new' */
 
703
#define TCERR_ANON_FUNC_REQ_NEW   11137
 
704
 
 
705
/* expected production name after 'grammar' */
 
706
#define TCERR_GRAMMAR_REQ_SYM     11138
 
707
 
 
708
/* expected colon after production name in 'grammar' statement */
 
709
#define TCERR_GRAMMAR_REQ_COLON   11139
 
710
 
 
711
/* expected object or property name in 'grammar' token list, found "%.*s" */
 
712
#define TCERR_GRAMMAR_REQ_OBJ_OR_PROP 11140
 
713
 
 
714
/* property name must follow '->' in 'grammar' statement, found "%.*s" */
 
715
#define TCERR_GRAMMAR_ARROW_REQ_PROP 11141
 
716
 
 
717
/* invalid token list entry "%.*s" */
 
718
#define TCERR_GRAMMAR_INVAL_TOK   11142
 
719
 
 
720
/* redefining object "%.*s" as grammar production */
 
721
#define TCERR_REDEF_AS_GRAMPROD   11143
 
722
 
 
723
/* object "%.*s" is not valid in a grammar list (only productions allowed) */
 
724
#define TCERR_GRAMMAR_REQ_PROD    11144
 
725
 
 
726
/* symbol expected in enum list, but found "%.*s" */
 
727
#define TCERR_ENUM_REQ_SYM        11145
 
728
 
 
729
/* symbol "%.*s" is already defined - can't use as an enum name */
 
730
#define TCERR_REDEF_AS_ENUM       11146
 
731
 
 
732
/* comma expected in 'enum' symbol list, but found "%.*s" */
 
733
#define TCERR_ENUM_REQ_COMMA      11147
 
734
 
 
735
/* enumerator "%.*s" in 'grammar' list must be declare with 'enum token' */
 
736
#define TCERR_GRAMMAR_BAD_ENUM    11148
 
737
 
 
738
/* '*' must be the last token in a 'grammar' alt list - found "%.*s" */
 
739
#define TCERR_GRAMMAR_STAR_NOT_END 11149
 
740
 
 
741
/* grammar qualifiers must precede all tokens in the alternative */
 
742
#define TCERR_GRAMMAR_QUAL_NOT_FIRST 11150
 
743
 
 
744
/* symbol required in grammar qualifier - found "%.*s" */
 
745
#define TCERR_GRAMMAR_QUAL_REQ_SYM 11151
 
746
 
 
747
/* invalid grammar qualifier "%.*s" */
 
748
#define TCERR_BAD_GRAMMAR_QUAL    11152
 
749
 
 
750
/* integer constant required for grammar qualifier "%s" */
 
751
#define TCERR_GRAMMAR_QUAL_REQ_INT 11153
 
752
 
 
753
/* ']' required at end of grammar qualifier - found "%.*s" */
 
754
#define TCERR_GRAMMAR_QUAL_REQ_RBRACK 11154
 
755
 
 
756
/* '+ property' statement requires symbol, found "%.*s" instead */
 
757
#define TCERR_PLUSPROP_REQ_SYM     11155
 
758
 
 
759
/* too many '+' signs - location is not defined */
 
760
#define TCERR_PLUSOBJ_TOO_MANY     11156
 
761
 
 
762
/* property name required after "%s" in object template, but found "%.*s" */
 
763
#define TCERR_OBJ_TPL_OP_REQ_PROP  11157
 
764
 
 
765
/* property name required in string in object template, but found "%.*s" */
 
766
#define TCERR_OBJ_TPL_STR_REQ_PROP 11158
 
767
 
 
768
/* ']' required after list property in object template, found "%.*s" */
 
769
#define TCERR_OBJ_TPL_REQ_RBRACK   11159
 
770
 
 
771
/* invalid 'object template' syntax - "%.*s" */
 
772
#define TCERR_OBJ_TPL_BAD_TOK      11160
 
773
 
 
774
/* symbol \"%.*s\" in object template is not a property */
 
775
#define TCERR_OBJ_TPL_SYM_NOT_PROP 11161
 
776
 
 
777
/* object definition does not match any object template */
 
778
#define TCERR_OBJ_DEF_NO_TEMPLATE  11162
 
779
 
 
780
/* dictionary properties are not valid in object templates */
 
781
#define TCERR_OBJ_TPL_NO_VOCAB     11163
 
782
 
 
783
/* property duplicated in template list */
 
784
#define TCERR_OBJ_TPL_PROP_DUP     11164
 
785
 
 
786
/* metaclass is already defined as intrinsic class "%.*s" */
 
787
#define TCERR_META_ALREADY_DEF     11165
 
788
 
 
789
/* missing ';' at end of object definition - found "%.*s" */
 
790
#define TCERR_OBJ_DEF_REQ_SEM      11166
 
791
 
 
792
/* expected a statement, but found "%.*s" */
 
793
#define TCERR_EXPECTED_STMT_START  11167
 
794
 
 
795
/* missing colon at end of short anonymous function formals - found "%.*s" */
 
796
#define TCERR_MISSING_COLON_FORMAL 11168
 
797
 
 
798
/* semicolon is not allowed in a short anonymous function */
 
799
#define TCERR_SEM_IN_SHORT_ANON_FN 11169
 
800
 
 
801
/* close brace missing at end of anonymous function */
 
802
#define TCERR_SHORT_ANON_FN_REQ_RBRACE 11170
 
803
 
 
804
/* '(' required after 'in' operator */
 
805
#define TCERR_IN_REQ_LPAR          11171
 
806
 
 
807
/* expected comma in 'in' list */
 
808
#define TCERR_EXPECTED_IN_COMMA    11172
 
809
 
 
810
/* missing ')' at end of 'in' list */
 
811
#define TCERR_EXPECTED_IN_RPAR     11173
 
812
 
 
813
/* cannot modify or replace objects of this type */
 
814
#define TCERR_CANNOT_MOD_OR_REP_TYPE 11174
 
815
 
 
816
/* expected '(' after 'foreach', but found "%.*s" */
 
817
#define TCERR_REQ_FOREACH_LPAR     11175
 
818
 
 
819
/* missing expression in 'foreach' - found "%.*s" */
 
820
#define TCERR_MISSING_FOREACH_EXPR 11176
 
821
 
 
822
/* 'in' required in 'foreach' - found "%.*s" */
 
823
#define TCERR_FOREACH_REQ_IN       11177
 
824
 
 
825
/* missing ')' at end of 'for' statement expression list */
 
826
#define TCERR_REQ_FOREACH_RPAR     11178
 
827
 
 
828
/* property declaration requires symbol, but found "%.*s" */
 
829
#define TCERR_PROPDECL_REQ_SYM     11179
 
830
 
 
831
/* property declaration requires comma, but found "%.*s" */
 
832
#define TCERR_PROPDECL_REQ_COMMA   11180
 
833
 
 
834
/* expected symbol in 'export' statement, but found "%.*s" */
 
835
#define TCERR_EXPORT_REQ_SYM       11181
 
836
 
 
837
/* external name "%.*s" too long in 'export' statement */
 
838
#define TCERR_EXPORT_EXT_TOO_LONG  11182
 
839
 
 
840
/* unterminated object definition */
 
841
#define TCERR_UNTERM_OBJ_DEF       11183
 
842
 
 
843
/* missing right brace at end of object definition - found "%.*s" */
 
844
#define TCERR_OBJ_DEF_REQ_RBRACE   11184
 
845
 
 
846
/* right paren required after name-tag in 'grammar' - found "%.*s" */
 
847
#define TCERR_GRAMMAR_REQ_NAME_RPAR 11185
 
848
 
 
849
/* open brace required for propertyset - found "%.*s" */
 
850
#define TCERR_PROPSET_REQ_LBRACE   11186
 
851
 
 
852
/* right paren expected at end of group - found "%.*s" */
 
853
#define TCERR_GRAMMAR_REQ_RPAR_AFTER_GROUP 11187
 
854
 
 
855
/* '->' not allowed after parenthesized group in 'grammar' statement */
 
856
#define TCERR_GRAMMAR_GROUP_ARROW_NOT_ALLOWED 11188
 
857
 
 
858
/* cannot use template with unimported extern class as superclass */
 
859
#define TCERR_OBJ_DEF_CANNOT_USE_TEMPLATE 11189
 
860
 
 
861
/* superclass list missing for 'replace' object definition */
 
862
#define TCERR_REPLACE_OBJ_REQ_SC  11190
 
863
 
 
864
/* propertyset nesting too deep */
 
865
#define TCERR_PROPSET_TOO_DEEP    11191
 
866
 
 
867
/* propertyset token expansion too large */
 
868
#define TCERR_PROPSET_TOK_TOO_LONG 11192
 
869
 
 
870
/* invalid pattern string for propertyset - "%.*s" */
 
871
#define TCERR_PROPSET_INVAL_PAT   11193
 
872
 
 
873
/* invalid propertyset formal parameter list */
 
874
#define TCERR_PROPSET_INVAL_FORMALS 11194
 
875
 
 
876
/* circular class definition - "%.*s" is a subclass of "%.*s" */
 
877
#define TCERR_CIRCULAR_CLASS_DEF  11195
 
878
 
 
879
/* property required in part-of-speech list in 'grammar', but found "%.*s" */
 
880
#define TCERR_GRAMMAR_LIST_REQ_PROP 11196
 
881
 
 
882
/* missing '>' in 'grammar' property list - found "%.*s" */
 
883
#define TCERR_GRAMMAR_LIST_UNCLOSED 11197
 
884
 
 
885
/* invalid indexed type in constant expression (expected list) */
 
886
#define TCERR_CONST_IDX_INV_TYPE    11198
 
887
 
 
888
/* 'transient' is not allowed here (expected object definition) */
 
889
#define TCERR_INVAL_TRANSIENT       11199
 
890
 
 
891
/* 'modify/replace grammar' can only be applied to tagged rule name */
 
892
#define TCERR_GRAMMAR_MOD_REQ_TAG   11200
 
893
 
 
894
/* intrinsic superclass name expected after colon, but found "%.*s" */
 
895
#define TCERR_REQ_INTRINS_SUPERCLASS_NAME  11201
 
896
 
 
897
/* intrinsic superclass "%.*s" undefined */
 
898
#define TCERR_INTRINS_SUPERCLASS_UNDEF  11202
 
899
 
 
900
/* grammar rule ends with '|' */
 
901
#define TCERR_GRAMMAR_ENDS_WITH_OR  11203
 
902
 
 
903
/* grammar rule is completely empty */
 
904
#define TCERR_GRAMMAR_EMPTY         11204
 
905
 
 
906
/* empty template definition */
 
907
#define TCERR_TEMPLATE_EMPTY        11205
 
908
 
 
909
/* expected ')' after 'if' condition, but found "%.*s" */
 
910
#define TCERR_REQ_RPAR_IF         11206
 
911
 
 
912
/* intrinsic class superclass "%.*s" is not an intrinsic class */
 
913
#define TCERR_INTRINS_SUPERCLASS_NOT_INTRINS  11207
 
914
 
 
915
/* function redefined as multimethod */
 
916
#define TCERR_FUNC_REDEF_AS_MULTIMETHOD   11208
 
917
 
 
918
/* "multimethod" declaration not allowed in this context */
 
919
#define TCERR_MULTIMETHOD_NOT_ALLOWED   11209
 
920
 
 
921
/* multi-method parameter type %.*s is not an object */
 
922
#define TCERR_MMPARAM_NOT_OBJECT   11210
 
923
 
 
924
/* type name missing in inherited<> type list */
 
925
#define TCERR_MMINH_MISSING_ARG_TYPE   11211
 
926
 
 
927
/* comma is missing in inherited<> type list */
 
928
#define TCERR_MMINH_MISSING_COMMA      11212
 
929
 
 
930
/* '>' is missing at end of inherited<> type list */
 
931
#define TCERR_MMINH_MISSING_GT         11213
 
932
 
 
933
/* argument list is missing after inherited<> */
 
934
#define TCERR_MMINH_MISSING_ARG_LIST   11214
 
935
 
 
936
 
 
937
/* ------------------------------------------------------------------------ */
 
938
/*
 
939
 *   General Code Generator Errors 
 
940
 */
 
941
 
 
942
/* out of memory for code generation */
 
943
#define TCERR_CODEGEN_NO_MEM      11500
 
944
 
 
945
/* internal error: %d unresolved temporary label fixups */
 
946
#define TCERR_UNRES_TMP_FIXUP     11501
 
947
 
 
948
/* internal error: attempting to write past end of code stream */
 
949
#define TCERR_WRITEAT_PAST_END    11502
 
950
 
 
951
/* "self" is not valid in this context */
 
952
#define TCERR_SELF_NOT_AVAIL      11503
 
953
 
 
954
/* "inherited" is not valid in this context */
 
955
#define TCERR_INH_NOT_AVAIL       11504
 
956
 
 
957
/* no address for symbol "%.*s" */
 
958
#define TCERR_NO_ADDR_SYM         11505
 
959
 
 
960
/* cannot assign to symbol "%.*s" */
 
961
#define TCERR_CANNOT_ASSIGN_SYM   11506
 
962
 
 
963
/* cannot evaluate a code label ("%.*s") */
 
964
#define TCERR_CANNOT_EVAL_LABEL   11507
 
965
 
 
966
/* cannot call symbol "%.*s" */
 
967
#define TCERR_CANNOT_CALL_SYM     11508
 
968
 
 
969
/* cannot call property "%.*s" without explicit object (no "self") */
 
970
#define TCERR_PROP_NEEDS_OBJ      11509
 
971
 
 
972
/* "%.*s" has no return value to be used in an expression */
 
973
#define TCERR_VOID_RETURN_IN_EXPR 11510
 
974
 
 
975
/* '&' operator cannot be used with function name */
 
976
#define TCERR_INVAL_FUNC_ADDR     11511
 
977
 
 
978
/* cannot apply operator 'new' to this expression */
 
979
#define TCERR_INVAL_NEW_EXPR      11512
 
980
 
 
981
/* not enough arguments to function "%.*s" */
 
982
#define TCERR_TOO_FEW_FUNC_ARGS   11513
 
983
 
 
984
/* too many arguments to function "%.*s" */
 
985
#define TCERR_TOO_MANY_FUNC_ARGS  11514
 
986
 
 
987
/* assigning to "%.*s" needs object */
 
988
#define TCERR_SETPROP_NEEDS_OBJ   11515
 
989
 
 
990
/* symbol "%.*s" is not a property - illegal on right side of '.' */
 
991
#define TCERR_SYM_NOT_PROP        11516
 
992
 
 
993
/* invalid property expression - right side of '.' is not a property */
 
994
#define TCERR_INVAL_PROP_EXPR     11517
 
995
 
 
996
/* illegal inherited syntax - "%.*s" is not an object */
 
997
#define TCERR_INH_NOT_OBJ         11518
 
998
 
 
999
/* invalid object expression - left side of '.' is not an object */
 
1000
#define TCERR_INVAL_OBJ_EXPR      11519
 
1001
 
 
1002
/* symbol "%.*s" is not an object - illegal on left of '.' */
 
1003
#define TCERR_SYM_NOT_OBJ         11520
 
1004
 
 
1005
/* "if" condition is always true */
 
1006
#define TCERR_IF_ALWAYS_TRUE      11521
 
1007
 
 
1008
/* "if" condition is always false */
 
1009
#define TCERR_IF_ALWAYS_FALSE     11522
 
1010
 
 
1011
/* invalid "break" - not in a loop or switch */
 
1012
#define TCERR_INVALID_BREAK       11523
 
1013
 
 
1014
/* invalid "continue" - not in a loop */
 
1015
#define TCERR_INVALID_CONTINUE    11524
 
1016
 
 
1017
/* entrypoint function "_main" is not defined */
 
1018
#define TCERR_MAIN_NOT_DEFINED    11525
 
1019
 
 
1020
/* "_main" is not a function */
 
1021
#define TCERR_MAIN_NOT_FUNC       11526
 
1022
 
 
1023
/* exception class symbol "%.*s" in "catch" clause is not an object */
 
1024
#define TCERR_CATCH_EXC_NOT_OBJ   11527
 
1025
 
 
1026
/* invalid 'break' - no label \"%.*s\" on any enclosing statement */
 
1027
#define TCERR_INVALID_BREAK_LBL   11528
 
1028
 
 
1029
/* invalid 'continue' - no label \"%.*s\" on any enclosing statement */
 
1030
#define TCERR_INVALID_CONT_LBL    11529
 
1031
 
 
1032
/* 'goto' label "%.*s" is not defined in this function */
 
1033
#define TCERR_INVALID_GOTO_LBL    11530
 
1034
 
 
1035
/* unresolved external reference "%.*s" */
 
1036
#define TCERR_UNRESOLVED_EXTERN   11531
 
1037
 
 
1038
/* label "%.*s" is never referenced */
 
1039
#define TCERR_UNREFERENCED_LABEL  11532
 
1040
 
 
1041
/* local variable "%.*s" is never referenced */
 
1042
#define TCERR_UNREFERENCED_LOCAL  11533
 
1043
 
 
1044
/* local variable "%.*s" never has a value assigned */
 
1045
#define TCERR_UNASSIGNED_LOCAL    11534
 
1046
 
 
1047
/* local variable "%.*s" is assigned a value that is never used */
 
1048
#define TCERR_UNUSED_LOCAL_ASSIGNMENT 11535
 
1049
 
 
1050
/* superclass "%.*s" is not an object */
 
1051
#define TCERR_SC_NOT_OBJECT       11536
 
1052
 
 
1053
/* argument expression %d has no value */
 
1054
#define TCERR_ARG_EXPR_HAS_NO_VAL 11537
 
1055
 
 
1056
/* expression on right of assignment operator has no value */
 
1057
#define TCERR_ASI_EXPR_HAS_NO_VAL 11538
 
1058
 
 
1059
/* wrong number of arguments to function %.*s: %d required, %d actual */
 
1060
#define TCERR_WRONG_ARGC_FOR_FUNC 11539
 
1061
 
 
1062
/* transfer into 'finally' block via 'goto' is not allowed */
 
1063
#define TCERR_GOTO_INTO_FINALLY   11540
 
1064
 
 
1065
/* parameter "%.*s" is never referenced */
 
1066
#define TCERR_UNREFERENCED_PARAM  11541
 
1067
 
 
1068
/* grammar production "%.*s" has no alternatives defined */
 
1069
#define TCERR_GRAMPROD_HAS_NO_ALTS 11542
 
1070
 
 
1071
/* intrinsic class property "%.*s" cannot be modified */
 
1072
#define TCERR_CANNOT_MOD_META_PROP 11543
 
1073
 
 
1074
/* Collection.createIterator() is not defined - foreach() cannot be used */
 
1075
#define TCERR_FOREACH_NO_CREATEITER 11544
 
1076
 
 
1077
/* Iterator.getNext() is not defined - foreach() cannot be used */
 
1078
#define TCERR_FOREACH_NO_GETNEXT   11545
 
1079
 
 
1080
/* Iterator.isNextAvailable() is not defined - foreach() cannot be used */
 
1081
#define TCERR_FOREACH_NO_ISNEXTAVAIL 11546
 
1082
 
 
1083
/* invalid type for export */
 
1084
#define TCERR_INVALID_TYPE_FOR_EXPORT 11547
 
1085
 
 
1086
/* duplicate export - extern name "%.*s", internal names "%.*s" and "%.*s" */
 
1087
#define TCERR_DUP_EXPORT           11548
 
1088
 
 
1089
/* another duplicate export for extern name "%.*s", internal name "%.*s" */
 
1090
#define TCERR_DUP_EXPORT_AGAIN     11549
 
1091
 
 
1092
/* "targetprop" is not valid in this context */
 
1093
#define TCERR_TARGETPROP_NOT_AVAIL 11550
 
1094
 
 
1095
/* "targetobj" is not valid in this context */
 
1096
#define TCERR_TARGETOBJ_NOT_AVAIL 11551
 
1097
 
 
1098
/* "definingobj" is not valid in this context */
 
1099
#define TCERR_DEFININGOBJ_NOT_AVAIL 11552
 
1100
 
 
1101
/* cannot call constant expression */
 
1102
#define TCERR_CANNOT_CALL_CONST   11553
 
1103
 
 
1104
/* "replaced" is not valid in this context */
 
1105
#define TCERR_REPLACED_NOT_AVAIL  11554
 
1106
 
 
1107
/* grammar production "%.*s" has too many alternatives defined */
 
1108
#define TCERR_GRAMPROD_TOO_MANY_ALTS 11555
 
1109
 
 
1110
/* cannot apply 'new' to this symbol (not a TadsObject object) */
 
1111
#define TCERR_BAD_META_FOR_NEW    11556
 
1112
 
 
1113
/* inherited<> type token is not an object name */
 
1114
#define TCERR_MMINH_TYPE_NOT_OBJ  11557
 
1115
 
 
1116
/* inherited<> invalid in this context */
 
1117
#define TCERR_MMINH_BAD_CONTEXT   11558
 
1118
 
 
1119
/* multi-method 'inherited' missing support function %.*s */
 
1120
#define TCERR_MMINH_MISSING_SUPPORT_FUNC    11559
 
1121
 
 
1122
/* inherited<> function not found */
 
1123
#define TCERR_MMINH_UNDEF_FUNC    11560
 
1124
 
 
1125
 
 
1126
/* ------------------------------------------------------------------------ */
 
1127
/*
 
1128
 *   Errors related to symbol export files 
 
1129
 */
 
1130
 
 
1131
/* 
 
1132
 *   invalid symbol type in symbol file - file is corrupted or was created
 
1133
 *   by an incompatible version of the compiler 
 
1134
 */
 
1135
#define TCERR_SYMEXP_INV_TYPE     11700
 
1136
 
 
1137
/* invalid symbol file signature */
 
1138
#define TCERR_SYMEXP_INV_SIG      11701
 
1139
 
 
1140
/* symbol name too long in symbol file */
 
1141
#define TCERR_SYMEXP_SYM_TOO_LONG 11702
 
1142
 
 
1143
/* 
 
1144
 *   symbol "%.*s" found in symbol file is already defined; ignoring the
 
1145
 *   redefinition 
 
1146
 */
 
1147
#define TCERR_SYMEXP_REDEF        11703
 
1148
 
 
1149
 
 
1150
/* ------------------------------------------------------------------------ */
 
1151
/*
 
1152
 *   Errors related to object files 
 
1153
 */
 
1154
 
 
1155
/* invalid object file signature */
 
1156
#define TCERR_OBJFILE_INV_SIG     11800
 
1157
 
 
1158
/* too many object/property ID's for this platform */
 
1159
#define TCERR_OBJFILE_TOO_MANY_IDS 11801
 
1160
 
 
1161
/* out of memory loading object file */
 
1162
#define TCERR_OBJFILE_OUT_OF_MEM  11802
 
1163
 
 
1164
/* invalid symbol type in object file */
 
1165
#define TCERR_OBJFILE_INV_TYPE    11803
 
1166
 
 
1167
/* symbol %.*s (type %s) redefined (type %s) in object file "%s" */
 
1168
#define TCERR_OBJFILE_REDEF_SYM_TYPE 11804
 
1169
 
 
1170
/* symbol %.*s (type %s) redefined in object file "%s" */
 
1171
#define TCERR_OBJFILE_REDEF_SYM   11805
 
1172
 
 
1173
/* built-in function %.*s has different definition in object file "%s" */
 
1174
#define TCERR_OBJFILE_BIF_INCOMPAT  11806
 
1175
 
 
1176
/* function %.*s has different definition in object file "%s" */
 
1177
#define TCERR_OBJFILE_FUNC_INCOMPAT 11807
 
1178
 
 
1179
/* internal symbol reference \"%.*s\" missing in object file %s */
 
1180
#define TCERR_OBJFILE_INT_SYM_MISSING 11808
 
1181
 
 
1182
/* invalid stream ID in object file %s */
 
1183
#define TCERR_OBJFILE_INVAL_STREAM_ID 11809
 
1184
 
 
1185
/* invalid object ID in object file %s */
 
1186
#define TCERR_OBJFILE_INVAL_OBJ_ID 11810
 
1187
 
 
1188
/* invalid property ID in object file %s */
 
1189
#define TCERR_OBJFILE_INVAL_PROP_ID 11811
 
1190
 
 
1191
/* function set/metaclass entry is invalid in object file "%s" */
 
1192
#define TCERR_OBJFILE_INV_FN_OR_META 11812
 
1193
 
 
1194
/* conflicting function set "%s" in object file "%s" */
 
1195
#define TCERR_OBJFILE_FNSET_CONFLICT 11813
 
1196
 
 
1197
/* conflicting metaclass "%s" in object file "%s" */
 
1198
#define TCERR_OBJFILE_META_CONFLICT 11814
 
1199
 
 
1200
/* modified or replaced object %.*s found before original in object file %s */
 
1201
#define TCERR_OBJFILE_MODREPOBJ_BEFORE_ORIG 11815
 
1202
 
 
1203
/* replaced function %.*s found before original in object file %s */
 
1204
#define TCERR_OBJFILE_REPFUNC_BEFORE_ORIG 11816
 
1205
 
 
1206
/* "construct" cannot return a value */
 
1207
#define TCERR_CONSTRUCT_CANNOT_RET_VAL 11817
 
1208
 
 
1209
/* 
 
1210
 *   object file doesn't contain debugging information (required because
 
1211
 *   we're linking for debugging) 
 
1212
 */
 
1213
#define TCERR_OBJFILE_NO_DBG      11818
 
1214
 
 
1215
/* metaclass prop "%.*s" in does not match original "%.*s" in obj file %s */
 
1216
#define TCERR_OBJFILE_METACLASS_PROP_CONFLICT  11819
 
1217
 
 
1218
/* metaclass index conflict in object file %s */
 
1219
#define TCERR_OBJFILE_METACLASS_IDX_CONFLICT  11820
 
1220
 
 
1221
/* cannot modify or replace object of this type - %.*s in object file %s */
 
1222
#define TCERR_OBJFILE_CANNOT_MOD_OR_REP_TYPE  11821
 
1223
 
 
1224
/* exported symbol too long in object file */
 
1225
#define TCERR_EXPORT_SYM_TOO_LONG 11822
 
1226
 
 
1227
/* macro name too long in object file debug records */
 
1228
#define TCERR_OBJFILE_MACRO_SYM_TOO_LONG  11823
 
1229
 
 
1230
/* conflicting definitions of %.*s as ordinary function and as multi-method */
 
1231
#define TCERR_OBJFILE_MMFUNC_INCOMPAT  11824
 
1232
 
 
1233
/* multi-method parameter type %.*s in function %.*s is not an object */
 
1234
#define TCERR_OBJFILE_MMPARAM_NOT_OBJECT  11825
 
1235
 
 
1236
/* multi-method registration function %s is missing or invalid */
 
1237
#define TCERR_MISSING_MMREG  11826
 
1238
 
 
1239
 
 
1240
/* ------------------------------------------------------------------------ */
 
1241
/*
 
1242
 *   T3 Code Generator Errors 
 
1243
 */
 
1244
 
 
1245
/* constant string or list exceeds 32k - won't run on 16-bit machines */
 
1246
#define TCERR_CONST_POOL_OVER_32K 15001
 
1247
 
 
1248
/* internal error: constant too large for page */
 
1249
#define TCERR_CONST_TOO_LARGE_FOR_PG 15002
 
1250
 
 
1251
/* internal error: corrupted list */
 
1252
#define TCERR_CORRUPT_LIST        15003
 
1253
 
 
1254
/* internal error: 'inherited' codegen */
 
1255
#define TCERR_GEN_CODE_INH        15004
 
1256
 
 
1257
/* internal error: unknown constant type in code generation */
 
1258
#define TCERR_GEN_UNK_CONST_TYPE  15005
 
1259
 
 
1260
/* internal error: attempting to generate code for non-lvalue */
 
1261
#define TCERR_GEN_BAD_LVALUE      15006
 
1262
 
 
1263
/* internal error: attempting to generate address for non-addressable */
 
1264
#define TCERR_GEN_BAD_ADDR        15007
 
1265
 
 
1266
/* too many arguments to function (maximum of 127 allowed) */
 
1267
#define TCERR_TOO_MANY_CALL_ARGS  15008
 
1268
 
 
1269
/* too many arguments to constructor (maximum of 126 allowed) */
 
1270
#define TCERR_TOO_MANY_CTOR_ARGS  15009
 
1271
 
 
1272
/* internal error: 'delegated' codegen */
 
1273
#define TCERR_GEN_CODE_DELEGATED  15010
 
1274
 
 
1275
/* code block exceeds 32k - won't run on 16-bit machines */
 
1276
#define TCERR_CODE_POOL_OVER_32K  15011
 
1277
 
 
1278
/* internal error: 'case' or 'default' out of place or non-const expression */
 
1279
#define TCERR_GEN_BAD_CASE        15012
 
1280
 
 
1281
/* internal error: 'catch' or 'finally' gen_code called directly */
 
1282
#define TCERR_CATCH_FINALLY_GEN_CODE 15013
 
1283
 
 
1284
/* internal error: property value has invalid type for code generation */
 
1285
#define TCERR_INVAL_PROP_CODE_GEN 15014
 
1286
 
 
1287
/* symbol "%.*s" cannot be exported - reserved for compiler use */
 
1288
#define TCERR_RESERVED_EXPORT     15015
 
1289
 
 
1290
/* unused - 15016 */
 
1291
 
 
1292
/* property 'construct' is not defined */
 
1293
#define TCERR_CONSTRUCT_NOT_DEFINED 15017
 
1294
 
 
1295
/* 'construct' is not a property */
 
1296
#define TCERR_CONSTRUCT_NOT_PROP 15018
 
1297
 
 
1298
/* property 'finalize' is not defined */
 
1299
#define TCERR_FINALIZE_NOT_DEFINED 15019
 
1300
 
 
1301
/* 'finalize' is not a property */
 
1302
#define TCERR_FINALIZE_NOT_PROP 15020
 
1303
 
 
1304
 
 
1305
/* ------------------------------------------------------------------------ */
 
1306
/*
 
1307
 *   Javascript code generator errors 
 
1308
 */
 
1309
 
 
1310
/* invalid expression template */
 
1311
#define TCERR_BAD_JS_TPL   16000
 
1312
 
 
1313
/* expression template expansion overflow */
 
1314
#define TCERR_JS_EXPR_EXPAN_OVF  16001
 
1315
 
 
1316
 
 
1317
#endif /* TCERRNUM_H */
 
1318