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

Public Member Functions

 HFile_adsp2181 ()
 
 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_adsp2181.php.

Member Function Documentation

◆ donothing()

HFile_adsp2181::donothing (   $keywordin)

Definition at line 230 of file HFile_adsp2181.php.

231  {
232  return $keywordin;
233  }

◆ HFile_adsp2181()

HFile_adsp2181::HFile_adsp2181 ( )

Definition at line 9 of file HFile_adsp2181.php.

References array.

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

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