Skip to content

Commit

Permalink
initialising jsoo
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Jun 24, 2024
1 parent 9b14c90 commit 72ad324
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions web/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(executable
(name js)
(modes js)
(modules js)
(libraries z3 libASLResources dune-site str zarith pprint zarith_stubs_js)
(js_of_ocaml (flags --debug-info --no-inline :standard \ --source-map-inline))
)

(alias
(name default)
(deps js.bc.js index.html))
9 changes: 9 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<title>Cubes</title>
<script type="text/javascript" src="js.bc.js"></script>
</head>
<body>
</body>
</html>
4 changes: 4 additions & 0 deletions web/js.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let () =
print_endline "hello from js";
print_endline @@ Int.to_string @@ List.length LibASLResources.Res.Sites.aslfiles
(* print_endline @@ LibASL.Value.(pp_value @@ from_bitsLit "100") *)

0 comments on commit 72ad324

Please sign in to comment.