ocaml.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * ocaml.php
00004  * ----------
00005  * Author: Flaie (fireflaie@gmail.com)
00006  * Copyright: (c) 2005 Flaie, Nigel McNie (http://qbnz.com/highlighter)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2005/08/27
00009  *
00010  * OCaml (Objective Caml) language file for GeSHi.
00011  *
00012  * CHANGES
00013  * -------
00014  * 2005/08/27 (1.0.0)
00015  *   -  First Release
00016  *
00017  * TODO (updated 2005/08/27)
00018  * -------------------------
00019  *
00020  *************************************************************************************
00021  *
00022  *   This file is part of GeSHi.
00023  *
00024  *   GeSHi is free software; you can redistribute it and/or modify
00025  *   it under the terms of the GNU General Public License as published by
00026  *   the Free Software Foundation; either version 2 of the License, or
00027  *   (at your option) any later version.
00028  *
00029  *   GeSHi is distributed in the hope that it will be useful,
00030  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00031  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00032  *   GNU General Public License for more details.
00033  *
00034  *   You should have received a copy of the GNU General Public License
00035  *   along with GeSHi; if not, write to the Free Software
00036  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00037  *
00038  ************************************************************************************/
00039 
00040 $language_data = array (
00041      'LANG_NAME' => 'OCaml',
00042      'COMMENT_SINGLE' => array(),
00043      'COMMENT_MULTI' => array('(*' => '*)'),
00044      'CASE_KEYWORDS' => 0,
00045      'QUOTEMARKS' => array('"'),
00046      'ESCAPE_CHAR' => "",
00047      'KEYWORDS' => array(
00048         /* main OCaml keywords */
00049           1 => array(
00050                'and', 'As', 'asr', 'begin', 'Class', 'Closed', 'constraint', 'do', 'done', 'downto', 'else',
00051                'end', 'exception', 'external', 'failwith', 'false', 'flush', 'for', 'fun', 'function', 'functor',
00052                'if', 'in', 'include', 'inherit',  'incr', 'land', 'let', 'load', 'los', 'lsl', 'lsr', 'lxor',
00053                'match', 'method', 'mod', 'module', 'mutable', 'new', 'not', 'of', 'open', 'option', 'or', 'parser',
00054                'private', 'ref', 'rec', 'raise', 'regexp', 'sig', 'struct', 'stdout', 'stdin', 'stderr', 'then',
00055                'to', 'true', 'try', 'type', 'val', 'virtual', 'when', 'while', 'with'
00056                ),
00057           /* define names of main librarys, so we can link to it */
00058           2 => array(
00059                'Arg', 'Arith_status', 'Array', 'ArrayLabels', 'Big_int', 'Bigarray', 'Buffer', 'Callback',
00060                'CamlinternalOO', 'Char', 'Complex', 'Condition', 'Dbm', 'Digest', 'Dynlink', 'Event',
00061                'Filename', 'Format', 'Gc', 'Genlex', 'Graphics', 'GraphicsX11', 'Hashtbl', 'Int32', 'Int64',
00062                'Lazy', 'Lexing', 'List', 'ListLabels', 'Map', 'Marshal', 'MoreLabels', 'Mutex', 'Nativeint',
00063                'Num', 'Obj', 'Oo', 'Parsing', 'Pervasives', 'Printexc', 'Printf', 'Queue', 'Random', 'Scanf',
00064                'Set', 'Sort', 'Stack', 'StdLabels', 'Str', 'Stream', 'String', 'StringLabels', 'Sys', 'Thread',
00065                'ThreadUnix', 'Tk'
00066              ),
00067           /* just link to the Pervasives functions library, cause it's the default opened library when starting OCaml */
00068           3 => array(
00069                'raise', 'invalid_arg', 'failwith', 'compare', 'min', 'max', 'succ', 'pred', 'mod', 'abs', 
00070                'max_int', 'min_int', 'sqrt', 'exp', 'log', 'log10', 'cos', 'sin', 'tan', 'acos', 'asin', 
00071                'atan', 'atan2', 'cosh', 'sinh', 'tanh', 'ceil', 'floor', 'abs_float', 'mod_float', 'frexp',
00072                'ldexp', 'modf', 'float', 'float_of_int', 'truncate', 'int_of_float', 'infinity', 'nan',
00073                'max_float', 'min_float', 'epsilon_float', 'classify_float', 'int_of_char', 'char_of_int', 
00074                'ignore', 'string_of_bool', 'bool_of_string', 'string_of_int', 'int_of_string', 
00075                'string_of_float', 'float_of_string', 'fst', 'snd', 'stdin', 'stdout', 'stderr', 'print_char',
00076                'print_string', 'print_int', 'print_float', 'print_endline', 'print_newline', 'prerr_char',
00077                'prerr_string', 'prerr_int', 'prerr_float', 'prerr_endline', 'prerr_newline', 'read_line',
00078                'read_int', 'read_float', 'open_out', 'open_out_bin', 'open_out_gen', 'flush', 'flush_all',
00079                'output_char', 'output_string', 'output', 'output_byte', 'output_binary_int', 'output_value',
00080                'seek_out', 'pos_out',  'out_channel_length', 'close_out', 'close_out_noerr', 'set_binary_mode_out',
00081                'open_in', 'open_in_bin', 'open_in_gen', 'input_char', 'input_line', 'input', 'really_input',
00082                'input_byte', 'input_binary_int', 'input_value', 'seek_in', 'pos_in', 'in_channel_length',
00083                'close_in', 'close_in_noerr', 'set_binary_mode_in', 'incr', 'decr', 'string_of_format',
00084                'format_of_string', 'exit', 'at_exit' 
00085              ),
00086           /* here Pervasives Types */
00087           4 => array (
00088              'fpclass', 'in_channel', 'out_channel', 'open_flag', 'Sys_error', 'ref', 'format'
00089              ),
00090           /* finally Pervasives Exceptions */
00091           5 => array (
00092                'Exit', 'Invalid_Argument', 'Failure', 'Division_by_zero'
00093              )
00094           ),
00095      /* highlighting symbols is really important in OCaml */
00096      'SYMBOLS' => array(
00097                ';', '!', ':', '.', '=', '%', '^', '*', '-', '/', '+', 
00098                '>', '<', '(', ')', '[', ']', '&', '|', '#', "'"
00099                ), 
00100      'CASE_SENSITIVE' => array(
00101           GESHI_COMMENTS => true,
00102           1 => false,
00103           2 => true, /* functions name are case seinsitive */
00104           3 => true, /* types name too */
00105           4 => true  /* finally exceptions too */
00106           ),
00107      'STYLES' => array(
00108           'KEYWORDS' => array(
00109                1 => 'color: #06c; font-weight: bold;' /* nice blue */
00110                ),
00111           'COMMENTS' => array(
00112                'MULTI' => 'color: #5d478b; font-style: italic;' /* light purple */
00113                ),
00114           'ESCAPE_CHAR' => array(
00115                ),
00116           'BRACKETS' => array(
00117                0 => 'color: #6c6;'
00118                ),
00119           'STRINGS' => array(
00120                0 => 'color: #3cb371;' /* nice green */
00121                ),
00122           'NUMBERS' => array(
00123                0 => 'color: #c6c;' /* pink */
00124                ),
00125           'METHODS' => array(
00126                1 => 'color: #060;' /* dark green */
00127                ),
00128           'REGEXPS' => array(
00129                ),
00130           'SYMBOLS' => array( 
00131                0 => 'color: #a52a2a;' /* maroon */
00132                ),
00133           'SCRIPT' => array(
00134                )
00135           ),
00136      'URLS' => array(
00137         /* some of keywords are Pervasives functions (land, lxor, asr, ...) */
00138           1 => '',
00139           /* link to the wanted library */
00140           2 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/{FNAME}.html', 
00141           /* link to Pervasives functions */
00142           3 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#VAL{FNAME}', 
00143           /* link to Pervasives type */
00144           4 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#TYPE{FNAME}',
00145           /* link to Pervasives exceptions */
00146           5 => 'http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html#EXCEPTION{FNAME}'
00147           ),
00148      'OOLANG' => true,
00149      'OBJECT_SPLITTERS' => array(
00150           1 => '.'
00151           ),
00152      'REGEXPS' => array(
00153           ),
00154      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00155      'SCRIPT_DELIMITERS' => array(
00156           ),
00157      'HIGHLIGHT_STRICT_BLOCK' => array(
00158           )
00159 );
00160 
00161 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8