ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_asms370.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_asms370 extends HFile{
6  function HFile_asms370(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // S/370 Assembler
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray");
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  "A" => "1",
46  "AD" => "1",
47  "ADR" => "1",
48  "AE" => "1",
49  "AER" => "1",
50  "AH" => "1",
51  "AL" => "1",
52  "ALR" => "1",
53  "AP" => "1",
54  "AR" => "1",
55  "AU" => "1",
56  "AUR" => "1",
57  "AW" => "1",
58  "AWR" => "1",
59  "B" => "1",
60  "BAKR" => "1",
61  "BAL" => "1",
62  "BALR" => "1",
63  "BAS" => "1",
64  "BASSM" => "1",
65  "BC" => "1",
66  "BCR" => "1",
67  "BCT" => "1",
68  "BCTR" => "1",
69  "BE" => "1",
70  "BH" => "1",
71  "BL" => "1",
72  "BM" => "1",
73  "BNE" => "1",
74  "BNH" => "1",
75  "BNL" => "1",
76  "BNM" => "1",
77  "BNO" => "1",
78  "BNP" => "1",
79  "BNZ" => "1",
80  "BO" => "1",
81  "BP" => "1",
82  "BR" => "1",
83  "BSM" => "1",
84  "BXH" => "1",
85  "BXLE" => "1",
86  "BZ" => "1",
87  "C" => "1",
88  "CALL" => "1",
89  "CD" => "1",
90  "CDR" => "1",
91  "CE" => "1",
92  "CER" => "1",
93  "CH" => "1",
94  "CL" => "1",
95  "CLC" => "1",
96  "CLI" => "1",
97  "CLR" => "1",
98  "CP" => "1",
99  "CR" => "1",
100  "CVB" => "1",
101  "CVD" => "1",
102  "D" => "1",
103  "DD" => "1",
104  "DDR" => "1",
105  "DE" => "1",
106  "DELETE" => "1",
107  "DER" => "1",
108  "DP" => "1",
109  "DR" => "1",
110  "DC" => "1",
111  "DS" => "1",
112  "ED" => "1",
113  "EDMK" => "1",
114  "EX" => "1",
115  "HDR" => "1",
116  "HER" => "1",
117  "HIO" => "1",
118  "IC" => "1",
119  "ICM" => "1",
120  "ISK" => "1",
121  "L" => "1",
122  "LA" => "1",
123  "LCDR" => "1",
124  "LCER" => "1",
125  "LCR" => "1",
126  "LD" => "1",
127  "LDR" => "1",
128  "LE" => "1",
129  "LER" => "1",
130  "LH" => "1",
131  "LINK" => "1",
132  "LM" => "1",
133  "LNDR" => "1",
134  "LNER" => "1",
135  "LNR" => "1",
136  "LNSW" => "1",
137  "LOAD" => "1",
138  "LR" => "1",
139  "LTDR" => "1",
140  "LTER" => "1",
141  "LTR" => "1",
142  "M" => "1",
143  "MD" => "1",
144  "MDR" => "1",
145  "ME" => "1",
146  "MER" => "1",
147  "MH" => "1",
148  "MP" => "1",
149  "MR" => "1",
150  "MVC" => "1",
151  "MVCL" => "1",
152  "MVCP" => "1",
153  "MVI" => "1",
154  "MVN" => "1",
155  "MVO" => "1",
156  "MVZ" => "1",
157  "N" => "1",
158  "NC" => "1",
159  "NI" => "1",
160  "NOP" => "1",
161  "NOPR" => "1",
162  "NR" => "1",
163  "O" => "1",
164  "OC" => "1",
165  "OI" => "1",
166  "OR" => "1",
167  "PACK" => "1",
168  "PC" => "1",
169  "RDD" => "1",
170  "S" => "1",
171  "SD" => "1",
172  "SDR" => "1",
173  "SE" => "1",
174  "SER" => "1",
175  "SH" => "1",
176  "SI" => "1",
177  "SIO" => "1",
178  "SLA" => "1",
179  "SLDA" => "1",
180  "SLDL" => "1",
181  "SLL" => "1",
182  "SLR" => "1",
183  "SP" => "1",
184  "SPM" => "1",
185  "SR" => "1",
186  "SRA" => "1",
187  "SRDA" => "1",
188  "SRDL" => "1",
189  "SRL" => "1",
190  "SSK" => "1",
191  "SSM" => "1",
192  "ST" => "1",
193  "STC" => "1",
194  "STD" => "1",
195  "STE" => "1",
196  "STH" => "1",
197  "STM" => "1",
198  "SU" => "1",
199  "SVC" => "1",
200  "SW" => "1",
201  "SWR" => "1",
202  "TCH" => "1",
203  "TIO" => "1",
204  "TM" => "1",
205  "TR" => "1",
206  "TRT" => "1",
207  "TS" => "1",
208  "UNPK" => "1",
209  "X" => "1",
210  "X1" => "1",
211  "XC" => "1",
212  "XR" => "1",
213  "ZAP" => "1",
214  "AMODE" => "2",
215  "CSECT" => "2",
216  "DROP" => "2",
217  "DSECT" => "2",
218  "EJECT" => "2",
219  "END" => "2",
220  "EQU" => "2",
221  "LTORG" => "2",
222  "ORG" => "2",
223  "PRINT" => "2",
224  "REQUATE" => "2",
225  "RMODE" => "2",
226  "SPACE" => "2",
227  "START" => "2",
228  "TITLE" => "2",
229  "USING" => "2",
230  "YREGS" => "2",
231  "R" => "3",
232  "R0" => "3",
233  "R1" => "3",
234  "R10" => "3",
235  "R11" => "3",
236  "R12" => "3",
237  "R13" => "3",
238  "R14" => "3",
239  "R2" => "3",
240  "R3" => "3",
241  "R4" => "3",
242  "R5" => "3",
243  "R6" => "3",
244  "R7" => "3",
245  "R8" => "3",
246  "R9" => "3");
247 
248 // Special extensions
249 
250 // Each category can specify a PHP function that returns an altered
251 // version of the keyword.
252 
253 
254 
255 $this->linkscripts = array(
256  "1" => "donothing",
257  "2" => "donothing",
258  "3" => "donothing");
259 }
260 
261 
262 function donothing($keywordin)
263 {
264  return $keywordin;
265 }
266 
267 }?>