File tree 2 files changed +433
-4
lines changed 2 files changed +433
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ package(default_visibility = ["//visibility:public"])
3
3
cc_library (
4
4
name = "common" ,
5
5
hdrs = [
6
- "unicode .h" ,
6
+ "ast .h" ,
7
7
"static_error.h" ,
8
+ "unicode.h" ,
8
9
],
9
10
includes = ["." ],
10
11
)
@@ -28,22 +29,38 @@ cc_test(
28
29
],
29
30
)
30
31
32
+ cc_library (
33
+ name = "parser" ,
34
+ srcs = ["parser.cpp" ],
35
+ hdrs = ["parser.h" ],
36
+ deps = [
37
+ ":common" ,
38
+ ":lexer" ,
39
+ ],
40
+ )
41
+
42
+ cc_test (
43
+ name = "parser_test" ,
44
+ srcs = ["parser_test.cc" ],
45
+ deps = [
46
+ ":parser" ,
47
+ "//external:gtest_main" ,
48
+ ],
49
+ )
50
+
31
51
cc_library (
32
52
name = "jsonnet-common" ,
33
53
srcs = [
34
54
"desugarer.cpp" ,
35
55
"formatter.cpp" ,
36
56
"libjsonnet.cpp" ,
37
- "parser.cpp" ,
38
57
"static_analysis.cpp" ,
39
58
"string_utils.cpp" ,
40
59
"vm.cpp" ,
41
60
],
42
61
hdrs = [
43
- "ast.h" ,
44
62
"desugarer.h" ,
45
63
"formatter.h" ,
46
- "parser.h" ,
47
64
"state.h" ,
48
65
"static_analysis.h" ,
49
66
"string_utils.h" ,
@@ -52,6 +69,7 @@ cc_library(
52
69
deps = [
53
70
":common" ,
54
71
":lexer" ,
72
+ ":parser" ,
55
73
"//include:libjsonnet" ,
56
74
"//stdlib:std" ,
57
75
],
You can’t perform that action at this time.
0 commit comments