ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_asmdsp56k Class Reference
+ Inheritance diagram for HFile_asmdsp56k:
+ Collaboration diagram for HFile_asmdsp56k:

Public Member Functions

 HFile_asmdsp56k ()
 
 donothing ($keywordin)
 
- Public Member Functions inherited from HFile
 __construct ()
 
 parse_file ($file)
 
 to_perl ($stub, $tofile=1)
 
 to_php ($stub, $tofile=1)
 
 _get_categories ()
 
 _dump_linkscripts ()
 
 _dump_perl_linkscripts ()
 
 _dump_perl_defaultscripts ()
 
 _dump_colours ()
 
 _dump_var ($variable, $name)
 
 _dump_array ($array, $name)
 
 _dump_perl_array ($array, $name)
 
 _dump_hash ($hash, $name)
 
 _dump_perl_hash ($hash, $name)
 

Detailed Description

Definition at line 7 of file HFile_asmdsp56k.php.

Member Function Documentation

◆ donothing()

HFile_asmdsp56k::donothing (   $keywordin)

Definition at line 428 of file HFile_asmdsp56k.php.

429  {
430  return $keywordin;
431  }

◆ HFile_asmdsp56k()

HFile_asmdsp56k::HFile_asmdsp56k ( )

Definition at line 9 of file HFile_asmdsp56k.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // DSP56K asm
15  /*************************************/
16  // Flags
17 
18  $this->nocase = "1";
19  $this->notrim = "0";
20  $this->perl = "0";
21 
22  // Colours
23 
24  $this->colours = array("blue", "purple", "gray", "brown", "blue");
25  $this->quotecolour = "blue";
26  $this->blockcommentcolour = "green";
27  $this->linecommentcolour = "green";
28 
29  // Indent Strings
30 
31  $this->indent = array();
32  $this->unindent = array();
33 
34  // String characters and delimiters
35 
36  $this->stringchars = array("'");
37  $this->delimiters = array("~", "!", "%", "^", "&", "*", "(", ")", "+", "-", "=", "|", "\\", "/", "{", "}", "[", "]", ";", "\"", "'", "<", ">", "#", " ", ",", " ", "?");
38  $this->escchar = "";
39 
40  // Comment settings
41 
42  $this->linecommenton = array(";");
43  $this->blockcommenton = array("");
44  $this->blockcommentoff = array("");
45 
46  // Keywords (keyword mapping to colour number)
47 
48  $this->keywords = array(
49  "abs" => "1",
50  "adc" => "1",
51  "add" => "1",
52  "addl" => "1",
53  "addr" => "1",
54  "and" => "1",
55  "andi" => "1",
56  "asl" => "1",
57  "asr" => "1",
58  "bchg" => "1",
59  "bclr" => "1",
60  "bset" => "1",
61  "btst" => "1",
62  "clr" => "1",
63  "cmp" => "1",
64  "cmpm" => "1",
65  "debug" => "1",
66  "dec" => "1",
67  "div" => "1",
68  "do" => "1",
69  "debugcc" => "1",
70  "debughs" => "1",
71  "debugcs" => "1",
72  "debuglo" => "1",
73  "debugec" => "1",
74  "debugeq" => "1",
75  "debuges" => "1",
76  "debugge" => "1",
77  "debuggt" => "1",
78  "debuglc" => "1",
79  "debugle" => "1",
80  "debugls" => "1",
81  "debuglt" => "1",
82  "debugmi" => "1",
83  "debugne" => "1",
84  "debugnr" => "1",
85  "debugpl" => "1",
86  "debugnn" => "1",
87  "enddo" => "1",
88  "eor" => "1",
89  "illegal" => "1",
90  "inc" => "1",
91  "jclr" => "1",
92  "jmp" => "1",
93  "jsclr" => "1",
94  "jset" => "1",
95  "jsr" => "1",
96  "jsset" => "1",
97  "jcc" => "1",
98  "jhs" => "1",
99  "jcs" => "1",
100  "jlo" => "1",
101  "jec" => "1",
102  "jeq" => "1",
103  "jes" => "1",
104  "jge" => "1",
105  "jgt" => "1",
106  "jlc" => "1",
107  "jle" => "1",
108  "jls" => "1",
109  "jlt" => "1",
110  "jmi" => "1",
111  "jne" => "1",
112  "jnr" => "1",
113  "jpl" => "1",
114  "jnn" => "1",
115  "jscc" => "1",
116  "jshs" => "1",
117  "jscs" => "1",
118  "jslo" => "1",
119  "jsec" => "1",
120  "jseq" => "1",
121  "jses" => "1",
122  "jsge" => "1",
123  "jsgt" => "1",
124  "jslc" => "1",
125  "jsle" => "1",
126  "jsls" => "1",
127  "jslt" => "1",
128  "jsmi" => "1",
129  "jsne" => "1",
130  "jsnr" => "1",
131  "jspl" => "1",
132  "jsnn" => "1",
133  "lsl" => "1",
134  "lsr" => "1",
135  "lua" => "1",
136  "mac" => "1",
137  "macr" => "1",
138  "move" => "1",
139  "movec" => "1",
140  "movem" => "1",
141  "movep" => "1",
142  "mpy" => "1",
143  "mpyr" => "1",
144  "neg" => "1",
145  "nop" => "1",
146  "norm" => "1",
147  "not" => "1",
148  "or" => "1",
149  "ori" => "1",
150  "rep" => "1",
151  "reset" => "1",
152  "rnd" => "1",
153  "rol" => "1",
154  "ror" => "1",
155  "rti" => "1",
156  "rts" => "1",
157  "sbc" => "1",
158  "stop" => "1",
159  "sub" => "1",
160  "subl" => "1",
161  "subr" => "1",
162  "swi" => "1",
163  "tfr" => "1",
164  "tst" => "1",
165  "tcc" => "1",
166  "ths" => "1",
167  "tcs" => "1",
168  "tlo" => "1",
169  "tec" => "1",
170  "teq" => "1",
171  "tes" => "1",
172  "tge" => "1",
173  "tgt" => "1",
174  "tlc" => "1",
175  "tle" => "1",
176  "tls" => "1",
177  "tlt" => "1",
178  "tmi" => "1",
179  "tne" => "1",
180  "tnr" => "1",
181  "tpl" => "1",
182  "tnn" => "1",
183  "wait" => "1",
184  "by" => "2",
185  "downto" => "2",
186  "then" => "2",
187  "to" => "2",
188  ".break" => "2",
189  ".continue" => "2",
190  ".else" => "2",
191  ".endf" => "2",
192  ".endi" => "2",
193  ".endl" => "2",
194  ".endw" => "2",
195  ".for" => "2",
196  ".if" => "2",
197  ".loop" => "2",
198  ".repeat" => "2",
199  ".until" => "2",
200  ".while" => "2",
201  "baddr" => "3",
202  "bsb" => "3",
203  "bsc" => "3",
204  "buffer" => "3",
205  "cobj" => "3",
206  "comment" => "3",
207  "dc" => "3",
208  "dcb" => "3",
209  "define" => "3",
210  "ds" => "3",
211  "dsm" => "3",
212  "dsr" => "3",
213  "dup" => "3",
214  "dupa" => "3",
215  "dupc" => "3",
216  "dupf" => "3",
217  "else" => "3",
218  "end" => "3",
219  "endbuf" => "3",
220  "endif" => "3",
221  "endm" => "3",
222  "endsec" => "3",
223  "equ" => "3",
224  "exitm" => "3",
225  "fail" => "3",
226  "force" => "3",
227  "global" => "3",
228  "himem" => "3",
229  "ident" => "3",
230  "if" => "3",
231  "include" => "3",
232  "list" => "3",
233  "local" => "3",
234  "lomem" => "3",
235  "lstcol" => "3",
236  "maclib" => "3",
237  "macro" => "3",
238  "mode" => "3",
239  "msg" => "3",
240  "nolist" => "3",
241  "opt" => "3",
242  "org" => "3",
243  "page" => "3",
244  "pmacro" => "3",
245  "prctl" => "3",
246  "radix" => "3",
247  "rdirect" => "3",
248  "scsjmp" => "3",
249  "scsreg" => "3",
250  "section" => "3",
251  "set" => "3",
252  "stitle" => "3",
253  "symobj" => "3",
254  "tabs" => "3",
255  "title" => "3",
256  "undef" => "3",
257  "warn" => "3",
258  "xdef" => "3",
259  "xref" => "3",
260  "@abs" => "4",
261  "@acs" => "4",
262  "@asn" => "4",
263  "@atn" => "4",
264  "@arg" => "4",
265  "@cel" => "4",
266  "@coh" => "4",
267  "@cos" => "4",
268  "@cvf" => "4",
269  "@cvi" => "4",
270  "@cvs" => "4",
271  "@cnt" => "4",
272  "@ccc" => "4",
273  "@chk" => "4",
274  "@ctr" => "4",
275  "@def" => "4",
276  "@flr" => "4",
277  "@fld" => "4",
278  "@frc" => "4",
279  "@exp" => "4",
280  "@int" => "4",
281  "@l10" => "4",
282  "@log" => "4",
283  "@lfr" => "4",
284  "@lng" => "4",
285  "@lun" => "4",
286  "@len" => "4",
287  "@lcv" => "4",
288  "@lst" => "4",
289  "@max" => "4",
290  "@min" => "4",
291  "@mac" => "4",
292  "@mxp" => "4",
293  "@msp" => "4",
294  "@rel" => "4",
295  "@pow" => "4",
296  "@pos" => "4",
297  "@rnd" => "4",
298  "@sgn" => "4",
299  "@sin" => "4",
300  "@snh" => "4",
301  "@sqt" => "4",
302  "@scp" => "4",
303  "@tan" => "4",
304  "@tnh" => "4",
305  "@unf" => "4",
306  "@xph" => "4",
307  "a" => "5",
308  "a0" => "5",
309  "a1" => "5",
310  "a2" => "5",
311  "b" => "5",
312  "b0" => "5",
313  "b1" => "5",
314  "b2" => "5",
315  "ccr" => "5",
316  "lc" => "5",
317  "la" => "5",
318  "m0" => "5",
319  "m1" => "5",
320  "m2" => "5",
321  "m3" => "5",
322  "m4" => "5",
323  "m5" => "5",
324  "m6" => "5",
325  "m7" => "5",
326  "mr" => "5",
327  "n0" => "5",
328  "n1" => "5",
329  "n2" => "5",
330  "n3" => "5",
331  "n4" => "5",
332  "n5" => "5",
333  "n6" => "5",
334  "n7" => "5",
335  "omr" => "5",
336  "pc" => "5",
337  "r0" => "5",
338  "r1" => "5",
339  "r2" => "5",
340  "r3" => "5",
341  "r4" => "5",
342  "r5" => "5",
343  "r6" => "5",
344  "r7" => "5",
345  "sr" => "5",
346  "sp" => "5",
347  "ssh" => "5",
348  "ssl" => "5",
349  "x" => "5",
350  "x0" => "5",
351  "x1" => "5",
352  "y" => "5",
353  "y0" => "5",
354  "y1" => "5",
355  "(r0)" => "5",
356  "(r1)" => "5",
357  "(r2)" => "5",
358  "(r3)" => "5",
359  "(r4)" => "5",
360  "(r5)" => "5",
361  "(r6)" => "5",
362  "(r7)" => "5",
363  "(r0)+" => "5",
364  "(r1)+" => "5",
365  "(r2)+" => "5",
366  "(r3)+" => "5",
367  "(r4)+" => "5",
368  "(r5)+" => "5",
369  "(r6)+" => "5",
370  "(r7)+" => "5",
371  "(r0)-" => "5",
372  "(r1)-" => "5",
373  "(r2)-" => "5",
374  "(r3)-" => "5",
375  "(r4)-" => "5",
376  "(r5)-" => "5",
377  "(r6)-" => "5",
378  "(r7)-" => "5",
379  "(r0)+n0" => "5",
380  "(r1)+n1" => "5",
381  "(r2)+n2" => "5",
382  "(r3)+n3" => "5",
383  "(r4)+n4" => "5",
384  "(r5)+n5" => "5",
385  "(r6)+n6" => "5",
386  "(r7)+n7" => "5",
387  "(r0)-n0" => "5",
388  "(r1)-n1" => "5",
389  "(r2)-n2" => "5",
390  "(r3)-n3" => "5",
391  "(r4)-n4" => "5",
392  "(r5)-n5" => "5",
393  "(r6)-n6" => "5",
394  "(r7)-n7" => "5",
395  "-x0" => "5",
396  "-x1" => "5",
397  "-y0" => "5",
398  "-y1" => "5",
399  "-(r0)" => "5",
400  "-(r1)" => "5",
401  "-(r2)" => "5",
402  "-(r3)" => "5",
403  "-(r4)" => "5",
404  "-(r5)" => "5",
405  "-(r6)" => "5",
406  "-(r7)" => "5",
407  "+x0" => "5",
408  "+x1" => "5",
409  "+y0" => "5",
410  "+y1" => "5");
411 
412  // Special extensions
413 
414  // Each category can specify a PHP function that returns an altered
415  // version of the keyword.
416 
417 
418 
419  $this->linkscripts = array(
420  "1" => "donothing",
421  "2" => "donothing",
422  "3" => "donothing",
423  "4" => "donothing",
424  "5" => "donothing");
425  }
Create styles array
The data for the language used.
Definition: HFile.php:21

The documentation for this class was generated from the following file: