summaryrefslogtreecommitdiff
path: root/src/myocamlbuild.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/myocamlbuild.ml')
-rw-r--r--src/myocamlbuild.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/myocamlbuild.ml b/src/myocamlbuild.ml
index 765553d3..697ee9bd 100644
--- a/src/myocamlbuild.ml
+++ b/src/myocamlbuild.ml
@@ -101,5 +101,11 @@ dispatch begin function
mv (basename (env "%.lem")) (dirname (env "%.lem"))
]);
+ rule "old parser"
+ ~insert:(`top)
+ ~prods: ["parser.ml"; "parser.mli"]
+ ~dep: "parser.mly"
+ (fun env builder -> Cmd(S[V"OCAMLYACC"; T(tags_of_pathname "parser.mly"++"ocaml"++"parser"++"ocamlyacc"); Px "parser.mly"]));
+
| _ -> ()
end ;;