ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_mincdsl.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_mincdsl extends HFile{
6  function HFile_mincdsl(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 //
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");
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  "/L10" => "",
46  "\"MINC" => "",
47  "DSL\"" => "",
48  "Line" => "",
49  "Comment" => "",
50  "=" => "",
51  "\"" => "",
52  "Block" => "",
53  "On" => "",
54  "'" => "",
55  "Off" => "",
56  ";" => "",
57  "File" => "",
58  "Extensions" => "",
59  "SRC" => "",
60  "PI" => "",
61  "STM" => "",
62  "OPI" => "",
63  "NPI" => "",
64  "SIM" => "",
65  "AND" => "1",
66  "BIN" => "1",
67  "BIPUT" => "1",
68  "BLOWN" => "1",
69  "CASE" => "1",
70  "CLOCK_ENABLED_BY" => "1",
71  "CLOCKED_BY" => "1",
72  "CLOCKF" => "1",
73  "COMP_OFF" => "1",
74  "COMP_ON" => "1",
75  "D_FLOP" => "1",
76  "D_LATCH" => "1",
77  "DEC" => "1",
78  "DEFAULT" => "1",
79  "DEFAULT_TO" => "1",
80  "DEMORGAN_SYNTH" => "1",
81  "DEVICE" => "1",
82  "DISABLED_ONLY_FOR_TEST" => "1",
83  "DO" => "1",
84  "ELSE" => "1",
85  "ELSIF" => "1",
86  "ENABLED_BY" => "1",
87  "END" => "1",
88  "FF_SYNTH" => "1",
89  "FIT_WITH" => "1",
90  "FIXED" => "1",
91  "FOOTPRINT" => "1",
92  "FOR" => "1",
93  "FUNKTION" => "1",
94  "GOTO" => "1",
95  "GRAY_CODE" => "1",
96  "GROUP" => "1",
97  "SECTIONS" => "1",
98  "HEX" => "1",
99  "HIGH_VALUE" => "1",
100  "IF" => "1",
101  "INCLUDE" => "1",
102  "INITIAL" => "1",
103  "INITIAL_TO" => "1",
104  "INPUT" => "1",
105  "INTACT" => "1",
106  "JK_FLOP" => "1",
107  "LAST_VALUE" => "1",
108  "LATCHED_BY" => "1",
109  "LOW_POWER" => "1",
110  "LOW_TRUE" => "1",
111  "LOW_VALUE" => "1",
112  "MACRO" => "1",
113  "MAX_PTERMS" => "1",
114  "MAX_SYMBOLS" => "1",
115  "MAX_FOR_PTERMS" => "1",
116  "MESSAGE" => "1",
117  "MOD" => "1",
118  "NAME" => "1",
119  "NO_COLLAPSE" => "1",
120  "NO_CONNECT" => "1",
121  "NO_REDUCE" => "1",
122  "NODE" => "1",
123  "NOT" => "1",
124  "OCT" => "1",
125  "ONE_HOT" => "1",
126  "OR" => "1",
127  "OUTPUT" => "1",
128  "PART_NUMBER" => "1",
129  "PHYSICAL" => "1",
130  "POLARITY_CONTROL" => "1",
131  "PRESET_BY" => "1",
132  "POWER=" => "1",
133  "RETURN" => "1",
134  "RESET_BY" => "1",
135  "SECTION" => "1",
136  "SET" => "1",
137  "SIMULATION" => "1",
138  "SR_FLOP" => "1",
139  "STATE" => "1",
140  "STATE_BITS" => "1",
141  "STATE_MACHINE" => "1",
142  "STATE_VALUE" => "1",
143  "STEP" => "1",
144  "SYSTEM_TEST" => "1",
145  "T_FLOP" => "1",
146  "TARGET" => "1",
147  "TEMPLATE" => "1",
148  "TEST_VECTORS" => "1",
149  "THEN" => "1",
150  "TO" => "1",
151  "TRACE" => "1",
152  "TRUTH" => "1",
153  "TRUTH_TABLE" => "1",
154  "USE" => "1",
155  "VAR" => "1",
156  "VIRTUAL" => "1",
157  "WHEN" => "1",
158  "WHILE" => "1",
159  "WIRED_BUS" => "1",
160  "XOR_POLARITY_CONTROL" => "1",
161  "XOR_TO_SOP_SYNTH" => "1");
162 
163 // Special extensions
164 
165 // Each category can specify a PHP function that returns an altered
166 // version of the keyword.
167 
168 
169 
170 $this->linkscripts = array(
171  "" => "donothing",
172  "1" => "donothing");
173 }
174 
175 
176 function donothing($keywordin)
177 {
178  return $keywordin;
179 }
180 
181 }?>