Permalink
Browse files

LICENSING: Add original files from Ocaml 4.00.1

  • Loading branch information...
1 parent 9279f0b commit 6b47aaf5fe7c243aae49034139212480c098cbe7 @let-def let-def committed Feb 20, 2013
Showing with 32,239 additions and 0 deletions.
  1. +627 −0 orig/ocaml/LICENSE
  2. +11 −0 orig/ocaml/README.txt
  3. +9 −0 orig/ocaml/parsing/.ignore
  4. +45 −0 orig/ocaml/parsing/asttypes.mli
  5. +43 −0 orig/ocaml/parsing/lexer.mli
  6. +561 −0 orig/ocaml/parsing/lexer.mll
  7. +286 −0 orig/ocaml/parsing/location.ml
  8. +79 −0 orig/ocaml/parsing/location.mli
  9. +43 −0 orig/ocaml/parsing/longident.ml
  10. +24 −0 orig/ocaml/parsing/longident.mli
  11. +65 −0 orig/ocaml/parsing/parse.ml
  12. +20 −0 orig/ocaml/parsing/parse.mli
  13. +1,809 −0 orig/ocaml/parsing/parser.mly
  14. +307 −0 orig/ocaml/parsing/parsetree.mli
  15. +743 −0 orig/ocaml/parsing/printast.ml
  16. +20 −0 orig/ocaml/parsing/printast.mli
  17. +52 −0 orig/ocaml/parsing/syntaxerr.ml
  18. +28 −0 orig/ocaml/parsing/syntaxerr.mli
  19. +23 −0 orig/ocaml/typing/annot.mli
  20. +561 −0 orig/ocaml/typing/btype.ml
  21. +176 −0 orig/ocaml/typing/btype.mli
  22. +93 −0 orig/ocaml/typing/cmi_format.ml
  23. +42 −0 orig/ocaml/typing/cmi_format.mli
  24. +1,010 −0 orig/ocaml/typing/cmt_format.ml
  25. +112 −0 orig/ocaml/typing/cmt_format.mli
  26. +4,126 −0 orig/ocaml/typing/ctype.ml
  27. +262 −0 orig/ocaml/typing/ctype.mli
  28. +141 −0 orig/ocaml/typing/datarepr.ml
  29. +35 −0 orig/ocaml/typing/datarepr.mli
  30. +1,335 −0 orig/ocaml/typing/env.ml
  31. +218 −0 orig/ocaml/typing/env.mli
  32. +184 −0 orig/ocaml/typing/ident.ml
  33. +59 −0 orig/ocaml/typing/ident.mli
  34. +110 −0 orig/ocaml/typing/includeclass.ml
  35. +30 −0 orig/ocaml/typing/includeclass.mli
  36. +297 −0 orig/ocaml/typing/includecore.ml
  37. +50 −0 orig/ocaml/typing/includecore.mli
  38. +471 −0 orig/ocaml/typing/includemod.ml
  39. +52 −0 orig/ocaml/typing/includemod.mli
  40. +221 −0 orig/ocaml/typing/mtype.ml
  41. +39 −0 orig/ocaml/typing/mtype.mli
  42. +490 −0 orig/ocaml/typing/oprint.ml
  43. +26 −0 orig/ocaml/typing/oprint.mli
  44. +106 −0 orig/ocaml/typing/outcometree.mli
  45. +2,093 −0 orig/ocaml/typing/parmatch.ml
  46. +67 −0 orig/ocaml/typing/parmatch.mli
  47. +56 −0 orig/ocaml/typing/path.ml
  48. +32 −0 orig/ocaml/typing/path.mli
  49. +248 −0 orig/ocaml/typing/predef.ml
  50. +66 −0 orig/ocaml/typing/predef.mli
  51. +64 −0 orig/ocaml/typing/primitive.ml
  52. +29 −0 orig/ocaml/typing/primitive.mli
  53. +1,134 −0 orig/ocaml/typing/printtyp.ml
  54. +76 −0 orig/ocaml/typing/printtyp.mli
  55. +761 −0 orig/ocaml/typing/printtyped.ml
  56. +19 −0 orig/ocaml/typing/printtyped.mli
  57. +170 −0 orig/ocaml/typing/stypes.ml
  58. +35 −0 orig/ocaml/typing/stypes.mli
  59. +339 −0 orig/ocaml/typing/subst.ml
  60. +58 −0 orig/ocaml/typing/subst.mli
  61. +1,724 −0 orig/ocaml/typing/typeclass.ml
  62. +111 −0 orig/ocaml/typing/typeclass.mli
  63. +3,213 −0 orig/ocaml/typing/typecore.ml
  64. +125 −0 orig/ocaml/typing/typecore.mli
  65. +1,175 −0 orig/ocaml/typing/typedecl.ml
  66. +83 −0 orig/ocaml/typing/typedecl.mli
  67. +466 −0 orig/ocaml/typing/typedtree.ml
  68. +400 −0 orig/ocaml/typing/typedtree.mli
  69. +1,432 −0 orig/ocaml/typing/typemod.ml
  70. +68 −0 orig/ocaml/typing/typemod.mli
  71. +219 −0 orig/ocaml/typing/types.ml
  72. +216 −0 orig/ocaml/typing/types.mli
  73. +747 −0 orig/ocaml/typing/typetexp.ml
  74. +96 −0 orig/ocaml/typing/typetexp.mli
  75. +1 −0 orig/ocaml/utils/.ignore
  76. +128 −0 orig/ocaml/utils/ccomp.ml
  77. +32 −0 orig/ocaml/utils/ccomp.mli
  78. +100 −0 orig/ocaml/utils/clflags.ml
  79. +83 −0 orig/ocaml/utils/clflags.mli
  80. +136 −0 orig/ocaml/utils/config.mlbuild
  81. +123 −0 orig/ocaml/utils/config.mli
  82. +125 −0 orig/ocaml/utils/config.mlp
  83. +57 −0 orig/ocaml/utils/consistbl.ml
  84. +60 −0 orig/ocaml/utils/consistbl.mli
  85. +226 −0 orig/ocaml/utils/misc.ml
  86. +124 −0 orig/ocaml/utils/misc.mli
  87. +114 −0 orig/ocaml/utils/tbl.ml
  88. +32 −0 orig/ocaml/utils/tbl.mli
  89. +25 −0 orig/ocaml/utils/terminfo.ml
  90. +25 −0 orig/ocaml/utils/terminfo.mli
  91. +410 −0 orig/ocaml/utils/warnings.ml
  92. +75 −0 orig/ocaml/utils/warnings.mli
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,11 @@
+Merlin uses code from Ocaml, see [http://caml.inria.fr/](The Caml language: Home).
+Files derived from the original Ocaml compiler source includes:
+- the parsing, typing and utils subdirectories
+- chunk_parser.mly, outline_parser.mly, lexer.mll, lexer.mli
+- main_args.ml, main_args.mli
+
+There you can find the original distribution:
+ http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.1.tar.gz
+
+The Ocaml compiler is distributed under the QPL licence and is copyright INRIA.
+See LICENSE in the current directory.
@@ -0,0 +1,9 @@
+parser.ml
+parser.mli
+lexer.ml
+lexer_tmp.mll
+lexer_tmp.ml
+linenum.ml
+parser.output
+parser.automaton
+parser.conflicts
@@ -0,0 +1,45 @@
+(***********************************************************************)
+(* *)
+(* OCaml *)
+(* *)
+(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
+(* *)
+(* Copyright 1996 Institut National de Recherche en Informatique et *)
+(* en Automatique. All rights reserved. This file is distributed *)
+(* under the terms of the Q Public License version 1.0. *)
+(* *)
+(***********************************************************************)
+
+(* $Id: asttypes.mli 12511 2012-05-30 13:29:48Z lefessan $ *)
+
+(* Auxiliary a.s.t. types used by parsetree and typedtree. *)
+
+type constant =
+ Const_int of int
+ | Const_char of char
+ | Const_string of string
+ | Const_float of string
+ | Const_int32 of int32
+ | Const_int64 of int64
+ | Const_nativeint of nativeint
+
+type rec_flag = Nonrecursive | Recursive | Default
+
+type direction_flag = Upto | Downto
+
+type private_flag = Private | Public
+
+type mutable_flag = Immutable | Mutable
+
+type virtual_flag = Virtual | Concrete
+
+type override_flag = Override | Fresh
+
+type closed_flag = Closed | Open
+
+type label = string
+
+type 'a loc = 'a Location.loc = {
+ txt : 'a;
+ loc : Location.t;
+}
@@ -0,0 +1,43 @@
+(***********************************************************************)
+(* *)
+(* OCaml *)
+(* *)
+(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
+(* *)
+(* Copyright 1996 Institut National de Recherche en Informatique et *)
+(* en Automatique. All rights reserved. This file is distributed *)
+(* under the terms of the Q Public License version 1.0. *)
+(* *)
+(***********************************************************************)
+
+(* $Id: lexer.mli 12511 2012-05-30 13:29:48Z lefessan $ *)
+
+(* The lexical analyzer *)
+
+val init : unit -> unit
+val token: Lexing.lexbuf -> Parser.token
+val skip_sharp_bang: Lexing.lexbuf -> unit
+
+type error =
+ | Illegal_character of char
+ | Illegal_escape of string
+ | Unterminated_comment of Location.t
+ | Unterminated_string
+ | Unterminated_string_in_comment of Location.t
+ | Keyword_as_label of string
+ | Literal_overflow of string
+;;
+
+exception Error of error * Location.t
+
+open Format
+
+val report_error: formatter -> error -> unit
+
+val in_comment : unit -> bool;;
+val in_string : unit -> bool;;
+
+
+val print_warnings : bool ref
+val comments : unit -> (string * Location.t) list
+val token_with_comments : Lexing.lexbuf -> Parser.token
Oops, something went wrong.

0 comments on commit 6b47aaf

Please sign in to comment.