Reference Manual: tools_ocaml

The tools_ocaml repository contains rules for third-party tools.

To use add the following to your MODULE.bazel file:

bazel_dep(name = "tools_ocaml",     version = "2.0.0")

Then load and use the desired rule in your BUILD.bazel files; for example:

load("@tools_ocaml//rules:menhir.bzl", "menhir")
menhir(
    name     = "menhir_Parser",
    tool     = "@ocaml//bin:menhir",
    grammars = ["parser.mly"],
    deps     = [":Ast"],
    outs     = ["parser.ml", "parser.mli"]
)

Rules