def METHOD_NAME(name, **kwargs):
    _lexyacc_toolchain(name = name, **kwargs)
    native.toolchain(
        name = name + "_toolchain",
        toolchain = ":" + name,
        toolchain_type = "@io_kythe//tools/build_rules/lexyacc:toolchain_type",
    )