switching to peggy (#103169)
This commit is contained in:
parent
4c2449fd28
commit
9a1f5a4a7a
|
@ -1,5 +1,5 @@
|
||||||
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
|
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
|
||||||
load("@npm//pegjs:index.bzl", "pegjs")
|
load("@npm//peggy:index.bzl", "peggy")
|
||||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
|
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
|
||||||
|
|
||||||
PKG_BASE_NAME = "kbn-interpreter"
|
PKG_BASE_NAME = "kbn-interpreter"
|
||||||
|
@ -37,10 +37,10 @@ TYPES_DEPS = [
|
||||||
|
|
||||||
DEPS = SRC_DEPS + TYPES_DEPS
|
DEPS = SRC_DEPS + TYPES_DEPS
|
||||||
|
|
||||||
pegjs(
|
peggy(
|
||||||
name = "grammar",
|
name = "grammar",
|
||||||
data = [
|
data = [
|
||||||
":grammar/grammar.pegjs"
|
":grammar/grammar.peggy"
|
||||||
],
|
],
|
||||||
output_dir = True,
|
output_dir = True,
|
||||||
args = [
|
args = [
|
||||||
|
@ -48,7 +48,7 @@ pegjs(
|
||||||
"expression,argument",
|
"expression,argument",
|
||||||
"-o",
|
"-o",
|
||||||
"$(@D)/index.js",
|
"$(@D)/index.js",
|
||||||
"./%s/grammar/grammar.pegjs" % package_name()
|
"./%s/grammar/grammar.peggy" % package_name()
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue