load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "context.go",
        "lexer.go",
        "literalfield_set.go",
        "parser.go",
        "string_util.go",
    ],
    importpath = "github.com/google/go-jsonnet/internal/parser",
    visibility = ["//:__subpackages__"],
    deps = [
        "//ast:go_default_library",
        "//internal/errors:go_default_library",
    ],
)

go_test(
    name = "go_default_test",
    srcs = [
        "lexer_test.go",
        "parser_test.go",
    ],
    embed = [":go_default_library"],
    deps = ["//ast:go_default_library"],
)
