ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
All Data Structures Namespaces Files Functions Variables Typedefs Modules Pages
HFile_haskell Class Reference
+ Inheritance diagram for HFile_haskell:
+ Collaboration diagram for HFile_haskell:

Public Member Functions

 HFile_haskell ()
 
 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_haskell.php.

Member Function Documentation

◆ donothing()

HFile_haskell::donothing (   $keywordin)

Definition at line 504 of file HFile_haskell.php.

505  {
506  return $keywordin;
507  }

◆ HFile_haskell()

HFile_haskell::HFile_haskell ( )

Definition at line 9 of file HFile_haskell.php.

References array.

10  {
11  $this->HFile();
12  /*************************************/
13  // Beautifier Highlighting Configuration File
14  // Haskell
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");
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  "(" => "1",
50  ")" => "1",
51  "Addr" => "1",
52  "EQ" => "1",
53  "EmptyRec" => "1",
54  "EmptyRow" => "1",
55  "Either" => "1",
56  "False" => "1",
57  "FilePath" => "1",
58  "GT" => "1",
59  "Hugs_Error" => "1",
60  "Hugs_ExitWith" => "1",
61  "Hugs_Return" => "1",
62  "Hugs_SuspendThread" => "1",
63  "IO" => "1",
64  "IOError" => "1",
65  "IOResult" => "1",
66  "Just" => "1",
67  "LT" => "1",
68  "Left" => "1",
69  "Maybe" => "1",
70  "Nothing" => "1",
71  "Ordering" => "1",
72  "Rec" => "1",
73  "Right" => "1",
74  "Ratio" => "1",
75  "Rational" => "1",
76  "ST" => "1",
77  "True" => "1",
78  "_" => "2",
79  "=" => "2",
80  "=>" => "2",
81  "|" => "2",
82  "<-" => "2",
83  "->" => "2",
84  "," => "2",
85  ".." => "2",
86  ":" => "2",
87  "::" => "2",
88  "class" => "2",
89  "case" => "2",
90  "data" => "2",
91  "deriving" => "2",
92  "do" => "2",
93  "else" => "2",
94  "import" => "2",
95  "instance" => "2",
96  "if" => "2",
97  "in" => "2",
98  "let" => "2",
99  "module" => "2",
100  "newtype" => "2",
101  "of" => "2",
102  "primitive" => "2",
103  "type" => "2",
104  "then" => "2",
105  "where" => "2",
106  "&&" => "3",
107  "||" => "3",
108  "//" => "3",
109  "/=" => "3",
110  "/" => "3",
111  "==" => "3",
112  "!" => "3",
113  "!!" => "3",
114  "+" => "3",
115  "++" => "3",
116  "-" => "3",
117  "*" => "3",
118  "**" => "3",
119  "<" => "3",
120  "<=" => "3",
121  ">" => "3",
122  ">>" => "3",
123  ">>=" => "3",
124  ">=" => "3",
125  "abs" => "3",
126  "absReal" => "3",
127  "accumulate" => "3",
128  "acos" => "3",
129  "acosh" => "3",
130  "all" => "3",
131  "and" => "3",
132  "any" => "3",
133  "appendFile" => "3",
134  "applyM" => "3",
135  "approxRational" => "3",
136  "asTypeOf" => "3",
137  "asciiTab" => "3",
138  "asin" => "3",
139  "asinh" => "3",
140  "atan" => "3",
141  "atan2" => "3",
142  "atanh" => "3",
143  "break" => "3",
144  "catch" => "3",
145  "ceiling" => "3",
146  "chr" => "3",
147  "compare" => "3",
148  "concat" => "3",
149  "concatMap" => "3",
150  "const" => "3",
151  "cos" => "3",
152  "cosh" => "3",
153  "curry" => "3",
154  "cycle" => "3",
155  "decodeFloat" => "3",
156  "denominator" => "3",
157  "digitToInt" => "3",
158  "div" => "3",
159  "divMod" => "3",
160  "doubleToFloat" => "3",
161  "doubleToRatio" => "3",
162  "doubleToRational" => "3",
163  "drop" => "3",
164  "dropWhile" => "3",
165  "either" => "3",
166  "elem" => "3",
167  "encodeFloat" => "3",
168  "enumFrom" => "3",
169  "enumFromThen" => "3",
170  "enumFromThenTo" => "3",
171  "enumFromTo" => "3",
172  "error" => "3",
173  "even" => "3",
174  "exp" => "3",
175  "exponent" => "3",
176  "fail" => "3",
177  "filter" => "3",
178  "flip" => "3",
179  "floatDigits" => "3",
180  "floatProperFraction" => "3",
181  "floatRadix" => "3",
182  "floatRange" => "3",
183  "floatToRational" => "3",
184  "floor" => "3",
185  "foldl" => "3",
186  "foldl\'" => "3",
187  "foldl1" => "3",
188  "foldr" => "3",
189  "foldr1" => "3",
190  "fromDouble" => "3",
191  "fromEnum" => "3",
192  "fromInt" => "3",
193  "fromInteger" => "3",
194  "fromIntegral" => "3",
195  "fromRational" => "3",
196  "fromRealFrac" => "3",
197  "fst" => "3",
198  "gcd" => "3",
199  "getChar" => "3",
200  "getContents" => "3",
201  "getLine" => "3",
202  "guard" => "3",
203  "head" => "3",
204  "hugsIORun" => "3",
205  "hugsPutStr" => "3",
206  "id" => "3",
207  "inRange" => "3",
208  "index" => "3",
209  "init" => "3",
210  "intToDigit" => "3",
211  "intToRatio" => "3",
212  "interact" => "3",
213  "ioeGetErrorString" => "3",
214  "isAlpha" => "3",
215  "isAlphanum" => "3",
216  "isAscii" => "3",
217  "isControl" => "3",
218  "isDenormalized" => "3",
219  "isDigit" => "3",
220  "isHexDigit" => "3",
221  "isIEEE" => "3",
222  "isInfinite" => "3",
223  "isLower" => "3",
224  "isNaN" => "3",
225  "isNegativeZero" => "3",
226  "isOctDigit" => "3",
227  "isPrint" => "3",
228  "isSpace" => "3",
229  "isUpper" => "3",
230  "iterate" => "3",
231  "last" => "3",
232  "lcm" => "3",
233  "length" => "3",
234  "lex" => "3",
235  "lexDigits" => "3",
236  "lexLitChar" => "3",
237  "lexmatch" => "3",
238  "lines" => "3",
239  "log" => "3",
240  "logBase" => "3",
241  "lookup" => "3",
242  "map" => "3",
243  "mapM" => "3",
244  "mapM_" => "3",
245  "max" => "3",
246  "maxBound" => "3",
247  "maximum" => "3",
248  "maybe" => "3",
249  "min" => "3",
250  "minBound" => "3",
251  "minimum" => "3",
252  "mod" => "3",
253  "negate" => "3",
254  "nonnull" => "3",
255  "not" => "3",
256  "notElem" => "3",
257  "null" => "3",
258  "numerator" => "3",
259  "numericEnumFrom" => "3",
260  "numericEnumFromThen" => "3",
261  "numericEnumFromThenTo" => "3",
262  "numericEnumFromTo" => "3",
263  "odd" => "3",
264  "or" => "3",
265  "ord" => "3",
266  "otherwise" => "3",
267  "pi" => "3",
268  "pred" => "3",
269  "primAcosDouble" => "3",
270  "primAcosFloat" => "3",
271  "primAsinDouble" => "3",
272  "primAsinFloat" => "3",
273  "primAtanDouble" => "3",
274  "primAtanFloat" => "3",
275  "primCharToInt" => "3",
276  "primCmpChar" => "3",
277  "primCmpDouble" => "3",
278  "primCmpFloat" => "3",
279  "primCmpInt" => "3",
280  "primCmpInteger" => "3",
281  "primCompAux" => "3",
282  "primCosDouble" => "3",
283  "primCosFloat" => "3",
284  "primDivDouble" => "3",
285  "primDivFloat" => "3",
286  "primDivInt" => "3",
287  "primDoubleDecode" => "3",
288  "primDoubleDigits" => "3",
289  "primDoubleEncode" => "3",
290  "primDoubleMaxExp" => "3",
291  "primDoubleMinExp" => "3",
292  "primDoubleRadix" => "3",
293  "primEqChar" => "3",
294  "primEqDouble" => "3",
295  "primEqFloat" => "3",
296  "primEqInt" => "3",
297  "primEqInteger" => "3",
298  "primEvenInt" => "3",
299  "primEvenInteger" => "3",
300  "primExitWith" => "3",
301  "primExpDouble" => "3",
302  "primExpFloat" => "3",
303  "primFloatDecode" => "3",
304  "primFloatDigits" => "3",
305  "primFloatEncode" => "3",
306  "primFloatMaxExp" => "3",
307  "primFloatMinExp" => "3",
308  "primFloatRadix" => "3",
309  "primIntToChar" => "3",
310  "primIntToDouble" => "3",
311  "primIntToFloat" => "3",
312  "primIntToInteger" => "3",
313  "primIntegerToDouble" => "3",
314  "primIntegerToFloat" => "3",
315  "primIntegerToInt" => "3",
316  "primLogDouble" => "3",
317  "primLogFloat" => "3",
318  "primMaxInt" => "3",
319  "primMinInt" => "3",
320  "primMinusDouble" => "3",
321  "primMinusFloat" => "3",
322  "primMinusInt" => "3",
323  "primMinusInteger" => "3",
324  "primModInt" => "3",
325  "primMulDouble" => "3",
326  "primMulFloat" => "3",
327  "primMulInt" => "3",
328  "primMulInteger" => "3",
329  "primNegDouble" => "3",
330  "primNegFloat" => "3",
331  "primNegInt" => "3",
332  "primNegInteger" => "3",
333  "primPiDouble" => "3",
334  "primPiFloat" => "3",
335  "primPlusDouble" => "3",
336  "primPlusFloat" => "3",
337  "primPlusInt" => "3",
338  "primPlusInteger" => "3",
339  "primPmFlt" => "3",
340  "primPmInt" => "3",
341  "primPmInteger" => "3",
342  "primPmNpk" => "3",
343  "primPmSub" => "3",
344  "primQrmInt" => "3",
345  "primQrmInteger" => "3",
346  "primQuotInt" => "3",
347  "primRationalToDouble" => "3",
348  "primRationalToFloat" => "3",
349  "primRemInt" => "3",
350  "primShowsDouble" => "3",
351  "primShowsFloat" => "3",
352  "primShowsInt" => "3",
353  "primShowsInteger" => "3",
354  "primSinDouble" => "3",
355  "primSinFloat" => "3",
356  "primSqrtDouble" => "3",
357  "primSqrtFloat" => "3",
358  "primTanDouble" => "3",
359  "primTanFloat" => "3",
360  "primbindIO" => "3",
361  "primretIO" => "3",
362  "print" => "3",
363  "product" => "3",
364  "properFraction" => "3",
365  "protectEsc" => "3",
366  "putChar" => "3",
367  "putStr" => "3",
368  "putStrLn" => "3",
369  "quot" => "3",
370  "quotRem" => "3",
371  "range" => "3",
372  "rangeSize" => "3",
373  "rationalToDouble" => "3",
374  "rationalToFloat" => "3",
375  "rationalToRealFloat" => "3",
376  "read" => "3",
377  "readDec" => "3",
378  "readField" => "3",
379  "readFile" => "3",
380  "readFloat" => "3",
381  "readHex" => "3",
382  "readIO" => "3",
383  "readInt" => "3",
384  "readList" => "3",
385  "readLitChar" => "3",
386  "readLn" => "3",
387  "readOct" => "3",
388  "readParen" => "3",
389  "readSigned" => "3",
390  "reads" => "3",
391  "readsPrec" => "3",
392  "realFloatToRational" => "3",
393  "recip" => "3",
394  "reduce" => "3",
395  "rem" => "3",
396  "repeat" => "3",
397  "replicate" => "3",
398  "return" => "3",
399  "reverse" => "3",
400  "round" => "3",
401  "scaleFloat" => "3",
402  "scanl" => "3",
403  "scanl1" => "3",
404  "scanr" => "3",
405  "scanr1" => "3",
406  "seq" => "3",
407  "sequence" => "3",
408  "show" => "3",
409  "showChar" => "3",
410  "showField" => "3",
411  "showInt" => "3",
412  "showList" => "3",
413  "showLitChar" => "3",
414  "showParen" => "3",
415  "showSigned" => "3",
416  "showString" => "3",
417  "shows" => "3",
418  "showsPrec" => "3",
419  "significand" => "3",
420  "signum" => "3",
421  "signumReal" => "3",
422  "sin" => "3",
423  "sinh" => "3",
424  "snd" => "3",
425  "span" => "3",
426  "splitAt" => "3",
427  "sqrt" => "3",
428  "strict" => "3",
429  "subtract" => "3",
430  "succ" => "3",
431  "sum" => "3",
432  "tail" => "3",
433  "take" => "3",
434  "takeWhile" => "3",
435  "tan" => "3",
436  "tanh" => "3",
437  "toEnum" => "3",
438  "toInt" => "3",
439  "toInteger" => "3",
440  "toLower" => "3",
441  "toRational" => "3",
442  "toUpper" => "3",
443  "truncate" => "3",
444  "uncurry" => "3",
445  "undefined" => "3",
446  "unlines" => "3",
447  "until" => "3",
448  "unwords" => "3",
449  "unzip" => "3",
450  "unzip3" => "3",
451  "userError" => "3",
452  "words" => "3",
453  "writeFile" => "3",
454  "zero" => "3",
455  "zip" => "3",
456  "zip3" => "3",
457  "zipWith" => "3",
458  "zipWith3" => "3",
459  "Bool" => "4",
460  "Char" => "4",
461  "Float" => "4",
462  "Int" => "4",
463  "Integer" => "4",
464  "Long" => "4",
465  "String" => "4",
466  "Bounded" => "5",
467  "Double" => "5",
468  "Enum" => "5",
469  "Eq" => "5",
470  "Eval" => "5",
471  "Functor" => "5",
472  "Fractional" => "5",
473  "Floating" => "5",
474  "Ix" => "5",
475  "Integral" => "5",
476  "Monad" => "5",
477  "MonadZero" => "5",
478  "MonadPlus" => "5",
479  "Num" => "5",
480  "Ord" => "5",
481  "Read" => "5",
482  "Real" => "5",
483  "RealFrac" => "5",
484  "RealFloat" => "5",
485  "Show" => "5",
486  "Void" => "5");
487 
488  // Special extensions
489 
490  // Each category can specify a PHP function that returns an altered
491  // version of the keyword.
492 
493 
494 
495  $this->linkscripts = array(
496  "1" => "donothing",
497  "2" => "donothing",
498  "3" => "donothing",
499  "4" => "donothing",
500  "5" => "donothing");
501  }
Create styles array
The data for the language used.
Definition: HFile.php:21

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