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

Public Member Functions

 HFile_epld ()
 
 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_epld.php.

Member Function Documentation

◆ donothing()

HFile_epld::donothing (   $keywordin)

Definition at line 182 of file HFile_epld.php.

183  {
184  return $keywordin;
185  }

◆ HFile_epld()

HFile_epld::HFile_epld ( )

Definition at line 9 of file HFile_epld.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // EPLD
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");
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  "ASYNC_RESET" => "1",
50  "Buffer" => "1",
51  "Collapse" => "1",
52  "Case" => "1",
53  "Com" => "1",
54  "DECLARATIONS" => "1",
55  "Dc" => "1",
56  "Declarations" => "1",
57  "Device" => "1",
58  "EQUATIONS" => "1",
59  "End" => "1",
60  "Equations" => "1",
61  "Else" => "1",
62  "Equations." => "1",
63  "FUNCTIONAL_BLOCK" => "1",
64  "FUSES" => "1",
65  "Functional_block" => "1",
66  "Fuses" => "1",
67  "Goto" => "1",
68  "INTERFACE" => "1",
69  "If-Then-Else" => "1",
70  "In" => "1",
71  "Interface" => "1",
72  "Istype" => "1",
73  "If" => "1",
74  "Invert" => "1",
75  "Keep" => "1",
76  "Library" => "1",
77  "MACRO" => "1",
78  "Macro" => "1",
79  "Module" => "1",
80  "Node" => "1",
81  "Neg" => "1",
82  "Output" => "1",
83  "Pin" => "1",
84  "Property" => "1",
85  "PIN" => "1",
86  "Pos" => "1",
87  "Reg" => "1",
88  "Reg_D" => "1",
89  "Reg_G" => "1",
90  "Reg_JK" => "1",
91  "Reg_SR" => "1",
92  "Reg_T" => "1",
93  "Retain" => "1",
94  "STATE_DIAGRAM" => "1",
95  "STATE_REGISTER" => "1",
96  "SYNC_RESET" => "1",
97  "State" => "1",
98  "State_Diagram" => "1",
99  "State_register" => "1",
100  "Sync_reset" => "1",
101  "Signal" => "1",
102  "TEST_VECTORS" => "1",
103  "TITLE" => "1",
104  "TRUTH_TABLE" => "1",
105  "Test_Vectors" => "1",
106  "Title" => "1",
107  "Trace" => "1",
108  "Truth_Table" => "1",
109  "Test_vectors" => "1",
110  "Then" => "1",
111  "When-Then-Else" => "1",
112  "With" => "1",
113  "XOR" => "1",
114  "XOR_FACTORS" => "1",
115  "XOR_Factors" => "1",
116  "Xor" => "1",
117  "@Alternate" => "2",
118  "@Carry" => "2",
119  "@Const" => "2",
120  "@Dcset" => "2",
121  "@Dcstate" => "2",
122  "@Exit" => "2",
123  "@Expr" => "2",
124  "@If" => "2",
125  "@Ifb" => "2",
126  "@Ifdef" => "2",
127  "@Ifiden" => "2",
128  "@Ifnb" => "2",
129  "@Ifndef" => "2",
130  "@Ifniden" => "2",
131  "@Include" => "2",
132  "@Irp" => "2",
133  "@Irpc" => "2",
134  "@Message" => "2",
135  "@Onset" => "2",
136  "@Page" => "2",
137  "@Radix" => "2",
138  "@Repeat" => "2",
139  "@Setsize" => "2",
140  "@Standard" => "2",
141  ".ACLR" => "3",
142  ".ASET" => "3",
143  ".AP" => "3",
144  ".AR" => "3",
145  ".CE" => "3",
146  ".CLK" => "3",
147  ".CLR" => "3",
148  ".SET" => "3",
149  ".COM" => "3",
150  ".D" => "3",
151  ".FB" => "3",
152  ".FC" => "3",
153  ".J" => "3",
154  ".K" => "3",
155  ".LD" => "3",
156  ".LE" => "3",
157  ".LH" => "3",
158  ".OE" => "3",
159  ".PIN" => "3",
160  ".PR" => "3",
161  ".Q" => "3",
162  ".R" => "3",
163  ".RE" => "3",
164  ".S" => "3",
165  ".SP" => "3",
166  ".SR" => "3");
167 
168  // Special extensions
169 
170  // Each category can specify a PHP function that returns an altered
171  // version of the keyword.
172 
173 
174 
175  $this->linkscripts = array(
176  "1" => "donothing",
177  "2" => "donothing",
178  "3" => "donothing");
179  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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