Skip to content

Commit a736bb1

Browse files
authored
Compiler: Remove generated source files (fixes #1022) (#1023)
* Remove generated source files (fixes #1022) * Use the ocamllex rule instead of custom targets to call ocamllex * Add missing dependency on menhir to the dependencies list
1 parent a8a41bc commit a736bb1

File tree

8 files changed

+2
-16954
lines changed

8 files changed

+2
-16954
lines changed

compiler/lib/annot_lexer.ml

Lines changed: 0 additions & 1907 deletions
This file was deleted.

compiler/lib/annot_parser.ml

Lines changed: 0 additions & 1258 deletions
This file was deleted.

compiler/lib/annot_parser.mli

Lines changed: 0 additions & 38 deletions
This file was deleted.

compiler/lib/dune

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,7 @@
1111
(preprocess (pps ppx_optcomp_light))
1212
)
1313

14-
(rule
15-
(targets js_lexer.ml)
16-
(mode promote)
17-
(action (chdir %{workspace_root} (run %{bin:ocamllex} -q %{dep:js_lexer.mll} -o %{targets}))))
18-
19-
(rule
20-
(targets annot_lexer.ml)
21-
(mode promote)
22-
(action (chdir %{workspace_root} (run %{bin:ocamllex} -q %{dep:annot_lexer.mll} -o %{targets}))))
14+
(ocamllex js_lexer annot_lexer)
2315

2416
;; cp $(ocamlfind printconf path)/menhir/standard.mly standard.mly
2517

@@ -29,13 +21,11 @@
2921
(rule
3022
(targets js_parser.mli js_parser.ml)
3123
(deps standard.mly)
32-
(mode promote)
3324
(action (ignore-stderr (run menhir --stdlib . --table --external-tokens Js_token --explain %{dep:js_parser.mly}))))
3425

3526
(rule
3627
(targets annot_parser.mli annot_parser.ml)
3728
(deps standard.mly)
38-
(mode promote)
3929
(action (ignore-stderr (run menhir --stdlib . --explain %{dep:annot_parser.mly}))))
4030

4131
(rule

compiler/lib/js_lexer.ml

Lines changed: 0 additions & 1174 deletions
This file was deleted.

0 commit comments

Comments
 (0)