* sakura editor keywords definition file for OCaml
authormitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Tue, 20 Sep 2011 01:30:21 +0000 (01:30 +0000)
committermitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Tue, 20 Sep 2011 01:30:21 +0000 (01:30 +0000)
  * 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

Dev/sakura-editor/OCaml.kwd [new file with mode: 0644]
Dev/sakura-editor/OCaml2.kwd [new file with mode: 0644]

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