From: mitty Date: Tue, 20 Sep 2011 01:30:21 +0000 (+0000) Subject: * sakura editor keywords definition file for OCaml X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=0774b70cea5a18387809c4ffc34f93b84b9537e6;p=lab.git * sakura editor keywords definition file for OCaml * OCaml.kwd from source:/vendor/OCaml/lex.html * OCaml2.kwd from source:/vendor/OCaml/Pervasives.html * lex.html from http://caml.inria.fr/pub/docs/manual-ocaml/lex.html * Pervasives.html from http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html git-svn-id: https://lab.mitty.jp/svn/lab/trunk@124 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/Dev/sakura-editor/OCaml.kwd b/Dev/sakura-editor/OCaml.kwd new file mode 100644 index 0000000..f30800d --- /dev/null +++ b/Dev/sakura-editor/OCaml.kwd @@ -0,0 +1,106 @@ +// OCaml keywords definition file + +// Keywords +and +as +assert +asr +begin +class +constraint +do +done +downto +else +end +exception +external +false +for +fun +function +functor +if +in +include +inherit +initializer +land +lazy +let +lor +lsl +lsr +lxor +match +method +mod +module +mutable +new +object +of +open +or +private +rec +sig +struct +then +to +true +try +type +val +virtual +when +while +!= +# +& +&& +' +( +) +* ++ +, +- +-. +-> +. +.. +: +:: +:= +:> +; +;; +< +<- += +> +>] +>} +? +?? +[ +[< +[> +[| +] +_ +` +{ +{< +| +|] +} +~ +parser +<< +<: +>> +$ +$$ +$: diff --git a/Dev/sakura-editor/OCaml2.kwd b/Dev/sakura-editor/OCaml2.kwd new file mode 100644 index 0000000..9b7886d --- /dev/null +++ b/Dev/sakura-editor/OCaml2.kwd @@ -0,0 +1,197 @@ +// OCaml keywords definition file + +// Exceptions +raise +invalid_arg +failwith +Exit + +// Comparisons +(=) +(<>) +(<) +(>) +(<=) +(>=) +compare +min +max +(==) +(!=) + +// Boolean operations +not +(&&) +(&) +(||) +(or) + +// Integer arithmetic +(~-) +(~+) +succ +pred +(+) +(-) +( * ) +(/) +(mod) +abs +max_int +min_int + +// Bitwise operations +(land) +(lor) +(lxor) +lnot +(lsl) +(lsr) +(asr) + +// Floating-point arithmetic +(~-.) +(~+.) +(+.) +(-.) +( *. ) +(/.) +( ** ) +sqrt +exp +log +log10 +expm1 +log1p +cos +sin +tan +acos +asin +atan +atan2 +cosh +sinh +tanh +ceil +floor +abs_float +mod_float +frexp +ldexp +modf +float +float_of_int +truncate +int_of_float +infinity +neg_infinity +nan +max_float +min_float +epsilon_float +classify_float + +// String operations +(^) + +// Character operations +int_of_char +char_of_int + +// Unit operations +ignore + +// String conversion functions +string_of_bool +bool_of_string +string_of_int +int_of_string +string_of_float +float_of_string + +// Pair operations +fst +snd + +// List operations +(@) + +// Input/output +stdin +stdout +stderr + +// Output functions on standard output +print_char +print_string +print_int +print_float +print_endline +print_newline + +// Output functions on standard error +prerr_char +prerr_string +prerr_int +prerr_float +prerr_endline +prerr_newline + +// Input functions on standard input +read_line +read_int +read_float + +// General output functions +open_out +open_out_bin +open_out_gen +flush +flush_all +output_char +output_string +output +output_byte +output_binary_int +output_value +seek_out +pos_out +out_channel_length +close_out +close_out_noerr +set_binary_mode_out + +// General input functions +open_in +open_in_bin +open_in_gen +input_char +input_line +input +really_input +input_byte +input_binary_int +input_value +seek_in +pos_in +in_channel_length +close_in +close_in_noerr +set_binary_mode_in + +// References +ref +(!) +(:=) +incr +decr + +// Operations on format strings +string_of_format +format_of_string +(^^) + +// Program termination +exit +at_exit