996
|
1 # splat codes, used to generate Splats.pm and errors.html
|
|
2
|
|
3 # This file is part of CLC-INTERCAL
|
|
4
|
|
5 # Copyright (c) 2007-2008 Claudio Calvelli, all rights reserved.
|
|
6
|
|
7 # CLC-INTERCAL is copyrighted software. However, permission to use, modify,
|
|
8 # and distribute it is granted provided that the conditions set out in the
|
|
9 # licence agreement are met. See files README and COPYING in the distribution.
|
|
10
|
|
11 # PERVERSION "CLC-INTERCAL Generate/Splats.Data 1.-94.-2";
|
|
12
|
|
13 @GROUP SPLATS NUMBER=d NAME=w DESCR=s PARM=@s DOC=m
|
|
14 0 COMMENT '%' ['invalid statement']
|
|
15 This error code is used by the compiler when it does
|
|
16 not have a more appropriate error code. If you try to
|
|
17 execute the statement, the error message will be the
|
|
18 statement itself.
|
|
19 1 TODO 'Not implemented: %' ['description']
|
|
20 The requested compiler or runtime feature has not
|
|
21 been written.
|
|
22 4 ROMAN 'Unknown read type for Roman numerals: %' ['type']
|
|
23 The compiler attempted to specify an invalid default
|
|
24 representation for Roman numerals. Numeric output
|
|
25 cannot work.
|
|
26 8 BASE 'Base must be between 2 and 7 (got %)' ['base']
|
|
27 The program assigned an invalid value to %BA
|
|
28 9 IOTYPE 'Invalid I/O Type: %' ['type']
|
|
29 The compiler attempted to set the default input/output
|
|
30 mechanism (usually one of CLC or C). Binary and
|
|
31 alphanumeric I/O cannot work.
|
|
32 10 CHARSET 'Invalid character set: %' ['name']
|
|
33 The compiler attempted to set an invalid default
|
|
34 character set. Try using one of ASCII, Baudot, EBCDIC
|
|
35 or Hollerith.
|
|
36 69 INVALID 'Invalid bytecode (%) for %' ['code' 'item']
|
|
37 An expression or overload contains bytecode designed for
|
|
38 use in statements; or conversely a statement contains
|
|
39 an expression bytecode where the interpreter doesn't
|
|
40 expect it.
|
|
41 70 REGNUM 'Invalid register number "%"' ['register']
|
|
42 The program used something like I<.0> or I<.65536>. Note
|
|
43 that this may be an unintentional consequence of assigning
|
|
44 to a constant.
|
|
45 109 NOSUCHCHAR 'Invalid character (%) for %' ['code' 'charset']
|
|
46 The conversion between character sets just could not
|
|
47 cope with this. This splat is currently generated when
|
|
48 converting to Baudot or Hollerith, when a character does
|
|
49 not exist in that character set; or when converting from
|
|
50 Hollerith when an overpunch just cannot be represented.
|
|
51 123 NEXTING 'Program attempted more than % levels of NEXTing' ['number']
|
|
52 INTERCAL programs aren't supposed to do that.
|
|
53 128 JUNK 'Cannot use JUNK in this grammar' []
|
|
54 A grammar used the special predefined symbol JUNK but
|
|
55 did not provide enough evidence that it knows what to
|
|
56 do with it.
|
|
57 129 NOSUCHLABEL 'Could not find label %' ['label']
|
|
58 A NEXT or STUDY refers to an undefined label.
|
|
59 130 TOOMANYLABS 'Cannot decide between % instances of label %' ['number' 'label']
|
|
60 A NEXT or STUDY refers to a label which is multiply
|
|
61 defined. This may be an unintended effect of using
|
|
62 computed labels.
|
|
63 131 INVLABEL 'Invalid label %' ['label']
|
|
64 A NEXT or STUDY refers to a label which is not valid,
|
|
65 for example zero or too large.
|
|
66 241 NODIM 'Array not dimensioned' []
|
|
67 Subscripts have been applied to an array register which
|
|
68 has not been dimensioned; or they have been applied to
|
|
69 a non-array register.
|
|
70 242 NOTCLASS 'Non-class value used as class' []
|
|
71 A number or array was used where a class would be better.
|
|
72 243 ISARRAY 'Array register used as value' []
|
|
73 An array was used where a number would be more appropriate.
|
|
74 244 ISCLASS 'Class register used as value' []
|
|
75 A value was assigned to a class register, or a class
|
|
76 register was used for arithmetic.
|
|
77 245 NOARRAY 'Non-array register used as array' []
|
|
78 A non-array register (or a simple value) was used where
|
|
79 the system would like an array.
|
|
80 247 SPECIAL 'Attempt to use special register %' ['name']
|
|
81 The given special register does not accept assignments.
|
|
82 This may indicate a bug in CLC-INTERCAL.
|
|
83 250 NOCLASS 'Invalid value % assigned to class' ['value']
|
|
84 The program assigned a value to a class register. This
|
|
85 is not a good idea.
|
|
86 251 INVARRAY 'Invalid value in array element: %' ['reason']
|
|
87 An array is being created, but assignment to one of its
|
|
88 elements provided an invalid value, such as another array.
|
|
89 252 OVREG 'Cannot use overload register %' ['name']
|
|
90 The overload register can only be used within an overload
|
|
91 expression, and only to find out its owner. Any other use
|
|
92 is forbidden.
|
|
93 253 INVCLASS 'Invalid lecture: %' ['reason']
|
|
94 A lecture is being defined (e.g. by STUDY) but something
|
|
95 went wrong.
|
|
96 254 CLASS 'Invalid subject: %' ['reason']
|
|
97 Class registers can be used only in special ways. This
|
|
98 wasn't one of them.
|
|
99 256 NOVALUE 'This register cannot hold a value' []
|
|
100 You may be wondering what's for...
|
|
101 257 NOSPECIAL 'Normal register used as special' []
|
|
102 Somehow the program managed to use a normal register
|
|
103 (spot, two spot, tail, hybrid, whirlpool) as a special
|
|
104 (double-oh-seven, shark fin). May indicate a compiler bug.
|
|
105 274 SPOTS 'Number % too large for %' ['value' 'number of spots']
|
|
106 An arithmetic calculation intended for the given number
|
|
107 of spots resulted in a number too large to fit there.
|
|
108 276 SUBSCRIPT 'Invalid subscript %: %' ['value' 'reason']
|
|
109 A subscript is zero or greater than the size of the array.
|
|
110 277 ASSIGN 'Impossible assignment (base %): cannot find #X such that #%X is #%' ['base' 'operation' 'result']
|
|
111 Assigning to a unary operator is sometimes impossible.
|
|
112 279 SUBSIZE 'Invalid number of subscripts: % provided, % required' ['number' 'number']
|
|
113 The number of subscripts supplied to an array is wrong.
|
|
114 280 ARRAY 'Invalid array: %' ['reason']
|
|
115 Program attempted to create an array (for example by
|
|
116 dimensioning a tail or hybrid register) but something
|
|
117 went wrong.
|
|
118 281 NUMBER 'Invalid number: %' ['reason']
|
|
119 The program attempted to use something weird where a
|
|
120 number would have been a good idea instead.
|
|
121 369 NOTHREAD 'Thread % does not exist' ['thread ID']
|
|
122 An attempt was made to duplicate or kill a thread which
|
|
123 does not exist; it may have already terminated or it has
|
|
124 never been created.
|
|
125 398 CONTEXT 'Invalid context: %' ['explanation']
|
|
126 Something was used in the wrong place.
|
|
127 432 READ 'Not suitable for %' ['operation']
|
|
128 The program attempted to READ OUT or WRITE IN something which
|
|
129 is not suitable for I/O. You can use numbers, arrays or
|
|
130 classes but this was none of the above.
|
|
131 433 REGISTER 'Not a valid register: %' ['register']
|
|
132 The program used something hoping it would work as a register.
|
|
133 It didn't.
|
|
134 436 HIDDEN 'Register % stashed away too well' ['name']
|
|
135 The program RETRIEVEd more than it SHASHed.
|
|
136 437 NOREGISTER 'Cannot % numbers' ['operation']
|
|
137 The program attempted to STASH or RETRIEVE a number rather
|
|
138 than a register. This may be an unintended effect of
|
|
139 overloading.
|
|
140 438 ISNUMBER 'Numbers cannot %' ['operation']
|
|
141 The program did something like #1 LEARNS or #2 GRADUATES.
|
|
142 In other words, a number was used where one would like
|
|
143 a register. This may be an unintended effect of overloading.
|
|
144 443 MAKE_NEW 'Cannot make new opcode %' ['opcode']
|
|
145 The opcode probably already existed.
|
|
146 444 CONVERT 'Cannot convert % to %' ['opcode' 'opcode']
|
|
147 The two opcodes are not compatible; it won't work.
|
|
148 445 SWAP 'Cannot swap % and %' ['opcode' 'opcode']
|
|
149 The two opcodes are not compatible; it won't work.
|
|
150 456 SPLAT 'No splat' []
|
|
151 Program used the splat (*) operator to find out the code
|
|
152 of the last splat, but the program hasn't splatted yet.
|
|
153 457 INVSPLAT 'Invalid splat %' ['number']
|
|
154 Invalid splat. This is likely to happen when you assign to
|
|
155 the '*' expression.
|
|
156 511 FREE 'Register % is not a slave' ['name']
|
|
157 The program requested the register's owner but the register
|
|
158 is not enslaved to anything.
|
|
159 512 NOBELONG 'Register % does not belong to register %' ['slave' 'master']
|
|
160 The program attempted to FREE without ENSLAVing first.
|
|
161 513 NOOWNER 'Slave % does not have % owners (just %)' ['name' 'number' 'number']
|
|
162 The program requested the n-th owner of a register but
|
|
163 the register does not have so many owners.
|
|
164 514 OWNER 'Invalid owner number: %' ['value']
|
|
165 The program requested an invalid owner number, probably zero.
|
|
166 534 DIGITS 'Wrong number of digits for base %: %' ['base' 'number']
|
|
167 An arithmetic calculation in the specified base resulted
|
|
168 in a number with too many digits.
|
|
169 535 SYMBOL 'Invalid symbol: %' ['name']
|
|
170 The program used I<name> as a symbol, but this is not OK.
|
|
171 555 COMEFROM 'Multiple "COME FROM" %' ['label']
|
|
172 The program has multiple COME FROMs all pointing at the
|
|
173 same statement, and multithreading is disabled.
|
|
174 578 BCMATCH 'Invalid bytecode pattern in %: %' ['name' 'problem']
|
|
175 A bytecode pattern specified in an optimiser contained
|
|
176 a problem.
|
|
177 603 CLASSWAR 'Class war between % and %' ['class' 'class']
|
|
178 Two classes teach the same subject and a register is
|
|
179 enrolled in both. Can't decide which lecture to use.
|
|
180 621 NORESUME 'Pointless RESUME' []
|
|
181 A program attempted to RESUME #0.
|
|
182 632 RESUME 'Program terminated via RESUME' []
|
|
183 A program RESUMEd more than NEXTed.
|
|
184 633 FALL_OFF 'Falling off the edge of the program' []
|
|
185 The program tried to execute past its end. Try adding
|
|
186 a PLEASE GIVE UP somewhere.
|
|
187 634 INTERNAL 'Internal error: %' ['explanation']
|
|
188 The unthinkable happened and there appears to be
|
|
189 a bug in CLC-INTERCAL. Probably an illusion but do
|
|
190 submit a bug report. Include your program (if not
|
|
191 too embarrassed) and the precise text of the error
|
|
192 message (it does contain clues to the developers);
|
|
193 also include any other useful information, including,
|
|
194 but not limited to, compiler options used, perversion
|
|
195 of CLC-INTERCAL, any patches and/or modifications
|
|
196 you have applied to the compiler, and what colour was
|
|
197 selected by the system to display the error message.
|
|
198 641 IOMODE 'Invalid I/O mode %' ['mode']
|
|
199 Program attempted to open a filehandle using a silly code
|
|
200 for the I/O mode. It won't work.
|
|
201 642 IOERR 'Input output error in %: %' ['file' 'error']
|
|
202 Something bad happened.
|
|
203 643 SEEKERR 'Seek/tell error: %' ['problem']
|
|
204 You shouldn't have done that.
|
|
205 644 MODEERR 'I/O error: %' ['problem']
|
|
206 You shouldn't have done that.
|
|
207 660 NOSYSCALL 'Undefined system call %' ['number']
|
|
208 Program made a system call but the system did not
|
|
209 know what to do about it.
|
|
210 661 SYSCALL 'Missing system call number' []
|
|
211 Program attempted to make a system call but did not
|
|
212 provide a system call number.
|
|
213 662 DIVIDE 'Unary division by zero' []
|
|
214 Program attempted unary division by zero.
|
|
215 664 INDIGESTION 'Program is too large' []
|
|
216 Either the source or the comnpiled code exceeded some
|
|
217 built-in arbitrary limits.
|
|
218 666 QUANTUM '% does not have a quantum version' ['statement']
|
|
219 Program attempted to run a statement in quantum mode,
|
|
220 but the statement cannot do that.
|
|
221 699 LECTURE 'Not in a lecture' []
|
|
222 Cannot FINISH LECTURE unless there is one.
|
|
223 700 LANGUAGE 'Invalid language: %' ['language']
|
|
224 The compiler does not know about that language. Try
|
|
225 something more standard, such as Scottish Gaelic.
|
|
226 701 NONUMBER 'Value written in is not a number: %' ['value']
|
|
227 You typed something like ZERRO instead of ZERO. Or
|
|
228 perhaps you used a language which is not understood
|
|
229 by CLC-INTERCAL.
|
|
230 702 THREESPOT 'Value written in is larger than two spots' []
|
|
231 You typed too many digits.
|
|
232 751 EVENT 'Invalid event: BODY WHILE CONDITION' []
|
|
233 Before you can use it you must CONVERT it to a
|
|
234 CONDITION WHILE BODY (or you must SWAP them).
|
|
235 752 NOASSIGN 'Cannot assign %: %' ['value' 'reason']
|
|
236 The program attempted to assign an invalid value to
|
|
237 a register.
|
|
238 774 BUG 'Compiler error' []
|
|
239 Program encountered a compiler error.
|
|
240 775 UBUG 'Unexplainable compiler error' []
|
|
241 Program encountered a compiler error, even though the
|
|
242 "compiler error" has been disabled by a compiler option.
|
|
243 796 FORBIDDEN '% is forbidden in INTERCAL-1972' ['operation']
|
|
244 You asked for a compiler compatible with INTERCAL-1972
|
|
245 but used some extensions, such as binary I/O. Select
|
|
246 CLC-INTERCAL native mode or compatibility with C-INTERCAL
|
|
247 to use these things.
|
|
248 799 HOLIDAY 'No class teaches subjects %' ['number']
|
|
249 Maybe it's some kind of holiday?
|
|
250 815 EVOLUTION 'Creation not allowed: %' ['reason']
|
|
251 A CREATE (or DESTROY) statement attempted something illegal.
|
|
252 816 CREATION 'CREATE statement misconfiguration: %' ['reason']
|
|
253 The production contained some invalid code.
|
|
254 818 CIRCULAR 'Circular reasoning in %' ['symbol']
|
|
255 Recursion is acceptable, but here the problem is that
|
|
256 the symbol is defined as being identical to itself,
|
|
257 which is true but not useful.
|
|
258 822 NOSTUDENT 'Register % is not a student' ['name']
|
|
259 The program attempted to LEARN something, but the
|
|
260 register has not enrolled in a class.
|
|
261 823 NOCURRICULUM 'Subject % is not in %\'s curriculum' ['number' 'register']
|
|
262 Program attempted to LEARN something, but the register
|
|
263 is not in the right class.
|
|
264 898 REGGRIM 'Error in Regular Grimace: %' ['problem']
|
|
265 Your regular grimaces don't look regular enough, or they
|
|
266 aren't grimaces.
|
|
267 899 INTERNET 'INTERcal NETwork error talking to %: %' ['server' 'error']
|
|
268 A problem was encountered while talking to a theft server.
|
|
269 997 ILLEGAL 'Illegal operator % for base %' ['name' 'base']
|
|
270 Maybe you forgot to include the appropriate compiler option
|
|
271 for the correct base? Or used the wrong suffix? Or you
|
|
272 overloaded the base and so can't tell what base you are using
|
|
273 for calculations?
|
|
274 999 EARLY 'Lecture at % is too early' ['label']
|
|
275 Program attempted to define a lecture before 1000.
|
|
276 That's way too early.
|
|
277 @END SPLATS
|
|
278
|
|
279 # add any new splats as necessary
|
|
280 # 5 SPOT '% must be a one spot value (got %)'
|
|
281 # 15 ENCODE 'Cannot encode %'
|
|
282 # 57 GARBAGE 'Extra garbage at end of %'
|
|
283 # 246 NOSPACE 'Data written in (% elements) does not fit in array % (% elements)'
|
|
284 # 248 OVERLOAD 'Cannot % overload code'
|
|
285 # 249 DIVERSION 'Cannot take a diversion here'
|
|
286 # 275 TWOSPOT 'Register % cannot hold two spot value %'
|
|
287 # 278 CONFUSION 'Cannot share % and %'
|
|
288 # 315 SUBVERSION 'Program trying to subvert natural order'
|
|
289 # 316 INDECISION 'Cannot decide between your threads'
|
|
290 # 458 REPEATLABEL 'Found % statements with label %'
|
|
291 # 533 INTERLEAVE 'Cannot interleave % and %: too many spots'
|
|
292 # 576 NOOPTIMISER 'No such optimiser %'
|
|
293 # 577 OPTIMISE 'Invalid optimisation: %' ['description']
|
|
294 # The optimiser has detected a problem.
|
|
295 # 634 SCHEDULE 'Internal error: loop stash corrupted'
|
|
296 # 665 WALTZ 'No waltzing in the streets (particularly diversions)'
|
|
297 # 703 TOOMANYSPOTS 'Value % assigned to % larger than two spots'
|
|
298 # 797 CLASSIO 'Class @% cannot be used for %ing'
|
|
299 # 798 IGNORANCE 'Cannot find class @%'
|
|
300 # 817 NOCREATE 'Syntax error'
|
|
301 # 942 PURE 'No such sin (%)'
|
|
302
|