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//pegjs:index.bzl", "pegjs")
|
||||
load("@npm//peggy:index.bzl", "peggy")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
|
||||
|
||||
PKG_BASE_NAME = "kbn-interpreter"
|
||||
|
@ -37,10 +37,10 @@ TYPES_DEPS = [
|
|||
|
||||
DEPS = SRC_DEPS + TYPES_DEPS
|
||||
|
||||
pegjs(
|
||||
peggy(
|
||||
name = "grammar",
|
||||
data = [
|
||||
":grammar/grammar.pegjs"
|
||||
":grammar/grammar.peggy"
|
||||
],
|
||||
output_dir = True,
|
||||
args = [
|
||||
|
@ -48,7 +48,7 @@ pegjs(
|
|||
"expression,argument",
|
||||
"-o",
|
||||
"$(@D)/index.js",
|
||||
"./%s/grammar/grammar.pegjs" % package_name()
|
||||
"./%s/grammar/grammar.peggy" % package_name()
|
||||
],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue