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

Public Member Functions

 HFile_asm21xx ()
 
 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_asm21xx.php.

Member Function Documentation

◆ donothing()

HFile_asm21xx::donothing (   $keywordin)

Definition at line 232 of file HFile_asm21xx.php.

233  {
234  return $keywordin;
235  }

◆ HFile_asm21xx()

HFile_asm21xx::HFile_asm21xx ( )

Definition at line 9 of file HFile_asm21xx.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // 21xx 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", "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  "#else" => "1",
51  "#endif" => "1",
52  "#if" => "1",
53  "#ifdef" => "1",
54  "#ifndef" => "1",
55  "#include" => "1",
56  "#undef" => "1",
57  "<" => "1",
58  ">" => "1",
59  ".const" => "2",
60  ".endmod" => "2",
61  ".external" => "2",
62  ".global" => "2",
63  ".include" => "2",
64  ".init" => "2",
65  ".module" => "2",
66  ".var" => "2",
67  "abs" => "3",
68  "and" => "3",
69  "ashift" => "3",
70  "by" => "3",
71  "call" => "3",
72  "clrbit" => "3",
73  "dis" => "3",
74  "divq" => "3",
75  "divs" => "3",
76  "dm" => "3",
77  "do" => "3",
78  "ena" => "3",
79  "exp" => "3",
80  "expadj" => "3",
81  "hi" => "3",
82  "hix" => "3",
83  "idle" => "3",
84  "if" => "3",
85  "io" => "3",
86  "jump" => "3",
87  "lo" => "3",
88  "lshift" => "3",
89  "modify" => "3",
90  "neg" => "3",
91  "nop" => "3",
92  "norm" => "3",
93  "not" => "3",
94  "or" => "3",
95  "pass" => "3",
96  "pm" => "3",
97  "pop" => "3",
98  "pos" => "3",
99  "push" => "3",
100  "reset" => "3",
101  "rnd" => "3",
102  "rti" => "3",
103  "rts" => "3",
104  "sat" => "3",
105  "set" => "3",
106  "setbit" => "3",
107  "ss" => "3",
108  "su" => "3",
109  "tglbit" => "3",
110  "toggle" => "3",
111  "tstbit" => "3",
112  "until" => "3",
113  "us" => "3",
114  "uu" => "3",
115  "xor" => "3",
116  "af" => "4",
117  "ar" => "4",
118  "ax0" => "4",
119  "ax1" => "4",
120  "ay0" => "4",
121  "ay1" => "4",
122  "mf" => "4",
123  "mr" => "4",
124  "mr0" => "4",
125  "mr1" => "4",
126  "mr2" => "4",
127  "mx0" => "4",
128  "mx1" => "4",
129  "my0" => "4",
130  "my1" => "4",
131  "none" => "4",
132  "se" => "4",
133  "si" => "4",
134  "sr" => "4",
135  "sr0" => "4",
136  "sr1" => "4",
137  "i0" => "5",
138  "i1" => "5",
139  "i2" => "5",
140  "i3" => "5",
141  "i4" => "5",
142  "i5" => "5",
143  "i6" => "5",
144  "i7" => "5",
145  "l0" => "5",
146  "l1" => "5",
147  "l2" => "5",
148  "l3" => "5",
149  "l4" => "5",
150  "l5" => "5",
151  "l6" => "5",
152  "l7" => "5",
153  "m0" => "5",
154  "m1" => "5",
155  "m2" => "5",
156  "m3" => "5",
157  "m4" => "5",
158  "m5" => "5",
159  "m6" => "5",
160  "m7" => "5",
161  "ac" => "6",
162  "astat" => "6",
163  "av" => "6",
164  "ar_set" => "6",
165  "av_latch" => "6",
166  "bit_rev" => "6",
167  "c" => "6",
168  "ce" => "6",
169  "cntr" => "6",
170  "eq" => "6",
171  "flag_in" => "6",
172  "flag_out" => "6",
173  "fl0" => "6",
174  "fl1" => "6",
175  "fl2" => "6",
176  "ge" => "6",
177  "g_mode" => "6",
178  "gt" => "6",
179  "icntl" => "6",
180  "ifc" => "6",
181  "imask" => "6",
182  "ints" => "6",
183  "le" => "6",
184  "loop" => "6",
185  "lt" => "6",
186  "m_mode" => "6",
187  "mstat" => "6",
188  "mv" => "6",
189  "ne" => "6",
190  "owrcntr" => "6",
191  "pc" => "6",
192  "px" => "6",
193  "rx0" => "6",
194  "rx1" => "6",
195  "sb" => "6",
196  "sec_reg" => "6",
197  "sstat" => "6",
198  "sts" => "6",
199  "toppcstack" => "6",
200  "tx0" => "6",
201  "tx1" => "6",
202  "timer" => "6",
203  "%" => "7",
204  "(" => "7",
205  ")" => "7",
206  "*" => "7",
207  "+" => "7",
208  "-" => "7",
209  "//" => "7",
210  "/" => "7",
211  "=" => "7",
212  "^" => "7");
213 
214  // Special extensions
215 
216  // Each category can specify a PHP function that returns an altered
217  // version of the keyword.
218 
219 
220 
221  $this->linkscripts = array(
222  "1" => "donothing",
223  "2" => "donothing",
224  "3" => "donothing",
225  "4" => "donothing",
226  "5" => "donothing",
227  "6" => "donothing",
228  "7" => "donothing");
229  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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