File: BUILD.bazel

package info (click to toggle)
mtail 3.2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,384 kB
  • sloc: yacc: 647; makefile: 226; sh: 78; lisp: 77; awk: 17
file content (47 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
load("@rules_go//go:def.bzl", "go_library", "go_test")
load("//build:goyacc.bzl", "go_yacc")

go_yacc(
    name = "parser_go_gen",
    src = "parser.y",
    out = "parser.go",
    prefix = "mtail",
)

go_library(
    name = "parser",
    srcs = [
        "driver.go",
        "lexer.go",
        "parser.go",  # keep
        "sexp.go",
        "tokens.go",
        "unparser.go",
    ],
    importpath = "github.com/jaqx0r/mtail/internal/runtime/compiler/parser",
    visibility = ["//:__subpackages__"],
    deps = [
        "//internal/metrics",
        "//internal/runtime/compiler/ast",
        "//internal/runtime/compiler/errors",
        "//internal/runtime/compiler/position",
        "//internal/runtime/compiler/symbol",
        "@com_github_golang_glog//:glog",
    ],
)

go_test(
    name = "parser_test",
    size = "small",
    srcs = [
        "lexer_test.go",
        "parser_test.go",
        "tokens_test.go",
    ],
    embed = [":parser"],
    deps = [
        "//internal/runtime/compiler/ast",
        "//internal/runtime/compiler/position",
        "//internal/testutil",
    ],
)