def METHOD_NAME(ctx):
    lyinfo = ctx.toolchains["@io_kythe//tools/build_rules/lexyacc:toolchain_type"].lexyaccinfo
    return [
        DefaultInfo(runfiles = lyinfo.runfiles, files = lyinfo.runfiles.files),
        platform_common.TemplateVariableInfo({
            "LEX": lyinfo.lex,
            "YACC": lyinfo.yacc,
        }),
    ]