;; This rules compiles acgtk in Javascript. The resulting executable contains
;; functions that can be called to compile grammars and evaluate commands. It
;; also contains top-level code that sets-up the graphical interface in the web
;; page, and manages the user interactions.
(executable
 (name acgjs)
 (modes js)
 (libraries messages interface)
 (modules acgjs)
 (preprocess
  (per_module
   ((pps js_of_ocaml-ppx)
    acgjs))))

(library
 (name interface)
 (public_name acgtk-browser.interface)
 (libraries sedlex js_of_ocaml js_of_ocaml-tyxml tyxml tyxml.functor logs utilsLib scripting acgData menhirLib dump svgLib_dummy messages)
 (modules :standard \ acgjs))

(documentation
 (package acgtk-browser))
