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,6 @@
(executable
(name main)
(libraries mylib)
(modes js)
(js_of_ocaml
(sourcemap file)))

View file

@ -0,0 +1,2 @@
let a,b = 1,2
let () = Printf.printf "%d + %d = %d\n%!" a b (Mylib.add a b)

View file

@ -0,0 +1 @@
(lang dune 3.17 )

View file

@ -0,0 +1,2 @@
(library
(name mylib))

View file

@ -0,0 +1 @@
let add a b = a + b

View file

@ -0,0 +1,11 @@
$ dune build bin/main.bc.js
$ ls _build/default/bin
main.bc.js
main.bc.map
main.ml
main.mli
$ dune clean
$ dune build bin/main.bc.map