10 {
12
13
14
15
16
17
18 $this->nocase = "0";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22
23
24 $this->colours = array("blue", "purple", "gray", "brown", "blue");
25 $this->quotecolour = "blue";
26 $this->blockcommentcolour = "green";
27 $this->linecommentcolour = "green";
28
29
30
31 $this->indent = array("{");
32 $this->unindent = array("}");
33
34
35
36 $this->stringchars = array("\"", "'");
37 $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", "?");
38 $this->escchar = "";
39
40
41
42 $this->linecommenton = array("//");
43 $this->blockcommenton = array("/*");
44 $this->blockcommentoff = array("*/");
45
46
47
48 $this->keywords = array(
49 "#define" => "1",
50 "#else" => "1",
51 "#endif" => "1",
52 "#if" => "1",
53 "#ifdef" => "1",
54 "#ifndef" => "1",
55 "#include" => "1",
56 "#pragma" => "1",
57 "#undef" => "1",
58 "alias" => "1",
59 "align" => "1",
60 "asm" => "1",
61 "asm_noflush" => "1",
62 "automatic" => "1",
63 "class" => "1",
64 "clear" => "1",
65 "combine" => "1",
66 "cse" => "1",
67 "default_attributes" => "1",
68 "define" => "1",
69 "endasm" => "1",
70 "eramdata" => "1",
71 "fix_byte_write" => "1",
72 "global" => "1",
73 "include" => "1",
74 "iramdata" => "1",
75 "macro" => "1",
76 "noalias" => "1",
77 "noclear" => "1",
78 "nofix_byte_write" => "1",
79 "noframe" => "1",
80 "nomacro" => "1",
81 "nosource" => "1",
82 "public" => "1",
83 "regdef" => "1",
84 "restore_attributes" => "1",
85 "romdata" => "1",
86 "save_attributes" => "1",
87 "size" => "1",
88 "source" => "1",
89 "speed" => "1",
90 "static" => "1",
91 "switch_force_table" => "1",
92 "switch_smart" => "1",
93 "_at" => "2",
94 "_atbit" => "2",
95 "bit" => "2",
96 "bita" => "2",
97 "bitword" => "2",
98 "break" => "2",
99 "case" => "2",
100 "char" => "2",
101 "const" => "2",
102 "continue" => "2",
103 "default" => "2",
104 "do" => "2",
105 "double" => "2",
106 "else" => "2",
107 "esfr" => "2",
108 "esfrbit" => "2",
109 "extern" => "2",
110 "far" => "2",
111 "float" => "2",
112 "for" => "2",
113 "goto" => "2",
114 "huge" => "2",
115 "if" => "2",
116 "int" => "2",
117 "iram" => "2",
118 "long" => "2",
119 "near" => "2",
120 "register" => "2",
121 "return" => "2",
122 "sfr" => "2",
123 "sfrbit" => "2",
124 "signed" => "2",
125 "size_t" => "2",
126 "struct" => "2",
127 "switch" => "2",
128 "system" => "2",
129 "typedef" => "2",
130 "unsigned" => "2",
131 "void" => "2",
132 "volatile" => "2",
133 "while" => "2",
134 "_fstrcat" => "3",
135 "_fstrchr" => "3",
136 "_fstrcmp" => "3",
137 "_fstrcpy" => "3",
138 "_fstrcspn" => "3",
139 "_fstrlen" => "3",
140 "_fstrncat" => "3",
141 "_fstrncmp" => "3",
142 "_fstrncpy" => "3",
143 "_fstrpbrk" => "3",
144 "_fstrrchr" => "3",
145 "_fstrspn" => "3",
146 "_fstrstr" => "3",
147 "_fstrtok" => "3",
148 "_hstrcat" => "3",
149 "_hstrchr" => "3",
150 "_hstrcmp" => "3",
151 "_hstrcpy" => "3",
152 "_hstrcspn" => "3",
153 "_hstrlen" => "3",
154 "_hstrncat" => "3",
155 "_hstrncmp" => "3",
156 "_hstrncpy" => "3",
157 "_hstrpbrk" => "3",
158 "_hstrrchr" => "3",
159 "_hstrspn" => "3",
160 "_hstrstr" => "3",
161 "_hstrtok" => "3",
162 "_ioread" => "3",
163 "_iowrite" => "3",
164 "_stime" => "3",
165 "_time" => "3",
166 "_tolower" => "3",
167 "_toupper" => "3",
168 "_tzset" => "3",
169 "abort" => "3",
170 "abs" => "3",
171 "acos" => "3",
172 "asctime" => "3",
173 "asin" => "3",
174 "assert" => "3",
175 "assert.h" => "3",
176 "atan" => "3",
177 "atan2" => "3",
178 "atexit" => "3",
179 "atof" => "3",
180 "atoi" => "3",
181 "atol" => "3",
182 "bsearch" => "3",
183 "c166.h" => "3",
184 "calloc" => "3",
185 "ceil" => "3",
186 "clearerr" => "3",
187 "clock" => "3",
188 "cos" => "3",
189 "cosh" => "3",
190 "ctime" => "3",
191 "ctype.h" => "3",
192 "difftime" => "3",
193 "div" => "3",
194 "errno.h" => "3",
195 "exit" => "3",
196 "exp" => "3",
197 "fabs" => "3",
198 "fclose" => "3",
199 "feof" => "3",
200 "ferror" => "3",
201 "fflush" => "3",
202 "fgetc" => "3",
203 "fgets" => "3",
204 "float.h" => "3",
205 "floor" => "3",
206 "fmod" => "3",
207 "fopen" => "3",
208 "fprintf" => "3",
209 "fputc" => "3",
210 "fputs" => "3",
211 "fread" => "3",
212 "free" => "3",
213 "freopen" => "3",
214 "frexp" => "3",
215 "fscanf" => "3",
216 "fwrite" => "3",
217 "getc" => "3",
218 "getchar" => "3",
219 "gets" => "3",
220 "gmtime" => "3",
221 "isalnum" => "3",
222 "isalpha" => "3",
223 "isascii" => "3",
224 "iscntrl" => "3",
225 "isdigit" => "3",
226 "isgraph" => "3",
227 "islower" => "3",
228 "isprint" => "3",
229 "ispunct" => "3",
230 "isspace" => "3",
231 "isupper" => "3",
232 "isxdigit" => "3",
233 "labs" => "3",
234 "ldexp" => "3",
235 "ldiv" => "3",
236 "limits.h" => "3",
237 "locale.h" => "3",
238 "localtime" => "3",
239 "log" => "3",
240 "log10" => "3",
241 "longjmp" => "3",
242 "malloc" => "3",
243 "malloc.h" => "3",
244 "math.h" => "3",
245 "memchr" => "3",
246 "memcmp" => "3",
247 "memcpffb" => "3",
248 "memcpffw" => "3",
249 "memcpfhb" => "3",
250 "memcpfhw" => "3",
251 "memcpfnb" => "3",
252 "memcpfnw" => "3",
253 "memcphfb" => "3",
254 "memcphfw" => "3",
255 "memcphhb" => "3",
256 "memcphhw" => "3",
257 "memcphnb" => "3",
258 "memcphnw" => "3",
259 "memcpnnb" => "3",
260 "memcpnnw" => "3",
261 "memcpy" => "3",
262 "memmove" => "3",
263 "memset" => "3",
264 "mktime" => "3",
265 "modf" => "3",
266 "offsetof" => "3",
267 "pow" => "3",
268 "printf" => "3",
269 "putc" => "3",
270 "putchar" => "3",
271 "puts" => "3",
272 "qsort" => "3",
273 "rand" => "3",
274 "realloc" => "3",
275 "reg163.h" => "3",
276 "reg165.h" => "3",
277 "reg166.h" => "3",
278 "reg167.h" => "3",
279 "scanf" => "3",
280 "setbuf" => "3",
281 "setjmp" => "3",
282 "setjmp.h" => "3",
283 "setvbuf" => "3",
284 "signal.h" => "3",
285 "sin" => "3",
286 "sinh" => "3",
287 "sprintf" => "3",
288 "sqrt" => "3",
289 "srand" => "3",
290 "sscanf" => "3",
291 "stdarg.h" => "3",
292 "stddef.h" => "3",
293 "stdio.h" => "3",
294 "stdlib.h" => "3",
295 "strcat" => "3",
296 "strchr" => "3",
297 "strcmp" => "3",
298 "strcpy" => "3",
299 "strcspn" => "3",
300 "strftime" => "3",
301 "string.h" => "3",
302 "strlen" => "3",
303 "strncat" => "3",
304 "strncmp" => "3",
305 "strncpy" => "3",
306 "strpbrk" => "3",
307 "strrchr" => "3",
308 "strspn" => "3",
309 "strstr" => "3",
310 "strtod" => "3",
311 "strtok" => "3",
312 "strtol" => "3",
313 "strtoul" => "3",
314 "tan" => "3",
315 "tanh" => "3",
316 "time" => "3",
317 "time.h" => "3",
318 "toascii" => "3",
319 "tolower" => "3",
320 "toupper" => "3",
321 "ungetc" => "3",
322 "va_arg" => "3",
323 "va_end" => "3",
324 "va_start" => "3",
325 "vfprintf" => "3",
326 "vprintf" => "3",
327 "vsprintf" => "3",
328 "ASSERT_INC" => "4",
329 "C166_INC" => "4",
330 "CTYPE_INC" => "4",
331 "EOF" => "4",
332 "ERRNO_INC" => "4",
333 "FLOAT_INC" => "4",
334 "LIMITS_INC" => "4",
335 "LOCALE_INC" => "4",
336 "MATH_INC" => "4",
337 "NDEBUG" => "4",
338 "NULL" => "4",
339 "REG163_INC" => "4",
340 "REG163_NOADINT" => "4",
341 "REG163_NOCPU" => "4",
342 "REG163_NOEXTINT" => "4",
343 "REG163_NOPEC" => "4",
344 "REG163_NOPORT" => "4",
345 "REG163_NORS232" => "4",
346 "REG163_NOTIMER" => "4",
347 "REG165_INC" => "4",
348 "REG165_NOADINT" => "4",
349 "REG165_NOCPU" => "4",
350 "REG165_NOEXTINT" => "4",
351 "REG165_NOPEC" => "4",
352 "REG165_NOPORT" => "4",
353 "REG165_NORS232" => "4",
354 "REG165_NOTIMER" => "4",
355 "REG166_INC" => "4",
356 "REG166_NOADC" => "4",
357 "REG166_NOCAPCOM" => "4",
358 "REG166_NOCPU" => "4",
359 "REG166_NOPEC" => "4",
360 "REG166_NOPORT" => "4",
361 "REG166_NORS232" => "4",
362 "REG166_NOTIMER" => "4",
363 "REG167_INC" => "4",
364 "REG167_NOADC" => "4",
365 "REG167_NOADINT" => "4",
366 "REG167_NOCAPCOM" => "4",
367 "REG167_NOCPU" => "4",
368 "REG167_NOPEC" => "4",
369 "REG167_NOPORT" => "4",
370 "REG167_NOPWM" => "4",
371 "REG167_NORS232" => "4",
372 "REG167_NOTIMER" => "4",
373 "SETJMP_INC" => "4",
374 "SIGNAL_INC" => "4",
375 "STDARG_INC" => "4",
376 "STDDEF_INC" => "4",
377 "STDIO_INC" => "4",
378 "STDLIB_INC" => "4",
379 "STRING_INC" => "4",
380 "TIME_INC" => "4",
381 "!" => "5",
382 "$" => "5",
383 "&" => "5",
384 "(" => "5",
385 ")" => "5",
386 "*" => "5",
387 "+" => "5",
388 "," => "5",
389 "-" => "5",
390 "." => "5",
391 "//" => "5",
392 "/" => "5",
393 ":" => "5",
394 ";" => "5",
395 "<" => "5",
396 "=" => "5",
397 ">" => "5",
398 "[" => "5",
399 "]" => "5",
400 "{" => "5",
401 "|" => "5",
402 "}" => "5",
403 "~" => "5");
404
405
406
407
408
409
410
411
412 $this->linkscripts = array(
413 "1" => "donothing",
414 "2" => "donothing",
415 "3" => "donothing",
416 "4" => "donothing",
417 "5" => "donothing");
418 }