mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
Building a JS version of the Catala compiler
This commit is contained in:
parent
8c0694ba15
commit
29f12aa3cb
@ -1,7 +1,7 @@
|
||||
diff --git a/compiler/catala_web.ml b/compiler/catala_web.ml
|
||||
diff --git a/compiler/catala_web_interpreter.ml b/compiler/catala_web_interpreter.ml
|
||||
deleted file mode 100644
|
||||
index 31d5289..0000000
|
||||
--- a/compiler/catala_web.ml
|
||||
--- a/compiler/catala_web_interpreter.ml
|
||||
+++ /dev/null
|
||||
@@ -1,16 +0,0 @@
|
||||
-open Driver
|
||||
@ -27,17 +27,17 @@ index d192291..994c528 100644
|
||||
@@ -10,16 +10,6 @@
|
||||
(libraries calendar zarith zarith_stubs_js)
|
||||
(modules runtime))
|
||||
|
||||
|
||||
-(executable
|
||||
- (name catala_web)
|
||||
- (name catala_web_interpreter)
|
||||
- (modes byte js)
|
||||
- (package catala)
|
||||
- (public_name catala_web)
|
||||
- (modules catala_web)
|
||||
- (public_name catala_web_interpreter)
|
||||
- (modules catala_web_interpreter)
|
||||
- (preprocess
|
||||
- (pps js_of_ocaml-ppx))
|
||||
- (libraries catala.driver js_of_ocaml))
|
||||
-
|
||||
(executable
|
||||
(name catala)
|
||||
(modes native)
|
||||
(modes native)
|
||||
|
5
Makefile
5
Makefile
@ -48,9 +48,10 @@ build:
|
||||
@$(MAKE) --no-print-directory format
|
||||
dune build $(COMPILER_DIR)/catala.exe
|
||||
|
||||
#> js_build : Builds the Web-compatible JS version of the Catala compiler
|
||||
#> js_build : Builds the Web-compatible JS versions of the Catala compiler
|
||||
js_build:
|
||||
dune build $(COMPILER_DIR)/catala_web.bc.js --profile release
|
||||
dune build $(COMPILER_DIR)/catala.bc.js --profile release
|
||||
dune build $(COMPILER_DIR)/catala_web_interpreter.bc.js --profile release
|
||||
|
||||
#> doc : Generates the HTML OCaml documentation
|
||||
doc:
|
||||
|
@ -11,18 +11,18 @@
|
||||
(modules runtime))
|
||||
|
||||
(executable
|
||||
(name catala_web)
|
||||
(name catala_web_interpreter)
|
||||
(modes byte js)
|
||||
(package catala)
|
||||
(public_name catala_web)
|
||||
(modules catala_web)
|
||||
(public_name catala_web_interpreter)
|
||||
(modules catala_web_interpreter)
|
||||
(preprocess
|
||||
(pps js_of_ocaml-ppx))
|
||||
(libraries catala.driver js_of_ocaml))
|
||||
|
||||
(executable
|
||||
(name catala)
|
||||
(modes native)
|
||||
(modes native js)
|
||||
(package catala)
|
||||
(modules catala)
|
||||
(public_name catala)
|
||||
|
@ -14,7 +14,7 @@ scp examples/tutorial_en/tutorial_en.html $1/
|
||||
scp examples/tutoriel_fr/tutoriel_fr.html $1/
|
||||
scp grammar.html $1/
|
||||
scp catala.html $1/
|
||||
scp _build/default/compiler/catala_web.bc.js $1/playground/
|
||||
scp _build/default/compiler/catala_web_interpreter.bc.js $1/playground/
|
||||
scp examples/tutorial_en/tutorial_en.catala_en $1/playground/
|
||||
scp examples/tutoriel_fr/tutoriel_fr.catala_fr $1/playground/
|
||||
cat examples/allocations_familiales/prologue.catala_fr > allocations_familiales.catala_fr
|
||||
|
Loading…
Reference in New Issue
Block a user