@cloudcare/lezer-dql 0.0.18 → 0.0.20
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/dist/index.cjs +38 -34
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +37 -35
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -235,19 +235,19 @@ const DQLHighLight = highlight.styleTags({
|
|
|
235
235
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
236
236
|
const parser = lr.LRParser.deserialize({
|
|
237
237
|
version: 14,
|
|
238
|
-
states: "
|
|
239
|
-
stateData: "
|
|
240
|
-
goto: "
|
|
241
|
-
nodeNames: "⚠ SOffset Offset Base64 As Avg Abs Ceil CountDistinct CountSeries Derivative Difference Distinct Floor Rate Irate Deriv Increase Log Log10 Log2 Max Min Mode NonNegativeDerivative NonNegativeDifference Round Spread Stddev Sum Schema DistinctByCollapse Default Fill CountFilter Count First Any Last LastRow Bottom Top MovingAverage Percentile Median Set Int Float String Md5 Histogram Exists Cidr Match Regex Re Regexp RegexpExtract RegexpExtractAll Collect Concat Drain Wildcard QueryString Querystring WithLabels WithoutLabels Unwrap Now Cumsum Window Dbscan Eval Order SOrder Limit Slimit Asc Desc In Not NotIn By And Or LineComment DQL QueryExpr EvalExpr EvalIdentifier EvalCallBody ArgItem Identifier EqlSingle StringLiteral Number FunctionCall FunctionIdentifier FunctionCallBody Expr SingleExpr Pow Mul Div Mod Add Sub Eql Gte Gtr Lte Lss InValue AsExpr OuterArgItem Queted Query Namespace IndexExpr IndexItem DColon DataSourceList DataSourceItem Star QuerySource QueryClause TargetClause Comma Projection ProjectionItem ProjectionField FieldName FilterClause FilterExpr InFieldValue BinaryExpr Neq DAnd DOr EqlRegex NeqRegex LimitClause TimeClause TimeRange TimeExpr ByClause ByExpr FieldListExpr OrderClause OffsetClause SLimitClause SOffsetClause SOrderClause OuterFunctionCall OuterFunctionCallBody ShowExpr ShowIdentifier",
|
|
242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Irate Deriv Increase Log Log10 Log2 Max Min Mode NonNegativeDerivative NonNegativeDifference Round Spread Stddev Sum Schema DistinctByCollapse Default Fill CountFilter Count First Any Last LastRow Bottom Top MovingAverage Percentile Median Set Int Float String Md5 Histogram Exists Cidr Match Regex Re Regexp RegexpExtract RegexpExtractAll Collect Concat Drain Wildcard QueryString Querystring WithLabels WithoutLabels Unwrap Now Cumsum Window Dbscan Eval Order SOrder Limit Slimit Asc Desc In Not NotIn By And Or LineComment DQL QueryExpr EvalExpr EvalIdentifier EvalCallBody ArgItem Identifier EqlSingle StringLiteral Number FunctionCall FunctionIdentifier FunctionCallBody Expr SingleExpr Pow Mul Div Mod Add Sub Eql Gte Gtr Lte Lss InValue AsExpr OuterArgItem Queted Query Namespace IndexExpr IndexItem DColon DataSourceList DataSourceItem Star QuerySource QueryClause TargetClause Comma Projection ProjectionItem ProjectionField FieldName ProjectionExpr SingleFieldExpr FilterClause FilterExpr InFieldValue BinaryExpr Neq DAnd DOr EqlRegex NeqRegex LimitClause TimeClause TimeRange TimeExpr ByClause ByExpr FieldListExpr OrderClause OffsetClause SLimitClause SOffsetClause SOrderClause OuterFunctionCall OuterFunctionCallBody ShowExpr ShowIdentifier",
|
|
242
|
+
maxTerm: 186,
|
|
243
243
|
propSources: [DQLHighLight],
|
|
244
244
|
skippedNodes: [0,85],
|
|
245
|
-
repeatNodeCount:
|
|
246
|
-
tokenData: "<
|
|
247
|
-
tokenizers: [0, 1, 2, 3, 4],
|
|
245
|
+
repeatNodeCount: 12,
|
|
246
|
+
tokenData: "<y~R|X^#{pq#{qr$prs%Tst(huv)Pvw)Uwx)axy,hyz,mz{,r{|,{|}-Q}!O-V!O!P-[!P!Q.j!Q!R.o!R![/j![!]4s!^!_5S!_!`5a!`!a5v!c!u6T!u!v6f!v!}6T!}#O9U#P#Q9Z#Q#R9`#R#S6T#S#T9e#T#g6T#g#h:{#h#o6T#o#p<d#p#q<i#q#r<t#y#z#{$f$g#{#BY#BZ#{$IS$I_#{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Q![6T!c!}6T#R#S6T#T#k6T#k#l7}#l#o6T~<iO$}~~<lP#p#q<o~<tO$Q~~<yO%O~",
|
|
247
|
+
tokenizers: [0, 1, 2, 3, 4, 5],
|
|
248
248
|
topRules: {"DQL":[0,86]},
|
|
249
249
|
specialized: [{term: 92, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 92, get: (value, stack) => (funcIndentifier(value) << 1) | 1, external: funcIndentifier, extend: true},{term: 92, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true}],
|
|
250
|
-
tokenPrec:
|
|
250
|
+
tokenPrec: 2304
|
|
251
251
|
});
|
|
252
252
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
253
253
|
const SOffset = 1,
|
|
@@ -381,31 +381,33 @@ const SOffset = 1,
|
|
|
381
381
|
ProjectionItem = 129,
|
|
382
382
|
ProjectionField = 130,
|
|
383
383
|
FieldName = 131,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
384
|
+
ProjectionExpr = 132,
|
|
385
|
+
SingleFieldExpr = 133,
|
|
386
|
+
FilterClause = 134,
|
|
387
|
+
FilterExpr = 135,
|
|
388
|
+
InFieldValue = 136,
|
|
389
|
+
BinaryExpr = 137,
|
|
390
|
+
Neq = 138,
|
|
391
|
+
DAnd = 139,
|
|
392
|
+
DOr = 140,
|
|
393
|
+
EqlRegex = 141,
|
|
394
|
+
NeqRegex = 142,
|
|
395
|
+
LimitClause = 143,
|
|
396
|
+
TimeClause = 144,
|
|
397
|
+
TimeRange = 145,
|
|
398
|
+
TimeExpr = 146,
|
|
399
|
+
ByClause = 147,
|
|
400
|
+
ByExpr = 148,
|
|
401
|
+
FieldListExpr = 149,
|
|
402
|
+
OrderClause = 150,
|
|
403
|
+
OffsetClause = 151,
|
|
404
|
+
SLimitClause = 152,
|
|
405
|
+
SOffsetClause = 153,
|
|
406
|
+
SOrderClause = 154,
|
|
407
|
+
OuterFunctionCall = 155,
|
|
408
|
+
OuterFunctionCallBody = 156,
|
|
409
|
+
ShowExpr = 157,
|
|
410
|
+
ShowIdentifier = 158;
|
|
409
411
|
|
|
410
412
|
exports.Abs = Abs;
|
|
411
413
|
exports.Add = Add;
|
|
@@ -519,6 +521,7 @@ exports.OuterFunctionCallBody = OuterFunctionCallBody;
|
|
|
519
521
|
exports.Percentile = Percentile;
|
|
520
522
|
exports.Pow = Pow;
|
|
521
523
|
exports.Projection = Projection;
|
|
524
|
+
exports.ProjectionExpr = ProjectionExpr;
|
|
522
525
|
exports.ProjectionField = ProjectionField;
|
|
523
526
|
exports.ProjectionItem = ProjectionItem;
|
|
524
527
|
exports.Query = Query;
|
|
@@ -545,6 +548,7 @@ exports.Set = Set;
|
|
|
545
548
|
exports.ShowExpr = ShowExpr;
|
|
546
549
|
exports.ShowIdentifier = ShowIdentifier;
|
|
547
550
|
exports.SingleExpr = SingleExpr;
|
|
551
|
+
exports.SingleFieldExpr = SingleFieldExpr;
|
|
548
552
|
exports.Slimit = Slimit;
|
|
549
553
|
exports.Spread = Spread;
|
|
550
554
|
exports.Star = Star;
|
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -233,19 +233,19 @@ const DQLHighLight = styleTags({
|
|
|
233
233
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
234
234
|
const parser = LRParser.deserialize({
|
|
235
235
|
version: 14,
|
|
236
|
-
states: "
|
|
237
|
-
stateData: "
|
|
238
|
-
goto: "
|
|
239
|
-
nodeNames: "⚠ SOffset Offset Base64 As Avg Abs Ceil CountDistinct CountSeries Derivative Difference Distinct Floor Rate Irate Deriv Increase Log Log10 Log2 Max Min Mode NonNegativeDerivative NonNegativeDifference Round Spread Stddev Sum Schema DistinctByCollapse Default Fill CountFilter Count First Any Last LastRow Bottom Top MovingAverage Percentile Median Set Int Float String Md5 Histogram Exists Cidr Match Regex Re Regexp RegexpExtract RegexpExtractAll Collect Concat Drain Wildcard QueryString Querystring WithLabels WithoutLabels Unwrap Now Cumsum Window Dbscan Eval Order SOrder Limit Slimit Asc Desc In Not NotIn By And Or LineComment DQL QueryExpr EvalExpr EvalIdentifier EvalCallBody ArgItem Identifier EqlSingle StringLiteral Number FunctionCall FunctionIdentifier FunctionCallBody Expr SingleExpr Pow Mul Div Mod Add Sub Eql Gte Gtr Lte Lss InValue AsExpr OuterArgItem Queted Query Namespace IndexExpr IndexItem DColon DataSourceList DataSourceItem Star QuerySource QueryClause TargetClause Comma Projection ProjectionItem ProjectionField FieldName FilterClause FilterExpr InFieldValue BinaryExpr Neq DAnd DOr EqlRegex NeqRegex LimitClause TimeClause TimeRange TimeExpr ByClause ByExpr FieldListExpr OrderClause OffsetClause SLimitClause SOffsetClause SOrderClause OuterFunctionCall OuterFunctionCallBody ShowExpr ShowIdentifier",
|
|
240
|
-
maxTerm:
|
|
236
|
+
states: ">xO%mQPOOOOQO'#EX'#EXOOQO'#Ea'#EaO%zQPO'#EuO&YQPO'#EtO&eQPO'#EWO&jQPO'#FmO&oQPO'#FoOOQO'#EV'#EVO&tQPO'#EVQOQPOOO&|QPO'#EvOOQO,5;a,5;aO'UQPO,5;`O'fQQO'#EYOOQO,5:r,5:rO(SQSO'#FnOOQO,5<X,5<XO(eQQO'#EbOOQO,5<Z,5<ZOYQPO'#F|O)RQPO,5:qOOQO'#Ew'#EwO)ZQPO,5;bO&oQPO'#E`O)cQPO'#E|OOQO'#Ez'#EzO*]QQO'#EyO+XQQO1G0zO+cQSO'#EdO,aQSO'#EdO,hQSOOO-]QQO'#EcO-kQQO'#EpO-sQPO'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Q%c$pQ%h$yR%q%dQz`R#x!nSw`!nQ#{!sQ#|!tR%g$xQWOQ!TiQ!swR$x#|SSOiT!rw#|T[R!qQgZR!z!PQl]R$w%wQk]Q#O!UR$v%wVj]!U%wX!cl!d$w%fX!bl!d$w%fR#R!WQ$Y#QR%m%OT$W#Q%OU#b![#e#iS$R#Q%OW$S$U$z${$|Q%^$kV%r%x%y%zS$R#Q%OX$S$U$z${$|S$T#Q%OQ$}$UQ%i$zQ%j${R%k$|Q#T!XQ$e#UQ$f#VQ%T$]Q%U$^Q%V$_Q%W$`Q%X$aR%Y$bc#W!X#U#V$]$^$_$`$a$bR#`!ZX#^!Z#[#_$hS#d![%xQ$n#eQ$o#iQ%u%yR%v%zU#c![#e#iV%s%x%y%zRXORaUQ!vzQ!x|T$O!v!xQ#u!lS$s#u%RR%R$[Q!ouR#y!oQ!QgR!{!QQ!VkS#P!V%eR%e$vQ!dlS#j!d%fR%f$wQ%P$YR%n%PQ$c#TR%Z$cQ#[!ZR$g#[Q#_!ZQ$h#[T$i#_$hQ$l#bS%_$l%tR%t%rQeXR!Oe",
|
|
239
|
+
nodeNames: "⚠ SOffset Offset Base64 As Avg Abs Ceil CountDistinct CountSeries Derivative Difference Distinct Floor Rate Irate Deriv Increase Log Log10 Log2 Max Min Mode NonNegativeDerivative NonNegativeDifference Round Spread Stddev Sum Schema DistinctByCollapse Default Fill CountFilter Count First Any Last LastRow Bottom Top MovingAverage Percentile Median Set Int Float String Md5 Histogram Exists Cidr Match Regex Re Regexp RegexpExtract RegexpExtractAll Collect Concat Drain Wildcard QueryString Querystring WithLabels WithoutLabels Unwrap Now Cumsum Window Dbscan Eval Order SOrder Limit Slimit Asc Desc In Not NotIn By And Or LineComment DQL QueryExpr EvalExpr EvalIdentifier EvalCallBody ArgItem Identifier EqlSingle StringLiteral Number FunctionCall FunctionIdentifier FunctionCallBody Expr SingleExpr Pow Mul Div Mod Add Sub Eql Gte Gtr Lte Lss InValue AsExpr OuterArgItem Queted Query Namespace IndexExpr IndexItem DColon DataSourceList DataSourceItem Star QuerySource QueryClause TargetClause Comma Projection ProjectionItem ProjectionField FieldName ProjectionExpr SingleFieldExpr FilterClause FilterExpr InFieldValue BinaryExpr Neq DAnd DOr EqlRegex NeqRegex LimitClause TimeClause TimeRange TimeExpr ByClause ByExpr FieldListExpr OrderClause OffsetClause SLimitClause SOffsetClause SOrderClause OuterFunctionCall OuterFunctionCallBody ShowExpr ShowIdentifier",
|
|
240
|
+
maxTerm: 186,
|
|
241
241
|
propSources: [DQLHighLight],
|
|
242
242
|
skippedNodes: [0,85],
|
|
243
|
-
repeatNodeCount:
|
|
244
|
-
tokenData: "<
|
|
245
|
-
tokenizers: [0, 1, 2, 3, 4],
|
|
243
|
+
repeatNodeCount: 12,
|
|
244
|
+
tokenData: "<y~R|X^#{pq#{qr$prs%Tst(huv)Pvw)Uwx)axy,hyz,mz{,r{|,{|}-Q}!O-V!O!P-[!P!Q.j!Q!R.o!R![/j![!]4s!^!_5S!_!`5a!`!a5v!c!u6T!u!v6f!v!}6T!}#O9U#P#Q9Z#Q#R9`#R#S6T#S#T9e#T#g6T#g#h:{#h#o6T#o#p<d#p#q<i#q#r<t#y#z#{$f$g#{#BY#BZ#{$IS$I_#{$I|$JO#{$JT$JU#{$KV$KW#{&FU&FV#{~$QY$s~X^#{pq#{#y#z#{$f$g#{#BY#BZ#{$IS$I_#{$I|$JO#{$JT$JU#{$KV$KW#{&FU&FV#{~$sQ!_!`$y#r#s%O~%OO$O~~%TO$S~!a%[Y$||#QcOY%zZr%zrs&isz%zz{'r{#O%z#O#P&n#P;'S%z;'S;=`'l<%lO%zc&PW#QcOY%zZr%zrs&is#O%z#O#P&n#P;'S%z;'S;=`'l<%lO%zc&nO#Qcc&qRO;'S%z;'S;=`&z;=`O%zc'PX#QcOY%zZr%zrs&is#O%z#O#P&n#P;'S%z;'S;=`'l;=`<%l%z<%lO%zc'oP;=`<%l%zc'wW#QcOY%zZr%zrs(as#O%z#O#P&n#P;'S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#T#Z4ef4jR#Rf!Q![4e!c!i4e#T#Z4e!P4zP%PS#sr![!]4}X5SO#lX~5XP#c~!_!`5[~5aO#b~~5fQ#P~!_!`5l#r#s5q~5qO#_~~5vO$R~~5{P#a~!_!`6O~6TO#`~~6YS#O~!Q![6T!c!}6T#R#S6T#T#o6T~6kU#O~!Q![6T!c!j6T!j!k6}!k!}6T#R#S6T#T#o6T~7SU#O~!Q![6T!c!q6T!q!r7f!r!}6T#R#S6T#T#o6T~7kU#O~!Q![6T!c!y6T!y!z7}!z!}6T#R#S6T#T#o6T~8SS#O~!Q![6T!c!}6T#R#S8`#T#o6T~8eS#O~!Q![8q!c!}8q#R#S8q#T#o8q~8xS$d~#O~!Q![8q!c!}8q#R#S8q#T#o8q~9ZO$x~~9`O$y~~9eO#X~!a9jV${|Oz:Pz{:i{#S:P#S#T&i#T;'S:P;'S;=`:c<%lO:Pc:STO#S:P#S#T&i#T;'S:P;'S;=`:c<%lO:Pc:fP;=`<%l:Pc:lTO#S:P#S#T(a#T;'S:P;'S;=`:c<%lO:P~;QU#O~!Q![6T!c!}6T#R#S6T#T#[6T#[#];d#]#o6T~;iU#O~!Q![6T!c!}6T#R#S6T#T#c6T#c#d;{#d#o6T~<QU#O~!Q![6T!c!}6T#R#S6T#T#k6T#k#l7}#l#o6T~<iO$}~~<lP#p#q<o~<tO$Q~~<yO%O~",
|
|
245
|
+
tokenizers: [0, 1, 2, 3, 4, 5],
|
|
246
246
|
topRules: {"DQL":[0,86]},
|
|
247
247
|
specialized: [{term: 92, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 92, get: (value, stack) => (funcIndentifier(value) << 1) | 1, external: funcIndentifier, extend: true},{term: 92, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true}],
|
|
248
|
-
tokenPrec:
|
|
248
|
+
tokenPrec: 2304
|
|
249
249
|
});
|
|
250
250
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
251
251
|
const SOffset = 1,
|
|
@@ -379,30 +379,32 @@ const SOffset = 1,
|
|
|
379
379
|
ProjectionItem = 129,
|
|
380
380
|
ProjectionField = 130,
|
|
381
381
|
FieldName = 131,
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
382
|
+
ProjectionExpr = 132,
|
|
383
|
+
SingleFieldExpr = 133,
|
|
384
|
+
FilterClause = 134,
|
|
385
|
+
FilterExpr = 135,
|
|
386
|
+
InFieldValue = 136,
|
|
387
|
+
BinaryExpr = 137,
|
|
388
|
+
Neq = 138,
|
|
389
|
+
DAnd = 139,
|
|
390
|
+
DOr = 140,
|
|
391
|
+
EqlRegex = 141,
|
|
392
|
+
NeqRegex = 142,
|
|
393
|
+
LimitClause = 143,
|
|
394
|
+
TimeClause = 144,
|
|
395
|
+
TimeRange = 145,
|
|
396
|
+
TimeExpr = 146,
|
|
397
|
+
ByClause = 147,
|
|
398
|
+
ByExpr = 148,
|
|
399
|
+
FieldListExpr = 149,
|
|
400
|
+
OrderClause = 150,
|
|
401
|
+
OffsetClause = 151,
|
|
402
|
+
SLimitClause = 152,
|
|
403
|
+
SOffsetClause = 153,
|
|
404
|
+
SOrderClause = 154,
|
|
405
|
+
OuterFunctionCall = 155,
|
|
406
|
+
OuterFunctionCallBody = 156,
|
|
407
|
+
ShowExpr = 157,
|
|
408
|
+
ShowIdentifier = 158;
|
|
407
409
|
|
|
408
|
-
export { Abs, Add, And, Any, ArgItem, As, AsExpr, Asc, Avg, Base64, BinaryExpr, Bottom, By, ByClause, ByExpr, Ceil, Cidr, Collect, Comma, Concat, Count, CountDistinct, CountFilter, CountSeries, Cumsum, DAnd, DColon, DOr, DQL, DataSourceItem, DataSourceList, Dbscan, Default, Deriv, Derivative, Desc, Difference, Distinct, DistinctByCollapse, Div, Drain, Eql, EqlRegex, EqlSingle, Eval, EvalCallBody, EvalExpr, EvalIdentifier, Exists, Expr, FieldListExpr, FieldName, Fill, FilterClause, FilterExpr, First, Float, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Gte, Gtr, Histogram, Identifier, In, InFieldValue, InValue, Increase, IndexExpr, IndexItem, Int, Irate, Last, LastRow, Limit, LimitClause, LineComment, Log, Log10, Log2, Lss, Lte, Match, Max, Md5, Median, Min, Mod, Mode, MovingAverage, Mul, Namespace, Neq, NeqRegex, NonNegativeDerivative, NonNegativeDifference, Not, NotIn, Now, Number, Offset, OffsetClause, Or, Order, OrderClause, OuterArgItem, OuterFunctionCall, OuterFunctionCallBody, Percentile, Pow, Projection, ProjectionField, ProjectionItem, Query, QueryClause, QueryExpr, QuerySource, QueryString, Querystring, Queted, Rate, Re, Regex, Regexp, RegexpExtract, RegexpExtractAll, Round, SLimitClause, SOffset, SOffsetClause, SOrder, SOrderClause, Schema, Set, ShowExpr, ShowIdentifier, SingleExpr, Slimit, Spread, Star, Stddev, String, StringLiteral, Sub, Sum, TargetClause, TimeClause, TimeExpr, TimeRange, Top, Unwrap, Wildcard, Window, WithLabels, WithoutLabels, parser };
|
|
410
|
+
export { Abs, Add, And, Any, ArgItem, As, AsExpr, Asc, Avg, Base64, BinaryExpr, Bottom, By, ByClause, ByExpr, Ceil, Cidr, Collect, Comma, Concat, Count, CountDistinct, CountFilter, CountSeries, Cumsum, DAnd, DColon, DOr, DQL, DataSourceItem, DataSourceList, Dbscan, Default, Deriv, Derivative, Desc, Difference, Distinct, DistinctByCollapse, Div, Drain, Eql, EqlRegex, EqlSingle, Eval, EvalCallBody, EvalExpr, EvalIdentifier, Exists, Expr, FieldListExpr, FieldName, Fill, FilterClause, FilterExpr, First, Float, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Gte, Gtr, Histogram, Identifier, In, InFieldValue, InValue, Increase, IndexExpr, IndexItem, Int, Irate, Last, LastRow, Limit, LimitClause, LineComment, Log, Log10, Log2, Lss, Lte, Match, Max, Md5, Median, Min, Mod, Mode, MovingAverage, Mul, Namespace, Neq, NeqRegex, NonNegativeDerivative, NonNegativeDifference, Not, NotIn, Now, Number, Offset, OffsetClause, Or, Order, OrderClause, OuterArgItem, OuterFunctionCall, OuterFunctionCallBody, Percentile, Pow, Projection, ProjectionExpr, ProjectionField, ProjectionItem, Query, QueryClause, QueryExpr, QuerySource, QueryString, Querystring, Queted, Rate, Re, Regex, Regexp, RegexpExtract, RegexpExtractAll, Round, SLimitClause, SOffset, SOffsetClause, SOrder, SOrderClause, Schema, Set, ShowExpr, ShowIdentifier, SingleExpr, SingleFieldExpr, Slimit, Spread, Star, Stddev, String, StringLiteral, Sub, Sum, TargetClause, TimeClause, TimeExpr, TimeRange, Top, Unwrap, Wildcard, Window, WithLabels, WithoutLabels, parser };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcare/lezer-dql",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "lezer-based dql grammar",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"@lezer/highlight": "^1.1.2",
|
|
34
34
|
"@lezer/lr": "^1.2.3"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "2d083cb1ac59ccc4b126b30c7cc4fdb5f8e07a34"
|
|
37
37
|
}
|