Debian Codegraph @

go/pkg/logql/grammar.peg.go

raw symbols SCIP
1 package logql
2
3 // Code generated by peg /Users/antoine/code/src/github.com/humanlogio/api/go/pkg/logql/grammar.peg DO NOT EDIT.
4
5 import (
6 "fmt"
7 "github.com/humanlogio/api/go/types/v1"
8 "io"
9 "os"
10 "sort"
11 "strconv"
12 "strings"
13 "time"
14 )
15
16 const endSymbol rune = 1114112
17
18 /* The rule types inferred from the grammar are below. */
19 type pegRule uint16
20
21 const (
22 ruleUnknown pegRule = iota
23 ruleGrammar
24 ruleQueryContext
25 ruleQueryContextItem
26 ruleQueryFrom
27 ruleQueryTo
28 ruleQueryMachineContext
29 ruleQuerySessionContext
30 ruleStatements
31 ruleStatement
32 ruleRenderStatement
33 ruleFilterOperator
34 ruleSummarizeOperator
35 ruleSummarizeParameters
36 ruleSummarizeParameter
37 ruleSummarizeByGroupExpressions
38 ruleSummarizeByGroupExpression
39 ruleProjectOperator
40 ruleProjectArg
41 ruleProjectAwayOperator
42 ruleProjectAwayArg
43 ruleProjectKeepOperator
44 ruleProjectKeepArg
45 ruleExtendOperator
46 ruleExtendArg
47 ruleCountOperator
48 ruleDistinctOperator
49 ruleDistinctOperatorArg
50 ruleSampleOperator
51 ruleSearchOperator
52 ruleSearchOperatorCaseSensitivity
53 ruleSearchOperatorPredicate
54 ruleSortOperator
55 ruleSortOperatorArg
56 ruleTakeOperator
57 ruleTopOperator
58 ruleRenderSplitOperator
59 ruleRenderSplitByOperator
60 ruleRenderSplitByOperatorArg
61 ruleExpr
62 ruleExpr1
63 ruleExpr2
64 ruleExpr3
65 ruleExpr4
66 ruleExpr5
67 ruleLiteral
68 ruleFuncCall
69 ruleFuncName
70 ruleFuncArgs
71 ruleFuncArg
72 ruleIdentifier
73 ruleString
74 ruleF64
75 ruleI64
76 ruleBool
77 ruleReservedKeyword
78 ruleArray
79 ruleArrayItem
80 ruleObject
81 ruleObjectItem
82 ruleObjectKey
83 ruleDuration
84 ruleTimestamp
85 ruleDoubleQuoteStringChar
86 ruleExponent
87 ruleDigits
88 ruleRFC3339Nano
89 ruleRFC3339NanoDate
90 ruleRFC3339NanoTime
91 ruleRFC3339NanoTimezone
92 ruleNumber
93 ruleNOT
94 ruleNEG
95 ruleNUM_ADD
96 ruleNUM_SUB
97 ruleNUM_DIV
98 ruleNUM_MUL
99 ruleNUM_MOD
100 ruleLOG_AND
101 ruleLOG_OR
102 ruleCMP_EQ
103 ruleCMP_NOTEQ
104 ruleCMP_GT
105 ruleCMP_GTE
106 ruleCMP_LT
107 ruleCMP_LTE
108 ruleSET_IN
109 ruleSET_NOTIN
110 ruleSTR_EQ_NOCS
111 ruleSTR_NOTEQ_NOCS
112 ruleSTR_CONTAINS
113 ruleSTR_NOT_CONTAINS
114 ruleSTR_CONTAINS_CS
115 ruleSTR_NOT_CONTAINS_CS
116 ruleSTR_STARTSWITH
117 ruleSTR_NOT_STARTSWITH
118 ruleSTR_STARTSWITH_CS
119 ruleSTR_NOT_STARTSWITH_CS
120 ruleSTR_ENDSWITH
121 ruleSTR_NOT_ENDSWITH
122 ruleSTR_ENDSWITH_CS
123 ruleSTR_NOT_ENDSWITH_CS
124 ruleSTR_IN_NOCS
125 ruleSTR_NOT_IN_NOCS
126 ruleSTR_NOT_MATCHES_REGEX
127 ruleSTR_MATCHES_REGEX
128 ruleSTR_HAS
129 ruleSTR_HAS_CS
130 rulePIPE
131 ruleL_PARENS
132 ruleR_PARENS
133 ruleL_BRACKET
134 ruleR_BRACKET
135 ruleL_SQUIGGLY
136 ruleR_SQUIGGLY
137 ruleCOLON
138 ruleCOMMA
139 ruleSpace
140 ruleMustSpace
141 ruleWhitespace
142 ruleEOL
143 ruleEOF
144 ruleAction0
145 ruleAction1
146 ruleAction2
147 ruleAction3
148 ruleAction4
149 ruleAction5
150 ruleAction6
151 ruleAction7
152 ruleAction8
153 ruleAction9
154 ruleAction10
155 ruleAction11
156 ruleAction12
157 ruleAction13
158 ruleAction14
159 ruleAction15
160 ruleAction16
161 ruleAction17
162 ruleAction18
163 ruleAction19
164 ruleAction20
165 ruleAction21
166 ruleAction22
167 ruleAction23
168 ruleAction24
169 ruleAction25
170 ruleAction26
171 ruleAction27
172 ruleAction28
173 ruleAction29
174 ruleAction30
175 ruleAction31
176 ruleAction32
177 ruleAction33
178 ruleAction34
179 ruleAction35
180 ruleAction36
181 ruleAction37
182 ruleAction38
183 ruleAction39
184 ruleAction40
185 ruleAction41
186 ruleAction42
187 ruleAction43
188 ruleAction44
189 ruleAction45
190 ruleAction46
191 ruleAction47
192 ruleAction48
193 ruleAction49
194 ruleAction50
195 ruleAction51
196 ruleAction52
197 ruleAction53
198 ruleAction54
199 ruleAction55
200 ruleAction56
201 ruleAction57
202 ruleAction58
203 ruleAction59
204 ruleAction60
205 ruleAction61
206 ruleAction62
207 ruleAction63
208 ruleAction64
209 ruleAction65
210 ruleAction66
211 ruleAction67
212 ruleAction68
213 ruleAction69
214 ruleAction70
215 ruleAction71
216 ruleAction72
217 ruleAction73
218 ruleAction74
219 ruleAction75
220 ruleAction76
221 ruleAction77
222 ruleAction78
223 ruleAction79
224 ruleAction80
225 ruleAction81
226 ruleAction82
227 ruleAction83
228 ruleAction84
229 ruleAction85
230 ruleAction86
231 ruleAction87
232 ruleAction88
233 ruleAction89
234 ruleAction90
235 ruleAction91
236 ruleAction92
237 ruleAction93
238 ruleAction94
239 ruleAction95
240 ruleAction96
241 ruleAction97
242 ruleAction98
243 ruleAction99
244 ruleAction100
245 ruleAction101
246 ruleAction102
247 ruleAction103
248 ruleAction104
249 ruleAction105
250 ruleAction106
251 ruleAction107
252 ruleAction108
253 ruleAction109
254 ruleAction110
255 ruleAction111
256 ruleAction112
257 ruleAction113
258 ruleAction114
259 ruleAction115
260 ruleAction116
261 ruleAction117
262 ruleAction118
263 ruleAction119
264 ruleAction120
265 ruleAction121
266 rulePegText
267 ruleAction122
268 ruleAction123
269 ruleAction124
270 ruleAction125
271 ruleAction126
272 ruleAction127
273 ruleAction128
274 ruleAction129
275 ruleAction130
276 ruleAction131
277 ruleAction132
278 ruleAction133
279 ruleAction134
280 ruleAction135
281 ruleAction136
282 ruleAction137
283 ruleAction138
284 ruleAction139
285 ruleAction140
286 ruleAction141
287 ruleAction142
288 )
289
290 var rul3s = [...]string{
291 "Unknown",
292 "Grammar",
293 "QueryContext",
294 "QueryContextItem",
295 "QueryFrom",
296 "QueryTo",
297 "QueryMachineContext",
298 "QuerySessionContext",
299 "Statements",
300 "Statement",
301 "RenderStatement",
302 "FilterOperator",
303 "SummarizeOperator",
304 "SummarizeParameters",
305 "SummarizeParameter",
306 "SummarizeByGroupExpressions",
307 "SummarizeByGroupExpression",
308 "ProjectOperator",
309 "ProjectArg",
310 "ProjectAwayOperator",
311 "ProjectAwayArg",
312 "ProjectKeepOperator",
313 "ProjectKeepArg",
314 "ExtendOperator",
315 "ExtendArg",
316 "CountOperator",
317 "DistinctOperator",
318 "DistinctOperatorArg",
319 "SampleOperator",
320 "SearchOperator",
321 "SearchOperatorCaseSensitivity",
322 "SearchOperatorPredicate",
323 "SortOperator",
324 "SortOperatorArg",
325 "TakeOperator",
326 "TopOperator",
327 "RenderSplitOperator",
328 "RenderSplitByOperator",
329 "RenderSplitByOperatorArg",
330 "Expr",
331 "Expr1",
332 "Expr2",
333 "Expr3",
334 "Expr4",
335 "Expr5",
336 "Literal",
337 "FuncCall",
338 "FuncName",
339 "FuncArgs",
340 "FuncArg",
341 "Identifier",
342 "String",
343 "F64",
344 "I64",
345 "Bool",
346 "ReservedKeyword",
347 "Array",
348 "ArrayItem",
349 "Object",
350 "ObjectItem",
351 "ObjectKey",
352 "Duration",
353 "Timestamp",
354 "DoubleQuoteStringChar",
355 "Exponent",
356 "Digits",
357 "RFC3339Nano",
358 "RFC3339NanoDate",
359 "RFC3339NanoTime",
360 "RFC3339NanoTimezone",
361 "Number",
362 "NOT",
363 "NEG",
364 "NUM_ADD",
365 "NUM_SUB",
366 "NUM_DIV",
367 "NUM_MUL",
368 "NUM_MOD",
369 "LOG_AND",
370 "LOG_OR",
371 "CMP_EQ",
372 "CMP_NOTEQ",
373 "CMP_GT",
374 "CMP_GTE",
375 "CMP_LT",
376 "CMP_LTE",
377 "SET_IN",
378 "SET_NOTIN",
379 "STR_EQ_NOCS",
380 "STR_NOTEQ_NOCS",
381 "STR_CONTAINS",
382 "STR_NOT_CONTAINS",
383 "STR_CONTAINS_CS",
384 "STR_NOT_CONTAINS_CS",
385 "STR_STARTSWITH",
386 "STR_NOT_STARTSWITH",
387 "STR_STARTSWITH_CS",
388 "STR_NOT_STARTSWITH_CS",
389 "STR_ENDSWITH",
390 "STR_NOT_ENDSWITH",
391 "STR_ENDSWITH_CS",
392 "STR_NOT_ENDSWITH_CS",
393 "STR_IN_NOCS",
394 "STR_NOT_IN_NOCS",
395 "STR_NOT_MATCHES_REGEX",
396 "STR_MATCHES_REGEX",
397 "STR_HAS",
398 "STR_HAS_CS",
399 "PIPE",
400 "L_PARENS",
401 "R_PARENS",
402 "L_BRACKET",
403 "R_BRACKET",
404 "L_SQUIGGLY",
405 "R_SQUIGGLY",
406 "COLON",
407 "COMMA",
408 "Space",
409 "MustSpace",
410 "Whitespace",
411 "EOL",
412 "EOF",
413 "Action0",
414 "Action1",
415 "Action2",
416 "Action3",
417 "Action4",
418 "Action5",
419 "Action6",
420 "Action7",
421 "Action8",
422 "Action9",
423 "Action10",
424 "Action11",
425 "Action12",
426 "Action13",
427 "Action14",
428 "Action15",
429 "Action16",
430 "Action17",
431 "Action18",
432 "Action19",
433 "Action20",
434 "Action21",
435 "Action22",
436 "Action23",
437 "Action24",
438 "Action25",
439 "Action26",
440 "Action27",
441 "Action28",
442 "Action29",
443 "Action30",
444 "Action31",
445 "Action32",
446 "Action33",
447 "Action34",
448 "Action35",
449 "Action36",
450 "Action37",
451 "Action38",
452 "Action39",
453 "Action40",
454 "Action41",
455 "Action42",
456 "Action43",
457 "Action44",
458 "Action45",
459 "Action46",
460 "Action47",
461 "Action48",
462 "Action49",
463 "Action50",
464 "Action51",
465 "Action52",
466 "Action53",
467 "Action54",
468 "Action55",
469 "Action56",
470 "Action57",
471 "Action58",
472 "Action59",
473 "Action60",
474 "Action61",
475 "Action62",
476 "Action63",
477 "Action64",
478 "Action65",
479 "Action66",
480 "Action67",
481 "Action68",
482 "Action69",
483 "Action70",
484 "Action71",
485 "Action72",
486 "Action73",
487 "Action74",
488 "Action75",
489 "Action76",
490 "Action77",
491 "Action78",
492 "Action79",
493 "Action80",
494 "Action81",
495 "Action82",
496 "Action83",
497 "Action84",
498 "Action85",
499 "Action86",
500 "Action87",
501 "Action88",
502 "Action89",
503 "Action90",
504 "Action91",
505 "Action92",
506 "Action93",
507 "Action94",
508 "Action95",
509 "Action96",
510 "Action97",
511 "Action98",
512 "Action99",
513 "Action100",
514 "Action101",
515 "Action102",
516 "Action103",
517 "Action104",
518 "Action105",
519 "Action106",
520 "Action107",
521 "Action108",
522 "Action109",
523 "Action110",
524 "Action111",
525 "Action112",
526 "Action113",
527 "Action114",
528 "Action115",
529 "Action116",
530 "Action117",
531 "Action118",
532 "Action119",
533 "Action120",
534 "Action121",
535 "PegText",
536 "Action122",
537 "Action123",
538 "Action124",
539 "Action125",
540 "Action126",
541 "Action127",
542 "Action128",
543 "Action129",
544 "Action130",
545 "Action131",
546 "Action132",
547 "Action133",
548 "Action134",
549 "Action135",
550 "Action136",
551 "Action137",
552 "Action138",
553 "Action139",
554 "Action140",
555 "Action141",
556 "Action142",
557 }
558
559 type token32 struct {
560 pegRule
561 begin, end uint32
562 }
563
564 func (t *token32) String() string {
565 return fmt.Sprintf("\x1B[34m%v\x1B[m %v %v", rul3s[t.pegRule], t.begin, t.end)
566 }
567
568 type node32 struct {
569 token32
570 up, next *node32
571 }
572
573 func (node *node32) print(w io.Writer, pretty bool, buffer string) {
574 var print func(node *node32, depth int)
575 print = func(node *node32, depth int) {
576 for node != nil {
577 for c := 0; c < depth; c++ {
578 fmt.Fprintf(w, " ")
579 }
580 rule := rul3s[node.pegRule]
581 quote := strconv.Quote(string(([]rune(buffer)[node.begin:node.end])))
582 if !pretty {
583 fmt.Fprintf(w, "%v %v\n", rule, quote)
584 } else {
585 fmt.Fprintf(w, "\x1B[36m%v\x1B[m %v\n", rule, quote)
586 }
587 if node.up != nil {
588 print(node.up, depth+1)
589 }
590 node = node.next
591 }
592 }
593 print(node, 0)
594 }
595
596 func (node *node32) Print(w io.Writer, buffer string) {
597 node.print(w, false, buffer)
598 }
599
600 func (node *node32) PrettyPrint(w io.Writer, buffer string) {
601 node.print(w, true, buffer)
602 }
603
604 type tokens32 struct {
605 tree []token32
606 }
607
608 func (t *tokens32) Trim(length uint32) {
609 t.tree = t.tree[:length]
610 }
611
612 func (t *tokens32) Print() {
613 for _, token := range t.tree {
614 fmt.Println(token.String())
615 }
616 }
617
618 func (t *tokens32) AST() *node32 {
619 type element struct {
620 node *node32
621 down *element
622 }
623 tokens := t.Tokens()
624 var stack *element
625 for _, token := range tokens {
626 if token.begin == token.end {
627 continue
628 }
629 node := &node32{token32: token}
630 for stack != nil && stack.node.begin >= token.begin && stack.node.end <= token.end {
631 stack.node.next = node.up
632 node.up = stack.node
633 stack = stack.down
634 }
635 stack = &element{node: node, down: stack}
636 }
637 if stack != nil {
638 return stack.node
639 }
640 return nil
641 }
642
643 func (t *tokens32) PrintSyntaxTree(buffer string) {
644 t.AST().Print(os.Stdout, buffer)
645 }
646
647 func (t *tokens32) WriteSyntaxTree(w io.Writer, buffer string) {
648 t.AST().Print(w, buffer)
649 }
650
651 func (t *tokens32) PrettyPrintSyntaxTree(buffer string) {
652 t.AST().PrettyPrint(os.Stdout, buffer)
653 }
654
655 func (t *tokens32) Add(rule pegRule, begin, end, index uint32) {
656 tree, i := t.tree, int(index)
657 if i >= len(tree) {
658 t.tree = append(tree, token32{pegRule: rule, begin: begin, end: end})
659 return
660 }
661 tree[i] = token32{pegRule: rule, begin: begin, end: end}
662 }
663
664 func (t *tokens32) Tokens() []token32 {
665 return t.tree
666 }
667
668 type logQL struct {
669
670 // the query being built
671 LogQuery *typesv1.LogQuery
672
673 // stack for recursive generic structures
674 Exprs []*typesv1.Expr
675
676 // accumulate statements
677 Stmts []*typesv1.Statement
678 RenderStmt *typesv1.RenderStatement
679
680 // scratch space for table operators
681 FilterOp *typesv1.FilterOperator
682 SummarizeOp *typesv1.SummarizeOperator
683 ProjectOp *typesv1.ProjectOperator
684 ProjectAwayOp *typesv1.ProjectAwayOperator
685 ProjectKeepOp *typesv1.ProjectKeepOperator
686 ExtendOp *typesv1.ExtendOperator
687 CountOp *typesv1.CountOperator
688 DistinctOp *typesv1.DistinctOperator
689 SampleOp *typesv1.SampleOperator
690 SearchOp *typesv1.SearchOperator
691 SortOp *typesv1.SortOperator
692 TakeOp *typesv1.TakeOperator
693 TopOp *typesv1.TopOperator
694
695 // scratch space for search predicates
696 identifier string
697
698 // scratch space for render statements
699 SplitByOp *typesv1.SplitOperator
700
701 // scratch space, not needed but `Literal` being a type is convenient
702 Literal *typesv1.Val
703
704 // scalars
705 String string
706 F64 float64
707 I64 int64
708 Bool bool
709 Timestamp time.Time
710 Duration time.Duration
711
712 // stack for non-expr recursive structures
713 Arrs [][]*typesv1.Val
714 ObjsKVs [][]*typesv1.KV
715 FuncCalls []*typesv1.FuncCall
716
717 // errors seen along the way
718 err error
719
720 Buffer string
721 buffer []rune
722 rules [266]func() bool
723 parse func(rule ...int) error
724 reset func()
725 Pretty bool
726 tokens32
727 }
728
729 func (p *logQL) Parse(rule ...int) error {
730 return p.parse(rule...)
731 }
732
733 func (p *logQL) Reset() {
734 p.reset()
735 }
736
737 type textPosition struct {
738 line, symbol int
739 }
740
741 type textPositionMap map[int]textPosition
742
743 func translatePositions(buffer []rune, positions []int) textPositionMap {
744 length, translations, j, line, symbol := len(positions), make(textPositionMap, len(positions)), 0, 1, 0
745 sort.Ints(positions)
746
747 search:
748 for i, c := range buffer {
749 if c == '\n' {
750 line, symbol = line+1, 0
751 } else {
752 symbol++
753 }
754 if i == positions[j] {
755 translations[positions[j]] = textPosition{line, symbol}
756 for j++; j < length; j++ {
757 if i != positions[j] {
758 continue search
759 }
760 }
761 break search
762 }
763 }
764
765 return translations
766 }
767
768 type parseError struct {
769 p *logQL
770 max token32
771 }
772
773 func (e *parseError) Error() string {
774 tokens, err := []token32{e.max}, "\n"
775 positions, p := make([]int, 2*len(tokens)), 0
776 for _, token := range tokens {
777 positions[p], p = int(token.begin), p+1
778 positions[p], p = int(token.end), p+1
779 }
780 translations := translatePositions(e.p.buffer, positions)
781 format := "parse error near %v (line %v symbol %v - line %v symbol %v):\n%v\n"
782 if e.p.Pretty {
783 format = "parse error near \x1B[34m%v\x1B[m (line %v symbol %v - line %v symbol %v):\n%v\n"
784 }
785 for _, token := range tokens {
786 begin, end := int(token.begin), int(token.end)
787 err += fmt.Sprintf(format,
788 rul3s[token.pegRule],
789 translations[begin].line, translations[begin].symbol,
790 translations[end].line, translations[end].symbol,
791 strconv.Quote(string(e.p.buffer[begin:end])))
792 }
793
794 return err
795 }
796
797 func (p *logQL) PrintSyntaxTree() {
798 if p.Pretty {
799 p.tokens32.PrettyPrintSyntaxTree(p.Buffer)
800 } else {
801 p.tokens32.PrintSyntaxTree(p.Buffer)
802 }
803 }
804
805 func (p *logQL) WriteSyntaxTree(w io.Writer) {
806 p.tokens32.WriteSyntaxTree(w, p.Buffer)
807 }
808
809 func (p *logQL) SprintSyntaxTree() string {
810 var bldr strings.Builder
811 p.WriteSyntaxTree(&bldr)
812 return bldr.String()
813 }
814
815 func (p *logQL) Execute() {
816 buffer, _buffer, text, begin, end := p.Buffer, p.buffer, "", 0, 0
817 for _, token := range p.Tokens() {
818 switch token.pegRule {
819
820 case rulePegText:
821 begin, end = int(token.begin), int(token.end)
822 text = string(_buffer[begin:end])
823
824 case ruleAction0:
825 p.SetQuery(p.Stmts)
826 case ruleAction1:
827 p.SetQuery(p.Stmts)
828 case ruleAction2:
829 p.SetFrom(p.popExpr())
830 case ruleAction3:
831 p.SetTo(p.popExpr())
832 case ruleAction4:
833 p.SetContextMachine(typesv1.BinaryOp_CMP_EQ, p.popExpr())
834 case ruleAction5:
835 p.SetContextMachine(typesv1.BinaryOp_CMP_NOTEQ, p.popExpr())
836 case ruleAction6:
837 p.SetContextMachine(typesv1.BinaryOp_SET_IN, p.popExpr())
838 case ruleAction7:
839 p.SetContextMachine(typesv1.BinaryOp_SET_NOTIN, p.popExpr())
840 case ruleAction8:
841 p.SetContextSession(typesv1.BinaryOp_CMP_EQ, p.popExpr())
842 case ruleAction9:
843 p.SetContextSession(typesv1.BinaryOp_CMP_NOTEQ, p.popExpr())
844 case ruleAction10:
845 p.SetContextSession(typesv1.BinaryOp_SET_IN, p.popExpr())
846 case ruleAction11:
847 p.SetContextSession(typesv1.BinaryOp_SET_NOTIN, p.popExpr())
848 case ruleAction12:
849 p.addFilterStatement(p.FilterOp)
850 case ruleAction13:
851 p.addSummarizeStatement(p.SummarizeOp)
852 case ruleAction14:
853 p.addProjectStatement(p.ProjectOp)
854 case ruleAction15:
855 p.addProjectAwayStatement(p.ProjectAwayOp)
856 case ruleAction16:
857 p.addProjectKeepStatement(p.ProjectKeepOp)
858 case ruleAction17:
859 p.addExtendStatement(p.ExtendOp)
860 case ruleAction18:
861 p.addCountStatement(p.CountOp)
862 case ruleAction19:
863 p.addDistinctStatement(p.DistinctOp)
864 case ruleAction20:
865 p.addSampleStatement(p.SampleOp)
866 case ruleAction21:
867 p.addSearchStatement(p.SearchOp)
868 case ruleAction22:
869 p.addSortStatement(p.SortOp)
870 case ruleAction23:
871 p.addTakeStatement(p.TakeOp)
872 case ruleAction24:
873 p.addTopStatement(p.TopOp)
874 case ruleAction25:
875 p.setRenderSplitByStatement(p.SplitByOp)
876 case ruleAction26:
877 p.setFilterOp(p.popExpr())
878 case ruleAction27:
879 p.startSummarizeOp()
880 case ruleAction28:
881 p.startSummarizeParameterNamedFunc(text)
882 case ruleAction29:
883 p.endSummarizeParameterNamedFunc(p.popFunc())
884 case ruleAction30:
885 p.addSummarizeParameterUnnamedFunc(p.popFunc())
886 case ruleAction31:
887 p.startSummarizeByUnnamedGroupExpression(text)
888 case ruleAction32:
889 p.endSummarizeByUnnamedGroupExpression(p.popExpr())
890 case ruleAction33:
891 p.addSummarizeByUnnamedGroupExpression(p.popExpr())
892 case ruleAction34:
893 p.startProjectOp()
894 case ruleAction35:
895 p.startProjectOpArg(text)
896 case ruleAction36:
897 p.setProjectOpArgValue(p.popExpr())
898 case ruleAction37:
899 p.startProjectAwayOp()
900 case ruleAction38:
901 p.addProjectAwayOpArg(text)
902 case ruleAction39:
903 p.startProjectKeepOp()
904 case ruleAction40:
905 p.addProjectKeepOpArg(text)
906 case ruleAction41:
907 p.startExtendOp()
908 case ruleAction42:
909 p.setExtendOpArgColumnName(text)
910 case ruleAction43:
911 p.setExtendOpArgValue(p.popExpr())
912 case ruleAction44:
913 p.startCountOp()
914 case ruleAction45:
915 p.startDistinctOp()
916 case ruleAction46:
917 p.addDistinctOpArg(text)
918 case ruleAction47:
919 p.startSampleOp()
920 case ruleAction48:
921 p.setSampleOpCount(p.I64)
922 case ruleAction49:
923 p.startSearchOp()
924 case ruleAction50:
925 p.setSearchOpKindDefault()
926 case ruleAction51:
927 p.setSearchOpKindCaseInsensitive()
928 case ruleAction52:
929 p.setSearchOpKindCaseSensitive()
930 case ruleAction53:
931 p.setSearchOpPredicateLiteral(text)
932 case ruleAction54:
933 p.identifier = text
934 case ruleAction55:
935 p.setSearchOpPredicateFieldSearch(p.identifier, p.String)
936 case ruleAction56:
937 p.setSearchOpPredicateExactSearch(p.identifier, p.String)
938 case ruleAction57:
939 p.setSearchOpPredicateRegexSearch(p.identifier, p.String)
940 case ruleAction58:
941 p.startSortOp()
942 case ruleAction59:
943 p.startSortOpArg(text)
944 case ruleAction60:
945 p.setSortOpArgOrderAsc()
946 case ruleAction61:
947 p.setSortOpArgOrderDesc()
948 case ruleAction62:
949 p.startTakeOp()
950 case ruleAction63:
951 p.setTakeOpCount(p.I64)
952 case ruleAction64:
953 p.startTopOp()
954 case ruleAction65:
955 p.setTopOpCount(p.I64)
956 case ruleAction66:
957 p.setTopOpByColumnScalar(p.popExpr())
958 case ruleAction67:
959 p.setTopOpByColumnOrderAsc()
960 case ruleAction68:
961 p.setTopOpByColumnOrderDesc()
962 case ruleAction69:
963 p.startRenderSplitOp()
964 case ruleAction70:
965 p.addRenderSplitByOp(p.popExpr())
966 case ruleAction71:
967 rhs, lhs := p.popExpr(), p.popExpr()
968 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_ADD, rhs))
969 case ruleAction72:
970 rhs, lhs := p.popExpr(), p.popExpr()
971 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_SUB, rhs))
972 case ruleAction73:
973 rhs, lhs := p.popExpr(), p.popExpr()
974 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_MUL, rhs))
975 case ruleAction74:
976 rhs, lhs := p.popExpr(), p.popExpr()
977 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_DIV, rhs))
978 case ruleAction75:
979 rhs, lhs := p.popExpr(), p.popExpr()
980 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_MOD, rhs))
981 case ruleAction76:
982 rhs, lhs := p.popExpr(), p.popExpr()
983 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_LOG_AND, rhs))
984 case ruleAction77:
985 rhs, lhs := p.popExpr(), p.popExpr()
986 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_LOG_OR, rhs))
987 case ruleAction78:
988 rhs, lhs := p.popExpr(), p.popExpr()
989 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_EQ, rhs))
990 case ruleAction79:
991 rhs, lhs := p.popExpr(), p.popExpr()
992 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_NOTEQ, rhs))
993 case ruleAction80:
994 rhs, lhs := p.popExpr(), p.popExpr()
995 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_GT, rhs))
996 case ruleAction81:
997 rhs, lhs := p.popExpr(), p.popExpr()
998 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_GTE, rhs))
999 case ruleAction82:
1000 rhs, lhs := p.popExpr(), p.popExpr()
1001 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_LT, rhs))
1002 case ruleAction83:
1003 rhs, lhs := p.popExpr(), p.popExpr()
1004 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_LTE, rhs))
1005 case ruleAction84:
1006 rhs, lhs := p.popExpr(), p.popExpr()
1007 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_SET_IN, rhs))
1008 case ruleAction85:
1009 rhs, lhs := p.popExpr(), p.popExpr()
1010 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_SET_NOTIN, rhs))
1011 case ruleAction86:
1012 rhs, lhs := p.popExpr(), p.popExpr()
1013 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_EQ_NOCS, rhs))
1014 case ruleAction87:
1015 rhs, lhs := p.popExpr(), p.popExpr()
1016 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOTEQ_NOCS, rhs))
1017 case ruleAction88:
1018 rhs, lhs := p.popExpr(), p.popExpr()
1019 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_CONTAINS, rhs))
1020 case ruleAction89:
1021 rhs, lhs := p.popExpr(), p.popExpr()
1022 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_CONTAINS, rhs))
1023 case ruleAction90:
1024 rhs, lhs := p.popExpr(), p.popExpr()
1025 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_CONTAINS_CS, rhs))
1026 case ruleAction91:
1027 rhs, lhs := p.popExpr(), p.popExpr()
1028 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_CONTAINS_CS, rhs))
1029 case ruleAction92:
1030 rhs, lhs := p.popExpr(), p.popExpr()
1031 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_STARTSWITH, rhs))
1032 case ruleAction93:
1033 rhs, lhs := p.popExpr(), p.popExpr()
1034 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_STARTSWITH, rhs))
1035 case ruleAction94:
1036 rhs, lhs := p.popExpr(), p.popExpr()
1037 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_STARTSWITH_CS, rhs))
1038 case ruleAction95:
1039 rhs, lhs := p.popExpr(), p.popExpr()
1040 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_STARTSWITH_CS, rhs))
1041 case ruleAction96:
1042 rhs, lhs := p.popExpr(), p.popExpr()
1043 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_ENDSWITH, rhs))
1044 case ruleAction97:
1045 rhs, lhs := p.popExpr(), p.popExpr()
1046 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_ENDSWITH, rhs))
1047 case ruleAction98:
1048 rhs, lhs := p.popExpr(), p.popExpr()
1049 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_ENDSWITH_CS, rhs))
1050 case ruleAction99:
1051 rhs, lhs := p.popExpr(), p.popExpr()
1052 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_ENDSWITH_CS, rhs))
1053 case ruleAction100:
1054 rhs, lhs := p.popExpr(), p.popExpr()
1055 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_IN_NOCS, rhs))
1056 case ruleAction101:
1057 rhs, lhs := p.popExpr(), p.popExpr()
1058 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_IN_NOCS, rhs))
1059 case ruleAction102:
1060 rhs, lhs := p.popExpr(), p.popExpr()
1061 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_MATCHES_REGEX, rhs))
1062 case ruleAction103:
1063 rhs, lhs := p.popExpr(), p.popExpr()
1064 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_MATCHES_REGEX, rhs))
1065 case ruleAction104:
1066 rhs, lhs := p.popExpr(), p.popExpr()
1067 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_HAS, rhs))
1068 case ruleAction105:
1069 rhs, lhs := p.popExpr(), p.popExpr()
1070 p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_HAS_CS, rhs))
1071 case ruleAction106:
1072 index, x := p.popExpr(), p.popExpr()
1073 p.pushExpr(typesv1.ExprIndexor(x, index))
1074 case ruleAction107:
1075 p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NOT, typesv1.ExprLiteral(p.Literal)))
1076 p.Literal = nil
1077 case ruleAction108:
1078 arg := p.popExpr()
1079 p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NOT, arg))
1080 case ruleAction109:
1081 p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NEG, typesv1.ExprLiteral(p.Literal)))
1082 p.Literal = nil
1083 case ruleAction110:
1084 arg := p.popExpr()
1085 p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NEG, arg))
1086 case ruleAction111:
1087 p.pushExpr(typesv1.ExprLiteral(p.Literal))
1088 p.Literal = nil
1089 case ruleAction112:
1090 fn := p.popFunc()
1091 p.pushExpr(typesv1.ExprFuncCall(fn.Name, fn.Args...))
1092 case ruleAction113:
1093 p.Literal = typesv1.ValStr(p.String)
1094 case ruleAction114:
1095 p.Literal = typesv1.ValDuration(p.Duration)
1096 case ruleAction115:
1097 p.Literal = typesv1.ValTime(p.Timestamp)
1098 case ruleAction116:
1099 p.Literal = typesv1.ValF64(p.F64)
1100 case ruleAction117:
1101 p.Literal = typesv1.ValI64(p.I64)
1102 case ruleAction118:
1103 p.Literal = typesv1.ValBool(p.Bool)
1104 case ruleAction119:
1105 p.Literal = typesv1.ValArr(p.popArray()...)
1106 case ruleAction120:
1107 p.Literal = typesv1.ValObj(p.popObj()...)
1108 case ruleAction121:
1109 p.pushFunc()
1110 case ruleAction122:
1111 p.setFuncName(text)
1112 case ruleAction123:
1113 p.addFuncArg(p.popExpr())
1114 case ruleAction124:
1115 p.pushExpr(typesv1.ExprIdentifier(text))
1116 case ruleAction125:
1117 p.pushExpr(typesv1.ExprIdentifier(text))
1118 case ruleAction126:
1119 p.pushExpr(typesv1.ExprIdentifier(text))
1120 case ruleAction127:
1121 p.String = p.parseDoubleQuoteString(text)
1122 case ruleAction128:
1123 p.F64 = p.parseFloat64(text)
1124 case ruleAction129:
1125 p.F64 = p.parseFloat64(text)
1126 case ruleAction130:
1127 p.F64 = p.parseFloat64(text)
1128 case ruleAction131:
1129 p.I64 = 0
1130 case ruleAction132:
1131 p.I64 = p.parseInt64(text)
1132 case ruleAction133:
1133 p.Bool = true
1134 case ruleAction134:
1135 p.Bool = false
1136 case ruleAction135:
1137 p.pushArray()
1138 case ruleAction136:
1139 p.addArrItem(p.Literal)
1140 p.Literal = nil
1141 case ruleAction137:
1142 p.pushObj()
1143 case ruleAction138:
1144 p.closeObjItem(p.Literal)
1145 p.Literal = nil
1146 case ruleAction139:
1147 p.startObjItem(p.String)
1148 case ruleAction140:
1149 p.Duration = p.parseDurationF64(p.F64, text)
1150 case ruleAction141:
1151 p.Duration = p.parseDurationI64(p.I64, text)
1152 case ruleAction142:
1153 p.Timestamp = p.parseTime(time.RFC3339Nano, text)
1154
1155 }
1156 }
1157 _, _, _, _, _ = buffer, _buffer, text, begin, end
1158 }
1159
1160 func Pretty(pretty bool) func(*logQL) error {
1161 return func(p *logQL) error {
1162 p.Pretty = pretty
1163 return nil
1164 }
1165 }
1166
1167 func Size(size int) func(*logQL) error {
1168 return func(p *logQL) error {
1169 p.tokens32 = tokens32{tree: make([]token32, 0, size)}
1170 return nil
1171 }
1172 }
1173 func (p *logQL) Init(options ...func(*logQL) error) error {
1174 var (
1175 max token32
1176 position, tokenIndex uint32
1177 buffer []rune
1178 )
1179 for _, option := range options {
1180 err := option(p)
1181 if err != nil {
1182 return err
1183 }
1184 }
1185 p.reset = func() {
1186 max = token32{}
1187 position, tokenIndex = 0, 0
1188
1189 p.buffer = []rune(p.Buffer)
1190 if len(p.buffer) == 0 || p.buffer[len(p.buffer)-1] != endSymbol {
1191 p.buffer = append(p.buffer, endSymbol)
1192 }
1193 buffer = p.buffer
1194 }
1195 p.reset()
1196
1197 _rules := p.rules
1198 tree := p.tokens32
1199 p.parse = func(rule ...int) error {
1200 r := 1
1201 if len(rule) > 0 {
1202 r = rule[0]
1203 }
1204 matches := p.rules[r]()
1205 p.tokens32 = tree
1206 if matches {
1207 p.Trim(tokenIndex)
1208 return nil
1209 }
1210 return &parseError{p, max}
1211 }
1212
1213 add := func(rule pegRule, begin uint32) {
1214 tree.Add(rule, begin, position, tokenIndex)
1215 tokenIndex++
1216 if begin != position && position > max.end {
1217 max = token32{rule, begin, position}
1218 }
1219 }
1220
1221 matchDot := func() bool {
1222 if buffer[position] != endSymbol {
1223 position++
1224 return true
1225 }
1226 return false
1227 }
1228
1229 /*matchChar := func(c byte) bool {
1230 if buffer[position] == c {
1231 position++
1232 return true
1233 }
1234 return false
1235 }*/
1236
1237 /*matchRange := func(lower byte, upper byte) bool {
1238 if c := buffer[position]; c >= lower && c <= upper {
1239 position++
1240 return true
1241 }
1242 return false
1243 }*/
1244
1245 _rules = [...]func() bool{
1246 nil,
1247 /* 0 Grammar <- <(Space ((Statements Action0) / ((QueryContext MustSpace)? Statements Action1) / QueryContext)? RenderStatement? EOF)> */
1248 func() bool {
1249 position0, tokenIndex0 := position, tokenIndex
1250 {
1251 position1 := position
1252 if !_rules[ruleSpace]() {
1253 goto l0
1254 }
1255 {
1256 position2, tokenIndex2 := position, tokenIndex
1257 {
1258 position4, tokenIndex4 := position, tokenIndex
1259 if !_rules[ruleStatements]() {
1260 goto l5
1261 }
1262 if !_rules[ruleAction0]() {
1263 goto l5
1264 }
1265 goto l4
1266 l5:
1267 position, tokenIndex = position4, tokenIndex4
1268 {
1269 position7, tokenIndex7 := position, tokenIndex
1270 if !_rules[ruleQueryContext]() {
1271 goto l7
1272 }
1273 if !_rules[ruleMustSpace]() {
1274 goto l7
1275 }
1276 goto l8
1277 l7:
1278 position, tokenIndex = position7, tokenIndex7
1279 }
1280 l8:
1281 if !_rules[ruleStatements]() {
1282 goto l6
1283 }
1284 if !_rules[ruleAction1]() {
1285 goto l6
1286 }
1287 goto l4
1288 l6:
1289 position, tokenIndex = position4, tokenIndex4
1290 if !_rules[ruleQueryContext]() {
1291 goto l2
1292 }
1293 }
1294 l4:
1295 goto l3
1296 l2:
1297 position, tokenIndex = position2, tokenIndex2
1298 }
1299 l3:
1300 {
1301 position9, tokenIndex9 := position, tokenIndex
1302 if !_rules[ruleRenderStatement]() {
1303 goto l9
1304 }
1305 goto l10
1306 l9:
1307 position, tokenIndex = position9, tokenIndex9
1308 }
1309 l10:
1310 if !_rules[ruleEOF]() {
1311 goto l0
1312 }
1313 add(ruleGrammar, position1)
1314 }
1315 return true
1316 l0:
1317 position, tokenIndex = position0, tokenIndex0
1318 return false
1319 },
1320 /* 1 QueryContext <- <(L_SQUIGGLY Space QueryContextItem+ R_SQUIGGLY)> */
1321 func() bool {
1322 position11, tokenIndex11 := position, tokenIndex
1323 {
1324 position12 := position
1325 if !_rules[ruleL_SQUIGGLY]() {
1326 goto l11
1327 }
1328 if !_rules[ruleSpace]() {
1329 goto l11
1330 }
1331 if !_rules[ruleQueryContextItem]() {
1332 goto l11
1333 }
1334 l13:
1335 {
1336 position14, tokenIndex14 := position, tokenIndex
1337 if !_rules[ruleQueryContextItem]() {
1338 goto l14
1339 }
1340 goto l13
1341 l14:
1342 position, tokenIndex = position14, tokenIndex14
1343 }
1344 if !_rules[ruleR_SQUIGGLY]() {
1345 goto l11
1346 }
1347 add(ruleQueryContext, position12)
1348 }
1349 return true
1350 l11:
1351 position, tokenIndex = position11, tokenIndex11
1352 return false
1353 },
1354 /* 2 QueryContextItem <- <((QueryMachineContext / QuerySessionContext / QueryFrom / QueryTo) Space)> */
1355 func() bool {
1356 position15, tokenIndex15 := position, tokenIndex
1357 {
1358 position16 := position
1359 {
1360 position17, tokenIndex17 := position, tokenIndex
1361 if !_rules[ruleQueryMachineContext]() {
1362 goto l18
1363 }
1364 goto l17
1365 l18:
1366 position, tokenIndex = position17, tokenIndex17
1367 if !_rules[ruleQuerySessionContext]() {
1368 goto l19
1369 }
1370 goto l17
1371 l19:
1372 position, tokenIndex = position17, tokenIndex17
1373 if !_rules[ruleQueryFrom]() {
1374 goto l20
1375 }
1376 goto l17
1377 l20:
1378 position, tokenIndex = position17, tokenIndex17
1379 if !_rules[ruleQueryTo]() {
1380 goto l15
1381 }
1382 }
1383 l17:
1384 if !_rules[ruleSpace]() {
1385 goto l15
1386 }
1387 add(ruleQueryContextItem, position16)
1388 }
1389 return true
1390 l15:
1391 position, tokenIndex = position15, tokenIndex15
1392 return false
1393 },
1394 /* 3 QueryFrom <- <('f' 'r' 'o' 'm' Space CMP_EQ Space Expr Action2)> */
1395 func() bool {
1396 position21, tokenIndex21 := position, tokenIndex
1397 {
1398 position22 := position
1399 if buffer[position] != rune('f') {
1400 goto l21
1401 }
1402 position++
1403 if buffer[position] != rune('r') {
1404 goto l21
1405 }
1406 position++
1407 if buffer[position] != rune('o') {
1408 goto l21
1409 }
1410 position++
1411 if buffer[position] != rune('m') {
1412 goto l21
1413 }
1414 position++
1415 if !_rules[ruleSpace]() {
1416 goto l21
1417 }
1418 if !_rules[ruleCMP_EQ]() {
1419 goto l21
1420 }
1421 if !_rules[ruleSpace]() {
1422 goto l21
1423 }
1424 if !_rules[ruleExpr]() {
1425 goto l21
1426 }
1427 if !_rules[ruleAction2]() {
1428 goto l21
1429 }
1430 add(ruleQueryFrom, position22)
1431 }
1432 return true
1433 l21:
1434 position, tokenIndex = position21, tokenIndex21
1435 return false
1436 },
1437 /* 4 QueryTo <- <('t' 'o' Space CMP_EQ Space Expr Action3)> */
1438 func() bool {
1439 position23, tokenIndex23 := position, tokenIndex
1440 {
1441 position24 := position
1442 if buffer[position] != rune('t') {
1443 goto l23
1444 }
1445 position++
1446 if buffer[position] != rune('o') {
1447 goto l23
1448 }
1449 position++
1450 if !_rules[ruleSpace]() {
1451 goto l23
1452 }
1453 if !_rules[ruleCMP_EQ]() {
1454 goto l23
1455 }
1456 if !_rules[ruleSpace]() {
1457 goto l23
1458 }
1459 if !_rules[ruleExpr]() {
1460 goto l23
1461 }
1462 if !_rules[ruleAction3]() {
1463 goto l23
1464 }
1465 add(ruleQueryTo, position24)
1466 }
1467 return true
1468 l23:
1469 position, tokenIndex = position23, tokenIndex23
1470 return false
1471 },
1472 /* 5 QueryMachineContext <- <('m' 'a' 'c' 'h' 'i' 'n' 'e' Space ((CMP_EQ Space Expr Action4) / (CMP_NOTEQ Space Expr Action5) / (SET_IN Space Expr Action6) / (SET_NOTIN Space Expr Action7)))> */
1473 func() bool {
1474 position25, tokenIndex25 := position, tokenIndex
1475 {
1476 position26 := position
1477 if buffer[position] != rune('m') {
1478 goto l25
1479 }
1480 position++
1481 if buffer[position] != rune('a') {
1482 goto l25
1483 }
1484 position++
1485 if buffer[position] != rune('c') {
1486 goto l25
1487 }
1488 position++
1489 if buffer[position] != rune('h') {
1490 goto l25
1491 }
1492 position++
1493 if buffer[position] != rune('i') {
1494 goto l25
1495 }
1496 position++
1497 if buffer[position] != rune('n') {
1498 goto l25
1499 }
1500 position++
1501 if buffer[position] != rune('e') {
1502 goto l25
1503 }
1504 position++
1505 if !_rules[ruleSpace]() {
1506 goto l25
1507 }
1508 {
1509 position27, tokenIndex27 := position, tokenIndex
1510 if !_rules[ruleCMP_EQ]() {
1511 goto l28
1512 }
1513 if !_rules[ruleSpace]() {
1514 goto l28
1515 }
1516 if !_rules[ruleExpr]() {
1517 goto l28
1518 }
1519 if !_rules[ruleAction4]() {
1520 goto l28
1521 }
1522 goto l27
1523 l28:
1524 position, tokenIndex = position27, tokenIndex27
1525 if !_rules[ruleCMP_NOTEQ]() {
1526 goto l29
1527 }
1528 if !_rules[ruleSpace]() {
1529 goto l29
1530 }
1531 if !_rules[ruleExpr]() {
1532 goto l29
1533 }
1534 if !_rules[ruleAction5]() {
1535 goto l29
1536 }
1537 goto l27
1538 l29:
1539 position, tokenIndex = position27, tokenIndex27
1540 if !_rules[ruleSET_IN]() {
1541 goto l30
1542 }
1543 if !_rules[ruleSpace]() {
1544 goto l30
1545 }
1546 if !_rules[ruleExpr]() {
1547 goto l30
1548 }
1549 if !_rules[ruleAction6]() {
1550 goto l30
1551 }
1552 goto l27
1553 l30:
1554 position, tokenIndex = position27, tokenIndex27
1555 if !_rules[ruleSET_NOTIN]() {
1556 goto l25
1557 }
1558 if !_rules[ruleSpace]() {
1559 goto l25
1560 }
1561 if !_rules[ruleExpr]() {
1562 goto l25
1563 }
1564 if !_rules[ruleAction7]() {
1565 goto l25
1566 }
1567 }
1568 l27:
1569 add(ruleQueryMachineContext, position26)
1570 }
1571 return true
1572 l25:
1573 position, tokenIndex = position25, tokenIndex25
1574 return false
1575 },
1576 /* 6 QuerySessionContext <- <('s' 'e' 's' 's' 'i' 'o' 'n' Space ((CMP_EQ Space Expr Action8) / (CMP_NOTEQ Space Expr Action9) / (SET_IN Space Expr Action10) / (SET_NOTIN Space Expr Action11)))> */
1577 func() bool {
1578 position31, tokenIndex31 := position, tokenIndex
1579 {
1580 position32 := position
1581 if buffer[position] != rune('s') {
1582 goto l31
1583 }
1584 position++
1585 if buffer[position] != rune('e') {
1586 goto l31
1587 }
1588 position++
1589 if buffer[position] != rune('s') {
1590 goto l31
1591 }
1592 position++
1593 if buffer[position] != rune('s') {
1594 goto l31
1595 }
1596 position++
1597 if buffer[position] != rune('i') {
1598 goto l31
1599 }
1600 position++
1601 if buffer[position] != rune('o') {
1602 goto l31
1603 }
1604 position++
1605 if buffer[position] != rune('n') {
1606 goto l31
1607 }
1608 position++
1609 if !_rules[ruleSpace]() {
1610 goto l31
1611 }
1612 {
1613 position33, tokenIndex33 := position, tokenIndex
1614 if !_rules[ruleCMP_EQ]() {
1615 goto l34
1616 }
1617 if !_rules[ruleSpace]() {
1618 goto l34
1619 }
1620 if !_rules[ruleExpr]() {
1621 goto l34
1622 }
1623 if !_rules[ruleAction8]() {
1624 goto l34
1625 }
1626 goto l33
1627 l34:
1628 position, tokenIndex = position33, tokenIndex33
1629 if !_rules[ruleCMP_NOTEQ]() {
1630 goto l35
1631 }
1632 if !_rules[ruleSpace]() {
1633 goto l35
1634 }
1635 if !_rules[ruleExpr]() {
1636 goto l35
1637 }
1638 if !_rules[ruleAction9]() {
1639 goto l35
1640 }
1641 goto l33
1642 l35:
1643 position, tokenIndex = position33, tokenIndex33
1644 if !_rules[ruleSET_IN]() {
1645 goto l36
1646 }
1647 if !_rules[ruleSpace]() {
1648 goto l36
1649 }
1650 if !_rules[ruleExpr]() {
1651 goto l36
1652 }
1653 if !_rules[ruleAction10]() {
1654 goto l36
1655 }
1656 goto l33
1657 l36:
1658 position, tokenIndex = position33, tokenIndex33
1659 if !_rules[ruleSET_NOTIN]() {
1660 goto l31
1661 }
1662 if !_rules[ruleSpace]() {
1663 goto l31
1664 }
1665 if !_rules[ruleExpr]() {
1666 goto l31
1667 }
1668 if !_rules[ruleAction11]() {
1669 goto l31
1670 }
1671 }
1672 l33:
1673 add(ruleQuerySessionContext, position32)
1674 }
1675 return true
1676 l31:
1677 position, tokenIndex = position31, tokenIndex31
1678 return false
1679 },
1680 /* 7 Statements <- <(Statement (Space PIPE Space Statement)*)> */
1681 func() bool {
1682 position37, tokenIndex37 := position, tokenIndex
1683 {
1684 position38 := position
1685 if !_rules[ruleStatement]() {
1686 goto l37
1687 }
1688 l39:
1689 {
1690 position40, tokenIndex40 := position, tokenIndex
1691 if !_rules[ruleSpace]() {
1692 goto l40
1693 }
1694 if !_rules[rulePIPE]() {
1695 goto l40
1696 }
1697 if !_rules[ruleSpace]() {
1698 goto l40
1699 }
1700 if !_rules[ruleStatement]() {
1701 goto l40
1702 }
1703 goto l39
1704 l40:
1705 position, tokenIndex = position40, tokenIndex40
1706 }
1707 add(ruleStatements, position38)
1708 }
1709 return true
1710 l37:
1711 position, tokenIndex = position37, tokenIndex37
1712 return false
1713 },
1714 /* 8 Statement <- <(((('f' 'i' 'l' 't' 'e' 'r') / ('w' 'h' 'e' 'r' 'e')) FilterOperator Action12) / ('s' 'u' 'm' 'm' 'a' 'r' 'i' 'z' 'e' SummarizeOperator Action13) / ('p' 'r' 'o' 'j' 'e' 'c' 't' ProjectOperator Action14) / ('p' 'r' 'o' 'j' 'e' 'c' 't' '-' 'a' 'w' 'a' 'y' ProjectAwayOperator Action15) / ('p' 'r' 'o' 'j' 'e' 'c' 't' '-' 'k' 'e' 'e' 'p' ProjectKeepOperator Action16) / ('e' 'x' 't' 'e' 'n' 'd' ExtendOperator Action17) / ('c' 'o' 'u' 'n' 't' CountOperator Action18) / ('d' 'i' 's' 't' 'i' 'n' 'c' 't' DistinctOperator Action19) / ('s' 'a' 'm' 'p' 'l' 'e' SampleOperator Action20) / ('s' 'e' 'a' 'r' 'c' 'h' SearchOperator Action21) / ('s' 'o' 'r' 't' SortOperator Action22) / ('t' 'a' 'k' 'e' TakeOperator Action23) / ('t' 'o' 'p' TopOperator Action24))> */
1715 func() bool {
1716 position41, tokenIndex41 := position, tokenIndex
1717 {
1718 position42 := position
1719 {
1720 position43, tokenIndex43 := position, tokenIndex
1721 {
1722 position45, tokenIndex45 := position, tokenIndex
1723 if buffer[position] != rune('f') {
1724 goto l46
1725 }
1726 position++
1727 if buffer[position] != rune('i') {
1728 goto l46
1729 }
1730 position++
1731 if buffer[position] != rune('l') {
1732 goto l46
1733 }
1734 position++
1735 if buffer[position] != rune('t') {
1736 goto l46
1737 }
1738 position++
1739 if buffer[position] != rune('e') {
1740 goto l46
1741 }
1742 position++
1743 if buffer[position] != rune('r') {
1744 goto l46
1745 }
1746 position++
1747 goto l45
1748 l46:
1749 position, tokenIndex = position45, tokenIndex45
1750 if buffer[position] != rune('w') {
1751 goto l44
1752 }
1753 position++
1754 if buffer[position] != rune('h') {
1755 goto l44
1756 }
1757 position++
1758 if buffer[position] != rune('e') {
1759 goto l44
1760 }
1761 position++
1762 if buffer[position] != rune('r') {
1763 goto l44
1764 }
1765 position++
1766 if buffer[position] != rune('e') {
1767 goto l44
1768 }
1769 position++
1770 }
1771 l45:
1772 if !_rules[ruleFilterOperator]() {
1773 goto l44
1774 }
1775 if !_rules[ruleAction12]() {
1776 goto l44
1777 }
1778 goto l43
1779 l44:
1780 position, tokenIndex = position43, tokenIndex43
1781 if buffer[position] != rune('s') {
1782 goto l47
1783 }
1784 position++
1785 if buffer[position] != rune('u') {
1786 goto l47
1787 }
1788 position++
1789 if buffer[position] != rune('m') {
1790 goto l47
1791 }
1792 position++
1793 if buffer[position] != rune('m') {
1794 goto l47
1795 }
1796 position++
1797 if buffer[position] != rune('a') {
1798 goto l47
1799 }
1800 position++
1801 if buffer[position] != rune('r') {
1802 goto l47
1803 }
1804 position++
1805 if buffer[position] != rune('i') {
1806 goto l47
1807 }
1808 position++
1809 if buffer[position] != rune('z') {
1810 goto l47
1811 }
1812 position++
1813 if buffer[position] != rune('e') {
1814 goto l47
1815 }
1816 position++
1817 if !_rules[ruleSummarizeOperator]() {
1818 goto l47
1819 }
1820 if !_rules[ruleAction13]() {
1821 goto l47
1822 }
1823 goto l43
1824 l47:
1825 position, tokenIndex = position43, tokenIndex43
1826 if buffer[position] != rune('p') {
1827 goto l48
1828 }
1829 position++
1830 if buffer[position] != rune('r') {
1831 goto l48
1832 }
1833 position++
1834 if buffer[position] != rune('o') {
1835 goto l48
1836 }
1837 position++
1838 if buffer[position] != rune('j') {
1839 goto l48
1840 }
1841 position++
1842 if buffer[position] != rune('e') {
1843 goto l48
1844 }
1845 position++
1846 if buffer[position] != rune('c') {
1847 goto l48
1848 }
1849 position++
1850 if buffer[position] != rune('t') {
1851 goto l48
1852 }
1853 position++
1854 if !_rules[ruleProjectOperator]() {
1855 goto l48
1856 }
1857 if !_rules[ruleAction14]() {
1858 goto l48
1859 }
1860 goto l43
1861 l48:
1862 position, tokenIndex = position43, tokenIndex43
1863 if buffer[position] != rune('p') {
1864 goto l49
1865 }
1866 position++
1867 if buffer[position] != rune('r') {
1868 goto l49
1869 }
1870 position++
1871 if buffer[position] != rune('o') {
1872 goto l49
1873 }
1874 position++
1875 if buffer[position] != rune('j') {
1876 goto l49
1877 }
1878 position++
1879 if buffer[position] != rune('e') {
1880 goto l49
1881 }
1882 position++
1883 if buffer[position] != rune('c') {
1884 goto l49
1885 }
1886 position++
1887 if buffer[position] != rune('t') {
1888 goto l49
1889 }
1890 position++
1891 if buffer[position] != rune('-') {
1892 goto l49
1893 }
1894 position++
1895 if buffer[position] != rune('a') {
1896 goto l49
1897 }
1898 position++
1899 if buffer[position] != rune('w') {
1900 goto l49
1901 }
1902 position++
1903 if buffer[position] != rune('a') {
1904 goto l49
1905 }
1906 position++
1907 if buffer[position] != rune('y') {
1908 goto l49
1909 }
1910 position++
1911 if !_rules[ruleProjectAwayOperator]() {
1912 goto l49
1913 }
1914 if !_rules[ruleAction15]() {
1915 goto l49
1916 }
1917 goto l43
1918 l49:
1919 position, tokenIndex = position43, tokenIndex43
1920 if buffer[position] != rune('p') {
1921 goto l50
1922 }
1923 position++
1924 if buffer[position] != rune('r') {
1925 goto l50
1926 }
1927 position++
1928 if buffer[position] != rune('o') {
1929 goto l50
1930 }
1931 position++
1932 if buffer[position] != rune('j') {
1933 goto l50
1934 }
1935 position++
1936 if buffer[position] != rune('e') {
1937 goto l50
1938 }
1939 position++
1940 if buffer[position] != rune('c') {
1941 goto l50
1942 }
1943 position++
1944 if buffer[position] != rune('t') {
1945 goto l50
1946 }
1947 position++
1948 if buffer[position] != rune('-') {
1949 goto l50
1950 }
1951 position++
1952 if buffer[position] != rune('k') {
1953 goto l50
1954 }
1955 position++
1956 if buffer[position] != rune('e') {
1957 goto l50
1958 }
1959 position++
1960 if buffer[position] != rune('e') {
1961 goto l50
1962 }
1963 position++
1964 if buffer[position] != rune('p') {
1965 goto l50
1966 }
1967 position++
1968 if !_rules[ruleProjectKeepOperator]() {
1969 goto l50
1970 }
1971 if !_rules[ruleAction16]() {
1972 goto l50
1973 }
1974 goto l43
1975 l50:
1976 position, tokenIndex = position43, tokenIndex43
1977 if buffer[position] != rune('e') {
1978 goto l51
1979 }
1980 position++
1981 if buffer[position] != rune('x') {
1982 goto l51
1983 }
1984 position++
1985 if buffer[position] != rune('t') {
1986 goto l51
1987 }
1988 position++
1989 if buffer[position] != rune('e') {
1990 goto l51
1991 }
1992 position++
1993 if buffer[position] != rune('n') {
1994 goto l51
1995 }
1996 position++
1997 if buffer[position] != rune('d') {
1998 goto l51
1999 }
2000 position++
2001 if !_rules[ruleExtendOperator]() {
2002 goto l51
2003 }
2004 if !_rules[ruleAction17]() {
2005 goto l51
2006 }
2007 goto l43
2008 l51:
2009 position, tokenIndex = position43, tokenIndex43
2010 if buffer[position] != rune('c') {
2011 goto l52
2012 }
2013 position++
2014 if buffer[position] != rune('o') {
2015 goto l52
2016 }
2017 position++
2018 if buffer[position] != rune('u') {
2019 goto l52
2020 }
2021 position++
2022 if buffer[position] != rune('n') {
2023 goto l52
2024 }
2025 position++
2026 if buffer[position] != rune('t') {
2027 goto l52
2028 }
2029 position++
2030 if !_rules[ruleCountOperator]() {
2031 goto l52
2032 }
2033 if !_rules[ruleAction18]() {
2034 goto l52
2035 }
2036 goto l43
2037 l52:
2038 position, tokenIndex = position43, tokenIndex43
2039 if buffer[position] != rune('d') {
2040 goto l53
2041 }
2042 position++
2043 if buffer[position] != rune('i') {
2044 goto l53
2045 }
2046 position++
2047 if buffer[position] != rune('s') {
2048 goto l53
2049 }
2050 position++
2051 if buffer[position] != rune('t') {
2052 goto l53
2053 }
2054 position++
2055 if buffer[position] != rune('i') {
2056 goto l53
2057 }
2058 position++
2059 if buffer[position] != rune('n') {
2060 goto l53
2061 }
2062 position++
2063 if buffer[position] != rune('c') {
2064 goto l53
2065 }
2066 position++
2067 if buffer[position] != rune('t') {
2068 goto l53
2069 }
2070 position++
2071 if !_rules[ruleDistinctOperator]() {
2072 goto l53
2073 }
2074 if !_rules[ruleAction19]() {
2075 goto l53
2076 }
2077 goto l43
2078 l53:
2079 position, tokenIndex = position43, tokenIndex43
2080 if buffer[position] != rune('s') {
2081 goto l54
2082 }
2083 position++
2084 if buffer[position] != rune('a') {
2085 goto l54
2086 }
2087 position++
2088 if buffer[position] != rune('m') {
2089 goto l54
2090 }
2091 position++
2092 if buffer[position] != rune('p') {
2093 goto l54
2094 }
2095 position++
2096 if buffer[position] != rune('l') {
2097 goto l54
2098 }
2099 position++
2100 if buffer[position] != rune('e') {
2101 goto l54
2102 }
2103 position++
2104 if !_rules[ruleSampleOperator]() {
2105 goto l54
2106 }
2107 if !_rules[ruleAction20]() {
2108 goto l54
2109 }
2110 goto l43
2111 l54:
2112 position, tokenIndex = position43, tokenIndex43
2113 if buffer[position] != rune('s') {
2114 goto l55
2115 }
2116 position++
2117 if buffer[position] != rune('e') {
2118 goto l55
2119 }
2120 position++
2121 if buffer[position] != rune('a') {
2122 goto l55
2123 }
2124 position++
2125 if buffer[position] != rune('r') {
2126 goto l55
2127 }
2128 position++
2129 if buffer[position] != rune('c') {
2130 goto l55
2131 }
2132 position++
2133 if buffer[position] != rune('h') {
2134 goto l55
2135 }
2136 position++
2137 if !_rules[ruleSearchOperator]() {
2138 goto l55
2139 }
2140 if !_rules[ruleAction21]() {
2141 goto l55
2142 }
2143 goto l43
2144 l55:
2145 position, tokenIndex = position43, tokenIndex43
2146 if buffer[position] != rune('s') {
2147 goto l56
2148 }
2149 position++
2150 if buffer[position] != rune('o') {
2151 goto l56
2152 }
2153 position++
2154 if buffer[position] != rune('r') {
2155 goto l56
2156 }
2157 position++
2158 if buffer[position] != rune('t') {
2159 goto l56
2160 }
2161 position++
2162 if !_rules[ruleSortOperator]() {
2163 goto l56
2164 }
2165 if !_rules[ruleAction22]() {
2166 goto l56
2167 }
2168 goto l43
2169 l56:
2170 position, tokenIndex = position43, tokenIndex43
2171 if buffer[position] != rune('t') {
2172 goto l57
2173 }
2174 position++
2175 if buffer[position] != rune('a') {
2176 goto l57
2177 }
2178 position++
2179 if buffer[position] != rune('k') {
2180 goto l57
2181 }
2182 position++
2183 if buffer[position] != rune('e') {
2184 goto l57
2185 }
2186 position++
2187 if !_rules[ruleTakeOperator]() {
2188 goto l57
2189 }
2190 if !_rules[ruleAction23]() {
2191 goto l57
2192 }
2193 goto l43
2194 l57:
2195 position, tokenIndex = position43, tokenIndex43
2196 if buffer[position] != rune('t') {
2197 goto l41
2198 }
2199 position++
2200 if buffer[position] != rune('o') {
2201 goto l41
2202 }
2203 position++
2204 if buffer[position] != rune('p') {
2205 goto l41
2206 }
2207 position++
2208 if !_rules[ruleTopOperator]() {
2209 goto l41
2210 }
2211 if !_rules[ruleAction24]() {
2212 goto l41
2213 }
2214 }
2215 l43:
2216 add(ruleStatement, position42)
2217 }
2218 return true
2219 l41:
2220 position, tokenIndex = position41, tokenIndex41
2221 return false
2222 },
2223 /* 9 RenderStatement <- <(Space PIPE Space ('r' 'e' 'n' 'd' 'e' 'r') MustSpace RenderSplitOperator Action25)> */
2224 func() bool {
2225 position58, tokenIndex58 := position, tokenIndex
2226 {
2227 position59 := position
2228 if !_rules[ruleSpace]() {
2229 goto l58
2230 }
2231 if !_rules[rulePIPE]() {
2232 goto l58
2233 }
2234 if !_rules[ruleSpace]() {
2235 goto l58
2236 }
2237 if buffer[position] != rune('r') {
2238 goto l58
2239 }
2240 position++
2241 if buffer[position] != rune('e') {
2242 goto l58
2243 }
2244 position++
2245 if buffer[position] != rune('n') {
2246 goto l58
2247 }
2248 position++
2249 if buffer[position] != rune('d') {
2250 goto l58
2251 }
2252 position++
2253 if buffer[position] != rune('e') {
2254 goto l58
2255 }
2256 position++
2257 if buffer[position] != rune('r') {
2258 goto l58
2259 }
2260 position++
2261 if !_rules[ruleMustSpace]() {
2262 goto l58
2263 }
2264 if !_rules[ruleRenderSplitOperator]() {
2265 goto l58
2266 }
2267 if !_rules[ruleAction25]() {
2268 goto l58
2269 }
2270 add(ruleRenderStatement, position59)
2271 }
2272 return true
2273 l58:
2274 position, tokenIndex = position58, tokenIndex58
2275 return false
2276 },
2277 /* 10 FilterOperator <- <(MustSpace Expr Action26)> */
2278 func() bool {
2279 position60, tokenIndex60 := position, tokenIndex
2280 {
2281 position61 := position
2282 if !_rules[ruleMustSpace]() {
2283 goto l60
2284 }
2285 if !_rules[ruleExpr]() {
2286 goto l60
2287 }
2288 if !_rules[ruleAction26]() {
2289 goto l60
2290 }
2291 add(ruleFilterOperator, position61)
2292 }
2293 return true
2294 l60:
2295 position, tokenIndex = position60, tokenIndex60
2296 return false
2297 },
2298 /* 11 SummarizeOperator <- <(MustSpace Action27 SummarizeParameters SummarizeByGroupExpressions?)> */
2299 func() bool {
2300 position62, tokenIndex62 := position, tokenIndex
2301 {
2302 position63 := position
2303 if !_rules[ruleMustSpace]() {
2304 goto l62
2305 }
2306 if !_rules[ruleAction27]() {
2307 goto l62
2308 }
2309 if !_rules[ruleSummarizeParameters]() {
2310 goto l62
2311 }
2312 {
2313 position64, tokenIndex64 := position, tokenIndex
2314 if !_rules[ruleSummarizeByGroupExpressions]() {
2315 goto l64
2316 }
2317 goto l65
2318 l64:
2319 position, tokenIndex = position64, tokenIndex64
2320 }
2321 l65:
2322 add(ruleSummarizeOperator, position63)
2323 }
2324 return true
2325 l62:
2326 position, tokenIndex = position62, tokenIndex62
2327 return false
2328 },
2329 /* 12 SummarizeParameters <- <(SummarizeParameter (Space ',' Space SummarizeParameter)* Space)> */
2330 func() bool {
2331 position66, tokenIndex66 := position, tokenIndex
2332 {
2333 position67 := position
2334 if !_rules[ruleSummarizeParameter]() {
2335 goto l66
2336 }
2337 l68:
2338 {
2339 position69, tokenIndex69 := position, tokenIndex
2340 if !_rules[ruleSpace]() {
2341 goto l69
2342 }
2343 if buffer[position] != rune(',') {
2344 goto l69
2345 }
2346 position++
2347 if !_rules[ruleSpace]() {
2348 goto l69
2349 }
2350 if !_rules[ruleSummarizeParameter]() {
2351 goto l69
2352 }
2353 goto l68
2354 l69:
2355 position, tokenIndex = position69, tokenIndex69
2356 }
2357 if !_rules[ruleSpace]() {
2358 goto l66
2359 }
2360 add(ruleSummarizeParameters, position67)
2361 }
2362 return true
2363 l66:
2364 position, tokenIndex = position66, tokenIndex66
2365 return false
2366 },
2367 /* 13 SummarizeParameter <- <((Identifier Action28 (Space '=' Space FuncCall) Action29) / (FuncCall Action30))> */
2368 func() bool {
2369 position70, tokenIndex70 := position, tokenIndex
2370 {
2371 position71 := position
2372 {
2373 position72, tokenIndex72 := position, tokenIndex
2374 if !_rules[ruleIdentifier]() {
2375 goto l73
2376 }
2377 if !_rules[ruleAction28]() {
2378 goto l73
2379 }
2380 if !_rules[ruleSpace]() {
2381 goto l73
2382 }
2383 if buffer[position] != rune('=') {
2384 goto l73
2385 }
2386 position++
2387 if !_rules[ruleSpace]() {
2388 goto l73
2389 }
2390 if !_rules[ruleFuncCall]() {
2391 goto l73
2392 }
2393 if !_rules[ruleAction29]() {
2394 goto l73
2395 }
2396 goto l72
2397 l73:
2398 position, tokenIndex = position72, tokenIndex72
2399 if !_rules[ruleFuncCall]() {
2400 goto l70
2401 }
2402 if !_rules[ruleAction30]() {
2403 goto l70
2404 }
2405 }
2406 l72:
2407 add(ruleSummarizeParameter, position71)
2408 }
2409 return true
2410 l70:
2411 position, tokenIndex = position70, tokenIndex70
2412 return false
2413 },
2414 /* 14 SummarizeByGroupExpressions <- <('b' 'y' MustSpace SummarizeByGroupExpression (Space ',' Space SummarizeByGroupExpression)* Space)> */
2415 func() bool {
2416 position74, tokenIndex74 := position, tokenIndex
2417 {
2418 position75 := position
2419 if buffer[position] != rune('b') {
2420 goto l74
2421 }
2422 position++
2423 if buffer[position] != rune('y') {
2424 goto l74
2425 }
2426 position++
2427 if !_rules[ruleMustSpace]() {
2428 goto l74
2429 }
2430 if !_rules[ruleSummarizeByGroupExpression]() {
2431 goto l74
2432 }
2433 l76:
2434 {
2435 position77, tokenIndex77 := position, tokenIndex
2436 if !_rules[ruleSpace]() {
2437 goto l77
2438 }
2439 if buffer[position] != rune(',') {
2440 goto l77
2441 }
2442 position++
2443 if !_rules[ruleSpace]() {
2444 goto l77
2445 }
2446 if !_rules[ruleSummarizeByGroupExpression]() {
2447 goto l77
2448 }
2449 goto l76
2450 l77:
2451 position, tokenIndex = position77, tokenIndex77
2452 }
2453 if !_rules[ruleSpace]() {
2454 goto l74
2455 }
2456 add(ruleSummarizeByGroupExpressions, position75)
2457 }
2458 return true
2459 l74:
2460 position, tokenIndex = position74, tokenIndex74
2461 return false
2462 },
2463 /* 15 SummarizeByGroupExpression <- <((Identifier Action31 (Space '=' Space Expr Action32)) / (Expr Action33))> */
2464 func() bool {
2465 position78, tokenIndex78 := position, tokenIndex
2466 {
2467 position79 := position
2468 {
2469 position80, tokenIndex80 := position, tokenIndex
2470 if !_rules[ruleIdentifier]() {
2471 goto l81
2472 }
2473 if !_rules[ruleAction31]() {
2474 goto l81
2475 }
2476 if !_rules[ruleSpace]() {
2477 goto l81
2478 }
2479 if buffer[position] != rune('=') {
2480 goto l81
2481 }
2482 position++
2483 if !_rules[ruleSpace]() {
2484 goto l81
2485 }
2486 if !_rules[ruleExpr]() {
2487 goto l81
2488 }
2489 if !_rules[ruleAction32]() {
2490 goto l81
2491 }
2492 goto l80
2493 l81:
2494 position, tokenIndex = position80, tokenIndex80
2495 if !_rules[ruleExpr]() {
2496 goto l78
2497 }
2498 if !_rules[ruleAction33]() {
2499 goto l78
2500 }
2501 }
2502 l80:
2503 add(ruleSummarizeByGroupExpression, position79)
2504 }
2505 return true
2506 l78:
2507 position, tokenIndex = position78, tokenIndex78
2508 return false
2509 },
2510 /* 16 ProjectOperator <- <(MustSpace Action34 ProjectArg (Space ',' Space ProjectArg)* Space)> */
2511 func() bool {
2512 position82, tokenIndex82 := position, tokenIndex
2513 {
2514 position83 := position
2515 if !_rules[ruleMustSpace]() {
2516 goto l82
2517 }
2518 if !_rules[ruleAction34]() {
2519 goto l82
2520 }
2521 if !_rules[ruleProjectArg]() {
2522 goto l82
2523 }
2524 l84:
2525 {
2526 position85, tokenIndex85 := position, tokenIndex
2527 if !_rules[ruleSpace]() {
2528 goto l85
2529 }
2530 if buffer[position] != rune(',') {
2531 goto l85
2532 }
2533 position++
2534 if !_rules[ruleSpace]() {
2535 goto l85
2536 }
2537 if !_rules[ruleProjectArg]() {
2538 goto l85
2539 }
2540 goto l84
2541 l85:
2542 position, tokenIndex = position85, tokenIndex85
2543 }
2544 if !_rules[ruleSpace]() {
2545 goto l82
2546 }
2547 add(ruleProjectOperator, position83)
2548 }
2549 return true
2550 l82:
2551 position, tokenIndex = position82, tokenIndex82
2552 return false
2553 },
2554 /* 17 ProjectArg <- <(Identifier Action35 (Space '=' Space Expr Action36)?)> */
2555 func() bool {
2556 position86, tokenIndex86 := position, tokenIndex
2557 {
2558 position87 := position
2559 if !_rules[ruleIdentifier]() {
2560 goto l86
2561 }
2562 if !_rules[ruleAction35]() {
2563 goto l86
2564 }
2565 {
2566 position88, tokenIndex88 := position, tokenIndex
2567 if !_rules[ruleSpace]() {
2568 goto l88
2569 }
2570 if buffer[position] != rune('=') {
2571 goto l88
2572 }
2573 position++
2574 if !_rules[ruleSpace]() {
2575 goto l88
2576 }
2577 if !_rules[ruleExpr]() {
2578 goto l88
2579 }
2580 if !_rules[ruleAction36]() {
2581 goto l88
2582 }
2583 goto l89
2584 l88:
2585 position, tokenIndex = position88, tokenIndex88
2586 }
2587 l89:
2588 add(ruleProjectArg, position87)
2589 }
2590 return true
2591 l86:
2592 position, tokenIndex = position86, tokenIndex86
2593 return false
2594 },
2595 /* 18 ProjectAwayOperator <- <(MustSpace Action37 ProjectAwayArg (Space ',' Space ProjectAwayArg)* Space)> */
2596 func() bool {
2597 position90, tokenIndex90 := position, tokenIndex
2598 {
2599 position91 := position
2600 if !_rules[ruleMustSpace]() {
2601 goto l90
2602 }
2603 if !_rules[ruleAction37]() {
2604 goto l90
2605 }
2606 if !_rules[ruleProjectAwayArg]() {
2607 goto l90
2608 }
2609 l92:
2610 {
2611 position93, tokenIndex93 := position, tokenIndex
2612 if !_rules[ruleSpace]() {
2613 goto l93
2614 }
2615 if buffer[position] != rune(',') {
2616 goto l93
2617 }
2618 position++
2619 if !_rules[ruleSpace]() {
2620 goto l93
2621 }
2622 if !_rules[ruleProjectAwayArg]() {
2623 goto l93
2624 }
2625 goto l92
2626 l93:
2627 position, tokenIndex = position93, tokenIndex93
2628 }
2629 if !_rules[ruleSpace]() {
2630 goto l90
2631 }
2632 add(ruleProjectAwayOperator, position91)
2633 }
2634 return true
2635 l90:
2636 position, tokenIndex = position90, tokenIndex90
2637 return false
2638 },
2639 /* 19 ProjectAwayArg <- <(Identifier Action38)> */
2640 func() bool {
2641 position94, tokenIndex94 := position, tokenIndex
2642 {
2643 position95 := position
2644 if !_rules[ruleIdentifier]() {
2645 goto l94
2646 }
2647 if !_rules[ruleAction38]() {
2648 goto l94
2649 }
2650 add(ruleProjectAwayArg, position95)
2651 }
2652 return true
2653 l94:
2654 position, tokenIndex = position94, tokenIndex94
2655 return false
2656 },
2657 /* 20 ProjectKeepOperator <- <(MustSpace Action39 ProjectKeepArg (Space ',' Space ProjectKeepArg)* Space)> */
2658 func() bool {
2659 position96, tokenIndex96 := position, tokenIndex
2660 {
2661 position97 := position
2662 if !_rules[ruleMustSpace]() {
2663 goto l96
2664 }
2665 if !_rules[ruleAction39]() {
2666 goto l96
2667 }
2668 if !_rules[ruleProjectKeepArg]() {
2669 goto l96
2670 }
2671 l98:
2672 {
2673 position99, tokenIndex99 := position, tokenIndex
2674 if !_rules[ruleSpace]() {
2675 goto l99
2676 }
2677 if buffer[position] != rune(',') {
2678 goto l99
2679 }
2680 position++
2681 if !_rules[ruleSpace]() {
2682 goto l99
2683 }
2684 if !_rules[ruleProjectKeepArg]() {
2685 goto l99
2686 }
2687 goto l98
2688 l99:
2689 position, tokenIndex = position99, tokenIndex99
2690 }
2691 if !_rules[ruleSpace]() {
2692 goto l96
2693 }
2694 add(ruleProjectKeepOperator, position97)
2695 }
2696 return true
2697 l96:
2698 position, tokenIndex = position96, tokenIndex96
2699 return false
2700 },
2701 /* 21 ProjectKeepArg <- <(Identifier Action40)> */
2702 func() bool {
2703 position100, tokenIndex100 := position, tokenIndex
2704 {
2705 position101 := position
2706 if !_rules[ruleIdentifier]() {
2707 goto l100
2708 }
2709 if !_rules[ruleAction40]() {
2710 goto l100
2711 }
2712 add(ruleProjectKeepArg, position101)
2713 }
2714 return true
2715 l100:
2716 position, tokenIndex = position100, tokenIndex100
2717 return false
2718 },
2719 /* 22 ExtendOperator <- <(MustSpace Action41 ExtendArg (Space ',' Space ExtendArg)* Space)> */
2720 func() bool {
2721 position102, tokenIndex102 := position, tokenIndex
2722 {
2723 position103 := position
2724 if !_rules[ruleMustSpace]() {
2725 goto l102
2726 }
2727 if !_rules[ruleAction41]() {
2728 goto l102
2729 }
2730 if !_rules[ruleExtendArg]() {
2731 goto l102
2732 }
2733 l104:
2734 {
2735 position105, tokenIndex105 := position, tokenIndex
2736 if !_rules[ruleSpace]() {
2737 goto l105
2738 }
2739 if buffer[position] != rune(',') {
2740 goto l105
2741 }
2742 position++
2743 if !_rules[ruleSpace]() {
2744 goto l105
2745 }
2746 if !_rules[ruleExtendArg]() {
2747 goto l105
2748 }
2749 goto l104
2750 l105:
2751 position, tokenIndex = position105, tokenIndex105
2752 }
2753 if !_rules[ruleSpace]() {
2754 goto l102
2755 }
2756 add(ruleExtendOperator, position103)
2757 }
2758 return true
2759 l102:
2760 position, tokenIndex = position102, tokenIndex102
2761 return false
2762 },
2763 /* 23 ExtendArg <- <(Identifier Action42 Space '=' Space Expr Action43)> */
2764 func() bool {
2765 position106, tokenIndex106 := position, tokenIndex
2766 {
2767 position107 := position
2768 if !_rules[ruleIdentifier]() {
2769 goto l106
2770 }
2771 if !_rules[ruleAction42]() {
2772 goto l106
2773 }
2774 if !_rules[ruleSpace]() {
2775 goto l106
2776 }
2777 if buffer[position] != rune('=') {
2778 goto l106
2779 }
2780 position++
2781 if !_rules[ruleSpace]() {
2782 goto l106
2783 }
2784 if !_rules[ruleExpr]() {
2785 goto l106
2786 }
2787 if !_rules[ruleAction43]() {
2788 goto l106
2789 }
2790 add(ruleExtendArg, position107)
2791 }
2792 return true
2793 l106:
2794 position, tokenIndex = position106, tokenIndex106
2795 return false
2796 },
2797 /* 24 CountOperator <- <Action44> */
2798 func() bool {
2799 position108, tokenIndex108 := position, tokenIndex
2800 {
2801 position109 := position
2802 if !_rules[ruleAction44]() {
2803 goto l108
2804 }
2805 add(ruleCountOperator, position109)
2806 }
2807 return true
2808 l108:
2809 position, tokenIndex = position108, tokenIndex108
2810 return false
2811 },
2812 /* 25 DistinctOperator <- <(Action45 MustSpace DistinctOperatorArg (Space ',' Space DistinctOperatorArg)*)> */
2813 func() bool {
2814 position110, tokenIndex110 := position, tokenIndex
2815 {
2816 position111 := position
2817 if !_rules[ruleAction45]() {
2818 goto l110
2819 }
2820 if !_rules[ruleMustSpace]() {
2821 goto l110
2822 }
2823 if !_rules[ruleDistinctOperatorArg]() {
2824 goto l110
2825 }
2826 l112:
2827 {
2828 position113, tokenIndex113 := position, tokenIndex
2829 if !_rules[ruleSpace]() {
2830 goto l113
2831 }
2832 if buffer[position] != rune(',') {
2833 goto l113
2834 }
2835 position++
2836 if !_rules[ruleSpace]() {
2837 goto l113
2838 }
2839 if !_rules[ruleDistinctOperatorArg]() {
2840 goto l113
2841 }
2842 goto l112
2843 l113:
2844 position, tokenIndex = position113, tokenIndex113
2845 }
2846 add(ruleDistinctOperator, position111)
2847 }
2848 return true
2849 l110:
2850 position, tokenIndex = position110, tokenIndex110
2851 return false
2852 },
2853 /* 26 DistinctOperatorArg <- <(Identifier Action46)> */
2854 func() bool {
2855 position114, tokenIndex114 := position, tokenIndex
2856 {
2857 position115 := position
2858 if !_rules[ruleIdentifier]() {
2859 goto l114
2860 }
2861 if !_rules[ruleAction46]() {
2862 goto l114
2863 }
2864 add(ruleDistinctOperatorArg, position115)
2865 }
2866 return true
2867 l114:
2868 position, tokenIndex = position114, tokenIndex114
2869 return false
2870 },
2871 /* 27 SampleOperator <- <(MustSpace Action47 I64 Space Action48)> */
2872 func() bool {
2873 position116, tokenIndex116 := position, tokenIndex
2874 {
2875 position117 := position
2876 if !_rules[ruleMustSpace]() {
2877 goto l116
2878 }
2879 if !_rules[ruleAction47]() {
2880 goto l116
2881 }
2882 if !_rules[ruleI64]() {
2883 goto l116
2884 }
2885 if !_rules[ruleSpace]() {
2886 goto l116
2887 }
2888 if !_rules[ruleAction48]() {
2889 goto l116
2890 }
2891 add(ruleSampleOperator, position117)
2892 }
2893 return true
2894 l116:
2895 position, tokenIndex = position116, tokenIndex116
2896 return false
2897 },
2898 /* 28 SearchOperator <- <(MustSpace Action49 ('k' 'i' 'n' 'd' Space '=' Space SearchOperatorCaseSensitivity MustSpace)? SearchOperatorPredicate)> */
2899 func() bool {
2900 position118, tokenIndex118 := position, tokenIndex
2901 {
2902 position119 := position
2903 if !_rules[ruleMustSpace]() {
2904 goto l118
2905 }
2906 if !_rules[ruleAction49]() {
2907 goto l118
2908 }
2909 {
2910 position120, tokenIndex120 := position, tokenIndex
2911 if buffer[position] != rune('k') {
2912 goto l120
2913 }
2914 position++
2915 if buffer[position] != rune('i') {
2916 goto l120
2917 }
2918 position++
2919 if buffer[position] != rune('n') {
2920 goto l120
2921 }
2922 position++
2923 if buffer[position] != rune('d') {
2924 goto l120
2925 }
2926 position++
2927 if !_rules[ruleSpace]() {
2928 goto l120
2929 }
2930 if buffer[position] != rune('=') {
2931 goto l120
2932 }
2933 position++
2934 if !_rules[ruleSpace]() {
2935 goto l120
2936 }
2937 if !_rules[ruleSearchOperatorCaseSensitivity]() {
2938 goto l120
2939 }
2940 if !_rules[ruleMustSpace]() {
2941 goto l120
2942 }
2943 goto l121
2944 l120:
2945 position, tokenIndex = position120, tokenIndex120
2946 }
2947 l121:
2948 if !_rules[ruleSearchOperatorPredicate]() {
2949 goto l118
2950 }
2951 add(ruleSearchOperator, position119)
2952 }
2953 return true
2954 l118:
2955 position, tokenIndex = position118, tokenIndex118
2956 return false
2957 },
2958 /* 29 SearchOperatorCaseSensitivity <- <(('d' 'e' 'f' 'a' 'u' 'l' 't' Action50) / ('c' 'a' 's' 'e' '_' 'i' 'n' 's' 'e' 'n' 's' 'i' 't' 'i' 'v' 'e' Action51) / ('c' 'a' 's' 'e' '_' 's' 'e' 'n' 's' 'i' 't' 'i' 'v' 'e' Action52))> */
2959 func() bool {
2960 position122, tokenIndex122 := position, tokenIndex
2961 {
2962 position123 := position
2963 {
2964 position124, tokenIndex124 := position, tokenIndex
2965 if buffer[position] != rune('d') {
2966 goto l125
2967 }
2968 position++
2969 if buffer[position] != rune('e') {
2970 goto l125
2971 }
2972 position++
2973 if buffer[position] != rune('f') {
2974 goto l125
2975 }
2976 position++
2977 if buffer[position] != rune('a') {
2978 goto l125
2979 }
2980 position++
2981 if buffer[position] != rune('u') {
2982 goto l125
2983 }
2984 position++
2985 if buffer[position] != rune('l') {
2986 goto l125
2987 }
2988 position++
2989 if buffer[position] != rune('t') {
2990 goto l125
2991 }
2992 position++
2993 if !_rules[ruleAction50]() {
2994 goto l125
2995 }
2996 goto l124
2997 l125:
2998 position, tokenIndex = position124, tokenIndex124
2999 if buffer[position] != rune('c') {
3000 goto l126
3001 }
3002 position++
3003 if buffer[position] != rune('a') {
3004 goto l126
3005 }
3006 position++
3007 if buffer[position] != rune('s') {
3008 goto l126
3009 }
3010 position++
3011 if buffer[position] != rune('e') {
3012 goto l126
3013 }
3014 position++
3015 if buffer[position] != rune('_') {
3016 goto l126
3017 }
3018 position++
3019 if buffer[position] != rune('i') {
3020 goto l126
3021 }
3022 position++
3023 if buffer[position] != rune('n') {
3024 goto l126
3025 }
3026 position++
3027 if buffer[position] != rune('s') {
3028 goto l126
3029 }
3030 position++
3031 if buffer[position] != rune('e') {
3032 goto l126
3033 }
3034 position++
3035 if buffer[position] != rune('n') {
3036 goto l126
3037 }
3038 position++
3039 if buffer[position] != rune('s') {
3040 goto l126
3041 }
3042 position++
3043 if buffer[position] != rune('i') {
3044 goto l126
3045 }
3046 position++
3047 if buffer[position] != rune('t') {
3048 goto l126
3049 }
3050 position++
3051 if buffer[position] != rune('i') {
3052 goto l126
3053 }
3054 position++
3055 if buffer[position] != rune('v') {
3056 goto l126
3057 }
3058 position++
3059 if buffer[position] != rune('e') {
3060 goto l126
3061 }
3062 position++
3063 if !_rules[ruleAction51]() {
3064 goto l126
3065 }
3066 goto l124
3067 l126:
3068 position, tokenIndex = position124, tokenIndex124
3069 if buffer[position] != rune('c') {
3070 goto l122
3071 }
3072 position++
3073 if buffer[position] != rune('a') {
3074 goto l122
3075 }
3076 position++
3077 if buffer[position] != rune('s') {
3078 goto l122
3079 }
3080 position++
3081 if buffer[position] != rune('e') {
3082 goto l122
3083 }
3084 position++
3085 if buffer[position] != rune('_') {
3086 goto l122
3087 }
3088 position++
3089 if buffer[position] != rune('s') {
3090 goto l122
3091 }
3092 position++
3093 if buffer[position] != rune('e') {
3094 goto l122
3095 }
3096 position++
3097 if buffer[position] != rune('n') {
3098 goto l122
3099 }
3100 position++
3101 if buffer[position] != rune('s') {
3102 goto l122
3103 }
3104 position++
3105 if buffer[position] != rune('i') {
3106 goto l122
3107 }
3108 position++
3109 if buffer[position] != rune('t') {
3110 goto l122
3111 }
3112 position++
3113 if buffer[position] != rune('i') {
3114 goto l122
3115 }
3116 position++
3117 if buffer[position] != rune('v') {
3118 goto l122
3119 }
3120 position++
3121 if buffer[position] != rune('e') {
3122 goto l122
3123 }
3124 position++
3125 if !_rules[ruleAction52]() {
3126 goto l122
3127 }
3128 }
3129 l124:
3130 add(ruleSearchOperatorCaseSensitivity, position123)
3131 }
3132 return true
3133 l122:
3134 position, tokenIndex = position122, tokenIndex122
3135 return false
3136 },
3137 /* 30 SearchOperatorPredicate <- <((Literal Action53) / (Identifier Action54 ((':' String Action55) / ('=' '=' String Action56) / (MustSpace ('m' 'a' 't' 'c' 'h' 'e' 's' ' ' 'r' 'e' 'g' 'e' 'x') MustSpace String Action57))))> */
3138 func() bool {
3139 position127, tokenIndex127 := position, tokenIndex
3140 {
3141 position128 := position
3142 {
3143 position129, tokenIndex129 := position, tokenIndex
3144 if !_rules[ruleLiteral]() {
3145 goto l130
3146 }
3147 if !_rules[ruleAction53]() {
3148 goto l130
3149 }
3150 goto l129
3151 l130:
3152 position, tokenIndex = position129, tokenIndex129
3153 if !_rules[ruleIdentifier]() {
3154 goto l127
3155 }
3156 if !_rules[ruleAction54]() {
3157 goto l127
3158 }
3159 {
3160 position131, tokenIndex131 := position, tokenIndex
3161 if buffer[position] != rune(':') {
3162 goto l132
3163 }
3164 position++
3165 if !_rules[ruleString]() {
3166 goto l132
3167 }
3168 if !_rules[ruleAction55]() {
3169 goto l132
3170 }
3171 goto l131
3172 l132:
3173 position, tokenIndex = position131, tokenIndex131
3174 if buffer[position] != rune('=') {
3175 goto l133
3176 }
3177 position++
3178 if buffer[position] != rune('=') {
3179 goto l133
3180 }
3181 position++
3182 if !_rules[ruleString]() {
3183 goto l133
3184 }
3185 if !_rules[ruleAction56]() {
3186 goto l133
3187 }
3188 goto l131
3189 l133:
3190 position, tokenIndex = position131, tokenIndex131
3191 if !_rules[ruleMustSpace]() {
3192 goto l127
3193 }
3194 if buffer[position] != rune('m') {
3195 goto l127
3196 }
3197 position++
3198 if buffer[position] != rune('a') {
3199 goto l127
3200 }
3201 position++
3202 if buffer[position] != rune('t') {
3203 goto l127
3204 }
3205 position++
3206 if buffer[position] != rune('c') {
3207 goto l127
3208 }
3209 position++
3210 if buffer[position] != rune('h') {
3211 goto l127
3212 }
3213 position++
3214 if buffer[position] != rune('e') {
3215 goto l127
3216 }
3217 position++
3218 if buffer[position] != rune('s') {
3219 goto l127
3220 }
3221 position++
3222 if buffer[position] != rune(' ') {
3223 goto l127
3224 }
3225 position++
3226 if buffer[position] != rune('r') {
3227 goto l127
3228 }
3229 position++
3230 if buffer[position] != rune('e') {
3231 goto l127
3232 }
3233 position++
3234 if buffer[position] != rune('g') {
3235 goto l127
3236 }
3237 position++
3238 if buffer[position] != rune('e') {
3239 goto l127
3240 }
3241 position++
3242 if buffer[position] != rune('x') {
3243 goto l127
3244 }
3245 position++
3246 if !_rules[ruleMustSpace]() {
3247 goto l127
3248 }
3249 if !_rules[ruleString]() {
3250 goto l127
3251 }
3252 if !_rules[ruleAction57]() {
3253 goto l127
3254 }
3255 }
3256 l131:
3257 }
3258 l129:
3259 add(ruleSearchOperatorPredicate, position128)
3260 }
3261 return true
3262 l127:
3263 position, tokenIndex = position127, tokenIndex127
3264 return false
3265 },
3266 /* 31 SortOperator <- <(MustSpace Action58 ('b' 'y') MustSpace SortOperatorArg (Space ',' Space SortOperatorArg)* Space)> */
3267 func() bool {
3268 position134, tokenIndex134 := position, tokenIndex
3269 {
3270 position135 := position
3271 if !_rules[ruleMustSpace]() {
3272 goto l134
3273 }
3274 if !_rules[ruleAction58]() {
3275 goto l134
3276 }
3277 if buffer[position] != rune('b') {
3278 goto l134
3279 }
3280 position++
3281 if buffer[position] != rune('y') {
3282 goto l134
3283 }
3284 position++
3285 if !_rules[ruleMustSpace]() {
3286 goto l134
3287 }
3288 if !_rules[ruleSortOperatorArg]() {
3289 goto l134
3290 }
3291 l136:
3292 {
3293 position137, tokenIndex137 := position, tokenIndex
3294 if !_rules[ruleSpace]() {
3295 goto l137
3296 }
3297 if buffer[position] != rune(',') {
3298 goto l137
3299 }
3300 position++
3301 if !_rules[ruleSpace]() {
3302 goto l137
3303 }
3304 if !_rules[ruleSortOperatorArg]() {
3305 goto l137
3306 }
3307 goto l136
3308 l137:
3309 position, tokenIndex = position137, tokenIndex137
3310 }
3311 if !_rules[ruleSpace]() {
3312 goto l134
3313 }
3314 add(ruleSortOperator, position135)
3315 }
3316 return true
3317 l134:
3318 position, tokenIndex = position134, tokenIndex134
3319 return false
3320 },
3321 /* 32 SortOperatorArg <- <(Identifier Action59 (MustSpace (('a' 's' 'c' Action60) / ('d' 'e' 's' 'c' Action61)))?)> */
3322 func() bool {
3323 position138, tokenIndex138 := position, tokenIndex
3324 {
3325 position139 := position
3326 if !_rules[ruleIdentifier]() {
3327 goto l138
3328 }
3329 if !_rules[ruleAction59]() {
3330 goto l138
3331 }
3332 {
3333 position140, tokenIndex140 := position, tokenIndex
3334 if !_rules[ruleMustSpace]() {
3335 goto l140
3336 }
3337 {
3338 position142, tokenIndex142 := position, tokenIndex
3339 if buffer[position] != rune('a') {
3340 goto l143
3341 }
3342 position++
3343 if buffer[position] != rune('s') {
3344 goto l143
3345 }
3346 position++
3347 if buffer[position] != rune('c') {
3348 goto l143
3349 }
3350 position++
3351 if !_rules[ruleAction60]() {
3352 goto l143
3353 }
3354 goto l142
3355 l143:
3356 position, tokenIndex = position142, tokenIndex142
3357 if buffer[position] != rune('d') {
3358 goto l140
3359 }
3360 position++
3361 if buffer[position] != rune('e') {
3362 goto l140
3363 }
3364 position++
3365 if buffer[position] != rune('s') {
3366 goto l140
3367 }
3368 position++
3369 if buffer[position] != rune('c') {
3370 goto l140
3371 }
3372 position++
3373 if !_rules[ruleAction61]() {
3374 goto l140
3375 }
3376 }
3377 l142:
3378 goto l141
3379 l140:
3380 position, tokenIndex = position140, tokenIndex140
3381 }
3382 l141:
3383 add(ruleSortOperatorArg, position139)
3384 }
3385 return true
3386 l138:
3387 position, tokenIndex = position138, tokenIndex138
3388 return false
3389 },
3390 /* 33 TakeOperator <- <(MustSpace Action62 I64 Action63)> */
3391 func() bool {
3392 position144, tokenIndex144 := position, tokenIndex
3393 {
3394 position145 := position
3395 if !_rules[ruleMustSpace]() {
3396 goto l144
3397 }
3398 if !_rules[ruleAction62]() {
3399 goto l144
3400 }
3401 if !_rules[ruleI64]() {
3402 goto l144
3403 }
3404 if !_rules[ruleAction63]() {
3405 goto l144
3406 }
3407 add(ruleTakeOperator, position145)
3408 }
3409 return true
3410 l144:
3411 position, tokenIndex = position144, tokenIndex144
3412 return false
3413 },
3414 /* 34 TopOperator <- <(MustSpace Action64 I64 MustSpace Action65 ('b' 'y') MustSpace Expr Action66 (MustSpace (('a' 's' 'c' Action67) / ('d' 'e' 's' 'c' Action68)))?)> */
3415 func() bool {
3416 position146, tokenIndex146 := position, tokenIndex
3417 {
3418 position147 := position
3419 if !_rules[ruleMustSpace]() {
3420 goto l146
3421 }
3422 if !_rules[ruleAction64]() {
3423 goto l146
3424 }
3425 if !_rules[ruleI64]() {
3426 goto l146
3427 }
3428 if !_rules[ruleMustSpace]() {
3429 goto l146
3430 }
3431 if !_rules[ruleAction65]() {
3432 goto l146
3433 }
3434 if buffer[position] != rune('b') {
3435 goto l146
3436 }
3437 position++
3438 if buffer[position] != rune('y') {
3439 goto l146
3440 }
3441 position++
3442 if !_rules[ruleMustSpace]() {
3443 goto l146
3444 }
3445 if !_rules[ruleExpr]() {
3446 goto l146
3447 }
3448 if !_rules[ruleAction66]() {
3449 goto l146
3450 }
3451 {
3452 position148, tokenIndex148 := position, tokenIndex
3453 if !_rules[ruleMustSpace]() {
3454 goto l148
3455 }
3456 {
3457 position150, tokenIndex150 := position, tokenIndex
3458 if buffer[position] != rune('a') {
3459 goto l151
3460 }
3461 position++
3462 if buffer[position] != rune('s') {
3463 goto l151
3464 }
3465 position++
3466 if buffer[position] != rune('c') {
3467 goto l151
3468 }
3469 position++
3470 if !_rules[ruleAction67]() {
3471 goto l151
3472 }
3473 goto l150
3474 l151:
3475 position, tokenIndex = position150, tokenIndex150
3476 if buffer[position] != rune('d') {
3477 goto l148
3478 }
3479 position++
3480 if buffer[position] != rune('e') {
3481 goto l148
3482 }
3483 position++
3484 if buffer[position] != rune('s') {
3485 goto l148
3486 }
3487 position++
3488 if buffer[position] != rune('c') {
3489 goto l148
3490 }
3491 position++
3492 if !_rules[ruleAction68]() {
3493 goto l148
3494 }
3495 }
3496 l150:
3497 goto l149
3498 l148:
3499 position, tokenIndex = position148, tokenIndex148
3500 }
3501 l149:
3502 add(ruleTopOperator, position147)
3503 }
3504 return true
3505 l146:
3506 position, tokenIndex = position146, tokenIndex146
3507 return false
3508 },
3509 /* 35 RenderSplitOperator <- <('s' 'p' 'l' 'i' 't' Action69 MustSpace RenderSplitByOperator)> */
3510 func() bool {
3511 position152, tokenIndex152 := position, tokenIndex
3512 {
3513 position153 := position
3514 if buffer[position] != rune('s') {
3515 goto l152
3516 }
3517 position++
3518 if buffer[position] != rune('p') {
3519 goto l152
3520 }
3521 position++
3522 if buffer[position] != rune('l') {
3523 goto l152
3524 }
3525 position++
3526 if buffer[position] != rune('i') {
3527 goto l152
3528 }
3529 position++
3530 if buffer[position] != rune('t') {
3531 goto l152
3532 }
3533 position++
3534 if !_rules[ruleAction69]() {
3535 goto l152
3536 }
3537 if !_rules[ruleMustSpace]() {
3538 goto l152
3539 }
3540 if !_rules[ruleRenderSplitByOperator]() {
3541 goto l152
3542 }
3543 add(ruleRenderSplitOperator, position153)
3544 }
3545 return true
3546 l152:
3547 position, tokenIndex = position152, tokenIndex152
3548 return false
3549 },
3550 /* 36 RenderSplitByOperator <- <('b' 'y' MustSpace RenderSplitByOperatorArg (Space ',' Space RenderSplitByOperatorArg)* Space)> */
3551 func() bool {
3552 position154, tokenIndex154 := position, tokenIndex
3553 {
3554 position155 := position
3555 if buffer[position] != rune('b') {
3556 goto l154
3557 }
3558 position++
3559 if buffer[position] != rune('y') {
3560 goto l154
3561 }
3562 position++
3563 if !_rules[ruleMustSpace]() {
3564 goto l154
3565 }
3566 if !_rules[ruleRenderSplitByOperatorArg]() {
3567 goto l154
3568 }
3569 l156:
3570 {
3571 position157, tokenIndex157 := position, tokenIndex
3572 if !_rules[ruleSpace]() {
3573 goto l157
3574 }
3575 if buffer[position] != rune(',') {
3576 goto l157
3577 }
3578 position++
3579 if !_rules[ruleSpace]() {
3580 goto l157
3581 }
3582 if !_rules[ruleRenderSplitByOperatorArg]() {
3583 goto l157
3584 }
3585 goto l156
3586 l157:
3587 position, tokenIndex = position157, tokenIndex157
3588 }
3589 if !_rules[ruleSpace]() {
3590 goto l154
3591 }
3592 add(ruleRenderSplitByOperator, position155)
3593 }
3594 return true
3595 l154:
3596 position, tokenIndex = position154, tokenIndex154
3597 return false
3598 },
3599 /* 37 RenderSplitByOperatorArg <- <(Expr Action70)> */
3600 func() bool {
3601 position158, tokenIndex158 := position, tokenIndex
3602 {
3603 position159 := position
3604 if !_rules[ruleExpr]() {
3605 goto l158
3606 }
3607 if !_rules[ruleAction70]() {
3608 goto l158
3609 }
3610 add(ruleRenderSplitByOperatorArg, position159)
3611 }
3612 return true
3613 l158:
3614 position, tokenIndex = position158, tokenIndex158
3615 return false
3616 },
3617 /* 38 Expr <- <(Expr1 ((Space NUM_ADD Expr1 Space Action71) / (Space NUM_SUB Expr1 Space Action72))*)> */
3618 func() bool {
3619 position160, tokenIndex160 := position, tokenIndex
3620 {
3621 position161 := position
3622 if !_rules[ruleExpr1]() {
3623 goto l160
3624 }
3625 l162:
3626 {
3627 position163, tokenIndex163 := position, tokenIndex
3628 {
3629 position164, tokenIndex164 := position, tokenIndex
3630 if !_rules[ruleSpace]() {
3631 goto l165
3632 }
3633 if !_rules[ruleNUM_ADD]() {
3634 goto l165
3635 }
3636 if !_rules[ruleExpr1]() {
3637 goto l165
3638 }
3639 if !_rules[ruleSpace]() {
3640 goto l165
3641 }
3642 if !_rules[ruleAction71]() {
3643 goto l165
3644 }
3645 goto l164
3646 l165:
3647 position, tokenIndex = position164, tokenIndex164
3648 if !_rules[ruleSpace]() {
3649 goto l163
3650 }
3651 if !_rules[ruleNUM_SUB]() {
3652 goto l163
3653 }
3654 if !_rules[ruleExpr1]() {
3655 goto l163
3656 }
3657 if !_rules[ruleSpace]() {
3658 goto l163
3659 }
3660 if !_rules[ruleAction72]() {
3661 goto l163
3662 }
3663 }
3664 l164:
3665 goto l162
3666 l163:
3667 position, tokenIndex = position163, tokenIndex163
3668 }
3669 add(ruleExpr, position161)
3670 }
3671 return true
3672 l160:
3673 position, tokenIndex = position160, tokenIndex160
3674 return false
3675 },
3676 /* 39 Expr1 <- <(Expr2 ((Space NUM_MUL Expr2 Space Action73) / (Space NUM_DIV Expr2 Space Action74) / (Space NUM_MOD Expr2 Space Action75))*)> */
3677 func() bool {
3678 position166, tokenIndex166 := position, tokenIndex
3679 {
3680 position167 := position
3681 if !_rules[ruleExpr2]() {
3682 goto l166
3683 }
3684 l168:
3685 {
3686 position169, tokenIndex169 := position, tokenIndex
3687 {
3688 position170, tokenIndex170 := position, tokenIndex
3689 if !_rules[ruleSpace]() {
3690 goto l171
3691 }
3692 if !_rules[ruleNUM_MUL]() {
3693 goto l171
3694 }
3695 if !_rules[ruleExpr2]() {
3696 goto l171
3697 }
3698 if !_rules[ruleSpace]() {
3699 goto l171
3700 }
3701 if !_rules[ruleAction73]() {
3702 goto l171
3703 }
3704 goto l170
3705 l171:
3706 position, tokenIndex = position170, tokenIndex170
3707 if !_rules[ruleSpace]() {
3708 goto l172
3709 }
3710 if !_rules[ruleNUM_DIV]() {
3711 goto l172
3712 }
3713 if !_rules[ruleExpr2]() {
3714 goto l172
3715 }
3716 if !_rules[ruleSpace]() {
3717 goto l172
3718 }
3719 if !_rules[ruleAction74]() {
3720 goto l172
3721 }
3722 goto l170
3723 l172:
3724 position, tokenIndex = position170, tokenIndex170
3725 if !_rules[ruleSpace]() {
3726 goto l169
3727 }
3728 if !_rules[ruleNUM_MOD]() {
3729 goto l169
3730 }
3731 if !_rules[ruleExpr2]() {
3732 goto l169
3733 }
3734 if !_rules[ruleSpace]() {
3735 goto l169
3736 }
3737 if !_rules[ruleAction75]() {
3738 goto l169
3739 }
3740 }
3741 l170:
3742 goto l168
3743 l169:
3744 position, tokenIndex = position169, tokenIndex169
3745 }
3746 add(ruleExpr1, position167)
3747 }
3748 return true
3749 l166:
3750 position, tokenIndex = position166, tokenIndex166
3751 return false
3752 },
3753 /* 40 Expr2 <- <(Expr3 ((Space LOG_AND Expr3 Space Action76) / (Space LOG_OR Expr3 Space Action77))*)> */
3754 func() bool {
3755 position173, tokenIndex173 := position, tokenIndex
3756 {
3757 position174 := position
3758 if !_rules[ruleExpr3]() {
3759 goto l173
3760 }
3761 l175:
3762 {
3763 position176, tokenIndex176 := position, tokenIndex
3764 {
3765 position177, tokenIndex177 := position, tokenIndex
3766 if !_rules[ruleSpace]() {
3767 goto l178
3768 }
3769 if !_rules[ruleLOG_AND]() {
3770 goto l178
3771 }
3772 if !_rules[ruleExpr3]() {
3773 goto l178
3774 }
3775 if !_rules[ruleSpace]() {
3776 goto l178
3777 }
3778 if !_rules[ruleAction76]() {
3779 goto l178
3780 }
3781 goto l177
3782 l178:
3783 position, tokenIndex = position177, tokenIndex177
3784 if !_rules[ruleSpace]() {
3785 goto l176
3786 }
3787 if !_rules[ruleLOG_OR]() {
3788 goto l176
3789 }
3790 if !_rules[ruleExpr3]() {
3791 goto l176
3792 }
3793 if !_rules[ruleSpace]() {
3794 goto l176
3795 }
3796 if !_rules[ruleAction77]() {
3797 goto l176
3798 }
3799 }
3800 l177:
3801 goto l175
3802 l176:
3803 position, tokenIndex = position176, tokenIndex176
3804 }
3805 add(ruleExpr2, position174)
3806 }
3807 return true
3808 l173:
3809 position, tokenIndex = position173, tokenIndex173
3810 return false
3811 },
3812 /* 41 Expr3 <- <(Expr4 ((Space CMP_EQ Expr4 Action78) / (Space CMP_NOTEQ Expr4 Action79) / (Space CMP_GT Expr4 Action80) / (Space CMP_GTE Expr4 Action81) / (Space CMP_LT Expr4 Action82) / (Space CMP_LTE Expr4 Action83) / (Space SET_IN Expr4 Action84) / (Space SET_NOTIN Expr4 Action85) / (Space STR_EQ_NOCS Expr4 Action86) / (Space STR_NOTEQ_NOCS Expr4 Action87) / (Space STR_CONTAINS Expr4 Action88) / (Space STR_NOT_CONTAINS Expr4 Action89) / (Space STR_CONTAINS_CS Expr4 Action90) / (Space STR_NOT_CONTAINS_CS Expr4 Action91) / (Space STR_STARTSWITH Expr4 Action92) / (Space STR_NOT_STARTSWITH Expr4 Action93) / (Space STR_STARTSWITH_CS Expr4 Action94) / (Space STR_NOT_STARTSWITH_CS Expr4 Action95) / (Space STR_ENDSWITH Expr4 Action96) / (Space STR_NOT_ENDSWITH Expr4 Action97) / (Space STR_ENDSWITH_CS Expr4 Action98) / (Space STR_NOT_ENDSWITH_CS Expr4 Action99) / (Space STR_IN_NOCS Expr4 Action100) / (Space STR_NOT_IN_NOCS Expr4 Action101) / (Space STR_NOT_MATCHES_REGEX Expr4 Action102) / (Space STR_MATCHES_REGEX Expr4 Action103) / (Space STR_HAS Expr4 Action104) / (Space STR_HAS_CS Expr4 Action105))*)> */
3813 func() bool {
3814 position179, tokenIndex179 := position, tokenIndex
3815 {
3816 position180 := position
3817 if !_rules[ruleExpr4]() {
3818 goto l179
3819 }
3820 l181:
3821 {
3822 position182, tokenIndex182 := position, tokenIndex
3823 {
3824 position183, tokenIndex183 := position, tokenIndex
3825 if !_rules[ruleSpace]() {
3826 goto l184
3827 }
3828 if !_rules[ruleCMP_EQ]() {
3829 goto l184
3830 }
3831 if !_rules[ruleExpr4]() {
3832 goto l184
3833 }
3834 if !_rules[ruleAction78]() {
3835 goto l184
3836 }
3837 goto l183
3838 l184:
3839 position, tokenIndex = position183, tokenIndex183
3840 if !_rules[ruleSpace]() {
3841 goto l185
3842 }
3843 if !_rules[ruleCMP_NOTEQ]() {
3844 goto l185
3845 }
3846 if !_rules[ruleExpr4]() {
3847 goto l185
3848 }
3849 if !_rules[ruleAction79]() {
3850 goto l185
3851 }
3852 goto l183
3853 l185:
3854 position, tokenIndex = position183, tokenIndex183
3855 if !_rules[ruleSpace]() {
3856 goto l186
3857 }
3858 if !_rules[ruleCMP_GT]() {
3859 goto l186
3860 }
3861 if !_rules[ruleExpr4]() {
3862 goto l186
3863 }
3864 if !_rules[ruleAction80]() {
3865 goto l186
3866 }
3867 goto l183
3868 l186:
3869 position, tokenIndex = position183, tokenIndex183
3870 if !_rules[ruleSpace]() {
3871 goto l187
3872 }
3873 if !_rules[ruleCMP_GTE]() {
3874 goto l187
3875 }
3876 if !_rules[ruleExpr4]() {
3877 goto l187
3878 }
3879 if !_rules[ruleAction81]() {
3880 goto l187
3881 }
3882 goto l183
3883 l187:
3884 position, tokenIndex = position183, tokenIndex183
3885 if !_rules[ruleSpace]() {
3886 goto l188
3887 }
3888 if !_rules[ruleCMP_LT]() {
3889 goto l188
3890 }
3891 if !_rules[ruleExpr4]() {
3892 goto l188
3893 }
3894 if !_rules[ruleAction82]() {
3895 goto l188
3896 }
3897 goto l183
3898 l188:
3899 position, tokenIndex = position183, tokenIndex183
3900 if !_rules[ruleSpace]() {
3901 goto l189
3902 }
3903 if !_rules[ruleCMP_LTE]() {
3904 goto l189
3905 }
3906 if !_rules[ruleExpr4]() {
3907 goto l189
3908 }
3909 if !_rules[ruleAction83]() {
3910 goto l189
3911 }
3912 goto l183
3913 l189:
3914 position, tokenIndex = position183, tokenIndex183
3915 if !_rules[ruleSpace]() {
3916 goto l190
3917 }
3918 if !_rules[ruleSET_IN]() {
3919 goto l190
3920 }
3921 if !_rules[ruleExpr4]() {
3922 goto l190
3923 }
3924 if !_rules[ruleAction84]() {
3925 goto l190
3926 }
3927 goto l183
3928 l190:
3929 position, tokenIndex = position183, tokenIndex183
3930 if !_rules[ruleSpace]() {
3931 goto l191
3932 }
3933 if !_rules[ruleSET_NOTIN]() {
3934 goto l191
3935 }
3936 if !_rules[ruleExpr4]() {
3937 goto l191
3938 }
3939 if !_rules[ruleAction85]() {
3940 goto l191
3941 }
3942 goto l183
3943 l191:
3944 position, tokenIndex = position183, tokenIndex183
3945 if !_rules[ruleSpace]() {
3946 goto l192
3947 }
3948 if !_rules[ruleSTR_EQ_NOCS]() {
3949 goto l192
3950 }
3951 if !_rules[ruleExpr4]() {
3952 goto l192
3953 }
3954 if !_rules[ruleAction86]() {
3955 goto l192
3956 }
3957 goto l183
3958 l192:
3959 position, tokenIndex = position183, tokenIndex183
3960 if !_rules[ruleSpace]() {
3961 goto l193
3962 }
3963 if !_rules[ruleSTR_NOTEQ_NOCS]() {
3964 goto l193
3965 }
3966 if !_rules[ruleExpr4]() {
3967 goto l193
3968 }
3969 if !_rules[ruleAction87]() {
3970 goto l193
3971 }
3972 goto l183
3973 l193:
3974 position, tokenIndex = position183, tokenIndex183
3975 if !_rules[ruleSpace]() {
3976 goto l194
3977 }
3978 if !_rules[ruleSTR_CONTAINS]() {
3979 goto l194
3980 }
3981 if !_rules[ruleExpr4]() {
3982 goto l194
3983 }
3984 if !_rules[ruleAction88]() {
3985 goto l194
3986 }
3987 goto l183
3988 l194:
3989 position, tokenIndex = position183, tokenIndex183
3990 if !_rules[ruleSpace]() {
3991 goto l195
3992 }
3993 if !_rules[ruleSTR_NOT_CONTAINS]() {
3994 goto l195
3995 }
3996 if !_rules[ruleExpr4]() {
3997 goto l195
3998 }
3999 if !_rules[ruleAction89]() {
4000 goto l195
4001 }
4002 goto l183
4003 l195:
4004 position, tokenIndex = position183, tokenIndex183
4005 if !_rules[ruleSpace]() {
4006 goto l196
4007 }
4008 if !_rules[ruleSTR_CONTAINS_CS]() {
4009 goto l196
4010 }
4011 if !_rules[ruleExpr4]() {
4012 goto l196
4013 }
4014 if !_rules[ruleAction90]() {
4015 goto l196
4016 }
4017 goto l183
4018 l196:
4019 position, tokenIndex = position183, tokenIndex183
4020 if !_rules[ruleSpace]() {
4021 goto l197
4022 }
4023 if !_rules[ruleSTR_NOT_CONTAINS_CS]() {
4024 goto l197
4025 }
4026 if !_rules[ruleExpr4]() {
4027 goto l197
4028 }
4029 if !_rules[ruleAction91]() {
4030 goto l197
4031 }
4032 goto l183
4033 l197:
4034 position, tokenIndex = position183, tokenIndex183
4035 if !_rules[ruleSpace]() {
4036 goto l198
4037 }
4038 if !_rules[ruleSTR_STARTSWITH]() {
4039 goto l198
4040 }
4041 if !_rules[ruleExpr4]() {
4042 goto l198
4043 }
4044 if !_rules[ruleAction92]() {
4045 goto l198
4046 }
4047 goto l183
4048 l198:
4049 position, tokenIndex = position183, tokenIndex183
4050 if !_rules[ruleSpace]() {
4051 goto l199
4052 }
4053 if !_rules[ruleSTR_NOT_STARTSWITH]() {
4054 goto l199
4055 }
4056 if !_rules[ruleExpr4]() {
4057 goto l199
4058 }
4059 if !_rules[ruleAction93]() {
4060 goto l199
4061 }
4062 goto l183
4063 l199:
4064 position, tokenIndex = position183, tokenIndex183
4065 if !_rules[ruleSpace]() {
4066 goto l200
4067 }
4068 if !_rules[ruleSTR_STARTSWITH_CS]() {
4069 goto l200
4070 }
4071 if !_rules[ruleExpr4]() {
4072 goto l200
4073 }
4074 if !_rules[ruleAction94]() {
4075 goto l200
4076 }
4077 goto l183
4078 l200:
4079 position, tokenIndex = position183, tokenIndex183
4080 if !_rules[ruleSpace]() {
4081 goto l201
4082 }
4083 if !_rules[ruleSTR_NOT_STARTSWITH_CS]() {
4084 goto l201
4085 }
4086 if !_rules[ruleExpr4]() {
4087 goto l201
4088 }
4089 if !_rules[ruleAction95]() {
4090 goto l201
4091 }
4092 goto l183
4093 l201:
4094 position, tokenIndex = position183, tokenIndex183
4095 if !_rules[ruleSpace]() {
4096 goto l202
4097 }
4098 if !_rules[ruleSTR_ENDSWITH]() {
4099 goto l202
4100 }
4101 if !_rules[ruleExpr4]() {
4102 goto l202
4103 }
4104 if !_rules[ruleAction96]() {
4105 goto l202
4106 }
4107 goto l183
4108 l202:
4109 position, tokenIndex = position183, tokenIndex183
4110 if !_rules[ruleSpace]() {
4111 goto l203
4112 }
4113 if !_rules[ruleSTR_NOT_ENDSWITH]() {
4114 goto l203
4115 }
4116 if !_rules[ruleExpr4]() {
4117 goto l203
4118 }
4119 if !_rules[ruleAction97]() {
4120 goto l203
4121 }
4122 goto l183
4123 l203:
4124 position, tokenIndex = position183, tokenIndex183
4125 if !_rules[ruleSpace]() {
4126 goto l204
4127 }
4128 if !_rules[ruleSTR_ENDSWITH_CS]() {
4129 goto l204
4130 }
4131 if !_rules[ruleExpr4]() {
4132 goto l204
4133 }
4134 if !_rules[ruleAction98]() {
4135 goto l204
4136 }
4137 goto l183
4138 l204:
4139 position, tokenIndex = position183, tokenIndex183
4140 if !_rules[ruleSpace]() {
4141 goto l205
4142 }
4143 if !_rules[ruleSTR_NOT_ENDSWITH_CS]() {
4144 goto l205
4145 }
4146 if !_rules[ruleExpr4]() {
4147 goto l205
4148 }
4149 if !_rules[ruleAction99]() {
4150 goto l205
4151 }
4152 goto l183
4153 l205:
4154 position, tokenIndex = position183, tokenIndex183
4155 if !_rules[ruleSpace]() {
4156 goto l206
4157 }
4158 if !_rules[ruleSTR_IN_NOCS]() {
4159 goto l206
4160 }
4161 if !_rules[ruleExpr4]() {
4162 goto l206
4163 }
4164 if !_rules[ruleAction100]() {
4165 goto l206
4166 }
4167 goto l183
4168 l206:
4169 position, tokenIndex = position183, tokenIndex183
4170 if !_rules[ruleSpace]() {
4171 goto l207
4172 }
4173 if !_rules[ruleSTR_NOT_IN_NOCS]() {
4174 goto l207
4175 }
4176 if !_rules[ruleExpr4]() {
4177 goto l207
4178 }
4179 if !_rules[ruleAction101]() {
4180 goto l207
4181 }
4182 goto l183
4183 l207:
4184 position, tokenIndex = position183, tokenIndex183
4185 if !_rules[ruleSpace]() {
4186 goto l208
4187 }
4188 if !_rules[ruleSTR_NOT_MATCHES_REGEX]() {
4189 goto l208
4190 }
4191 if !_rules[ruleExpr4]() {
4192 goto l208
4193 }
4194 if !_rules[ruleAction102]() {
4195 goto l208
4196 }
4197 goto l183
4198 l208:
4199 position, tokenIndex = position183, tokenIndex183
4200 if !_rules[ruleSpace]() {
4201 goto l209
4202 }
4203 if !_rules[ruleSTR_MATCHES_REGEX]() {
4204 goto l209
4205 }
4206 if !_rules[ruleExpr4]() {
4207 goto l209
4208 }
4209 if !_rules[ruleAction103]() {
4210 goto l209
4211 }
4212 goto l183
4213 l209:
4214 position, tokenIndex = position183, tokenIndex183
4215 if !_rules[ruleSpace]() {
4216 goto l210
4217 }
4218 if !_rules[ruleSTR_HAS]() {
4219 goto l210
4220 }
4221 if !_rules[ruleExpr4]() {
4222 goto l210
4223 }
4224 if !_rules[ruleAction104]() {
4225 goto l210
4226 }
4227 goto l183
4228 l210:
4229 position, tokenIndex = position183, tokenIndex183
4230 if !_rules[ruleSpace]() {
4231 goto l182
4232 }
4233 if !_rules[ruleSTR_HAS_CS]() {
4234 goto l182
4235 }
4236 if !_rules[ruleExpr4]() {
4237 goto l182
4238 }
4239 if !_rules[ruleAction105]() {
4240 goto l182
4241 }
4242 }
4243 l183:
4244 goto l181
4245 l182:
4246 position, tokenIndex = position182, tokenIndex182
4247 }
4248 add(ruleExpr3, position180)
4249 }
4250 return true
4251 l179:
4252 position, tokenIndex = position179, tokenIndex179
4253 return false
4254 },
4255 /* 42 Expr4 <- <(Expr5 (Space L_BRACKET Expr5 R_BRACKET Action106)*)> */
4256 func() bool {
4257 position211, tokenIndex211 := position, tokenIndex
4258 {
4259 position212 := position
4260 if !_rules[ruleExpr5]() {
4261 goto l211
4262 }
4263 l213:
4264 {
4265 position214, tokenIndex214 := position, tokenIndex
4266 if !_rules[ruleSpace]() {
4267 goto l214
4268 }
4269 if !_rules[ruleL_BRACKET]() {
4270 goto l214
4271 }
4272 if !_rules[ruleExpr5]() {
4273 goto l214
4274 }
4275 if !_rules[ruleR_BRACKET]() {
4276 goto l214
4277 }
4278 if !_rules[ruleAction106]() {
4279 goto l214
4280 }
4281 goto l213
4282 l214:
4283 position, tokenIndex = position214, tokenIndex214
4284 }
4285 add(ruleExpr4, position212)
4286 }
4287 return true
4288 l211:
4289 position, tokenIndex = position211, tokenIndex211
4290 return false
4291 },
4292 /* 43 Expr5 <- <((L_PARENS Expr R_PARENS Space) / (NOT Literal Space Action107) / (NOT L_PARENS Expr R_PARENS Space Action108) / (NEG Literal Space Action109) / (NEG L_PARENS Expr R_PARENS Space Action110) / (Literal Space Action111) / (FuncCall Space Action112) / Identifier)> */
4293 func() bool {
4294 position215, tokenIndex215 := position, tokenIndex
4295 {
4296 position216 := position
4297 {
4298 position217, tokenIndex217 := position, tokenIndex
4299 if !_rules[ruleL_PARENS]() {
4300 goto l218
4301 }
4302 if !_rules[ruleExpr]() {
4303 goto l218
4304 }
4305 if !_rules[ruleR_PARENS]() {
4306 goto l218
4307 }
4308 if !_rules[ruleSpace]() {
4309 goto l218
4310 }
4311 goto l217
4312 l218:
4313 position, tokenIndex = position217, tokenIndex217
4314 if !_rules[ruleNOT]() {
4315 goto l219
4316 }
4317 if !_rules[ruleLiteral]() {
4318 goto l219
4319 }
4320 if !_rules[ruleSpace]() {
4321 goto l219
4322 }
4323 if !_rules[ruleAction107]() {
4324 goto l219
4325 }
4326 goto l217
4327 l219:
4328 position, tokenIndex = position217, tokenIndex217
4329 if !_rules[ruleNOT]() {
4330 goto l220
4331 }
4332 if !_rules[ruleL_PARENS]() {
4333 goto l220
4334 }
4335 if !_rules[ruleExpr]() {
4336 goto l220
4337 }
4338 if !_rules[ruleR_PARENS]() {
4339 goto l220
4340 }
4341 if !_rules[ruleSpace]() {
4342 goto l220
4343 }
4344 if !_rules[ruleAction108]() {
4345 goto l220
4346 }
4347 goto l217
4348 l220:
4349 position, tokenIndex = position217, tokenIndex217
4350 if !_rules[ruleNEG]() {
4351 goto l221
4352 }
4353 if !_rules[ruleLiteral]() {
4354 goto l221
4355 }
4356 if !_rules[ruleSpace]() {
4357 goto l221
4358 }
4359 if !_rules[ruleAction109]() {
4360 goto l221
4361 }
4362 goto l217
4363 l221:
4364 position, tokenIndex = position217, tokenIndex217
4365 if !_rules[ruleNEG]() {
4366 goto l222
4367 }
4368 if !_rules[ruleL_PARENS]() {
4369 goto l222
4370 }
4371 if !_rules[ruleExpr]() {
4372 goto l222
4373 }
4374 if !_rules[ruleR_PARENS]() {
4375 goto l222
4376 }
4377 if !_rules[ruleSpace]() {
4378 goto l222
4379 }
4380 if !_rules[ruleAction110]() {
4381 goto l222
4382 }
4383 goto l217
4384 l222:
4385 position, tokenIndex = position217, tokenIndex217
4386 if !_rules[ruleLiteral]() {
4387 goto l223
4388 }
4389 if !_rules[ruleSpace]() {
4390 goto l223
4391 }
4392 if !_rules[ruleAction111]() {
4393 goto l223
4394 }
4395 goto l217
4396 l223:
4397 position, tokenIndex = position217, tokenIndex217
4398 if !_rules[ruleFuncCall]() {
4399 goto l224
4400 }
4401 if !_rules[ruleSpace]() {
4402 goto l224
4403 }
4404 if !_rules[ruleAction112]() {
4405 goto l224
4406 }
4407 goto l217
4408 l224:
4409 position, tokenIndex = position217, tokenIndex217
4410 if !_rules[ruleIdentifier]() {
4411 goto l215
4412 }
4413 }
4414 l217:
4415 add(ruleExpr5, position216)
4416 }
4417 return true
4418 l215:
4419 position, tokenIndex = position215, tokenIndex215
4420 return false
4421 },
4422 /* 44 Literal <- <((String Action113) / (('d' 'u' 'r' ':')? Duration Action114) / (('t' 's' ':')? Timestamp Action115) / (F64 Action116) / (I64 Action117) / (Bool Action118) / ('d' 'y' 'n' 'a' 'm' 'i' 'c' '(' Array ')' Action119) / ('d' 'y' 'n' 'a' 'm' 'i' 'c' '(' Object ')' Action120))> */
4423 func() bool {
4424 position225, tokenIndex225 := position, tokenIndex
4425 {
4426 position226 := position
4427 {
4428 position227, tokenIndex227 := position, tokenIndex
4429 if !_rules[ruleString]() {
4430 goto l228
4431 }
4432 if !_rules[ruleAction113]() {
4433 goto l228
4434 }
4435 goto l227
4436 l228:
4437 position, tokenIndex = position227, tokenIndex227
4438 {
4439 position230, tokenIndex230 := position, tokenIndex
4440 if buffer[position] != rune('d') {
4441 goto l230
4442 }
4443 position++
4444 if buffer[position] != rune('u') {
4445 goto l230
4446 }
4447 position++
4448 if buffer[position] != rune('r') {
4449 goto l230
4450 }
4451 position++
4452 if buffer[position] != rune(':') {
4453 goto l230
4454 }
4455 position++
4456 goto l231
4457 l230:
4458 position, tokenIndex = position230, tokenIndex230
4459 }
4460 l231:
4461 if !_rules[ruleDuration]() {
4462 goto l229
4463 }
4464 if !_rules[ruleAction114]() {
4465 goto l229
4466 }
4467 goto l227
4468 l229:
4469 position, tokenIndex = position227, tokenIndex227
4470 {
4471 position233, tokenIndex233 := position, tokenIndex
4472 if buffer[position] != rune('t') {
4473 goto l233
4474 }
4475 position++
4476 if buffer[position] != rune('s') {
4477 goto l233
4478 }
4479 position++
4480 if buffer[position] != rune(':') {
4481 goto l233
4482 }
4483 position++
4484 goto l234
4485 l233:
4486 position, tokenIndex = position233, tokenIndex233
4487 }
4488 l234:
4489 if !_rules[ruleTimestamp]() {
4490 goto l232
4491 }
4492 if !_rules[ruleAction115]() {
4493 goto l232
4494 }
4495 goto l227
4496 l232:
4497 position, tokenIndex = position227, tokenIndex227
4498 if !_rules[ruleF64]() {
4499 goto l235
4500 }
4501 if !_rules[ruleAction116]() {
4502 goto l235
4503 }
4504 goto l227
4505 l235:
4506 position, tokenIndex = position227, tokenIndex227
4507 if !_rules[ruleI64]() {
4508 goto l236
4509 }
4510 if !_rules[ruleAction117]() {
4511 goto l236
4512 }
4513 goto l227
4514 l236:
4515 position, tokenIndex = position227, tokenIndex227
4516 if !_rules[ruleBool]() {
4517 goto l237
4518 }
4519 if !_rules[ruleAction118]() {
4520 goto l237
4521 }
4522 goto l227
4523 l237:
4524 position, tokenIndex = position227, tokenIndex227
4525 if buffer[position] != rune('d') {
4526 goto l238
4527 }
4528 position++
4529 if buffer[position] != rune('y') {
4530 goto l238
4531 }
4532 position++
4533 if buffer[position] != rune('n') {
4534 goto l238
4535 }
4536 position++
4537 if buffer[position] != rune('a') {
4538 goto l238
4539 }
4540 position++
4541 if buffer[position] != rune('m') {
4542 goto l238
4543 }
4544 position++
4545 if buffer[position] != rune('i') {
4546 goto l238
4547 }
4548 position++
4549 if buffer[position] != rune('c') {
4550 goto l238
4551 }
4552 position++
4553 if buffer[position] != rune('(') {
4554 goto l238
4555 }
4556 position++
4557 if !_rules[ruleArray]() {
4558 goto l238
4559 }
4560 if buffer[position] != rune(')') {
4561 goto l238
4562 }
4563 position++
4564 if !_rules[ruleAction119]() {
4565 goto l238
4566 }
4567 goto l227
4568 l238:
4569 position, tokenIndex = position227, tokenIndex227
4570 if buffer[position] != rune('d') {
4571 goto l225
4572 }
4573 position++
4574 if buffer[position] != rune('y') {
4575 goto l225
4576 }
4577 position++
4578 if buffer[position] != rune('n') {
4579 goto l225
4580 }
4581 position++
4582 if buffer[position] != rune('a') {
4583 goto l225
4584 }
4585 position++
4586 if buffer[position] != rune('m') {
4587 goto l225
4588 }
4589 position++
4590 if buffer[position] != rune('i') {
4591 goto l225
4592 }
4593 position++
4594 if buffer[position] != rune('c') {
4595 goto l225
4596 }
4597 position++
4598 if buffer[position] != rune('(') {
4599 goto l225
4600 }
4601 position++
4602 if !_rules[ruleObject]() {
4603 goto l225
4604 }
4605 if buffer[position] != rune(')') {
4606 goto l225
4607 }
4608 position++
4609 if !_rules[ruleAction120]() {
4610 goto l225
4611 }
4612 }
4613 l227:
4614 add(ruleLiteral, position226)
4615 }
4616 return true
4617 l225:
4618 position, tokenIndex = position225, tokenIndex225
4619 return false
4620 },
4621 /* 45 FuncCall <- <(Action121 FuncName '(' FuncArgs? ')' Space)> */
4622 func() bool {
4623 position239, tokenIndex239 := position, tokenIndex
4624 {
4625 position240 := position
4626 if !_rules[ruleAction121]() {
4627 goto l239
4628 }
4629 if !_rules[ruleFuncName]() {
4630 goto l239
4631 }
4632 if buffer[position] != rune('(') {
4633 goto l239
4634 }
4635 position++
4636 {
4637 position241, tokenIndex241 := position, tokenIndex
4638 if !_rules[ruleFuncArgs]() {
4639 goto l241
4640 }
4641 goto l242
4642 l241:
4643 position, tokenIndex = position241, tokenIndex241
4644 }
4645 l242:
4646 if buffer[position] != rune(')') {
4647 goto l239
4648 }
4649 position++
4650 if !_rules[ruleSpace]() {
4651 goto l239
4652 }
4653 add(ruleFuncCall, position240)
4654 }
4655 return true
4656 l239:
4657 position, tokenIndex = position239, tokenIndex239
4658 return false
4659 },
4660 /* 46 FuncName <- <(!ReservedKeyword <(([a-z] / [A-Z] / '_') ([a-z] / [A-Z] / '_' / [0-9])*)> Action122)> */
4661 func() bool {
4662 position243, tokenIndex243 := position, tokenIndex
4663 {
4664 position244 := position
4665 {
4666 position245, tokenIndex245 := position, tokenIndex
4667 if !_rules[ruleReservedKeyword]() {
4668 goto l245
4669 }
4670 goto l243
4671 l245:
4672 position, tokenIndex = position245, tokenIndex245
4673 }
4674 {
4675 position246 := position
4676 {
4677 position247, tokenIndex247 := position, tokenIndex
4678 if c := buffer[position]; c < rune('a') || c > rune('z') {
4679 goto l248
4680 }
4681 position++
4682 goto l247
4683 l248:
4684 position, tokenIndex = position247, tokenIndex247
4685 if c := buffer[position]; c < rune('A') || c > rune('Z') {
4686 goto l249
4687 }
4688 position++
4689 goto l247
4690 l249:
4691 position, tokenIndex = position247, tokenIndex247
4692 if buffer[position] != rune('_') {
4693 goto l243
4694 }
4695 position++
4696 }
4697 l247:
4698 l250:
4699 {
4700 position251, tokenIndex251 := position, tokenIndex
4701 {
4702 position252, tokenIndex252 := position, tokenIndex
4703 if c := buffer[position]; c < rune('a') || c > rune('z') {
4704 goto l253
4705 }
4706 position++
4707 goto l252
4708 l253:
4709 position, tokenIndex = position252, tokenIndex252
4710 if c := buffer[position]; c < rune('A') || c > rune('Z') {
4711 goto l254
4712 }
4713 position++
4714 goto l252
4715 l254:
4716 position, tokenIndex = position252, tokenIndex252
4717 if buffer[position] != rune('_') {
4718 goto l255
4719 }
4720 position++
4721 goto l252
4722 l255:
4723 position, tokenIndex = position252, tokenIndex252
4724 if c := buffer[position]; c < rune('0') || c > rune('9') {
4725 goto l251
4726 }
4727 position++
4728 }
4729 l252:
4730 goto l250
4731 l251:
4732 position, tokenIndex = position251, tokenIndex251
4733 }
4734 add(rulePegText, position246)
4735 }
4736 if !_rules[ruleAction122]() {
4737 goto l243
4738 }
4739 add(ruleFuncName, position244)
4740 }
4741 return true
4742 l243:
4743 position, tokenIndex = position243, tokenIndex243
4744 return false
4745 },
4746 /* 47 FuncArgs <- <(FuncArg (Space ',' Space FuncArg)* Space)> */
4747 func() bool {
4748 position256, tokenIndex256 := position, tokenIndex
4749 {
4750 position257 := position
4751 if !_rules[ruleFuncArg]() {
4752 goto l256
4753 }
4754 l258:
4755 {
4756 position259, tokenIndex259 := position, tokenIndex
4757 if !_rules[ruleSpace]() {
4758 goto l259
4759 }
4760 if buffer[position] != rune(',') {
4761 goto l259
4762 }
4763 position++
4764 if !_rules[ruleSpace]() {
4765 goto l259
4766 }
4767 if !_rules[ruleFuncArg]() {
4768 goto l259
4769 }
4770 goto l258
4771 l259:
4772 position, tokenIndex = position259, tokenIndex259
4773 }
4774 if !_rules[ruleSpace]() {
4775 goto l256
4776 }
4777 add(ruleFuncArgs, position257)
4778 }
4779 return true
4780 l256:
4781 position, tokenIndex = position256, tokenIndex256
4782 return false
4783 },
4784 /* 48 FuncArg <- <(Expr Action123)> */
4785 func() bool {
4786 position260, tokenIndex260 := position, tokenIndex
4787 {
4788 position261 := position
4789 if !_rules[ruleExpr]() {
4790 goto l260
4791 }
4792 if !_rules[ruleAction123]() {
4793 goto l260
4794 }
4795 add(ruleFuncArg, position261)
4796 }
4797 return true
4798 l260:
4799 position, tokenIndex = position260, tokenIndex260
4800 return false
4801 },
4802 /* 49 Identifier <- <((<(([a-z] / [A-Z] / '_') ([a-z] / [A-Z] / [0-9] / '_')*)> Action124) / ('[' '\'' <([a-z] / [A-Z] / [0-9] / '_' / '-' / '.' / ' ')*> ('\'' ']') Action125) / ('[' '"' <([a-z] / [A-Z] / [0-9] / '_' / '-' / '.' / ' ')*> ('"' ']') Action126))> */
4803 func() bool {
4804 position262, tokenIndex262 := position, tokenIndex
4805 {
4806 position263 := position
4807 {
4808 position264, tokenIndex264 := position, tokenIndex
4809 {
4810 position266 := position
4811 {
4812 position267, tokenIndex267 := position, tokenIndex
4813 if c := buffer[position]; c < rune('a') || c > rune('z') {
4814 goto l268
4815 }
4816 position++
4817 goto l267
4818 l268:
4819 position, tokenIndex = position267, tokenIndex267
4820 if c := buffer[position]; c < rune('A') || c > rune('Z') {
4821 goto l269
4822 }
4823 position++
4824 goto l267
4825 l269:
4826 position, tokenIndex = position267, tokenIndex267
4827 if buffer[position] != rune('_') {
4828 goto l265
4829 }
4830 position++
4831 }
4832 l267:
4833 l270:
4834 {
4835 position271, tokenIndex271 := position, tokenIndex
4836 {
4837 position272, tokenIndex272 := position, tokenIndex
4838 if c := buffer[position]; c < rune('a') || c > rune('z') {
4839 goto l273
4840 }
4841 position++
4842 goto l272
4843 l273:
4844 position, tokenIndex = position272, tokenIndex272
4845 if c := buffer[position]; c < rune('A') || c > rune('Z') {
4846 goto l274
4847 }
4848 position++
4849 goto l272
4850 l274:
4851 position, tokenIndex = position272, tokenIndex272
4852 if c := buffer[position]; c < rune('0') || c > rune('9') {
4853 goto l275
4854 }
4855 position++
4856 goto l272
4857 l275:
4858 position, tokenIndex = position272, tokenIndex272
4859 if buffer[position] != rune('_') {
4860 goto l271
4861 }
4862 position++
4863 }
4864 l272:
4865 goto l270
4866 l271:
4867 position, tokenIndex = position271, tokenIndex271
4868 }
4869 add(rulePegText, position266)
4870 }
4871 if !_rules[ruleAction124]() {
4872 goto l265
4873 }
4874 goto l264
4875 l265:
4876 position, tokenIndex = position264, tokenIndex264
4877 if buffer[position] != rune('[') {
4878 goto l276
4879 }
4880 position++
4881 if buffer[position] != rune('\'') {
4882 goto l276
4883 }
4884 position++
4885 {
4886 position277 := position
4887 l278:
4888 {
4889 position279, tokenIndex279 := position, tokenIndex
4890 {
4891 position280, tokenIndex280 := position, tokenIndex
4892 if c := buffer[position]; c < rune('a') || c > rune('z') {
4893 goto l281
4894 }
4895 position++
4896 goto l280
4897 l281:
4898 position, tokenIndex = position280, tokenIndex280
4899 if c := buffer[position]; c < rune('A') || c > rune('Z') {
4900 goto l282
4901 }
4902 position++
4903 goto l280
4904 l282:
4905 position, tokenIndex = position280, tokenIndex280
4906 if c := buffer[position]; c < rune('0') || c > rune('9') {
4907 goto l283
4908 }
4909 position++
4910 goto l280
4911 l283:
4912 position, tokenIndex = position280, tokenIndex280
4913 if buffer[position] != rune('_') {
4914 goto l284
4915 }
4916 position++
4917 goto l280
4918 l284:
4919 position, tokenIndex = position280, tokenIndex280
4920 if buffer[position] != rune('-') {
4921 goto l285
4922 }
4923 position++
4924 goto l280
4925 l285:
4926 position, tokenIndex = position280, tokenIndex280
4927 if buffer[position] != rune('.') {
4928 goto l286
4929 }
4930 position++
4931 goto l280
4932 l286:
4933 position, tokenIndex = position280, tokenIndex280
4934 if buffer[position] != rune(' ') {
4935 goto l279
4936 }
4937 position++
4938 }
4939 l280:
4940 goto l278
4941 l279:
4942 position, tokenIndex = position279, tokenIndex279
4943 }
4944 add(rulePegText, position277)
4945 }
4946 if buffer[position] != rune('\'') {
4947 goto l276
4948 }
4949 position++
4950 if buffer[position] != rune(']') {
4951 goto l276
4952 }
4953 position++
4954 if !_rules[ruleAction125]() {
4955 goto l276
4956 }
4957 goto l264
4958 l276:
4959 position, tokenIndex = position264, tokenIndex264
4960 if buffer[position] != rune('[') {
4961 goto l262
4962 }
4963 position++
4964 if buffer[position] != rune('"') {
4965 goto l262
4966 }
4967 position++
4968 {
4969 position287 := position
4970 l288:
4971 {
4972 position289, tokenIndex289 := position, tokenIndex
4973 {
4974 position290, tokenIndex290 := position, tokenIndex
4975 if c := buffer[position]; c < rune('a') || c > rune('z') {
4976 goto l291
4977 }
4978 position++
4979 goto l290
4980 l291:
4981 position, tokenIndex = position290, tokenIndex290
4982 if c := buffer[position]; c < rune('A') || c > rune('Z') {
4983 goto l292
4984 }
4985 position++
4986 goto l290
4987 l292:
4988 position, tokenIndex = position290, tokenIndex290
4989 if c := buffer[position]; c < rune('0') || c > rune('9') {
4990 goto l293
4991 }
4992 position++
4993 goto l290
4994 l293:
4995 position, tokenIndex = position290, tokenIndex290
4996 if buffer[position] != rune('_') {
4997 goto l294
4998 }
4999 position++
5000 goto l290
5001 l294:
5002 position, tokenIndex = position290, tokenIndex290
5003 if buffer[position] != rune('-') {
5004 goto l295
5005 }
5006 position++
5007 goto l290
5008 l295:
5009 position, tokenIndex = position290, tokenIndex290
5010 if buffer[position] != rune('.') {
5011 goto l296
5012 }
5013 position++
5014 goto l290
5015 l296:
5016 position, tokenIndex = position290, tokenIndex290
5017 if buffer[position] != rune(' ') {
5018 goto l289
5019 }
5020 position++
5021 }
5022 l290:
5023 goto l288
5024 l289:
5025 position, tokenIndex = position289, tokenIndex289
5026 }
5027 add(rulePegText, position287)
5028 }
5029 if buffer[position] != rune('"') {
5030 goto l262
5031 }
5032 position++
5033 if buffer[position] != rune(']') {
5034 goto l262
5035 }
5036 position++
5037 if !_rules[ruleAction126]() {
5038 goto l262
5039 }
5040 }
5041 l264:
5042 add(ruleIdentifier, position263)
5043 }
5044 return true
5045 l262:
5046 position, tokenIndex = position262, tokenIndex262
5047 return false
5048 },
5049 /* 50 String <- <(<('"' DoubleQuoteStringChar* '"')> Action127)> */
5050 func() bool {
5051 position297, tokenIndex297 := position, tokenIndex
5052 {
5053 position298 := position
5054 {
5055 position299 := position
5056 if buffer[position] != rune('"') {
5057 goto l297
5058 }
5059 position++
5060 l300:
5061 {
5062 position301, tokenIndex301 := position, tokenIndex
5063 if !_rules[ruleDoubleQuoteStringChar]() {
5064 goto l301
5065 }
5066 goto l300
5067 l301:
5068 position, tokenIndex = position301, tokenIndex301
5069 }
5070 if buffer[position] != rune('"') {
5071 goto l297
5072 }
5073 position++
5074 add(rulePegText, position299)
5075 }
5076 if !_rules[ruleAction127]() {
5077 goto l297
5078 }
5079 add(ruleString, position298)
5080 }
5081 return true
5082 l297:
5083 position, tokenIndex = position297, tokenIndex297
5084 return false
5085 },
5086 /* 51 F64 <- <((<(Digits '.' Digits? Exponent?)> Action128) / (<('.' Digits Exponent?)> Action129) / (<(Digits Exponent)> Action130))> */
5087 func() bool {
5088 position302, tokenIndex302 := position, tokenIndex
5089 {
5090 position303 := position
5091 {
5092 position304, tokenIndex304 := position, tokenIndex
5093 {
5094 position306 := position
5095 if !_rules[ruleDigits]() {
5096 goto l305
5097 }
5098 if buffer[position] != rune('.') {
5099 goto l305
5100 }
5101 position++
5102 {
5103 position307, tokenIndex307 := position, tokenIndex
5104 if !_rules[ruleDigits]() {
5105 goto l307
5106 }
5107 goto l308
5108 l307:
5109 position, tokenIndex = position307, tokenIndex307
5110 }
5111 l308:
5112 {
5113 position309, tokenIndex309 := position, tokenIndex
5114 if !_rules[ruleExponent]() {
5115 goto l309
5116 }
5117 goto l310
5118 l309:
5119 position, tokenIndex = position309, tokenIndex309
5120 }
5121 l310:
5122 add(rulePegText, position306)
5123 }
5124 if !_rules[ruleAction128]() {
5125 goto l305
5126 }
5127 goto l304
5128 l305:
5129 position, tokenIndex = position304, tokenIndex304
5130 {
5131 position312 := position
5132 if buffer[position] != rune('.') {
5133 goto l311
5134 }
5135 position++
5136 if !_rules[ruleDigits]() {
5137 goto l311
5138 }
5139 {
5140 position313, tokenIndex313 := position, tokenIndex
5141 if !_rules[ruleExponent]() {
5142 goto l313
5143 }
5144 goto l314
5145 l313:
5146 position, tokenIndex = position313, tokenIndex313
5147 }
5148 l314:
5149 add(rulePegText, position312)
5150 }
5151 if !_rules[ruleAction129]() {
5152 goto l311
5153 }
5154 goto l304
5155 l311:
5156 position, tokenIndex = position304, tokenIndex304
5157 {
5158 position315 := position
5159 if !_rules[ruleDigits]() {
5160 goto l302
5161 }
5162 if !_rules[ruleExponent]() {
5163 goto l302
5164 }
5165 add(rulePegText, position315)
5166 }
5167 if !_rules[ruleAction130]() {
5168 goto l302
5169 }
5170 }
5171 l304:
5172 add(ruleF64, position303)
5173 }
5174 return true
5175 l302:
5176 position, tokenIndex = position302, tokenIndex302
5177 return false
5178 },
5179 /* 52 I64 <- <(('0' Action131) / (<([1-9] ('_'* [0-9])*)> Action132))> */
5180 func() bool {
5181 position316, tokenIndex316 := position, tokenIndex
5182 {
5183 position317 := position
5184 {
5185 position318, tokenIndex318 := position, tokenIndex
5186 if buffer[position] != rune('0') {
5187 goto l319
5188 }
5189 position++
5190 if !_rules[ruleAction131]() {
5191 goto l319
5192 }
5193 goto l318
5194 l319:
5195 position, tokenIndex = position318, tokenIndex318
5196 {
5197 position320 := position
5198 if c := buffer[position]; c < rune('1') || c > rune('9') {
5199 goto l316
5200 }
5201 position++
5202 l321:
5203 {
5204 position322, tokenIndex322 := position, tokenIndex
5205 l323:
5206 {
5207 position324, tokenIndex324 := position, tokenIndex
5208 if buffer[position] != rune('_') {
5209 goto l324
5210 }
5211 position++
5212 goto l323
5213 l324:
5214 position, tokenIndex = position324, tokenIndex324
5215 }
5216 if c := buffer[position]; c < rune('0') || c > rune('9') {
5217 goto l322
5218 }
5219 position++
5220 goto l321
5221 l322:
5222 position, tokenIndex = position322, tokenIndex322
5223 }
5224 add(rulePegText, position320)
5225 }
5226 if !_rules[ruleAction132]() {
5227 goto l316
5228 }
5229 }
5230 l318:
5231 add(ruleI64, position317)
5232 }
5233 return true
5234 l316:
5235 position, tokenIndex = position316, tokenIndex316
5236 return false
5237 },
5238 /* 53 Bool <- <(('t' 'r' 'u' 'e' Action133) / ('f' 'a' 'l' 's' 'e' Action134))> */
5239 func() bool {
5240 position325, tokenIndex325 := position, tokenIndex
5241 {
5242 position326 := position
5243 {
5244 position327, tokenIndex327 := position, tokenIndex
5245 if buffer[position] != rune('t') {
5246 goto l328
5247 }
5248 position++
5249 if buffer[position] != rune('r') {
5250 goto l328
5251 }
5252 position++
5253 if buffer[position] != rune('u') {
5254 goto l328
5255 }
5256 position++
5257 if buffer[position] != rune('e') {
5258 goto l328
5259 }
5260 position++
5261 if !_rules[ruleAction133]() {
5262 goto l328
5263 }
5264 goto l327
5265 l328:
5266 position, tokenIndex = position327, tokenIndex327
5267 if buffer[position] != rune('f') {
5268 goto l325
5269 }
5270 position++
5271 if buffer[position] != rune('a') {
5272 goto l325
5273 }
5274 position++
5275 if buffer[position] != rune('l') {
5276 goto l325
5277 }
5278 position++
5279 if buffer[position] != rune('s') {
5280 goto l325
5281 }
5282 position++
5283 if buffer[position] != rune('e') {
5284 goto l325
5285 }
5286 position++
5287 if !_rules[ruleAction134]() {
5288 goto l325
5289 }
5290 }
5291 l327:
5292 add(ruleBool, position326)
5293 }
5294 return true
5295 l325:
5296 position, tokenIndex = position325, tokenIndex325
5297 return false
5298 },
5299 /* 54 ReservedKeyword <- <(('l' 'v' 'l') / ('m' 's' 'g') / ('k' 'v') / Bool)> */
5300 func() bool {
5301 position329, tokenIndex329 := position, tokenIndex
5302 {
5303 position330 := position
5304 {
5305 position331, tokenIndex331 := position, tokenIndex
5306 if buffer[position] != rune('l') {
5307 goto l332
5308 }
5309 position++
5310 if buffer[position] != rune('v') {
5311 goto l332
5312 }
5313 position++
5314 if buffer[position] != rune('l') {
5315 goto l332
5316 }
5317 position++
5318 goto l331
5319 l332:
5320 position, tokenIndex = position331, tokenIndex331
5321 if buffer[position] != rune('m') {
5322 goto l333
5323 }
5324 position++
5325 if buffer[position] != rune('s') {
5326 goto l333
5327 }
5328 position++
5329 if buffer[position] != rune('g') {
5330 goto l333
5331 }
5332 position++
5333 goto l331
5334 l333:
5335 position, tokenIndex = position331, tokenIndex331
5336 if buffer[position] != rune('k') {
5337 goto l334
5338 }
5339 position++
5340 if buffer[position] != rune('v') {
5341 goto l334
5342 }
5343 position++
5344 goto l331
5345 l334:
5346 position, tokenIndex = position331, tokenIndex331
5347 if !_rules[ruleBool]() {
5348 goto l329
5349 }
5350 }
5351 l331:
5352 add(ruleReservedKeyword, position330)
5353 }
5354 return true
5355 l329:
5356 position, tokenIndex = position329, tokenIndex329
5357 return false
5358 },
5359 /* 55 Array <- <(L_BRACKET Action135 (ArrayItem (COMMA ArrayItem)*)? R_BRACKET)> */
5360 func() bool {
5361 position335, tokenIndex335 := position, tokenIndex
5362 {
5363 position336 := position
5364 if !_rules[ruleL_BRACKET]() {
5365 goto l335
5366 }
5367 if !_rules[ruleAction135]() {
5368 goto l335
5369 }
5370 {
5371 position337, tokenIndex337 := position, tokenIndex
5372 if !_rules[ruleArrayItem]() {
5373 goto l337
5374 }
5375 l339:
5376 {
5377 position340, tokenIndex340 := position, tokenIndex
5378 if !_rules[ruleCOMMA]() {
5379 goto l340
5380 }
5381 if !_rules[ruleArrayItem]() {
5382 goto l340
5383 }
5384 goto l339
5385 l340:
5386 position, tokenIndex = position340, tokenIndex340
5387 }
5388 goto l338
5389 l337:
5390 position, tokenIndex = position337, tokenIndex337
5391 }
5392 l338:
5393 if !_rules[ruleR_BRACKET]() {
5394 goto l335
5395 }
5396 add(ruleArray, position336)
5397 }
5398 return true
5399 l335:
5400 position, tokenIndex = position335, tokenIndex335
5401 return false
5402 },
5403 /* 56 ArrayItem <- <(Literal Action136)> */
5404 func() bool {
5405 position341, tokenIndex341 := position, tokenIndex
5406 {
5407 position342 := position
5408 if !_rules[ruleLiteral]() {
5409 goto l341
5410 }
5411 if !_rules[ruleAction136]() {
5412 goto l341
5413 }
5414 add(ruleArrayItem, position342)
5415 }
5416 return true
5417 l341:
5418 position, tokenIndex = position341, tokenIndex341
5419 return false
5420 },
5421 /* 57 Object <- <(L_SQUIGGLY Action137 (ObjectItem (COMMA ObjectItem)*)? R_SQUIGGLY)> */
5422 func() bool {
5423 position343, tokenIndex343 := position, tokenIndex
5424 {
5425 position344 := position
5426 if !_rules[ruleL_SQUIGGLY]() {
5427 goto l343
5428 }
5429 if !_rules[ruleAction137]() {
5430 goto l343
5431 }
5432 {
5433 position345, tokenIndex345 := position, tokenIndex
5434 if !_rules[ruleObjectItem]() {
5435 goto l345
5436 }
5437 l347:
5438 {
5439 position348, tokenIndex348 := position, tokenIndex
5440 if !_rules[ruleCOMMA]() {
5441 goto l348
5442 }
5443 if !_rules[ruleObjectItem]() {
5444 goto l348
5445 }
5446 goto l347
5447 l348:
5448 position, tokenIndex = position348, tokenIndex348
5449 }
5450 goto l346
5451 l345:
5452 position, tokenIndex = position345, tokenIndex345
5453 }
5454 l346:
5455 if !_rules[ruleR_SQUIGGLY]() {
5456 goto l343
5457 }
5458 add(ruleObject, position344)
5459 }
5460 return true
5461 l343:
5462 position, tokenIndex = position343, tokenIndex343
5463 return false
5464 },
5465 /* 58 ObjectItem <- <(ObjectKey COLON Literal Action138)> */
5466 func() bool {
5467 position349, tokenIndex349 := position, tokenIndex
5468 {
5469 position350 := position
5470 if !_rules[ruleObjectKey]() {
5471 goto l349
5472 }
5473 if !_rules[ruleCOLON]() {
5474 goto l349
5475 }
5476 if !_rules[ruleLiteral]() {
5477 goto l349
5478 }
5479 if !_rules[ruleAction138]() {
5480 goto l349
5481 }
5482 add(ruleObjectItem, position350)
5483 }
5484 return true
5485 l349:
5486 position, tokenIndex = position349, tokenIndex349
5487 return false
5488 },
5489 /* 59 ObjectKey <- <(String Action139)> */
5490 func() bool {
5491 position351, tokenIndex351 := position, tokenIndex
5492 {
5493 position352 := position
5494 if !_rules[ruleString]() {
5495 goto l351
5496 }
5497 if !_rules[ruleAction139]() {
5498 goto l351
5499 }
5500 add(ruleObjectKey, position352)
5501 }
5502 return true
5503 l351:
5504 position, tokenIndex = position351, tokenIndex351
5505 return false
5506 },
5507 /* 60 Duration <- <((F64 <(('u' 's') / ('µ' 's') / ('m' 's') / 's' / 'm' / 'h' / 'd' / 'w')> Action140) / (I64 <(('n' 's') / ('u' 's') / ('µ' 's') / ('m' 's') / 's' / 'm' / 'h' / 'd' / 'w')> Action141))> */
5508 func() bool {
5509 position353, tokenIndex353 := position, tokenIndex
5510 {
5511 position354 := position
5512 {
5513 position355, tokenIndex355 := position, tokenIndex
5514 if !_rules[ruleF64]() {
5515 goto l356
5516 }
5517 {
5518 position357 := position
5519 {
5520 position358, tokenIndex358 := position, tokenIndex
5521 if buffer[position] != rune('u') {
5522 goto l359
5523 }
5524 position++
5525 if buffer[position] != rune('s') {
5526 goto l359
5527 }
5528 position++
5529 goto l358
5530 l359:
5531 position, tokenIndex = position358, tokenIndex358
5532 if buffer[position] != rune('µ') {
5533 goto l360
5534 }
5535 position++
5536 if buffer[position] != rune('s') {
5537 goto l360
5538 }
5539 position++
5540 goto l358
5541 l360:
5542 position, tokenIndex = position358, tokenIndex358
5543 if buffer[position] != rune('m') {
5544 goto l361
5545 }
5546 position++
5547 if buffer[position] != rune('s') {
5548 goto l361
5549 }
5550 position++
5551 goto l358
5552 l361:
5553 position, tokenIndex = position358, tokenIndex358
5554 if buffer[position] != rune('s') {
5555 goto l362
5556 }
5557 position++
5558 goto l358
5559 l362:
5560 position, tokenIndex = position358, tokenIndex358
5561 if buffer[position] != rune('m') {
5562 goto l363
5563 }
5564 position++
5565 goto l358
5566 l363:
5567 position, tokenIndex = position358, tokenIndex358
5568 if buffer[position] != rune('h') {
5569 goto l364
5570 }
5571 position++
5572 goto l358
5573 l364:
5574 position, tokenIndex = position358, tokenIndex358
5575 if buffer[position] != rune('d') {
5576 goto l365
5577 }
5578 position++
5579 goto l358
5580 l365:
5581 position, tokenIndex = position358, tokenIndex358
5582 if buffer[position] != rune('w') {
5583 goto l356
5584 }
5585 position++
5586 }
5587 l358:
5588 add(rulePegText, position357)
5589 }
5590 if !_rules[ruleAction140]() {
5591 goto l356
5592 }
5593 goto l355
5594 l356:
5595 position, tokenIndex = position355, tokenIndex355
5596 if !_rules[ruleI64]() {
5597 goto l353
5598 }
5599 {
5600 position366 := position
5601 {
5602 position367, tokenIndex367 := position, tokenIndex
5603 if buffer[position] != rune('n') {
5604 goto l368
5605 }
5606 position++
5607 if buffer[position] != rune('s') {
5608 goto l368
5609 }
5610 position++
5611 goto l367
5612 l368:
5613 position, tokenIndex = position367, tokenIndex367
5614 if buffer[position] != rune('u') {
5615 goto l369
5616 }
5617 position++
5618 if buffer[position] != rune('s') {
5619 goto l369
5620 }
5621 position++
5622 goto l367
5623 l369:
5624 position, tokenIndex = position367, tokenIndex367
5625 if buffer[position] != rune('µ') {
5626 goto l370
5627 }
5628 position++
5629 if buffer[position] != rune('s') {
5630 goto l370
5631 }
5632 position++
5633 goto l367
5634 l370:
5635 position, tokenIndex = position367, tokenIndex367
5636 if buffer[position] != rune('m') {
5637 goto l371
5638 }
5639 position++
5640 if buffer[position] != rune('s') {
5641 goto l371
5642 }
5643 position++
5644 goto l367
5645 l371:
5646 position, tokenIndex = position367, tokenIndex367
5647 if buffer[position] != rune('s') {
5648 goto l372
5649 }
5650 position++
5651 goto l367
5652 l372:
5653 position, tokenIndex = position367, tokenIndex367
5654 if buffer[position] != rune('m') {
5655 goto l373
5656 }
5657 position++
5658 goto l367
5659 l373:
5660 position, tokenIndex = position367, tokenIndex367
5661 if buffer[position] != rune('h') {
5662 goto l374
5663 }
5664 position++
5665 goto l367
5666 l374:
5667 position, tokenIndex = position367, tokenIndex367
5668 if buffer[position] != rune('d') {
5669 goto l375
5670 }
5671 position++
5672 goto l367
5673 l375:
5674 position, tokenIndex = position367, tokenIndex367
5675 if buffer[position] != rune('w') {
5676 goto l353
5677 }
5678 position++
5679 }
5680 l367:
5681 add(rulePegText, position366)
5682 }
5683 if !_rules[ruleAction141]() {
5684 goto l353
5685 }
5686 }
5687 l355:
5688 add(ruleDuration, position354)
5689 }
5690 return true
5691 l353:
5692 position, tokenIndex = position353, tokenIndex353
5693 return false
5694 },
5695 /* 61 Timestamp <- <(<RFC3339Nano> Action142)> */
5696 func() bool {
5697 position376, tokenIndex376 := position, tokenIndex
5698 {
5699 position377 := position
5700 {
5701 position378 := position
5702 if !_rules[ruleRFC3339Nano]() {
5703 goto l376
5704 }
5705 add(rulePegText, position378)
5706 }
5707 if !_rules[ruleAction142]() {
5708 goto l376
5709 }
5710 add(ruleTimestamp, position377)
5711 }
5712 return true
5713 l376:
5714 position, tokenIndex = position376, tokenIndex376
5715 return false
5716 },
5717 /* 62 DoubleQuoteStringChar <- <(('\\' ('\'' / '"' / '?' / '\\' / '%' / 'a' / 'b' / 'f' / 'n' / 'r' / 't' / 'v')) / (!('"' / '\n' / '\\') .))> */
5718 func() bool {
5719 position379, tokenIndex379 := position, tokenIndex
5720 {
5721 position380 := position
5722 {
5723 position381, tokenIndex381 := position, tokenIndex
5724 if buffer[position] != rune('\\') {
5725 goto l382
5726 }
5727 position++
5728 {
5729 position383, tokenIndex383 := position, tokenIndex
5730 if buffer[position] != rune('\'') {
5731 goto l384
5732 }
5733 position++
5734 goto l383
5735 l384:
5736 position, tokenIndex = position383, tokenIndex383
5737 if buffer[position] != rune('"') {
5738 goto l385
5739 }
5740 position++
5741 goto l383
5742 l385:
5743 position, tokenIndex = position383, tokenIndex383
5744 if buffer[position] != rune('?') {
5745 goto l386
5746 }
5747 position++
5748 goto l383
5749 l386:
5750 position, tokenIndex = position383, tokenIndex383
5751 if buffer[position] != rune('\\') {
5752 goto l387
5753 }
5754 position++
5755 goto l383
5756 l387:
5757 position, tokenIndex = position383, tokenIndex383
5758 if buffer[position] != rune('%') {
5759 goto l388
5760 }
5761 position++
5762 goto l383
5763 l388:
5764 position, tokenIndex = position383, tokenIndex383
5765 if buffer[position] != rune('a') {
5766 goto l389
5767 }
5768 position++
5769 goto l383
5770 l389:
5771 position, tokenIndex = position383, tokenIndex383
5772 if buffer[position] != rune('b') {
5773 goto l390
5774 }
5775 position++
5776 goto l383
5777 l390:
5778 position, tokenIndex = position383, tokenIndex383
5779 if buffer[position] != rune('f') {
5780 goto l391
5781 }
5782 position++
5783 goto l383
5784 l391:
5785 position, tokenIndex = position383, tokenIndex383
5786 if buffer[position] != rune('n') {
5787 goto l392
5788 }
5789 position++
5790 goto l383
5791 l392:
5792 position, tokenIndex = position383, tokenIndex383
5793 if buffer[position] != rune('r') {
5794 goto l393
5795 }
5796 position++
5797 goto l383
5798 l393:
5799 position, tokenIndex = position383, tokenIndex383
5800 if buffer[position] != rune('t') {
5801 goto l394
5802 }
5803 position++
5804 goto l383
5805 l394:
5806 position, tokenIndex = position383, tokenIndex383
5807 if buffer[position] != rune('v') {
5808 goto l382
5809 }
5810 position++
5811 }
5812 l383:
5813 goto l381
5814 l382:
5815 position, tokenIndex = position381, tokenIndex381
5816 {
5817 position395, tokenIndex395 := position, tokenIndex
5818 {
5819 position396, tokenIndex396 := position, tokenIndex
5820 if buffer[position] != rune('"') {
5821 goto l397
5822 }
5823 position++
5824 goto l396
5825 l397:
5826 position, tokenIndex = position396, tokenIndex396
5827 if buffer[position] != rune('\n') {
5828 goto l398
5829 }
5830 position++
5831 goto l396
5832 l398:
5833 position, tokenIndex = position396, tokenIndex396
5834 if buffer[position] != rune('\\') {
5835 goto l395
5836 }
5837 position++
5838 }
5839 l396:
5840 goto l379
5841 l395:
5842 position, tokenIndex = position395, tokenIndex395
5843 }
5844 if !matchDot() {
5845 goto l379
5846 }
5847 }
5848 l381:
5849 add(ruleDoubleQuoteStringChar, position380)
5850 }
5851 return true
5852 l379:
5853 position, tokenIndex = position379, tokenIndex379
5854 return false
5855 },
5856 /* 63 Exponent <- <(('e' / 'E') ('+' / '-')? Digits)> */
5857 func() bool {
5858 position399, tokenIndex399 := position, tokenIndex
5859 {
5860 position400 := position
5861 {
5862 position401, tokenIndex401 := position, tokenIndex
5863 if buffer[position] != rune('e') {
5864 goto l402
5865 }
5866 position++
5867 goto l401
5868 l402:
5869 position, tokenIndex = position401, tokenIndex401
5870 if buffer[position] != rune('E') {
5871 goto l399
5872 }
5873 position++
5874 }
5875 l401:
5876 {
5877 position403, tokenIndex403 := position, tokenIndex
5878 {
5879 position405, tokenIndex405 := position, tokenIndex
5880 if buffer[position] != rune('+') {
5881 goto l406
5882 }
5883 position++
5884 goto l405
5885 l406:
5886 position, tokenIndex = position405, tokenIndex405
5887 if buffer[position] != rune('-') {
5888 goto l403
5889 }
5890 position++
5891 }
5892 l405:
5893 goto l404
5894 l403:
5895 position, tokenIndex = position403, tokenIndex403
5896 }
5897 l404:
5898 if !_rules[ruleDigits]() {
5899 goto l399
5900 }
5901 add(ruleExponent, position400)
5902 }
5903 return true
5904 l399:
5905 position, tokenIndex = position399, tokenIndex399
5906 return false
5907 },
5908 /* 64 Digits <- <([0-9] ('_'* [0-9])*)> */
5909 func() bool {
5910 position407, tokenIndex407 := position, tokenIndex
5911 {
5912 position408 := position
5913 if c := buffer[position]; c < rune('0') || c > rune('9') {
5914 goto l407
5915 }
5916 position++
5917 l409:
5918 {
5919 position410, tokenIndex410 := position, tokenIndex
5920 l411:
5921 {
5922 position412, tokenIndex412 := position, tokenIndex
5923 if buffer[position] != rune('_') {
5924 goto l412
5925 }
5926 position++
5927 goto l411
5928 l412:
5929 position, tokenIndex = position412, tokenIndex412
5930 }
5931 if c := buffer[position]; c < rune('0') || c > rune('9') {
5932 goto l410
5933 }
5934 position++
5935 goto l409
5936 l410:
5937 position, tokenIndex = position410, tokenIndex410
5938 }
5939 add(ruleDigits, position408)
5940 }
5941 return true
5942 l407:
5943 position, tokenIndex = position407, tokenIndex407
5944 return false
5945 },
5946 /* 65 RFC3339Nano <- <(RFC3339NanoDate 'T' RFC3339NanoTime RFC3339NanoTimezone)> */
5947 func() bool {
5948 position413, tokenIndex413 := position, tokenIndex
5949 {
5950 position414 := position
5951 if !_rules[ruleRFC3339NanoDate]() {
5952 goto l413
5953 }
5954 if buffer[position] != rune('T') {
5955 goto l413
5956 }
5957 position++
5958 if !_rules[ruleRFC3339NanoTime]() {
5959 goto l413
5960 }
5961 if !_rules[ruleRFC3339NanoTimezone]() {
5962 goto l413
5963 }
5964 add(ruleRFC3339Nano, position414)
5965 }
5966 return true
5967 l413:
5968 position, tokenIndex = position413, tokenIndex413
5969 return false
5970 },
5971 /* 66 RFC3339NanoDate <- <(Number '-' Number '-' Number)> */
5972 func() bool {
5973 position415, tokenIndex415 := position, tokenIndex
5974 {
5975 position416 := position
5976 if !_rules[ruleNumber]() {
5977 goto l415
5978 }
5979 if buffer[position] != rune('-') {
5980 goto l415
5981 }
5982 position++
5983 if !_rules[ruleNumber]() {
5984 goto l415
5985 }
5986 if buffer[position] != rune('-') {
5987 goto l415
5988 }
5989 position++
5990 if !_rules[ruleNumber]() {
5991 goto l415
5992 }
5993 add(ruleRFC3339NanoDate, position416)
5994 }
5995 return true
5996 l415:
5997 position, tokenIndex = position415, tokenIndex415
5998 return false
5999 },
6000 /* 67 RFC3339NanoTime <- <(Number ':' Number ':' Number ('.' Number)?)> */
6001 func() bool {
6002 position417, tokenIndex417 := position, tokenIndex
6003 {
6004 position418 := position
6005 if !_rules[ruleNumber]() {
6006 goto l417
6007 }
6008 if buffer[position] != rune(':') {
6009 goto l417
6010 }
6011 position++
6012 if !_rules[ruleNumber]() {
6013 goto l417
6014 }
6015 if buffer[position] != rune(':') {
6016 goto l417
6017 }
6018 position++
6019 if !_rules[ruleNumber]() {
6020 goto l417
6021 }
6022 {
6023 position419, tokenIndex419 := position, tokenIndex
6024 if buffer[position] != rune('.') {
6025 goto l419
6026 }
6027 position++
6028 if !_rules[ruleNumber]() {
6029 goto l419
6030 }
6031 goto l420
6032 l419:
6033 position, tokenIndex = position419, tokenIndex419
6034 }
6035 l420:
6036 add(ruleRFC3339NanoTime, position418)
6037 }
6038 return true
6039 l417:
6040 position, tokenIndex = position417, tokenIndex417
6041 return false
6042 },
6043 /* 68 RFC3339NanoTimezone <- <('Z' / ('+' Number ':' Number))> */
6044 func() bool {
6045 position421, tokenIndex421 := position, tokenIndex
6046 {
6047 position422 := position
6048 {
6049 position423, tokenIndex423 := position, tokenIndex
6050 if buffer[position] != rune('Z') {
6051 goto l424
6052 }
6053 position++
6054 goto l423
6055 l424:
6056 position, tokenIndex = position423, tokenIndex423
6057 if buffer[position] != rune('+') {
6058 goto l421
6059 }
6060 position++
6061 if !_rules[ruleNumber]() {
6062 goto l421
6063 }
6064 if buffer[position] != rune(':') {
6065 goto l421
6066 }
6067 position++
6068 if !_rules[ruleNumber]() {
6069 goto l421
6070 }
6071 }
6072 l423:
6073 add(ruleRFC3339NanoTimezone, position422)
6074 }
6075 return true
6076 l421:
6077 position, tokenIndex = position421, tokenIndex421
6078 return false
6079 },
6080 /* 69 Number <- <<[0-9]+>> */
6081 func() bool {
6082 position425, tokenIndex425 := position, tokenIndex
6083 {
6084 position426 := position
6085 {
6086 position427 := position
6087 if c := buffer[position]; c < rune('0') || c > rune('9') {
6088 goto l425
6089 }
6090 position++
6091 l428:
6092 {
6093 position429, tokenIndex429 := position, tokenIndex
6094 if c := buffer[position]; c < rune('0') || c > rune('9') {
6095 goto l429
6096 }
6097 position++
6098 goto l428
6099 l429:
6100 position, tokenIndex = position429, tokenIndex429
6101 }
6102 add(rulePegText, position427)
6103 }
6104 add(ruleNumber, position426)
6105 }
6106 return true
6107 l425:
6108 position, tokenIndex = position425, tokenIndex425
6109 return false
6110 },
6111 /* 70 NOT <- <('!' Space)> */
6112 func() bool {
6113 position430, tokenIndex430 := position, tokenIndex
6114 {
6115 position431 := position
6116 if buffer[position] != rune('!') {
6117 goto l430
6118 }
6119 position++
6120 if !_rules[ruleSpace]() {
6121 goto l430
6122 }
6123 add(ruleNOT, position431)
6124 }
6125 return true
6126 l430:
6127 position, tokenIndex = position430, tokenIndex430
6128 return false
6129 },
6130 /* 71 NEG <- <('-' Space)> */
6131 func() bool {
6132 position432, tokenIndex432 := position, tokenIndex
6133 {
6134 position433 := position
6135 if buffer[position] != rune('-') {
6136 goto l432
6137 }
6138 position++
6139 if !_rules[ruleSpace]() {
6140 goto l432
6141 }
6142 add(ruleNEG, position433)
6143 }
6144 return true
6145 l432:
6146 position, tokenIndex = position432, tokenIndex432
6147 return false
6148 },
6149 /* 72 NUM_ADD <- <('+' Space)> */
6150 func() bool {
6151 position434, tokenIndex434 := position, tokenIndex
6152 {
6153 position435 := position
6154 if buffer[position] != rune('+') {
6155 goto l434
6156 }
6157 position++
6158 if !_rules[ruleSpace]() {
6159 goto l434
6160 }
6161 add(ruleNUM_ADD, position435)
6162 }
6163 return true
6164 l434:
6165 position, tokenIndex = position434, tokenIndex434
6166 return false
6167 },
6168 /* 73 NUM_SUB <- <('-' Space)> */
6169 func() bool {
6170 position436, tokenIndex436 := position, tokenIndex
6171 {
6172 position437 := position
6173 if buffer[position] != rune('-') {
6174 goto l436
6175 }
6176 position++
6177 if !_rules[ruleSpace]() {
6178 goto l436
6179 }
6180 add(ruleNUM_SUB, position437)
6181 }
6182 return true
6183 l436:
6184 position, tokenIndex = position436, tokenIndex436
6185 return false
6186 },
6187 /* 74 NUM_DIV <- <('/' Space)> */
6188 func() bool {
6189 position438, tokenIndex438 := position, tokenIndex
6190 {
6191 position439 := position
6192 if buffer[position] != rune('/') {
6193 goto l438
6194 }
6195 position++
6196 if !_rules[ruleSpace]() {
6197 goto l438
6198 }
6199 add(ruleNUM_DIV, position439)
6200 }
6201 return true
6202 l438:
6203 position, tokenIndex = position438, tokenIndex438
6204 return false
6205 },
6206 /* 75 NUM_MUL <- <('*' Space)> */
6207 func() bool {
6208 position440, tokenIndex440 := position, tokenIndex
6209 {
6210 position441 := position
6211 if buffer[position] != rune('*') {
6212 goto l440
6213 }
6214 position++
6215 if !_rules[ruleSpace]() {
6216 goto l440
6217 }
6218 add(ruleNUM_MUL, position441)
6219 }
6220 return true
6221 l440:
6222 position, tokenIndex = position440, tokenIndex440
6223 return false
6224 },
6225 /* 76 NUM_MOD <- <('%' Space)> */
6226 func() bool {
6227 position442, tokenIndex442 := position, tokenIndex
6228 {
6229 position443 := position
6230 if buffer[position] != rune('%') {
6231 goto l442
6232 }
6233 position++
6234 if !_rules[ruleSpace]() {
6235 goto l442
6236 }
6237 add(ruleNUM_MOD, position443)
6238 }
6239 return true
6240 l442:
6241 position, tokenIndex = position442, tokenIndex442
6242 return false
6243 },
6244 /* 77 LOG_AND <- <('a' 'n' 'd' MustSpace)> */
6245 func() bool {
6246 position444, tokenIndex444 := position, tokenIndex
6247 {
6248 position445 := position
6249 if buffer[position] != rune('a') {
6250 goto l444
6251 }
6252 position++
6253 if buffer[position] != rune('n') {
6254 goto l444
6255 }
6256 position++
6257 if buffer[position] != rune('d') {
6258 goto l444
6259 }
6260 position++
6261 if !_rules[ruleMustSpace]() {
6262 goto l444
6263 }
6264 add(ruleLOG_AND, position445)
6265 }
6266 return true
6267 l444:
6268 position, tokenIndex = position444, tokenIndex444
6269 return false
6270 },
6271 /* 78 LOG_OR <- <('o' 'r' MustSpace)> */
6272 func() bool {
6273 position446, tokenIndex446 := position, tokenIndex
6274 {
6275 position447 := position
6276 if buffer[position] != rune('o') {
6277 goto l446
6278 }
6279 position++
6280 if buffer[position] != rune('r') {
6281 goto l446
6282 }
6283 position++
6284 if !_rules[ruleMustSpace]() {
6285 goto l446
6286 }
6287 add(ruleLOG_OR, position447)
6288 }
6289 return true
6290 l446:
6291 position, tokenIndex = position446, tokenIndex446
6292 return false
6293 },
6294 /* 79 CMP_EQ <- <('=' '=' Space)> */
6295 func() bool {
6296 position448, tokenIndex448 := position, tokenIndex
6297 {
6298 position449 := position
6299 if buffer[position] != rune('=') {
6300 goto l448
6301 }
6302 position++
6303 if buffer[position] != rune('=') {
6304 goto l448
6305 }
6306 position++
6307 if !_rules[ruleSpace]() {
6308 goto l448
6309 }
6310 add(ruleCMP_EQ, position449)
6311 }
6312 return true
6313 l448:
6314 position, tokenIndex = position448, tokenIndex448
6315 return false
6316 },
6317 /* 80 CMP_NOTEQ <- <('!' '=' Space)> */
6318 func() bool {
6319 position450, tokenIndex450 := position, tokenIndex
6320 {
6321 position451 := position
6322 if buffer[position] != rune('!') {
6323 goto l450
6324 }
6325 position++
6326 if buffer[position] != rune('=') {
6327 goto l450
6328 }
6329 position++
6330 if !_rules[ruleSpace]() {
6331 goto l450
6332 }
6333 add(ruleCMP_NOTEQ, position451)
6334 }
6335 return true
6336 l450:
6337 position, tokenIndex = position450, tokenIndex450
6338 return false
6339 },
6340 /* 81 CMP_GT <- <('>' Space)> */
6341 func() bool {
6342 position452, tokenIndex452 := position, tokenIndex
6343 {
6344 position453 := position
6345 if buffer[position] != rune('>') {
6346 goto l452
6347 }
6348 position++
6349 if !_rules[ruleSpace]() {
6350 goto l452
6351 }
6352 add(ruleCMP_GT, position453)
6353 }
6354 return true
6355 l452:
6356 position, tokenIndex = position452, tokenIndex452
6357 return false
6358 },
6359 /* 82 CMP_GTE <- <('>' '=' Space)> */
6360 func() bool {
6361 position454, tokenIndex454 := position, tokenIndex
6362 {
6363 position455 := position
6364 if buffer[position] != rune('>') {
6365 goto l454
6366 }
6367 position++
6368 if buffer[position] != rune('=') {
6369 goto l454
6370 }
6371 position++
6372 if !_rules[ruleSpace]() {
6373 goto l454
6374 }
6375 add(ruleCMP_GTE, position455)
6376 }
6377 return true
6378 l454:
6379 position, tokenIndex = position454, tokenIndex454
6380 return false
6381 },
6382 /* 83 CMP_LT <- <('<' Space)> */
6383 func() bool {
6384 position456, tokenIndex456 := position, tokenIndex
6385 {
6386 position457 := position
6387 if buffer[position] != rune('<') {
6388 goto l456
6389 }
6390 position++
6391 if !_rules[ruleSpace]() {
6392 goto l456
6393 }
6394 add(ruleCMP_LT, position457)
6395 }
6396 return true
6397 l456:
6398 position, tokenIndex = position456, tokenIndex456
6399 return false
6400 },
6401 /* 84 CMP_LTE <- <('<' '=' Space)> */
6402 func() bool {
6403 position458, tokenIndex458 := position, tokenIndex
6404 {
6405 position459 := position
6406 if buffer[position] != rune('<') {
6407 goto l458
6408 }
6409 position++
6410 if buffer[position] != rune('=') {
6411 goto l458
6412 }
6413 position++
6414 if !_rules[ruleSpace]() {
6415 goto l458
6416 }
6417 add(ruleCMP_LTE, position459)
6418 }
6419 return true
6420 l458:
6421 position, tokenIndex = position458, tokenIndex458
6422 return false
6423 },
6424 /* 85 SET_IN <- <('i' 'n' MustSpace)> */
6425 func() bool {
6426 position460, tokenIndex460 := position, tokenIndex
6427 {
6428 position461 := position
6429 if buffer[position] != rune('i') {
6430 goto l460
6431 }
6432 position++
6433 if buffer[position] != rune('n') {
6434 goto l460
6435 }
6436 position++
6437 if !_rules[ruleMustSpace]() {
6438 goto l460
6439 }
6440 add(ruleSET_IN, position461)
6441 }
6442 return true
6443 l460:
6444 position, tokenIndex = position460, tokenIndex460
6445 return false
6446 },
6447 /* 86 SET_NOTIN <- <('!' 'i' 'n' MustSpace)> */
6448 func() bool {
6449 position462, tokenIndex462 := position, tokenIndex
6450 {
6451 position463 := position
6452 if buffer[position] != rune('!') {
6453 goto l462
6454 }
6455 position++
6456 if buffer[position] != rune('i') {
6457 goto l462
6458 }
6459 position++
6460 if buffer[position] != rune('n') {
6461 goto l462
6462 }
6463 position++
6464 if !_rules[ruleMustSpace]() {
6465 goto l462
6466 }
6467 add(ruleSET_NOTIN, position463)
6468 }
6469 return true
6470 l462:
6471 position, tokenIndex = position462, tokenIndex462
6472 return false
6473 },
6474 /* 87 STR_EQ_NOCS <- <('=' '~' Space)> */
6475 func() bool {
6476 position464, tokenIndex464 := position, tokenIndex
6477 {
6478 position465 := position
6479 if buffer[position] != rune('=') {
6480 goto l464
6481 }
6482 position++
6483 if buffer[position] != rune('~') {
6484 goto l464
6485 }
6486 position++
6487 if !_rules[ruleSpace]() {
6488 goto l464
6489 }
6490 add(ruleSTR_EQ_NOCS, position465)
6491 }
6492 return true
6493 l464:
6494 position, tokenIndex = position464, tokenIndex464
6495 return false
6496 },
6497 /* 88 STR_NOTEQ_NOCS <- <('!' '~' Space)> */
6498 func() bool {
6499 position466, tokenIndex466 := position, tokenIndex
6500 {
6501 position467 := position
6502 if buffer[position] != rune('!') {
6503 goto l466
6504 }
6505 position++
6506 if buffer[position] != rune('~') {
6507 goto l466
6508 }
6509 position++
6510 if !_rules[ruleSpace]() {
6511 goto l466
6512 }
6513 add(ruleSTR_NOTEQ_NOCS, position467)
6514 }
6515 return true
6516 l466:
6517 position, tokenIndex = position466, tokenIndex466
6518 return false
6519 },
6520 /* 89 STR_CONTAINS <- <('c' 'o' 'n' 't' 'a' 'i' 'n' 's' MustSpace)> */
6521 func() bool {
6522 position468, tokenIndex468 := position, tokenIndex
6523 {
6524 position469 := position
6525 if buffer[position] != rune('c') {
6526 goto l468
6527 }
6528 position++
6529 if buffer[position] != rune('o') {
6530 goto l468
6531 }
6532 position++
6533 if buffer[position] != rune('n') {
6534 goto l468
6535 }
6536 position++
6537 if buffer[position] != rune('t') {
6538 goto l468
6539 }
6540 position++
6541 if buffer[position] != rune('a') {
6542 goto l468
6543 }
6544 position++
6545 if buffer[position] != rune('i') {
6546 goto l468
6547 }
6548 position++
6549 if buffer[position] != rune('n') {
6550 goto l468
6551 }
6552 position++
6553 if buffer[position] != rune('s') {
6554 goto l468
6555 }
6556 position++
6557 if !_rules[ruleMustSpace]() {
6558 goto l468
6559 }
6560 add(ruleSTR_CONTAINS, position469)
6561 }
6562 return true
6563 l468:
6564 position, tokenIndex = position468, tokenIndex468
6565 return false
6566 },
6567 /* 90 STR_NOT_CONTAINS <- <('!' 'c' 'o' 'n' 't' 'a' 'i' 'n' 's' MustSpace)> */
6568 func() bool {
6569 position470, tokenIndex470 := position, tokenIndex
6570 {
6571 position471 := position
6572 if buffer[position] != rune('!') {
6573 goto l470
6574 }
6575 position++
6576 if buffer[position] != rune('c') {
6577 goto l470
6578 }
6579 position++
6580 if buffer[position] != rune('o') {
6581 goto l470
6582 }
6583 position++
6584 if buffer[position] != rune('n') {
6585 goto l470
6586 }
6587 position++
6588 if buffer[position] != rune('t') {
6589 goto l470
6590 }
6591 position++
6592 if buffer[position] != rune('a') {
6593 goto l470
6594 }
6595 position++
6596 if buffer[position] != rune('i') {
6597 goto l470
6598 }
6599 position++
6600 if buffer[position] != rune('n') {
6601 goto l470
6602 }
6603 position++
6604 if buffer[position] != rune('s') {
6605 goto l470
6606 }
6607 position++
6608 if !_rules[ruleMustSpace]() {
6609 goto l470
6610 }
6611 add(ruleSTR_NOT_CONTAINS, position471)
6612 }
6613 return true
6614 l470:
6615 position, tokenIndex = position470, tokenIndex470
6616 return false
6617 },
6618 /* 91 STR_CONTAINS_CS <- <('c' 'o' 'n' 't' 'a' 'i' 'n' 's' '_' 'c' 's' MustSpace)> */
6619 func() bool {
6620 position472, tokenIndex472 := position, tokenIndex
6621 {
6622 position473 := position
6623 if buffer[position] != rune('c') {
6624 goto l472
6625 }
6626 position++
6627 if buffer[position] != rune('o') {
6628 goto l472
6629 }
6630 position++
6631 if buffer[position] != rune('n') {
6632 goto l472
6633 }
6634 position++
6635 if buffer[position] != rune('t') {
6636 goto l472
6637 }
6638 position++
6639 if buffer[position] != rune('a') {
6640 goto l472
6641 }
6642 position++
6643 if buffer[position] != rune('i') {
6644 goto l472
6645 }
6646 position++
6647 if buffer[position] != rune('n') {
6648 goto l472
6649 }
6650 position++
6651 if buffer[position] != rune('s') {
6652 goto l472
6653 }
6654 position++
6655 if buffer[position] != rune('_') {
6656 goto l472
6657 }
6658 position++
6659 if buffer[position] != rune('c') {
6660 goto l472
6661 }
6662 position++
6663 if buffer[position] != rune('s') {
6664 goto l472
6665 }
6666 position++
6667 if !_rules[ruleMustSpace]() {
6668 goto l472
6669 }
6670 add(ruleSTR_CONTAINS_CS, position473)
6671 }
6672 return true
6673 l472:
6674 position, tokenIndex = position472, tokenIndex472
6675 return false
6676 },
6677 /* 92 STR_NOT_CONTAINS_CS <- <('!' 'c' 'o' 'n' 't' 'a' 'i' 'n' 's' '_' 'c' 's' MustSpace)> */
6678 func() bool {
6679 position474, tokenIndex474 := position, tokenIndex
6680 {
6681 position475 := position
6682 if buffer[position] != rune('!') {
6683 goto l474
6684 }
6685 position++
6686 if buffer[position] != rune('c') {
6687 goto l474
6688 }
6689 position++
6690 if buffer[position] != rune('o') {
6691 goto l474
6692 }
6693 position++
6694 if buffer[position] != rune('n') {
6695 goto l474
6696 }
6697 position++
6698 if buffer[position] != rune('t') {
6699 goto l474
6700 }
6701 position++
6702 if buffer[position] != rune('a') {
6703 goto l474
6704 }
6705 position++
6706 if buffer[position] != rune('i') {
6707 goto l474
6708 }
6709 position++
6710 if buffer[position] != rune('n') {
6711 goto l474
6712 }
6713 position++
6714 if buffer[position] != rune('s') {
6715 goto l474
6716 }
6717 position++
6718 if buffer[position] != rune('_') {
6719 goto l474
6720 }
6721 position++
6722 if buffer[position] != rune('c') {
6723 goto l474
6724 }
6725 position++
6726 if buffer[position] != rune('s') {
6727 goto l474
6728 }
6729 position++
6730 if !_rules[ruleMustSpace]() {
6731 goto l474
6732 }
6733 add(ruleSTR_NOT_CONTAINS_CS, position475)
6734 }
6735 return true
6736 l474:
6737 position, tokenIndex = position474, tokenIndex474
6738 return false
6739 },
6740 /* 93 STR_STARTSWITH <- <('s' 't' 'a' 'r' 't' 's' 'w' 'i' 't' 'h' MustSpace)> */
6741 func() bool {
6742 position476, tokenIndex476 := position, tokenIndex
6743 {
6744 position477 := position
6745 if buffer[position] != rune('s') {
6746 goto l476
6747 }
6748 position++
6749 if buffer[position] != rune('t') {
6750 goto l476
6751 }
6752 position++
6753 if buffer[position] != rune('a') {
6754 goto l476
6755 }
6756 position++
6757 if buffer[position] != rune('r') {
6758 goto l476
6759 }
6760 position++
6761 if buffer[position] != rune('t') {
6762 goto l476
6763 }
6764 position++
6765 if buffer[position] != rune('s') {
6766 goto l476
6767 }
6768 position++
6769 if buffer[position] != rune('w') {
6770 goto l476
6771 }
6772 position++
6773 if buffer[position] != rune('i') {
6774 goto l476
6775 }
6776 position++
6777 if buffer[position] != rune('t') {
6778 goto l476
6779 }
6780 position++
6781 if buffer[position] != rune('h') {
6782 goto l476
6783 }
6784 position++
6785 if !_rules[ruleMustSpace]() {
6786 goto l476
6787 }
6788 add(ruleSTR_STARTSWITH, position477)
6789 }
6790 return true
6791 l476:
6792 position, tokenIndex = position476, tokenIndex476
6793 return false
6794 },
6795 /* 94 STR_NOT_STARTSWITH <- <('!' 's' 't' 'a' 'r' 't' 's' 'w' 'i' 't' 'h' MustSpace)> */
6796 func() bool {
6797 position478, tokenIndex478 := position, tokenIndex
6798 {
6799 position479 := position
6800 if buffer[position] != rune('!') {
6801 goto l478
6802 }
6803 position++
6804 if buffer[position] != rune('s') {
6805 goto l478
6806 }
6807 position++
6808 if buffer[position] != rune('t') {
6809 goto l478
6810 }
6811 position++
6812 if buffer[position] != rune('a') {
6813 goto l478
6814 }
6815 position++
6816 if buffer[position] != rune('r') {
6817 goto l478
6818 }
6819 position++
6820 if buffer[position] != rune('t') {
6821 goto l478
6822 }
6823 position++
6824 if buffer[position] != rune('s') {
6825 goto l478
6826 }
6827 position++
6828 if buffer[position] != rune('w') {
6829 goto l478
6830 }
6831 position++
6832 if buffer[position] != rune('i') {
6833 goto l478
6834 }
6835 position++
6836 if buffer[position] != rune('t') {
6837 goto l478
6838 }
6839 position++
6840 if buffer[position] != rune('h') {
6841 goto l478
6842 }
6843 position++
6844 if !_rules[ruleMustSpace]() {
6845 goto l478
6846 }
6847 add(ruleSTR_NOT_STARTSWITH, position479)
6848 }
6849 return true
6850 l478:
6851 position, tokenIndex = position478, tokenIndex478
6852 return false
6853 },
6854 /* 95 STR_STARTSWITH_CS <- <('s' 't' 'a' 'r' 't' 's' 'w' 'i' 't' 'h' '_' 'c' 's' MustSpace)> */
6855 func() bool {
6856 position480, tokenIndex480 := position, tokenIndex
6857 {
6858 position481 := position
6859 if buffer[position] != rune('s') {
6860 goto l480
6861 }
6862 position++
6863 if buffer[position] != rune('t') {
6864 goto l480
6865 }
6866 position++
6867 if buffer[position] != rune('a') {
6868 goto l480
6869 }
6870 position++
6871 if buffer[position] != rune('r') {
6872 goto l480
6873 }
6874 position++
6875 if buffer[position] != rune('t') {
6876 goto l480
6877 }
6878 position++
6879 if buffer[position] != rune('s') {
6880 goto l480
6881 }
6882 position++
6883 if buffer[position] != rune('w') {
6884 goto l480
6885 }
6886 position++
6887 if buffer[position] != rune('i') {
6888 goto l480
6889 }
6890 position++
6891 if buffer[position] != rune('t') {
6892 goto l480
6893 }
6894 position++
6895 if buffer[position] != rune('h') {
6896 goto l480
6897 }
6898 position++
6899 if buffer[position] != rune('_') {
6900 goto l480
6901 }
6902 position++
6903 if buffer[position] != rune('c') {
6904 goto l480
6905 }
6906 position++
6907 if buffer[position] != rune('s') {
6908 goto l480
6909 }
6910 position++
6911 if !_rules[ruleMustSpace]() {
6912 goto l480
6913 }
6914 add(ruleSTR_STARTSWITH_CS, position481)
6915 }
6916 return true
6917 l480:
6918 position, tokenIndex = position480, tokenIndex480
6919 return false
6920 },
6921 /* 96 STR_NOT_STARTSWITH_CS <- <('!' 's' 't' 'a' 'r' 't' 's' 'w' 'i' 't' 'h' '_' 'c' 's' MustSpace)> */
6922 func() bool {
6923 position482, tokenIndex482 := position, tokenIndex
6924 {
6925 position483 := position
6926 if buffer[position] != rune('!') {
6927 goto l482
6928 }
6929 position++
6930 if buffer[position] != rune('s') {
6931 goto l482
6932 }
6933 position++
6934 if buffer[position] != rune('t') {
6935 goto l482
6936 }
6937 position++
6938 if buffer[position] != rune('a') {
6939 goto l482
6940 }
6941 position++
6942 if buffer[position] != rune('r') {
6943 goto l482
6944 }
6945 position++
6946 if buffer[position] != rune('t') {
6947 goto l482
6948 }
6949 position++
6950 if buffer[position] != rune('s') {
6951 goto l482
6952 }
6953 position++
6954 if buffer[position] != rune('w') {
6955 goto l482
6956 }
6957 position++
6958 if buffer[position] != rune('i') {
6959 goto l482
6960 }
6961 position++
6962 if buffer[position] != rune('t') {
6963 goto l482
6964 }
6965 position++
6966 if buffer[position] != rune('h') {
6967 goto l482
6968 }
6969 position++
6970 if buffer[position] != rune('_') {
6971 goto l482
6972 }
6973 position++
6974 if buffer[position] != rune('c') {
6975 goto l482
6976 }
6977 position++
6978 if buffer[position] != rune('s') {
6979 goto l482
6980 }
6981 position++
6982 if !_rules[ruleMustSpace]() {
6983 goto l482
6984 }
6985 add(ruleSTR_NOT_STARTSWITH_CS, position483)
6986 }
6987 return true
6988 l482:
6989 position, tokenIndex = position482, tokenIndex482
6990 return false
6991 },
6992 /* 97 STR_ENDSWITH <- <('e' 'n' 'd' 's' 'w' 'i' 't' 'h' MustSpace)> */
6993 func() bool {
6994 position484, tokenIndex484 := position, tokenIndex
6995 {
6996 position485 := position
6997 if buffer[position] != rune('e') {
6998 goto l484
6999 }
7000 position++
7001 if buffer[position] != rune('n') {
7002 goto l484
7003 }
7004 position++
7005 if buffer[position] != rune('d') {
7006 goto l484
7007 }
7008 position++
7009 if buffer[position] != rune('s') {
7010 goto l484
7011 }
7012 position++
7013 if buffer[position] != rune('w') {
7014 goto l484
7015 }
7016 position++
7017 if buffer[position] != rune('i') {
7018 goto l484
7019 }
7020 position++
7021 if buffer[position] != rune('t') {
7022 goto l484
7023 }
7024 position++
7025 if buffer[position] != rune('h') {
7026 goto l484
7027 }
7028 position++
7029 if !_rules[ruleMustSpace]() {
7030 goto l484
7031 }
7032 add(ruleSTR_ENDSWITH, position485)
7033 }
7034 return true
7035 l484:
7036 position, tokenIndex = position484, tokenIndex484
7037 return false
7038 },
7039 /* 98 STR_NOT_ENDSWITH <- <('!' 'e' 'n' 'd' 's' 'w' 'i' 't' 'h' MustSpace)> */
7040 func() bool {
7041 position486, tokenIndex486 := position, tokenIndex
7042 {
7043 position487 := position
7044 if buffer[position] != rune('!') {
7045 goto l486
7046 }
7047 position++
7048 if buffer[position] != rune('e') {
7049 goto l486
7050 }
7051 position++
7052 if buffer[position] != rune('n') {
7053 goto l486
7054 }
7055 position++
7056 if buffer[position] != rune('d') {
7057 goto l486
7058 }
7059 position++
7060 if buffer[position] != rune('s') {
7061 goto l486
7062 }
7063 position++
7064 if buffer[position] != rune('w') {
7065 goto l486
7066 }
7067 position++
7068 if buffer[position] != rune('i') {
7069 goto l486
7070 }
7071 position++
7072 if buffer[position] != rune('t') {
7073 goto l486
7074 }
7075 position++
7076 if buffer[position] != rune('h') {
7077 goto l486
7078 }
7079 position++
7080 if !_rules[ruleMustSpace]() {
7081 goto l486
7082 }
7083 add(ruleSTR_NOT_ENDSWITH, position487)
7084 }
7085 return true
7086 l486:
7087 position, tokenIndex = position486, tokenIndex486
7088 return false
7089 },
7090 /* 99 STR_ENDSWITH_CS <- <('e' 'n' 'd' 's' 'w' 'i' 't' 'h' '_' 'c' 's' MustSpace)> */
7091 func() bool {
7092 position488, tokenIndex488 := position, tokenIndex
7093 {
7094 position489 := position
7095 if buffer[position] != rune('e') {
7096 goto l488
7097 }
7098 position++
7099 if buffer[position] != rune('n') {
7100 goto l488
7101 }
7102 position++
7103 if buffer[position] != rune('d') {
7104 goto l488
7105 }
7106 position++
7107 if buffer[position] != rune('s') {
7108 goto l488
7109 }
7110 position++
7111 if buffer[position] != rune('w') {
7112 goto l488
7113 }
7114 position++
7115 if buffer[position] != rune('i') {
7116 goto l488
7117 }
7118 position++
7119 if buffer[position] != rune('t') {
7120 goto l488
7121 }
7122 position++
7123 if buffer[position] != rune('h') {
7124 goto l488
7125 }
7126 position++
7127 if buffer[position] != rune('_') {
7128 goto l488
7129 }
7130 position++
7131 if buffer[position] != rune('c') {
7132 goto l488
7133 }
7134 position++
7135 if buffer[position] != rune('s') {
7136 goto l488
7137 }
7138 position++
7139 if !_rules[ruleMustSpace]() {
7140 goto l488
7141 }
7142 add(ruleSTR_ENDSWITH_CS, position489)
7143 }
7144 return true
7145 l488:
7146 position, tokenIndex = position488, tokenIndex488
7147 return false
7148 },
7149 /* 100 STR_NOT_ENDSWITH_CS <- <('!' 'e' 'n' 'd' 's' 'w' 'i' 't' 'h' '_' 'c' 's' MustSpace)> */
7150 func() bool {
7151 position490, tokenIndex490 := position, tokenIndex
7152 {
7153 position491 := position
7154 if buffer[position] != rune('!') {
7155 goto l490
7156 }
7157 position++
7158 if buffer[position] != rune('e') {
7159 goto l490
7160 }
7161 position++
7162 if buffer[position] != rune('n') {
7163 goto l490
7164 }
7165 position++
7166 if buffer[position] != rune('d') {
7167 goto l490
7168 }
7169 position++
7170 if buffer[position] != rune('s') {
7171 goto l490
7172 }
7173 position++
7174 if buffer[position] != rune('w') {
7175 goto l490
7176 }
7177 position++
7178 if buffer[position] != rune('i') {
7179 goto l490
7180 }
7181 position++
7182 if buffer[position] != rune('t') {
7183 goto l490
7184 }
7185 position++
7186 if buffer[position] != rune('h') {
7187 goto l490
7188 }
7189 position++
7190 if buffer[position] != rune('_') {
7191 goto l490
7192 }
7193 position++
7194 if buffer[position] != rune('c') {
7195 goto l490
7196 }
7197 position++
7198 if buffer[position] != rune('s') {
7199 goto l490
7200 }
7201 position++
7202 if !_rules[ruleMustSpace]() {
7203 goto l490
7204 }
7205 add(ruleSTR_NOT_ENDSWITH_CS, position491)
7206 }
7207 return true
7208 l490:
7209 position, tokenIndex = position490, tokenIndex490
7210 return false
7211 },
7212 /* 101 STR_IN_NOCS <- <('i' 'n' '~' MustSpace)> */
7213 func() bool {
7214 position492, tokenIndex492 := position, tokenIndex
7215 {
7216 position493 := position
7217 if buffer[position] != rune('i') {
7218 goto l492
7219 }
7220 position++
7221 if buffer[position] != rune('n') {
7222 goto l492
7223 }
7224 position++
7225 if buffer[position] != rune('~') {
7226 goto l492
7227 }
7228 position++
7229 if !_rules[ruleMustSpace]() {
7230 goto l492
7231 }
7232 add(ruleSTR_IN_NOCS, position493)
7233 }
7234 return true
7235 l492:
7236 position, tokenIndex = position492, tokenIndex492
7237 return false
7238 },
7239 /* 102 STR_NOT_IN_NOCS <- <('!' 'i' 'n' '~' MustSpace)> */
7240 func() bool {
7241 position494, tokenIndex494 := position, tokenIndex
7242 {
7243 position495 := position
7244 if buffer[position] != rune('!') {
7245 goto l494
7246 }
7247 position++
7248 if buffer[position] != rune('i') {
7249 goto l494
7250 }
7251 position++
7252 if buffer[position] != rune('n') {
7253 goto l494
7254 }
7255 position++
7256 if buffer[position] != rune('~') {
7257 goto l494
7258 }
7259 position++
7260 if !_rules[ruleMustSpace]() {
7261 goto l494
7262 }
7263 add(ruleSTR_NOT_IN_NOCS, position495)
7264 }
7265 return true
7266 l494:
7267 position, tokenIndex = position494, tokenIndex494
7268 return false
7269 },
7270 /* 103 STR_NOT_MATCHES_REGEX <- <('!' 'm' 'a' 't' 'c' 'h' 'e' 's' ' ' 'r' 'e' 'g' 'e' 'x' MustSpace)> */
7271 func() bool {
7272 position496, tokenIndex496 := position, tokenIndex
7273 {
7274 position497 := position
7275 if buffer[position] != rune('!') {
7276 goto l496
7277 }
7278 position++
7279 if buffer[position] != rune('m') {
7280 goto l496
7281 }
7282 position++
7283 if buffer[position] != rune('a') {
7284 goto l496
7285 }
7286 position++
7287 if buffer[position] != rune('t') {
7288 goto l496
7289 }
7290 position++
7291 if buffer[position] != rune('c') {
7292 goto l496
7293 }
7294 position++
7295 if buffer[position] != rune('h') {
7296 goto l496
7297 }
7298 position++
7299 if buffer[position] != rune('e') {
7300 goto l496
7301 }
7302 position++
7303 if buffer[position] != rune('s') {
7304 goto l496
7305 }
7306 position++
7307 if buffer[position] != rune(' ') {
7308 goto l496
7309 }
7310 position++
7311 if buffer[position] != rune('r') {
7312 goto l496
7313 }
7314 position++
7315 if buffer[position] != rune('e') {
7316 goto l496
7317 }
7318 position++
7319 if buffer[position] != rune('g') {
7320 goto l496
7321 }
7322 position++
7323 if buffer[position] != rune('e') {
7324 goto l496
7325 }
7326 position++
7327 if buffer[position] != rune('x') {
7328 goto l496
7329 }
7330 position++
7331 if !_rules[ruleMustSpace]() {
7332 goto l496
7333 }
7334 add(ruleSTR_NOT_MATCHES_REGEX, position497)
7335 }
7336 return true
7337 l496:
7338 position, tokenIndex = position496, tokenIndex496
7339 return false
7340 },
7341 /* 104 STR_MATCHES_REGEX <- <('m' 'a' 't' 'c' 'h' 'e' 's' ' ' 'r' 'e' 'g' 'e' 'x' MustSpace)> */
7342 func() bool {
7343 position498, tokenIndex498 := position, tokenIndex
7344 {
7345 position499 := position
7346 if buffer[position] != rune('m') {
7347 goto l498
7348 }
7349 position++
7350 if buffer[position] != rune('a') {
7351 goto l498
7352 }
7353 position++
7354 if buffer[position] != rune('t') {
7355 goto l498
7356 }
7357 position++
7358 if buffer[position] != rune('c') {
7359 goto l498
7360 }
7361 position++
7362 if buffer[position] != rune('h') {
7363 goto l498
7364 }
7365 position++
7366 if buffer[position] != rune('e') {
7367 goto l498
7368 }
7369 position++
7370 if buffer[position] != rune('s') {
7371 goto l498
7372 }
7373 position++
7374 if buffer[position] != rune(' ') {
7375 goto l498
7376 }
7377 position++
7378 if buffer[position] != rune('r') {
7379 goto l498
7380 }
7381 position++
7382 if buffer[position] != rune('e') {
7383 goto l498
7384 }
7385 position++
7386 if buffer[position] != rune('g') {
7387 goto l498
7388 }
7389 position++
7390 if buffer[position] != rune('e') {
7391 goto l498
7392 }
7393 position++
7394 if buffer[position] != rune('x') {
7395 goto l498
7396 }
7397 position++
7398 if !_rules[ruleMustSpace]() {
7399 goto l498
7400 }
7401 add(ruleSTR_MATCHES_REGEX, position499)
7402 }
7403 return true
7404 l498:
7405 position, tokenIndex = position498, tokenIndex498
7406 return false
7407 },
7408 /* 105 STR_HAS <- <('h' 'a' 's' MustSpace)> */
7409 func() bool {
7410 position500, tokenIndex500 := position, tokenIndex
7411 {
7412 position501 := position
7413 if buffer[position] != rune('h') {
7414 goto l500
7415 }
7416 position++
7417 if buffer[position] != rune('a') {
7418 goto l500
7419 }
7420 position++
7421 if buffer[position] != rune('s') {
7422 goto l500
7423 }
7424 position++
7425 if !_rules[ruleMustSpace]() {
7426 goto l500
7427 }
7428 add(ruleSTR_HAS, position501)
7429 }
7430 return true
7431 l500:
7432 position, tokenIndex = position500, tokenIndex500
7433 return false
7434 },
7435 /* 106 STR_HAS_CS <- <('h' 'a' 's' '_' 'c' 's' MustSpace)> */
7436 func() bool {
7437 position502, tokenIndex502 := position, tokenIndex
7438 {
7439 position503 := position
7440 if buffer[position] != rune('h') {
7441 goto l502
7442 }
7443 position++
7444 if buffer[position] != rune('a') {
7445 goto l502
7446 }
7447 position++
7448 if buffer[position] != rune('s') {
7449 goto l502
7450 }
7451 position++
7452 if buffer[position] != rune('_') {
7453 goto l502
7454 }
7455 position++
7456 if buffer[position] != rune('c') {
7457 goto l502
7458 }
7459 position++
7460 if buffer[position] != rune('s') {
7461 goto l502
7462 }
7463 position++
7464 if !_rules[ruleMustSpace]() {
7465 goto l502
7466 }
7467 add(ruleSTR_HAS_CS, position503)
7468 }
7469 return true
7470 l502:
7471 position, tokenIndex = position502, tokenIndex502
7472 return false
7473 },
7474 /* 107 PIPE <- <('|' Space)> */
7475 func() bool {
7476 position504, tokenIndex504 := position, tokenIndex
7477 {
7478 position505 := position
7479 if buffer[position] != rune('|') {
7480 goto l504
7481 }
7482 position++
7483 if !_rules[ruleSpace]() {
7484 goto l504
7485 }
7486 add(rulePIPE, position505)
7487 }
7488 return true
7489 l504:
7490 position, tokenIndex = position504, tokenIndex504
7491 return false
7492 },
7493 /* 108 L_PARENS <- <('(' Space)> */
7494 func() bool {
7495 position506, tokenIndex506 := position, tokenIndex
7496 {
7497 position507 := position
7498 if buffer[position] != rune('(') {
7499 goto l506
7500 }
7501 position++
7502 if !_rules[ruleSpace]() {
7503 goto l506
7504 }
7505 add(ruleL_PARENS, position507)
7506 }
7507 return true
7508 l506:
7509 position, tokenIndex = position506, tokenIndex506
7510 return false
7511 },
7512 /* 109 R_PARENS <- <(')' Space)> */
7513 func() bool {
7514 position508, tokenIndex508 := position, tokenIndex
7515 {
7516 position509 := position
7517 if buffer[position] != rune(')') {
7518 goto l508
7519 }
7520 position++
7521 if !_rules[ruleSpace]() {
7522 goto l508
7523 }
7524 add(ruleR_PARENS, position509)
7525 }
7526 return true
7527 l508:
7528 position, tokenIndex = position508, tokenIndex508
7529 return false
7530 },
7531 /* 110 L_BRACKET <- <('[' Space)> */
7532 func() bool {
7533 position510, tokenIndex510 := position, tokenIndex
7534 {
7535 position511 := position
7536 if buffer[position] != rune('[') {
7537 goto l510
7538 }
7539 position++
7540 if !_rules[ruleSpace]() {
7541 goto l510
7542 }
7543 add(ruleL_BRACKET, position511)
7544 }
7545 return true
7546 l510:
7547 position, tokenIndex = position510, tokenIndex510
7548 return false
7549 },
7550 /* 111 R_BRACKET <- <(']' Space)> */
7551 func() bool {
7552 position512, tokenIndex512 := position, tokenIndex
7553 {
7554 position513 := position
7555 if buffer[position] != rune(']') {
7556 goto l512
7557 }
7558 position++
7559 if !_rules[ruleSpace]() {
7560 goto l512
7561 }
7562 add(ruleR_BRACKET, position513)
7563 }
7564 return true
7565 l512:
7566 position, tokenIndex = position512, tokenIndex512
7567 return false
7568 },
7569 /* 112 L_SQUIGGLY <- <('{' Space)> */
7570 func() bool {
7571 position514, tokenIndex514 := position, tokenIndex
7572 {
7573 position515 := position
7574 if buffer[position] != rune('{') {
7575 goto l514
7576 }
7577 position++
7578 if !_rules[ruleSpace]() {
7579 goto l514
7580 }
7581 add(ruleL_SQUIGGLY, position515)
7582 }
7583 return true
7584 l514:
7585 position, tokenIndex = position514, tokenIndex514
7586 return false
7587 },
7588 /* 113 R_SQUIGGLY <- <'}'> */
7589 func() bool {
7590 position516, tokenIndex516 := position, tokenIndex
7591 {
7592 position517 := position
7593 if buffer[position] != rune('}') {
7594 goto l516
7595 }
7596 position++
7597 add(ruleR_SQUIGGLY, position517)
7598 }
7599 return true
7600 l516:
7601 position, tokenIndex = position516, tokenIndex516
7602 return false
7603 },
7604 /* 114 COLON <- <(':' Space)> */
7605 func() bool {
7606 position518, tokenIndex518 := position, tokenIndex
7607 {
7608 position519 := position
7609 if buffer[position] != rune(':') {
7610 goto l518
7611 }
7612 position++
7613 if !_rules[ruleSpace]() {
7614 goto l518
7615 }
7616 add(ruleCOLON, position519)
7617 }
7618 return true
7619 l518:
7620 position, tokenIndex = position518, tokenIndex518
7621 return false
7622 },
7623 /* 115 COMMA <- <(',' Space)> */
7624 func() bool {
7625 position520, tokenIndex520 := position, tokenIndex
7626 {
7627 position521 := position
7628 if buffer[position] != rune(',') {
7629 goto l520
7630 }
7631 position++
7632 if !_rules[ruleSpace]() {
7633 goto l520
7634 }
7635 add(ruleCOMMA, position521)
7636 }
7637 return true
7638 l520:
7639 position, tokenIndex = position520, tokenIndex520
7640 return false
7641 },
7642 /* 116 Space <- <Whitespace*> */
7643 func() bool {
7644 {
7645 position523 := position
7646 l524:
7647 {
7648 position525, tokenIndex525 := position, tokenIndex
7649 if !_rules[ruleWhitespace]() {
7650 goto l525
7651 }
7652 goto l524
7653 l525:
7654 position, tokenIndex = position525, tokenIndex525
7655 }
7656 add(ruleSpace, position523)
7657 }
7658 return true
7659 },
7660 /* 117 MustSpace <- <Whitespace+> */
7661 func() bool {
7662 position526, tokenIndex526 := position, tokenIndex
7663 {
7664 position527 := position
7665 if !_rules[ruleWhitespace]() {
7666 goto l526
7667 }
7668 l528:
7669 {
7670 position529, tokenIndex529 := position, tokenIndex
7671 if !_rules[ruleWhitespace]() {
7672 goto l529
7673 }
7674 goto l528
7675 l529:
7676 position, tokenIndex = position529, tokenIndex529
7677 }
7678 add(ruleMustSpace, position527)
7679 }
7680 return true
7681 l526:
7682 position, tokenIndex = position526, tokenIndex526
7683 return false
7684 },
7685 /* 118 Whitespace <- <(' ' / '\t' / EOL)> */
7686 func() bool {
7687 position530, tokenIndex530 := position, tokenIndex
7688 {
7689 position531 := position
7690 {
7691 position532, tokenIndex532 := position, tokenIndex
7692 if buffer[position] != rune(' ') {
7693 goto l533
7694 }
7695 position++
7696 goto l532
7697 l533:
7698 position, tokenIndex = position532, tokenIndex532
7699 if buffer[position] != rune('\t') {
7700 goto l534
7701 }
7702 position++
7703 goto l532
7704 l534:
7705 position, tokenIndex = position532, tokenIndex532
7706 if !_rules[ruleEOL]() {
7707 goto l530
7708 }
7709 }
7710 l532:
7711 add(ruleWhitespace, position531)
7712 }
7713 return true
7714 l530:
7715 position, tokenIndex = position530, tokenIndex530
7716 return false
7717 },
7718 /* 119 EOL <- <(('\r' '\n') / '\n' / '\r')> */
7719 func() bool {
7720 position535, tokenIndex535 := position, tokenIndex
7721 {
7722 position536 := position
7723 {
7724 position537, tokenIndex537 := position, tokenIndex
7725 if buffer[position] != rune('\r') {
7726 goto l538
7727 }
7728 position++
7729 if buffer[position] != rune('\n') {
7730 goto l538
7731 }
7732 position++
7733 goto l537
7734 l538:
7735 position, tokenIndex = position537, tokenIndex537
7736 if buffer[position] != rune('\n') {
7737 goto l539
7738 }
7739 position++
7740 goto l537
7741 l539:
7742 position, tokenIndex = position537, tokenIndex537
7743 if buffer[position] != rune('\r') {
7744 goto l535
7745 }
7746 position++
7747 }
7748 l537:
7749 add(ruleEOL, position536)
7750 }
7751 return true
7752 l535:
7753 position, tokenIndex = position535, tokenIndex535
7754 return false
7755 },
7756 /* 120 EOF <- <!.> */
7757 func() bool {
7758 position540, tokenIndex540 := position, tokenIndex
7759 {
7760 position541 := position
7761 {
7762 position542, tokenIndex542 := position, tokenIndex
7763 if !matchDot() {
7764 goto l542
7765 }
7766 goto l540
7767 l542:
7768 position, tokenIndex = position542, tokenIndex542
7769 }
7770 add(ruleEOF, position541)
7771 }
7772 return true
7773 l540:
7774 position, tokenIndex = position540, tokenIndex540
7775 return false
7776 },
7777 /* 122 Action0 <- <{ p.SetQuery(p.Stmts) }> */
7778 func() bool {
7779 {
7780 add(ruleAction0, position)
7781 }
7782 return true
7783 },
7784 /* 123 Action1 <- <{ p.SetQuery(p.Stmts) }> */
7785 func() bool {
7786 {
7787 add(ruleAction1, position)
7788 }
7789 return true
7790 },
7791 /* 124 Action2 <- <{ p.SetFrom(p.popExpr()) }> */
7792 func() bool {
7793 {
7794 add(ruleAction2, position)
7795 }
7796 return true
7797 },
7798 /* 125 Action3 <- <{ p.SetTo(p.popExpr()) }> */
7799 func() bool {
7800 {
7801 add(ruleAction3, position)
7802 }
7803 return true
7804 },
7805 /* 126 Action4 <- <{ p.SetContextMachine(typesv1.BinaryOp_CMP_EQ, p.popExpr()) }> */
7806 func() bool {
7807 {
7808 add(ruleAction4, position)
7809 }
7810 return true
7811 },
7812 /* 127 Action5 <- <{ p.SetContextMachine(typesv1.BinaryOp_CMP_NOTEQ, p.popExpr()) }> */
7813 func() bool {
7814 {
7815 add(ruleAction5, position)
7816 }
7817 return true
7818 },
7819 /* 128 Action6 <- <{ p.SetContextMachine(typesv1.BinaryOp_SET_IN, p.popExpr()) }> */
7820 func() bool {
7821 {
7822 add(ruleAction6, position)
7823 }
7824 return true
7825 },
7826 /* 129 Action7 <- <{ p.SetContextMachine(typesv1.BinaryOp_SET_NOTIN, p.popExpr()) }> */
7827 func() bool {
7828 {
7829 add(ruleAction7, position)
7830 }
7831 return true
7832 },
7833 /* 130 Action8 <- <{ p.SetContextSession(typesv1.BinaryOp_CMP_EQ, p.popExpr()) }> */
7834 func() bool {
7835 {
7836 add(ruleAction8, position)
7837 }
7838 return true
7839 },
7840 /* 131 Action9 <- <{ p.SetContextSession(typesv1.BinaryOp_CMP_NOTEQ, p.popExpr()) }> */
7841 func() bool {
7842 {
7843 add(ruleAction9, position)
7844 }
7845 return true
7846 },
7847 /* 132 Action10 <- <{ p.SetContextSession(typesv1.BinaryOp_SET_IN, p.popExpr()) }> */
7848 func() bool {
7849 {
7850 add(ruleAction10, position)
7851 }
7852 return true
7853 },
7854 /* 133 Action11 <- <{ p.SetContextSession(typesv1.BinaryOp_SET_NOTIN, p.popExpr()) }> */
7855 func() bool {
7856 {
7857 add(ruleAction11, position)
7858 }
7859 return true
7860 },
7861 /* 134 Action12 <- <{ p.addFilterStatement(p.FilterOp) }> */
7862 func() bool {
7863 {
7864 add(ruleAction12, position)
7865 }
7866 return true
7867 },
7868 /* 135 Action13 <- <{ p.addSummarizeStatement(p.SummarizeOp) }> */
7869 func() bool {
7870 {
7871 add(ruleAction13, position)
7872 }
7873 return true
7874 },
7875 /* 136 Action14 <- <{ p.addProjectStatement(p.ProjectOp) }> */
7876 func() bool {
7877 {
7878 add(ruleAction14, position)
7879 }
7880 return true
7881 },
7882 /* 137 Action15 <- <{ p.addProjectAwayStatement(p.ProjectAwayOp) }> */
7883 func() bool {
7884 {
7885 add(ruleAction15, position)
7886 }
7887 return true
7888 },
7889 /* 138 Action16 <- <{ p.addProjectKeepStatement(p.ProjectKeepOp) }> */
7890 func() bool {
7891 {
7892 add(ruleAction16, position)
7893 }
7894 return true
7895 },
7896 /* 139 Action17 <- <{ p.addExtendStatement(p.ExtendOp) }> */
7897 func() bool {
7898 {
7899 add(ruleAction17, position)
7900 }
7901 return true
7902 },
7903 /* 140 Action18 <- <{ p.addCountStatement(p.CountOp) }> */
7904 func() bool {
7905 {
7906 add(ruleAction18, position)
7907 }
7908 return true
7909 },
7910 /* 141 Action19 <- <{ p.addDistinctStatement(p.DistinctOp) }> */
7911 func() bool {
7912 {
7913 add(ruleAction19, position)
7914 }
7915 return true
7916 },
7917 /* 142 Action20 <- <{ p.addSampleStatement(p.SampleOp) }> */
7918 func() bool {
7919 {
7920 add(ruleAction20, position)
7921 }
7922 return true
7923 },
7924 /* 143 Action21 <- <{ p.addSearchStatement(p.SearchOp) }> */
7925 func() bool {
7926 {
7927 add(ruleAction21, position)
7928 }
7929 return true
7930 },
7931 /* 144 Action22 <- <{ p.addSortStatement(p.SortOp) }> */
7932 func() bool {
7933 {
7934 add(ruleAction22, position)
7935 }
7936 return true
7937 },
7938 /* 145 Action23 <- <{ p.addTakeStatement(p.TakeOp) }> */
7939 func() bool {
7940 {
7941 add(ruleAction23, position)
7942 }
7943 return true
7944 },
7945 /* 146 Action24 <- <{ p.addTopStatement(p.TopOp) }> */
7946 func() bool {
7947 {
7948 add(ruleAction24, position)
7949 }
7950 return true
7951 },
7952 /* 147 Action25 <- <{ p.setRenderSplitByStatement(p.SplitByOp) }> */
7953 func() bool {
7954 {
7955 add(ruleAction25, position)
7956 }
7957 return true
7958 },
7959 /* 148 Action26 <- <{ p.setFilterOp(p.popExpr()) }> */
7960 func() bool {
7961 {
7962 add(ruleAction26, position)
7963 }
7964 return true
7965 },
7966 /* 149 Action27 <- <{ p.startSummarizeOp() }> */
7967 func() bool {
7968 {
7969 add(ruleAction27, position)
7970 }
7971 return true
7972 },
7973 /* 150 Action28 <- <{ p.startSummarizeParameterNamedFunc(text) }> */
7974 func() bool {
7975 {
7976 add(ruleAction28, position)
7977 }
7978 return true
7979 },
7980 /* 151 Action29 <- <{ p.endSummarizeParameterNamedFunc(p.popFunc()) }> */
7981 func() bool {
7982 {
7983 add(ruleAction29, position)
7984 }
7985 return true
7986 },
7987 /* 152 Action30 <- <{ p.addSummarizeParameterUnnamedFunc(p.popFunc()) }> */
7988 func() bool {
7989 {
7990 add(ruleAction30, position)
7991 }
7992 return true
7993 },
7994 /* 153 Action31 <- <{ p.startSummarizeByUnnamedGroupExpression(text) }> */
7995 func() bool {
7996 {
7997 add(ruleAction31, position)
7998 }
7999 return true
8000 },
8001 /* 154 Action32 <- <{ p.endSummarizeByUnnamedGroupExpression(p.popExpr()) }> */
8002 func() bool {
8003 {
8004 add(ruleAction32, position)
8005 }
8006 return true
8007 },
8008 /* 155 Action33 <- <{ p.addSummarizeByUnnamedGroupExpression(p.popExpr()) }> */
8009 func() bool {
8010 {
8011 add(ruleAction33, position)
8012 }
8013 return true
8014 },
8015 /* 156 Action34 <- <{ p.startProjectOp() }> */
8016 func() bool {
8017 {
8018 add(ruleAction34, position)
8019 }
8020 return true
8021 },
8022 /* 157 Action35 <- <{ p.startProjectOpArg(text) }> */
8023 func() bool {
8024 {
8025 add(ruleAction35, position)
8026 }
8027 return true
8028 },
8029 /* 158 Action36 <- <{ p.setProjectOpArgValue(p.popExpr()) }> */
8030 func() bool {
8031 {
8032 add(ruleAction36, position)
8033 }
8034 return true
8035 },
8036 /* 159 Action37 <- <{ p.startProjectAwayOp() }> */
8037 func() bool {
8038 {
8039 add(ruleAction37, position)
8040 }
8041 return true
8042 },
8043 /* 160 Action38 <- <{ p.addProjectAwayOpArg(text) }> */
8044 func() bool {
8045 {
8046 add(ruleAction38, position)
8047 }
8048 return true
8049 },
8050 /* 161 Action39 <- <{ p.startProjectKeepOp() }> */
8051 func() bool {
8052 {
8053 add(ruleAction39, position)
8054 }
8055 return true
8056 },
8057 /* 162 Action40 <- <{ p.addProjectKeepOpArg(text) }> */
8058 func() bool {
8059 {
8060 add(ruleAction40, position)
8061 }
8062 return true
8063 },
8064 /* 163 Action41 <- <{ p.startExtendOp() }> */
8065 func() bool {
8066 {
8067 add(ruleAction41, position)
8068 }
8069 return true
8070 },
8071 /* 164 Action42 <- <{ p.setExtendOpArgColumnName(text) }> */
8072 func() bool {
8073 {
8074 add(ruleAction42, position)
8075 }
8076 return true
8077 },
8078 /* 165 Action43 <- <{ p.setExtendOpArgValue(p.popExpr()) }> */
8079 func() bool {
8080 {
8081 add(ruleAction43, position)
8082 }
8083 return true
8084 },
8085 /* 166 Action44 <- <{ p.startCountOp() }> */
8086 func() bool {
8087 {
8088 add(ruleAction44, position)
8089 }
8090 return true
8091 },
8092 /* 167 Action45 <- <{ p.startDistinctOp() }> */
8093 func() bool {
8094 {
8095 add(ruleAction45, position)
8096 }
8097 return true
8098 },
8099 /* 168 Action46 <- <{ p.addDistinctOpArg(text) }> */
8100 func() bool {
8101 {
8102 add(ruleAction46, position)
8103 }
8104 return true
8105 },
8106 /* 169 Action47 <- <{ p.startSampleOp() }> */
8107 func() bool {
8108 {
8109 add(ruleAction47, position)
8110 }
8111 return true
8112 },
8113 /* 170 Action48 <- <{ p.setSampleOpCount(p.I64) }> */
8114 func() bool {
8115 {
8116 add(ruleAction48, position)
8117 }
8118 return true
8119 },
8120 /* 171 Action49 <- <{ p.startSearchOp() }> */
8121 func() bool {
8122 {
8123 add(ruleAction49, position)
8124 }
8125 return true
8126 },
8127 /* 172 Action50 <- <{ p.setSearchOpKindDefault() }> */
8128 func() bool {
8129 {
8130 add(ruleAction50, position)
8131 }
8132 return true
8133 },
8134 /* 173 Action51 <- <{ p.setSearchOpKindCaseInsensitive() }> */
8135 func() bool {
8136 {
8137 add(ruleAction51, position)
8138 }
8139 return true
8140 },
8141 /* 174 Action52 <- <{ p.setSearchOpKindCaseSensitive() }> */
8142 func() bool {
8143 {
8144 add(ruleAction52, position)
8145 }
8146 return true
8147 },
8148 /* 175 Action53 <- <{ p.setSearchOpPredicateLiteral(text) }> */
8149 func() bool {
8150 {
8151 add(ruleAction53, position)
8152 }
8153 return true
8154 },
8155 /* 176 Action54 <- <{ p.identifier = text }> */
8156 func() bool {
8157 {
8158 add(ruleAction54, position)
8159 }
8160 return true
8161 },
8162 /* 177 Action55 <- <{ p.setSearchOpPredicateFieldSearch(p.identifier, p.String) }> */
8163 func() bool {
8164 {
8165 add(ruleAction55, position)
8166 }
8167 return true
8168 },
8169 /* 178 Action56 <- <{ p.setSearchOpPredicateExactSearch(p.identifier, p.String) }> */
8170 func() bool {
8171 {
8172 add(ruleAction56, position)
8173 }
8174 return true
8175 },
8176 /* 179 Action57 <- <{ p.setSearchOpPredicateRegexSearch(p.identifier, p.String) }> */
8177 func() bool {
8178 {
8179 add(ruleAction57, position)
8180 }
8181 return true
8182 },
8183 /* 180 Action58 <- <{ p.startSortOp() }> */
8184 func() bool {
8185 {
8186 add(ruleAction58, position)
8187 }
8188 return true
8189 },
8190 /* 181 Action59 <- <{ p.startSortOpArg(text) }> */
8191 func() bool {
8192 {
8193 add(ruleAction59, position)
8194 }
8195 return true
8196 },
8197 /* 182 Action60 <- <{ p.setSortOpArgOrderAsc() }> */
8198 func() bool {
8199 {
8200 add(ruleAction60, position)
8201 }
8202 return true
8203 },
8204 /* 183 Action61 <- <{ p.setSortOpArgOrderDesc() }> */
8205 func() bool {
8206 {
8207 add(ruleAction61, position)
8208 }
8209 return true
8210 },
8211 /* 184 Action62 <- <{ p.startTakeOp() }> */
8212 func() bool {
8213 {
8214 add(ruleAction62, position)
8215 }
8216 return true
8217 },
8218 /* 185 Action63 <- <{ p.setTakeOpCount(p.I64) }> */
8219 func() bool {
8220 {
8221 add(ruleAction63, position)
8222 }
8223 return true
8224 },
8225 /* 186 Action64 <- <{ p.startTopOp() }> */
8226 func() bool {
8227 {
8228 add(ruleAction64, position)
8229 }
8230 return true
8231 },
8232 /* 187 Action65 <- <{ p.setTopOpCount(p.I64) }> */
8233 func() bool {
8234 {
8235 add(ruleAction65, position)
8236 }
8237 return true
8238 },
8239 /* 188 Action66 <- <{ p.setTopOpByColumnScalar(p.popExpr()) }> */
8240 func() bool {
8241 {
8242 add(ruleAction66, position)
8243 }
8244 return true
8245 },
8246 /* 189 Action67 <- <{ p.setTopOpByColumnOrderAsc() }> */
8247 func() bool {
8248 {
8249 add(ruleAction67, position)
8250 }
8251 return true
8252 },
8253 /* 190 Action68 <- <{ p.setTopOpByColumnOrderDesc() }> */
8254 func() bool {
8255 {
8256 add(ruleAction68, position)
8257 }
8258 return true
8259 },
8260 /* 191 Action69 <- <{p.startRenderSplitOp()}> */
8261 func() bool {
8262 {
8263 add(ruleAction69, position)
8264 }
8265 return true
8266 },
8267 /* 192 Action70 <- <{ p.addRenderSplitByOp(p.popExpr()) }> */
8268 func() bool {
8269 {
8270 add(ruleAction70, position)
8271 }
8272 return true
8273 },
8274 /* 193 Action71 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_ADD, rhs)) }> */
8275 func() bool {
8276 {
8277 add(ruleAction71, position)
8278 }
8279 return true
8280 },
8281 /* 194 Action72 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_SUB, rhs)) }> */
8282 func() bool {
8283 {
8284 add(ruleAction72, position)
8285 }
8286 return true
8287 },
8288 /* 195 Action73 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_MUL, rhs)) }> */
8289 func() bool {
8290 {
8291 add(ruleAction73, position)
8292 }
8293 return true
8294 },
8295 /* 196 Action74 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_DIV, rhs)) }> */
8296 func() bool {
8297 {
8298 add(ruleAction74, position)
8299 }
8300 return true
8301 },
8302 /* 197 Action75 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_NUM_MOD, rhs)) }> */
8303 func() bool {
8304 {
8305 add(ruleAction75, position)
8306 }
8307 return true
8308 },
8309 /* 198 Action76 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_LOG_AND, rhs)) }> */
8310 func() bool {
8311 {
8312 add(ruleAction76, position)
8313 }
8314 return true
8315 },
8316 /* 199 Action77 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_LOG_OR, rhs)) }> */
8317 func() bool {
8318 {
8319 add(ruleAction77, position)
8320 }
8321 return true
8322 },
8323 /* 200 Action78 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_EQ, rhs)) }> */
8324 func() bool {
8325 {
8326 add(ruleAction78, position)
8327 }
8328 return true
8329 },
8330 /* 201 Action79 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_NOTEQ, rhs)) }> */
8331 func() bool {
8332 {
8333 add(ruleAction79, position)
8334 }
8335 return true
8336 },
8337 /* 202 Action80 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_GT, rhs)) }> */
8338 func() bool {
8339 {
8340 add(ruleAction80, position)
8341 }
8342 return true
8343 },
8344 /* 203 Action81 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_GTE, rhs)) }> */
8345 func() bool {
8346 {
8347 add(ruleAction81, position)
8348 }
8349 return true
8350 },
8351 /* 204 Action82 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_LT, rhs)) }> */
8352 func() bool {
8353 {
8354 add(ruleAction82, position)
8355 }
8356 return true
8357 },
8358 /* 205 Action83 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_CMP_LTE, rhs)) }> */
8359 func() bool {
8360 {
8361 add(ruleAction83, position)
8362 }
8363 return true
8364 },
8365 /* 206 Action84 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_SET_IN, rhs)) }> */
8366 func() bool {
8367 {
8368 add(ruleAction84, position)
8369 }
8370 return true
8371 },
8372 /* 207 Action85 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_SET_NOTIN, rhs)) }> */
8373 func() bool {
8374 {
8375 add(ruleAction85, position)
8376 }
8377 return true
8378 },
8379 /* 208 Action86 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_EQ_NOCS, rhs)) }> */
8380 func() bool {
8381 {
8382 add(ruleAction86, position)
8383 }
8384 return true
8385 },
8386 /* 209 Action87 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOTEQ_NOCS, rhs)) }> */
8387 func() bool {
8388 {
8389 add(ruleAction87, position)
8390 }
8391 return true
8392 },
8393 /* 210 Action88 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_CONTAINS, rhs)) }> */
8394 func() bool {
8395 {
8396 add(ruleAction88, position)
8397 }
8398 return true
8399 },
8400 /* 211 Action89 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_CONTAINS, rhs)) }> */
8401 func() bool {
8402 {
8403 add(ruleAction89, position)
8404 }
8405 return true
8406 },
8407 /* 212 Action90 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_CONTAINS_CS, rhs)) }> */
8408 func() bool {
8409 {
8410 add(ruleAction90, position)
8411 }
8412 return true
8413 },
8414 /* 213 Action91 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_CONTAINS_CS, rhs)) }> */
8415 func() bool {
8416 {
8417 add(ruleAction91, position)
8418 }
8419 return true
8420 },
8421 /* 214 Action92 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_STARTSWITH, rhs)) }> */
8422 func() bool {
8423 {
8424 add(ruleAction92, position)
8425 }
8426 return true
8427 },
8428 /* 215 Action93 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_STARTSWITH, rhs)) }> */
8429 func() bool {
8430 {
8431 add(ruleAction93, position)
8432 }
8433 return true
8434 },
8435 /* 216 Action94 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_STARTSWITH_CS, rhs)) }> */
8436 func() bool {
8437 {
8438 add(ruleAction94, position)
8439 }
8440 return true
8441 },
8442 /* 217 Action95 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_STARTSWITH_CS, rhs)) }> */
8443 func() bool {
8444 {
8445 add(ruleAction95, position)
8446 }
8447 return true
8448 },
8449 /* 218 Action96 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_ENDSWITH, rhs)) }> */
8450 func() bool {
8451 {
8452 add(ruleAction96, position)
8453 }
8454 return true
8455 },
8456 /* 219 Action97 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_ENDSWITH, rhs)) }> */
8457 func() bool {
8458 {
8459 add(ruleAction97, position)
8460 }
8461 return true
8462 },
8463 /* 220 Action98 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_ENDSWITH_CS, rhs)) }> */
8464 func() bool {
8465 {
8466 add(ruleAction98, position)
8467 }
8468 return true
8469 },
8470 /* 221 Action99 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_ENDSWITH_CS, rhs)) }> */
8471 func() bool {
8472 {
8473 add(ruleAction99, position)
8474 }
8475 return true
8476 },
8477 /* 222 Action100 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_IN_NOCS, rhs)) }> */
8478 func() bool {
8479 {
8480 add(ruleAction100, position)
8481 }
8482 return true
8483 },
8484 /* 223 Action101 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_IN_NOCS, rhs)) }> */
8485 func() bool {
8486 {
8487 add(ruleAction101, position)
8488 }
8489 return true
8490 },
8491 /* 224 Action102 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_NOT_MATCHES_REGEX, rhs)) }> */
8492 func() bool {
8493 {
8494 add(ruleAction102, position)
8495 }
8496 return true
8497 },
8498 /* 225 Action103 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_MATCHES_REGEX, rhs)) }> */
8499 func() bool {
8500 {
8501 add(ruleAction103, position)
8502 }
8503 return true
8504 },
8505 /* 226 Action104 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_HAS, rhs)) }> */
8506 func() bool {
8507 {
8508 add(ruleAction104, position)
8509 }
8510 return true
8511 },
8512 /* 227 Action105 <- <{ rhs, lhs := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprBinary(lhs, typesv1.BinaryOp_STR_HAS_CS, rhs)) }> */
8513 func() bool {
8514 {
8515 add(ruleAction105, position)
8516 }
8517 return true
8518 },
8519 /* 228 Action106 <- <{ index, x := p.popExpr(), p.popExpr(); p.pushExpr(typesv1.ExprIndexor(x, index)) }> */
8520 func() bool {
8521 {
8522 add(ruleAction106, position)
8523 }
8524 return true
8525 },
8526 /* 229 Action107 <- <{ p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NOT, typesv1.ExprLiteral(p.Literal))); p.Literal = nil }> */
8527 func() bool {
8528 {
8529 add(ruleAction107, position)
8530 }
8531 return true
8532 },
8533 /* 230 Action108 <- <{ arg := p.popExpr(); p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NOT, arg)) }> */
8534 func() bool {
8535 {
8536 add(ruleAction108, position)
8537 }
8538 return true
8539 },
8540 /* 231 Action109 <- <{ p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NEG, typesv1.ExprLiteral(p.Literal))); p.Literal = nil }> */
8541 func() bool {
8542 {
8543 add(ruleAction109, position)
8544 }
8545 return true
8546 },
8547 /* 232 Action110 <- <{ arg := p.popExpr(); p.pushExpr(typesv1.ExprUnary(typesv1.UnaryOp_NEG, arg)) }> */
8548 func() bool {
8549 {
8550 add(ruleAction110, position)
8551 }
8552 return true
8553 },
8554 /* 233 Action111 <- <{ p.pushExpr(typesv1.ExprLiteral(p.Literal)); p.Literal = nil }> */
8555 func() bool {
8556 {
8557 add(ruleAction111, position)
8558 }
8559 return true
8560 },
8561 /* 234 Action112 <- <{ fn := p.popFunc(); p.pushExpr(typesv1.ExprFuncCall(fn.Name, fn.Args...)) }> */
8562 func() bool {
8563 {
8564 add(ruleAction112, position)
8565 }
8566 return true
8567 },
8568 /* 235 Action113 <- <{ p.Literal = typesv1.ValStr(p.String) }> */
8569 func() bool {
8570 {
8571 add(ruleAction113, position)
8572 }
8573 return true
8574 },
8575 /* 236 Action114 <- <{ p.Literal = typesv1.ValDuration(p.Duration) }> */
8576 func() bool {
8577 {
8578 add(ruleAction114, position)
8579 }
8580 return true
8581 },
8582 /* 237 Action115 <- <{ p.Literal = typesv1.ValTime(p.Timestamp) }> */
8583 func() bool {
8584 {
8585 add(ruleAction115, position)
8586 }
8587 return true
8588 },
8589 /* 238 Action116 <- <{ p.Literal = typesv1.ValF64(p.F64) }> */
8590 func() bool {
8591 {
8592 add(ruleAction116, position)
8593 }
8594 return true
8595 },
8596 /* 239 Action117 <- <{ p.Literal = typesv1.ValI64(p.I64) }> */
8597 func() bool {
8598 {
8599 add(ruleAction117, position)
8600 }
8601 return true
8602 },
8603 /* 240 Action118 <- <{ p.Literal = typesv1.ValBool(p.Bool) }> */
8604 func() bool {
8605 {
8606 add(ruleAction118, position)
8607 }
8608 return true
8609 },
8610 /* 241 Action119 <- <{ p.Literal = typesv1.ValArr(p.popArray()...) }> */
8611 func() bool {
8612 {
8613 add(ruleAction119, position)
8614 }
8615 return true
8616 },
8617 /* 242 Action120 <- <{ p.Literal = typesv1.ValObj(p.popObj()...) }> */
8618 func() bool {
8619 {
8620 add(ruleAction120, position)
8621 }
8622 return true
8623 },
8624 /* 243 Action121 <- <{ p.pushFunc() }> */
8625 func() bool {
8626 {
8627 add(ruleAction121, position)
8628 }
8629 return true
8630 },
8631 nil,
8632 /* 245 Action122 <- <{ p.setFuncName(text) }> */
8633 func() bool {
8634 {
8635 add(ruleAction122, position)
8636 }
8637 return true
8638 },
8639 /* 246 Action123 <- <{ p.addFuncArg(p.popExpr()) }> */
8640 func() bool {
8641 {
8642 add(ruleAction123, position)
8643 }
8644 return true
8645 },
8646 /* 247 Action124 <- <{ p.pushExpr(typesv1.ExprIdentifier(text)) }> */
8647 func() bool {
8648 {
8649 add(ruleAction124, position)
8650 }
8651 return true
8652 },
8653 /* 248 Action125 <- <{ p.pushExpr(typesv1.ExprIdentifier(text)) }> */
8654 func() bool {
8655 {
8656 add(ruleAction125, position)
8657 }
8658 return true
8659 },
8660 /* 249 Action126 <- <{ p.pushExpr(typesv1.ExprIdentifier(text)) }> */
8661 func() bool {
8662 {
8663 add(ruleAction126, position)
8664 }
8665 return true
8666 },
8667 /* 250 Action127 <- <{ p.String = p.parseDoubleQuoteString(text) }> */
8668 func() bool {
8669 {
8670 add(ruleAction127, position)
8671 }
8672 return true
8673 },
8674 /* 251 Action128 <- <{ p.F64 = p.parseFloat64(text) }> */
8675 func() bool {
8676 {
8677 add(ruleAction128, position)
8678 }
8679 return true
8680 },
8681 /* 252 Action129 <- <{ p.F64 = p.parseFloat64(text) }> */
8682 func() bool {
8683 {
8684 add(ruleAction129, position)
8685 }
8686 return true
8687 },
8688 /* 253 Action130 <- <{ p.F64 = p.parseFloat64(text) }> */
8689 func() bool {
8690 {
8691 add(ruleAction130, position)
8692 }
8693 return true
8694 },
8695 /* 254 Action131 <- <{ p.I64 = 0 }> */
8696 func() bool {
8697 {
8698 add(ruleAction131, position)
8699 }
8700 return true
8701 },
8702 /* 255 Action132 <- <{ p.I64 = p.parseInt64(text) }> */
8703 func() bool {
8704 {
8705 add(ruleAction132, position)
8706 }
8707 return true
8708 },
8709 /* 256 Action133 <- <{ p.Bool = true }> */
8710 func() bool {
8711 {
8712 add(ruleAction133, position)
8713 }
8714 return true
8715 },
8716 /* 257 Action134 <- <{ p.Bool = false }> */
8717 func() bool {
8718 {
8719 add(ruleAction134, position)
8720 }
8721 return true
8722 },
8723 /* 258 Action135 <- <{ p.pushArray() }> */
8724 func() bool {
8725 {
8726 add(ruleAction135, position)
8727 }
8728 return true
8729 },
8730 /* 259 Action136 <- <{ p.addArrItem(p.Literal); p.Literal = nil }> */
8731 func() bool {
8732 {
8733 add(ruleAction136, position)
8734 }
8735 return true
8736 },
8737 /* 260 Action137 <- <{ p.pushObj() }> */
8738 func() bool {
8739 {
8740 add(ruleAction137, position)
8741 }
8742 return true
8743 },
8744 /* 261 Action138 <- <{ p.closeObjItem(p.Literal); p.Literal = nil }> */
8745 func() bool {
8746 {
8747 add(ruleAction138, position)
8748 }
8749 return true
8750 },
8751 /* 262 Action139 <- <{ p.startObjItem(p.String) }> */
8752 func() bool {
8753 {
8754 add(ruleAction139, position)
8755 }
8756 return true
8757 },
8758 /* 263 Action140 <- <{ p.Duration = p.parseDurationF64(p.F64, text) }> */
8759 func() bool {
8760 {
8761 add(ruleAction140, position)
8762 }
8763 return true
8764 },
8765 /* 264 Action141 <- <{ p.Duration = p.parseDurationI64(p.I64, text) }> */
8766 func() bool {
8767 {
8768 add(ruleAction141, position)
8769 }
8770 return true
8771 },
8772 /* 265 Action142 <- <{ p.Timestamp = p.parseTime(time.RFC3339Nano, text) }> */
8773 func() bool {
8774 {
8775 add(ruleAction142, position)
8776 }
8777 return true
8778 },
8779 }
8780 p.rules = _rules
8781 return nil
8782 }