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

Public Member Functions

 HFile_microchp ()
 
 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_microchp.php.

Member Function Documentation

◆ donothing()

HFile_microchp::donothing (   $keywordin)

Definition at line 445 of file HFile_microchp.php.

446  {
447  return $keywordin;
448  }

◆ HFile_microchp()

HFile_microchp::HFile_microchp ( )

Definition at line 9 of file HFile_microchp.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Microchip PIC 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", "purple", "gray");
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  "#DEFINE" => "1",
50  "#INCLUDE" => "1",
51  "#UNDEFINE" => "1",
52  "BANKISEL" => "1",
53  "BANKSEL" => "1",
54  "CBLOCK" => "1",
55  "CODE" => "1",
56  "CONSTANT" => "1",
57  "DATA" => "1",
58  "DB" => "1",
59  "DE" => "1",
60  "DT" => "1",
61  "DW" => "1",
62  "ELSE" => "1",
63  "END" => "1",
64  "ENDC" => "1",
65  "ENDIF" => "1",
66  "ENDM" => "1",
67  "ENDW" => "1",
68  "EQU" => "1",
69  "ERROR" => "1",
70  "ERRORLEVEL" => "1",
71  "EXITM" => "1",
72  "EXPAND" => "1",
73  "EXTERN" => "1",
74  "FILL" => "1",
75  "GLOBAL" => "1",
76  "IDATA" => "1",
77  "IF" => "1",
78  "IFDEF" => "1",
79  "IFNDEF" => "1",
80  "LIST" => "1",
81  "LOCAL" => "1",
82  "MACRO" => "1",
83  "MESSG" => "1",
84  "NOEXPAND" => "1",
85  "NOLIST" => "1",
86  "ORG" => "1",
87  "PAGE" => "1",
88  "PAGESEL" => "1",
89  "PROCESSOR" => "1",
90  "RADIX" => "1",
91  "RES" => "1",
92  "SET" => "1",
93  "SPACE" => "1",
94  "SUBTITLE" => "1",
95  "TITLE" => "1",
96  "UDATA" => "1",
97  "UDATA_OVR" => "1",
98  "UDATA_SHR" => "1",
99  "VARIABLE" => "1",
100  "WHILE" => "1",
101  "__BADRAM" => "1",
102  "__CONFIG" => "1",
103  "__IDLOCS" => "1",
104  "__MAXRAM" => "1",
105  "=" => "1",
106  "addwf" => "2",
107  "andlw" => "2",
108  "andwf" => "2",
109  "bcf" => "2",
110  "bsf" => "2",
111  "btfsc" => "2",
112  "btfss" => "2",
113  "call" => "2",
114  "clrf" => "2",
115  "clrw" => "2",
116  "clrwdt" => "2",
117  "comf" => "2",
118  "decf" => "2",
119  "decfsz" => "2",
120  "goto" => "2",
121  "incf" => "2",
122  "incfsz" => "2",
123  "iorlw" => "2",
124  "iorwf" => "2",
125  "movf" => "2",
126  "movlw" => "2",
127  "movwf" => "2",
128  "nop" => "2",
129  "option" => "2",
130  "retlw" => "2",
131  "rlf" => "2",
132  "rrf" => "2",
133  "sleep" => "2",
134  "subwf" => "2",
135  "swapf" => "2",
136  "tris" => "2",
137  "xorlw" => "2",
138  "xorwf" => "2",
139  "addlw" => "3",
140  "retfie" => "3",
141  "return" => "3",
142  "sublw" => "3",
143  "addwfc" => "4",
144  "btg" => "4",
145  "cpfseq" => "4",
146  "cpfsgt" => "4",
147  "cpfslt" => "4",
148  "daw" => "4",
149  "dcfsnz" => "4",
150  "infsnz" => "4",
151  "lcall" => "4",
152  "movfp" => "4",
153  "movlb" => "4",
154  "movlr" => "4",
155  "movpf" => "4",
156  "mullw" => "4",
157  "mulwf" => "4",
158  "negw" => "4",
159  "rlcf" => "4",
160  "rlncf" => "4",
161  "rrcf" => "4",
162  "rrncf" => "4",
163  "setf" => "4",
164  "subwfb" => "4",
165  "tablrd" => "4",
166  "tablwt" => "4",
167  "tlrd" => "4",
168  "tlwt" => "4",
169  "tstfsz" => "4",
170  "ADCON0" => "5",
171  "ADCON1" => "5",
172  "ADRES" => "5",
173  "CCP1CON" => "5",
174  "CCP2CON" => "5",
175  "CCPR1H" => "5",
176  "CCPR1L" => "5",
177  "CCPR2H" => "5",
178  "CCPR2L" => "5",
179  "CMCON" => "5",
180  "EEADR" => "5",
181  "EECON1" => "5",
182  "EECON2" => "5",
183  "EEDATA" => "5",
184  "F" => "5",
185  "FSR" => "5",
186  "GPIO" => "5",
187  "INDF" => "5",
188  "INTCON" => "5",
189  "LCDCON" => "5",
190  "LCDD00" => "5",
191  "LCDD01" => "5",
192  "LCDD02" => "5",
193  "LCDD03" => "5",
194  "LCDD04" => "5",
195  "LCDD05" => "5",
196  "LCDD06" => "5",
197  "LCDD07" => "5",
198  "LCDD08" => "5",
199  "LCDD09" => "5",
200  "LCDD10" => "5",
201  "LCDD11" => "5",
202  "LCDD12" => "5",
203  "LCDD13" => "5",
204  "LCDD14" => "5",
205  "LCDD15" => "5",
206  "LCDPS" => "5",
207  "LCDSE" => "5",
208  "OSCCAL" => "5",
209  "PCL" => "5",
210  "PCLATH" => "5",
211  "PCON" => "5",
212  "PIE1" => "5",
213  "PIE2" => "5",
214  "PIR1" => "5",
215  "PIR2" => "5",
216  "PORTA" => "5",
217  "PORTB" => "5",
218  "PORTC" => "5",
219  "PORTD" => "5",
220  "PORTE" => "5",
221  "PORTF" => "5",
222  "PORTG" => "5",
223  "PR2" => "5",
224  "RCREG" => "5",
225  "RCSTA" => "5",
226  "RTCC" => "5",
227  "SPBRG" => "5",
228  "SSPADD" => "5",
229  "SSPBUF" => "5",
230  "SSPCON" => "5",
231  "SSPSTAT" => "5",
232  "STATUS" => "5",
233  "T1CON" => "5",
234  "T2CON" => "5",
235  "TMR0" => "5",
236  "TMR1H" => "5",
237  "TMR1L" => "5",
238  "TMR2" => "5",
239  "TRISA" => "5",
240  "TRISB" => "5",
241  "TRISC" => "5",
242  "TRISD" => "5",
243  "TRISE" => "5",
244  "TRISF" => "5",
245  "TRISG" => "5",
246  "TXREG" => "5",
247  "TXSTA" => "5",
248  "VRCON" => "5",
249  "W" => "5",
250  "WREG" => "5",
251  "ADCS0" => "6",
252  "ADCS1" => "6",
253  "ADIE" => "6",
254  "ADIF" => "6",
255  "ADON" => "6",
256  "BF" => "6",
257  "BO" => "6",
258  "BRGH" => "6",
259  "C" => "6",
260  "C1OUT" => "6",
261  "C2OUT" => "6",
262  "CAL0" => "6",
263  "CAL1" => "6",
264  "CAL2" => "6",
265  "CAL3" => "6",
266  "CAL4" => "6",
267  "CAL5" => "6",
268  "CCP1IE" => "6",
269  "CCP1IF" => "6",
270  "CCP1M0" => "6",
271  "CCP1M1" => "6",
272  "CCP1M2" => "6",
273  "CCP1M3" => "6",
274  "CCP1X" => "6",
275  "CCP1Y" => "6",
276  "CCP2IE" => "6",
277  "CCP2IF" => "6",
278  "CCP2M0" => "6",
279  "CCP2M1" => "6",
280  "CCP2M2" => "6",
281  "CCP2M3" => "6",
282  "CCP2X" => "6",
283  "CCP2Y" => "6",
284  "CHS0" => "6",
285  "CHS1" => "6",
286  "CHS2" => "6",
287  "CKE" => "6",
288  "CKP" => "6",
289  "CM0" => "6",
290  "CM1" => "6",
291  "CM2" => "6",
292  "CIS" => "6",
293  "CMIE" => "6",
294  "CMIF" => "6",
295  "CREN" => "6",
296  "CS0" => "6",
297  "CS1" => "6",
298  "CSRC" => "6",
299  "DA" => "6",
300  "DC" => "6",
301  "EEIE" => "6",
302  "EEIF" => "6",
303  "FERR" => "6",
304  "GIE" => "6",
305  "GO_DONE" => "6",
306  "IBF" => "6",
307  "IBOV" => "6",
308  "INTE" => "6",
309  "INTEDG" => "6",
310  "INTF" => "6",
311  "IRP" => "6",
312  "LCDEN" => "6",
313  "LCDIE" => "6",
314  "LCDIF" => "6",
315  "LMUX0" => "6",
316  "LMUX1" => "6",
317  "LP0" => "6",
318  "LP1" => "6",
319  "LP2" => "6",
320  "LP3" => "6",
321  "NOT_PD" => "6",
322  "NOT_RBPU" => "6",
323  "NOT_RBWU" => "6",
324  "NOT_TO" => "6",
325  "OBF" => "6",
326  "OERR" => "6",
327  "P" => "6",
328  "PA0" => "6",
329  "PA1" => "6",
330  "PCFG0" => "6",
331  "PCFG1" => "6",
332  "PCFG2" => "6",
333  "PEIE" => "6",
334  "POR" => "6",
335  "PS0" => "6",
336  "PS1" => "6",
337  "PS2" => "6",
338  "PSA" => "6",
339  "PSPIE" => "6",
340  "PSPIF" => "6",
341  "PSPMODE" => "6",
342  "RBIE" => "6",
343  "RBIF" => "6",
344  "RBWUF" => "6",
345  "RCIE" => "6",
346  "RCIF" => "6",
347  "RD" => "6",
348  "RP0" => "6",
349  "RP1" => "6",
350  "RW" => "6",
351  "RX9" => "6",
352  "RX9D" => "6",
353  "S" => "6",
354  "SE0" => "6",
355  "SE5" => "6",
356  "SE9" => "6",
357  "SE12" => "6",
358  "SE16" => "6",
359  "SE20" => "6",
360  "SE27" => "6",
361  "SE29" => "6",
362  "SLPEN" => "6",
363  "SMP" => "6",
364  "SPEN" => "6",
365  "SREN" => "6",
366  "SSPEN" => "6",
367  "SSPIE" => "6",
368  "SSPIF" => "6",
369  "SSPM0" => "6",
370  "SSPM1" => "6",
371  "SSPM2" => "6",
372  "SSPM3" => "6",
373  "SSPOV" => "6",
374  "SYNC" => "6",
375  "T0CS" => "6",
376  "T0IE" => "6",
377  "T0IF" => "6",
378  "T0SE" => "6",
379  "T1CKPS0" => "6",
380  "T1CKPS1" => "6",
381  "T1OSCEN" => "6",
382  "T2CKPS0" => "6",
383  "T2CKPS1" => "6",
384  "TMR1CS" => "6",
385  "TMR1IE" => "6",
386  "TMR1IF" => "6",
387  "TMR1ON" => "6",
388  "TMR2IE" => "6",
389  "TMR2IF" => "6",
390  "TMR2ON" => "6",
391  "TOUTPS3" => "6",
392  "TOUTPS2" => "6",
393  "TOUTPS1" => "6",
394  "TOUTPS0" => "6",
395  "TRISE0" => "6",
396  "TRISE1" => "6",
397  "TRISE2" => "6",
398  "TRMT" => "6",
399  "TX89" => "6",
400  "TX9" => "6",
401  "TX9D" => "6",
402  "TXD8" => "6",
403  "TXEN" => "6",
404  "TXIE" => "6",
405  "TXIF" => "6",
406  "UA" => "6",
407  "VGEN" => "6",
408  "VR0" => "6",
409  "VR1" => "6",
410  "VR2" => "6",
411  "VR3" => "6",
412  "VREN" => "6",
413  "VROE" => "6",
414  "VRR" => "6",
415  "WCOL" => "6",
416  "WR" => "6",
417  "WREN" => "6",
418  "WRERR" => "6",
419  "Z" => "6",
420  "+" => "7",
421  "," => "7",
422  "-" => "7",
423  "/" => "7",
424  "<" => "7",
425  ">" => "7");
426 
427  // Special extensions
428 
429  // Each category can specify a PHP function that returns an altered
430  // version of the keyword.
431 
432 
433 
434  $this->linkscripts = array(
435  "1" => "donothing",
436  "2" => "donothing",
437  "3" => "donothing",
438  "4" => "donothing",
439  "5" => "donothing",
440  "6" => "donothing",
441  "7" => "donothing");
442  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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