ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_asmz80.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_asmz80 extends HFile{
6  function HFile_asmz80(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Z80 Assembler
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "brown", "blue");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array();
28 $this->unindent = array();
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array("\"", "'");
33 $this->delimiters = array("~", "#", "!", "$", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array(";");
39 $this->blockcommenton = array("");
40 $this->blockcommentoff = array("");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "adc" => "1",
46  "add" => "1",
47  "and" => "1",
48  "bit" => "1",
49  "call" => "1",
50  "ccf" => "1",
51  "cp" => "1",
52  "cpd" => "1",
53  "cpdr" => "1",
54  "cpi" => "1",
55  "cpir" => "1",
56  "cpl" => "1",
57  "daa" => "1",
58  "dec" => "1",
59  "di" => "1",
60  "djnz" => "1",
61  "ei" => "1",
62  "ex" => "1",
63  "exx" => "1",
64  "halt" => "1",
65  "im" => "1",
66  "in" => "1",
67  "inc" => "1",
68  "ind" => "1",
69  "indr" => "1",
70  "ini" => "1",
71  "inir" => "1",
72  "jp" => "1",
73  "jr" => "1",
74  "ld" => "1",
75  "ldd" => "1",
76  "lddr" => "1",
77  "ldi" => "1",
78  "ldir" => "1",
79  "neg" => "1",
80  "nop" => "1",
81  "or" => "1",
82  "otdr" => "1",
83  "otir" => "1",
84  "out" => "1",
85  "outd" => "1",
86  "outi" => "1",
87  "pop" => "1",
88  "push" => "1",
89  "res" => "1",
90  "ret" => "1",
91  "reti" => "1",
92  "retn" => "1",
93  "rl" => "1",
94  "rla" => "1",
95  "rlc" => "1",
96  "rlca" => "1",
97  "rld" => "1",
98  "rr" => "1",
99  "rra" => "1",
100  "rrc" => "1",
101  "rrca" => "1",
102  "rrd" => "1",
103  "rst" => "1",
104  "sbc" => "1",
105  "scf" => "1",
106  "set" => "1",
107  "sla" => "1",
108  "sll" => "1",
109  "sra" => "1",
110  "srl" => "1",
111  "sub" => "1",
112  "xor" => "1",
113  "binary" => "2",
114  "defb" => "2",
115  "defc" => "2",
116  "defgroup" => "2",
117  "define" => "2",
118  "defl" => "2",
119  "defm" => "2",
120  "defs" => "2",
121  "defvars" => "2",
122  "defw" => "2",
123  "else" => "2",
124  "endif" => "2",
125  "if" => "2",
126  "include" => "2",
127  "lib" => "2",
128  "lstoff" => "2",
129  "lston" => "2",
130  "module" => "2",
131  "org" => "2",
132  "xdef" => "2",
133  "xlib" => "2",
134  "xref" => "2",
135  "$" => "4",
136  "." => "4",
137  "+" => "4",
138  "-" => "4",
139  "=" => "4",
140  "//" => "4",
141  "/" => "4",
142  "%" => "4",
143  "&" => "4",
144  ">" => "4",
145  "<" => "4",
146  "^" => "4",
147  "!" => "4",
148  "|" => "4",
149  "A" => "5",
150  "AF" => "5",
151  "AF\'" => "5",
152  "B" => "5",
153  "BC" => "5",
154  "C" => "5",
155  "D" => "5",
156  "DE" => "5",
157  "E" => "5",
158  "F" => "5",
159  "H" => "5",
160  "HL" => "5",
161  "IX" => "5",
162  "IY" => "5",
163  "IXL" => "5",
164  "IXH" => "5",
165  "IYL" => "5",
166  "IYH" => "5",
167  "L" => "5",
168  "M" => "5",
169  "NZ" => "5",
170  "NC" => "5",
171  "P" => "5",
172  "PE" => "5",
173  "PO" => "5",
174  "Z" => "5");
175 
176 // Special extensions
177 
178 // Each category can specify a PHP function that returns an altered
179 // version of the keyword.
180 
181 
182 
183 $this->linkscripts = array(
184  "1" => "donothing",
185  "2" => "donothing",
186  "4" => "donothing",
187  "5" => "donothing");
188 }
189 
190 
191 function donothing($keywordin)
192 {
193  return $keywordin;
194 }
195 
196 }?>