menhir

load("@tools_ocaml//rules:menhir.bzl", "menhir")

Runs menhir.

ATTRIBUTES for rule menhir:

Name Description Type Mandatory Default

name

A unique name for this target.

Name

required

deps

List of OCaml dependencies.

List of labels

optional

[]

outs

Output filenames, .ml and .mli.

List of labels

required

base

Equivalent to --base arg

String

optional

""

cmly

Produce .cmly file

Boolean

optional

False

compile_errors

--compile-errors switch

Label

optional

None

explain

Produce basename.conflicts file

Boolean

optional

False

flags

Boolean flag options

List of strings

optional

[]

grammars

Menhir source files.

List of labels

optional

[]

ns

-

Label

optional

None

opts

Options of form --option val

List of strings

optional

[]

token

--external-token value.

Label

optional

None

tokens_unused

--unused-tokens list

List of strings

optional

[]

tool

Bazel label of a menhir executable.

Label

required