-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathBUILD.bazel
More file actions
136 lines (125 loc) · 2.85 KB
/
Copy pathBUILD.bazel
File metadata and controls
136 lines (125 loc) · 2.85 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
load("@rules_java//java:defs.bzl", "java_library")
package(
default_applicable_licenses = ["//:license"],
default_visibility = [
"//parser:__pkg__",
"//publish:__pkg__",
],
)
# keep sorted
PARSER_SOURCES = [
"CelParserImpl.java",
"ExpressionBalancer.java",
"Parser.java",
]
# keep sorted
PARSER_BUILDER_SOURCES = [
"CelParser.java",
"CelParserBuilder.java",
"CelParserLibrary.java",
]
# keep sorted
MACRO_SOURCES = [
"CelMacro.java",
"CelMacroExpander.java",
"CelMacroExprFactory.java",
"CelStandardMacro.java",
]
# keep sorted
UNPARSER_SOURCES = [
"CelUnparser.java",
"CelUnparserFactory.java",
"CelUnparserImpl.java",
]
java_library(
name = "parser_factory",
srcs = ["CelParserFactory.java"],
tags = [
],
deps = [
":parser",
"//common:options",
"//parser:parser_builder",
],
)
java_library(
name = "parser",
srcs = PARSER_SOURCES,
tags = [
],
deps = [
":macro",
":parser_builder",
"//common:cel_ast",
"//common:cel_source",
"//common:compiler_common",
"//common:operator",
"//common:options",
"//common:source_location",
"//common/annotations",
"//common/ast",
"//common/internal",
"//common/internal:code_point_stream",
"//common/internal:env_visitor",
"//parser:cel_g4_visitors",
"@maven//:com_google_errorprone_error_prone_annotations",
"@maven//:com_google_guava_guava",
"@maven//:org_antlr_antlr4_runtime",
],
)
java_library(
name = "parser_builder",
srcs = PARSER_BUILDER_SOURCES,
tags = [
],
deps = [
":macro",
"//common:cel_source",
"//common:compiler_common",
"//common:options",
"@maven//:com_google_errorprone_error_prone_annotations",
],
)
java_library(
name = "macro",
srcs = MACRO_SOURCES,
tags = [
],
deps = [
"//:auto_value",
"//common:compiler_common",
"//common:operator",
"//common:source_location",
"//common/ast",
"//common/ast:expr_factory",
"@maven//:com_google_errorprone_error_prone_annotations",
"@maven//:com_google_guava_guava",
],
)
java_library(
name = "unparser",
srcs = UNPARSER_SOURCES,
tags = [
],
deps = [
":unparser_visitor",
"//common:cel_ast",
"//common:options",
],
)
java_library(
name = "unparser_visitor",
srcs = ["CelUnparserVisitor.java"],
tags = [
],
deps = [
"//common:cel_ast",
"//common:cel_source",
"//common:operator",
"//common/ast",
"//common/ast:cel_expr_visitor",
"//common/values:cel_byte_string",
"@maven//:com_google_guava_guava",
"@maven//:com_google_re2j_re2j",
],
)