This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
(lang dune 1.3)
|
||||
(using experimental_building_ocaml_compiler_with_dune 0.1)
|
||||
|
||||
(package (name stdlib))
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Build stdlib with stdlib.ml
|
||||
|
||||
$ dune build @all
|
||||
$ (cd _build/default/src && ls *.cma)
|
||||
stdlib.cma
|
||||
|
|
@ -0,0 +1 @@
|
|||
type fmt = Fmt
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
(library
|
||||
(public_name stdlib)
|
||||
(stdlib
|
||||
(modules_before_stdlib CamlinternalFormatBasics)
|
||||
(exit_module std_exit)
|
||||
(internal_modules Camlinternal*))
|
||||
(preprocess (action (run cat %{input-file}))))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
let append = list_append
|
||||
|
||||
let x = Stdlib.list_append
|
||||
|
|
@ -0,0 +1 @@
|
|||
let x = 1
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
let rec list_append l1 l2 =
|
||||
match l1 with
|
||||
[] -> l2
|
||||
| hd :: tl -> hd :: (list_append tl l2)
|
||||
|
||||
type fmt = CamlinternalFormatBasics.fmt = Fmt
|
||||
|
||||
module List = Stdlib__List
|
||||
Loading…
Add table
Add a link
Reference in a new issue