@prometheus-io/lezer-promql 0.308.0 → 0.311.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +154 -9
- package/dist/index.cjs +210 -184
- package/dist/index.d.ts +11 -1
- package/dist/index.es.js +201 -185
- package/package.json +2 -2
- package/src/highlight.js +1 -1
- package/src/parser.js +155 -145
- package/src/parser.terms.js +144 -134
- package/src/promql.grammar +29 -1
- package/src/tokens.js +74 -68
package/src/parser.js
CHANGED
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
import {LRParser} from "@lezer/lr"
|
|
3
3
|
import {specializeIdentifier, extendIdentifier} from "./tokens"
|
|
4
4
|
import {promQLHighLight} from "./highlight"
|
|
5
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
5
|
+
const spec_Identifier = {__proto__:null,absent_over_time:379, absent:381, abs:383, acos:385, acosh:387, asin:389, asinh:391, atan:393, atanh:395, avg_over_time:397, ceil:399, changes:401, clamp:403, clamp_max:405, clamp_min:407, cos:409, cosh:411, count_over_time:413, days_in_month:415, day_of_month:417, day_of_week:419, day_of_year:421, deg:423, delta:425, deriv:427, exp:429, first_over_time:431, floor:433, histogram_count:435, histogram_fraction:437, histogram_quantile:439, histogram_quantiles:441, histogram_stddev:443, histogram_stdvar:445, histogram_sum:447, histogram_avg:449, double_exponential_smoothing:451, hour:453, idelta:455, increase:457, info:459, irate:461, label_replace:463, label_join:465, last_over_time:467, ln:469, log10:471, log2:473, mad_over_time:475, max_over_time:477, min_over_time:479, ts_of_first_over_time:481, ts_of_max_over_time:483, ts_of_min_over_time:485, ts_of_last_over_time:487, minute:489, month:491, pi:493, predict_linear:495, present_over_time:497, quantile_over_time:499, rad:501, rate:503, resets:505, round:507, scalar:509, sgn:511, sin:513, sinh:515, sort:517, sort_desc:519, sort_by_label:521, sort_by_label_desc:523, sqrt:525, stddev_over_time:527, stdvar_over_time:529, sum_over_time:531, tan:533, tanh:535, timestamp:537, time:539, vector:541, year:543}
|
|
6
6
|
export const parser = LRParser.deserialize({
|
|
7
7
|
version: 14,
|
|
8
|
-
states: "
|
|
9
|
-
stateData: "!
|
|
10
|
-
goto: "
|
|
11
|
-
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End Smoothed Anchored LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext
|
|
12
|
-
maxTerm:
|
|
8
|
+
states: "<zOYQPOOO(WQPOOOOQO'#DR'#DRO(]QPO'#DQOOQO'#D`'#D`O(hQPO'#FrQ/oQQOOOOQO'#Dq'#DqO(cQPO'#DpOYQPO'#FoOYQPO'#FqO1YQSO'#FtO1eQQO'#FsOOQO'#Fs'#FsOOQO'#GX'#GXOOQO'#Dr'#DrOOQO'#Dt'#DtOOQO'#Du'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anchored Fill FillLeft FillRight LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause FillModifier FillClause NumberDurationLiteral FillLeftClause FillRightClause Mul Div Mod Add Sub Eql Gte Gtr TrimUpper TrimLower Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramQuantiles HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext OffsetExpr AnchoredExpr SmoothedExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
12
|
+
maxTerm: 276,
|
|
13
13
|
nodeProps: [
|
|
14
|
-
["group", -14,
|
|
14
|
+
["group", -14,36,42,44,50,66,152,154,155,156,157,158,159,161,169,"Expr"]
|
|
15
15
|
],
|
|
16
16
|
propSources: [promQLHighLight],
|
|
17
|
-
skippedNodes: [0,
|
|
17
|
+
skippedNodes: [0,34],
|
|
18
18
|
repeatNodeCount: 3,
|
|
19
|
-
tokenData: "
|
|
19
|
+
tokenData: "4{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!h*W#R#S,m#X#Y*W~-^P%S~!Q![-a~-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP%S~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ%S~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO%S~~.}P%S~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P%S~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP%S~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR%S~!Q![0p!c!i0p#T#Z0pV1VT&|S!gR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!gR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PQ!b~!P!Q2V!_!`2[~2[O!_~~2aO!a~~2fQ$kP!_!`2l#r#s2qQ2qO![Q~2vO$l~~2{Q!^~!P!Q3R!_!`3W~3WO!`~~3]O!]~~3bO$p~V3iT!gRxS!Q![3b![!]1f!c!}3b#R#S3b#T#o3b~3}O&z~~4SO&{~~4XO}~~4[TO#S4X#S#T%c#T;'S4X;'S;=`4k<%lO4X~4nP;=`<%l4X~4vO&}~~4{O'O~",
|
|
20
20
|
tokenizers: [0, 1, 2],
|
|
21
|
-
topRules: {"PromQL":[0,
|
|
22
|
-
specialized: [{term:
|
|
21
|
+
topRules: {"PromQL":[0,35],"MetricName":[1,172]},
|
|
22
|
+
specialized: [{term: 69, get: (value, stack) => (specializeIdentifier(value, stack) << 1), external: specializeIdentifier},{term: 69, get: (value, stack) => (extendIdentifier(value, stack) << 1) | 1, external: extendIdentifier, extend: true},{term: 69, get: (value) => spec_Identifier[value] || -1}],
|
|
23
23
|
tokenPrec: 0
|
|
24
24
|
})
|
|
25
25
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
26
26
|
export const
|
|
27
|
-
inf =
|
|
28
|
-
nan =
|
|
27
|
+
inf = 177,
|
|
28
|
+
nan = 178,
|
|
29
29
|
Bool = 1,
|
|
30
30
|
Ignoring = 2,
|
|
31
31
|
On = 3,
|
|
@@ -56,135 +56,145 @@ export const
|
|
|
56
56
|
End = 28,
|
|
57
57
|
Smoothed = 29,
|
|
58
58
|
Anchored = 30,
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
59
|
+
Fill = 31,
|
|
60
|
+
FillLeft = 32,
|
|
61
|
+
FillRight = 33,
|
|
62
|
+
LineComment = 34,
|
|
63
|
+
PromQL = 35,
|
|
64
|
+
AggregateExpr = 36,
|
|
65
|
+
AggregateOp = 37,
|
|
66
|
+
AggregateModifier = 38,
|
|
67
|
+
GroupingLabels = 39,
|
|
68
|
+
LabelName = 40,
|
|
69
|
+
QuotedLabelName = 41,
|
|
70
|
+
StringLiteral = 42,
|
|
71
|
+
FunctionCallBody = 43,
|
|
72
|
+
BinaryExpr = 44,
|
|
73
|
+
Pow = 45,
|
|
74
|
+
BoolModifier = 46,
|
|
75
|
+
MatchingModifierClause = 47,
|
|
76
|
+
FillModifier = 48,
|
|
77
|
+
FillClause = 49,
|
|
78
|
+
NumberDurationLiteral = 50,
|
|
79
|
+
FillLeftClause = 51,
|
|
80
|
+
FillRightClause = 52,
|
|
81
|
+
Mul = 53,
|
|
82
|
+
Div = 54,
|
|
83
|
+
Mod = 55,
|
|
84
|
+
Add = 56,
|
|
85
|
+
Sub = 57,
|
|
86
|
+
Eql = 58,
|
|
87
|
+
Gte = 59,
|
|
88
|
+
Gtr = 60,
|
|
89
|
+
TrimUpper = 61,
|
|
90
|
+
TrimLower = 62,
|
|
91
|
+
Lte = 63,
|
|
92
|
+
Lss = 64,
|
|
93
|
+
Neq = 65,
|
|
94
|
+
FunctionCall = 66,
|
|
95
|
+
FunctionIdentifier = 67,
|
|
96
|
+
AbsentOverTime = 68,
|
|
97
|
+
Identifier = 69,
|
|
98
|
+
Absent = 70,
|
|
99
|
+
Abs = 71,
|
|
100
|
+
Acos = 72,
|
|
101
|
+
Acosh = 73,
|
|
102
|
+
Asin = 74,
|
|
103
|
+
Asinh = 75,
|
|
104
|
+
Atan = 76,
|
|
105
|
+
Atanh = 77,
|
|
106
|
+
AvgOverTime = 78,
|
|
107
|
+
Ceil = 79,
|
|
108
|
+
Changes = 80,
|
|
109
|
+
Clamp = 81,
|
|
110
|
+
ClampMax = 82,
|
|
111
|
+
ClampMin = 83,
|
|
112
|
+
Cos = 84,
|
|
113
|
+
Cosh = 85,
|
|
114
|
+
CountOverTime = 86,
|
|
115
|
+
DaysInMonth = 87,
|
|
116
|
+
DayOfMonth = 88,
|
|
117
|
+
DayOfWeek = 89,
|
|
118
|
+
DayOfYear = 90,
|
|
119
|
+
Deg = 91,
|
|
120
|
+
Delta = 92,
|
|
121
|
+
Deriv = 93,
|
|
122
|
+
Exp = 94,
|
|
123
|
+
FirstOverTime = 95,
|
|
124
|
+
Floor = 96,
|
|
125
|
+
HistogramCount = 97,
|
|
126
|
+
HistogramFraction = 98,
|
|
127
|
+
HistogramQuantile = 99,
|
|
128
|
+
HistogramQuantiles = 100,
|
|
129
|
+
HistogramStdDev = 101,
|
|
130
|
+
HistogramStdVar = 102,
|
|
131
|
+
HistogramSum = 103,
|
|
132
|
+
HistogramAvg = 104,
|
|
133
|
+
DoubleExponentialSmoothing = 105,
|
|
134
|
+
Hour = 106,
|
|
135
|
+
Idelta = 107,
|
|
136
|
+
Increase = 108,
|
|
137
|
+
Info = 109,
|
|
138
|
+
Irate = 110,
|
|
139
|
+
LabelReplace = 111,
|
|
140
|
+
LabelJoin = 112,
|
|
141
|
+
LastOverTime = 113,
|
|
142
|
+
Ln = 114,
|
|
143
|
+
Log10 = 115,
|
|
144
|
+
Log2 = 116,
|
|
145
|
+
MadOverTime = 117,
|
|
146
|
+
MaxOverTime = 118,
|
|
147
|
+
MinOverTime = 119,
|
|
148
|
+
TsOfFirstOverTime = 120,
|
|
149
|
+
TsOfMaxOverTime = 121,
|
|
150
|
+
TsOfMinOverTime = 122,
|
|
151
|
+
TsOfLastOverTime = 123,
|
|
152
|
+
Minute = 124,
|
|
153
|
+
Month = 125,
|
|
154
|
+
Pi = 126,
|
|
155
|
+
PredictLinear = 127,
|
|
156
|
+
PresentOverTime = 128,
|
|
157
|
+
QuantileOverTime = 129,
|
|
158
|
+
Rad = 130,
|
|
159
|
+
Rate = 131,
|
|
160
|
+
Resets = 132,
|
|
161
|
+
Round = 133,
|
|
162
|
+
Scalar = 134,
|
|
163
|
+
Sgn = 135,
|
|
164
|
+
Sin = 136,
|
|
165
|
+
Sinh = 137,
|
|
166
|
+
Sort = 138,
|
|
167
|
+
SortDesc = 139,
|
|
168
|
+
SortByLabel = 140,
|
|
169
|
+
SortByLabelDesc = 141,
|
|
170
|
+
Sqrt = 142,
|
|
171
|
+
StddevOverTime = 143,
|
|
172
|
+
StdvarOverTime = 144,
|
|
173
|
+
SumOverTime = 145,
|
|
174
|
+
Tan = 146,
|
|
175
|
+
Tanh = 147,
|
|
176
|
+
Timestamp = 148,
|
|
177
|
+
Time = 149,
|
|
178
|
+
Vector = 150,
|
|
179
|
+
Year = 151,
|
|
180
|
+
MatrixSelector = 152,
|
|
181
|
+
NumberDurationLiteralInDurationContext = 153,
|
|
182
|
+
OffsetExpr = 154,
|
|
183
|
+
AnchoredExpr = 155,
|
|
184
|
+
SmoothedExpr = 156,
|
|
185
|
+
ParenExpr = 157,
|
|
186
|
+
SubqueryExpr = 158,
|
|
187
|
+
UnaryExpr = 159,
|
|
188
|
+
UnaryOp = 160,
|
|
189
|
+
VectorSelector = 161,
|
|
190
|
+
LabelMatchers = 162,
|
|
191
|
+
UnquotedLabelMatcher = 163,
|
|
192
|
+
MatchOp = 164,
|
|
193
|
+
EqlSingle = 165,
|
|
194
|
+
EqlRegex = 166,
|
|
195
|
+
NeqRegex = 167,
|
|
196
|
+
QuotedLabelMatcher = 168,
|
|
197
|
+
StepInvariantExpr = 169,
|
|
198
|
+
At = 170,
|
|
199
|
+
AtModifierPreprocessors = 171,
|
|
200
|
+
MetricName = 172
|