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

Public Member Functions

 HFile_asm8051 ()
 
 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_asm8051.php.

Member Function Documentation

◆ donothing()

HFile_asm8051::donothing (   $keywordin)

Definition at line 168 of file HFile_asm8051.php.

169  {
170  return $keywordin;
171  }

◆ HFile_asm8051()

HFile_asm8051::HFile_asm8051 ( )

Definition at line 9 of file HFile_asm8051.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // 8051 Assembly
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");
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  "ASEG" => "1",
50  "BSEG" => "1",
51  "COMMON" => "1",
52  "CSEG" => "1",
53  "DB" => "1",
54  "DBIT" => "1",
55  "DS" => "1",
56  "DSEG" => "1",
57  "DW" => "1",
58  "END" => "1",
59  "ENDIF" => "1",
60  "ENDMOD" => "1",
61  "ELSE" => "1",
62  "EQU" => "1",
63  "EXTERN" => "1",
64  "EXTRN" => "1",
65  "HIGH" => "1",
66  "ISEG" => "1",
67  "LOW" => "1",
68  "LSTPAG" => "1",
69  "MODULE" => "1",
70  "NAME" => "1",
71  "ORG" => "1",
72  "PAGE" => "1",
73  "PAGSIZ" => "1",
74  "PUBLIC" => "1",
75  "RSEG" => "1",
76  "SEGMENT" => "1",
77  "SET" => "1",
78  "TITEL" => "1",
79  "TITL" => "1",
80  "USING" => "1",
81  "XSEG" => "1",
82  "ACALL" => "2",
83  "ADD" => "2",
84  "ADDC" => "2",
85  "AJMP" => "2",
86  "ANL" => "2",
87  "CALL" => "2",
88  "CJNE" => "2",
89  "CLR" => "2",
90  "CPL" => "2",
91  "DA" => "2",
92  "DEC" => "2",
93  "DIV" => "2",
94  "DJNZ" => "2",
95  "INC" => "2",
96  "JB" => "2",
97  "JBC" => "2",
98  "JC" => "2",
99  "JMP" => "2",
100  "JNC" => "2",
101  "JNB" => "2",
102  "JNZ" => "2",
103  "JZ" => "2",
104  "LCALL" => "2",
105  "LJMP" => "2",
106  "MOV" => "2",
107  "MOVC" => "2",
108  "MOVX" => "2",
109  "MUL" => "2",
110  "NOP" => "2",
111  "ORL" => "2",
112  "POP" => "2",
113  "PUSH" => "2",
114  "RET" => "2",
115  "RETI" => "2",
116  "RL" => "2",
117  "RLC" => "2",
118  "RR" => "2",
119  "RRC" => "2",
120  "SETB" => "2",
121  "SJMP" => "2",
122  "SUBB" => "2",
123  "SWAP" => "2",
124  "XCH" => "2",
125  "XRL" => "2",
126  "A" => "3",
127  "AB" => "3",
128  "ACC" => "3",
129  "B" => "3",
130  "C" => "3",
131  "DPH" => "3",
132  "DPL" => "3",
133  "DPTR" => "3",
134  "R0" => "3",
135  "R1" => "3",
136  "R2" => "3",
137  "R3" => "3",
138  "R4" => "3",
139  "R5" => "3",
140  "R6" => "3",
141  "R7" => "3",
142  "SP" => "3",
143  "PSW" => "3",
144  "+" => "4",
145  "-" => "4",
146  "=" => "4",
147  "@" => "4",
148  "#" => "4",
149  "$" => "4",
150  "[" => "4",
151  "]" => "4");
152 
153  // Special extensions
154 
155  // Each category can specify a PHP function that returns an altered
156  // version of the keyword.
157 
158 
159 
160  $this->linkscripts = array(
161  "1" => "donothing",
162  "2" => "donothing",
163  "3" => "donothing",
164  "4" => "donothing");
165  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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