Skip to content

Commit

Permalink
web interface fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cp526 committed Jun 4, 2020
1 parent 7687e5f commit e740aad
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .merlin
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ PKG lem lem_num lem_zarith
PKG linksem linksem_num linksem_zarith
PKG uint zarith
PKG lambda-term zed lwt react
PKG js_of_ocaml js_of_ocaml.ppx
PKG js_of_ocaml js_of_ocaml-ppx
PKG base64
PKG sail
2 changes: 1 addition & 1 deletion _tags
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#
# files that use js_of_ocaml special syntax:
#
<src_top/web/*.{ml,mli}> or <src_top/webppc.ml> : package(js_of_ocaml), package(js_of_ocaml.ppx)
<src_top/web/*.{ml,mli}> or <src_top/webppc.ml> : package(js_of_ocaml), package(js_of_ocaml-ppx)

#
# library dependencies:
Expand Down
2 changes: 1 addition & 1 deletion opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The rmem tool comprises executable operational models for the relaxed-memory con
maintainer: "rmem devs <[email protected]>"
authors: "authors"
license: ""
homepage: ""
homepage: "https://github.com/rems-project/rmem"
bug-reports: ""
dev-repo: "git+https://github.com/rems-project/rmem.git"
depends: [
Expand Down
2 changes: 1 addition & 1 deletion src_top/pp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ let pp_pretty_eiid m eiid =
(** ******************* *)


(* js_of_ocaml cann't use Str.split (or Str in general), use the
(* js_of_ocaml can't use Str.split (or Str in general), use the
following function instead.
split del str splits str into substrings, taking as delimiters the
substrings del, and returns the list of substrings. An occurrence
Expand Down
3 changes: 3 additions & 0 deletions src_top/web/files.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

let sources = ref ([] : (string * string array) list)

open Js_of_ocaml

let update_sources new_sources =
let open Js_of_ocaml in
(* Ew, javascript (again) *)
let objects = Array.to_list (Js.to_array new_sources) in
sources := List.map
Expand Down
2 changes: 2 additions & 0 deletions src_top/web/graphviz.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
(* *)
(*===============================================================================*)

open Js_of_ocaml

module Make (ConcModel: Concurrency_model.S)
: (GraphBackend.S with type ui_trans = ConcModel.ui_trans
and type instruction_ast = ConcModel.instruction_ast)
Expand Down
2 changes: 2 additions & 0 deletions src_top/web/interact.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
(* *)
(*===============================================================================*)

open Js_of_ocaml

(* val exit_on_bad_fetch : Globals.ppmode -> MachineDefTypes.trans -> unit *)

(* The info structure of state of search procedure *)
Expand Down
1 change: 1 addition & 0 deletions src_top/web/screen.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
(*===============================================================================*)

open Params
open Js_of_ocaml

let set_state_output str = ()
let set_trace_output str = ()
Expand Down
1 change: 1 addition & 0 deletions src_top/webppc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

open InstructionSemantics
open Params
open Js_of_ocaml

let js = Js.string;;
let document = Dom_html.window##.document;;
Expand Down

0 comments on commit e740aad

Please sign in to comment.