This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,4 @@
(lang dune 1.3)
(using experimental_building_ocaml_compiler_with_dune 0.1)
(package (name stdlib))

View file

@ -0,0 +1,5 @@
Build stdlib with stdlib.ml
$ dune build @all
$ (cd _build/default/src && ls *.cma)
stdlib.cma

View file

@ -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}))))

View file

@ -0,0 +1,3 @@
let append = list_append
let x = Stdlib.list_append

View file

@ -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