Files
opencloud/pkg/kql/dictionary_gen.go
T

6264 lines
185 KiB
Go

// Code generated by pigeon; DO NOT EDIT.
package kql
import (
"bytes"
"errors"
"fmt"
"io"
"math"
"os"
"sort"
"strconv"
"strings"
"unicode"
"unicode/utf8"
)
var g = &grammar{
rules: []*rule{
{
name: "AST",
pos: position{line: 9, col: 1, offset: 143},
expr: &actionExpr{
pos: position{line: 10, col: 5, offset: 154},
run: (*parser).callonAST1,
expr: &seqExpr{
pos: position{line: 10, col: 5, offset: 154},
exprs: []any{
&labeledExpr{
pos: position{line: 10, col: 5, offset: 154},
label: "n",
expr: &ruleRefExpr{
pos: position{line: 10, col: 7, offset: 156},
name: "Nodes",
},
},
&actionExpr{
pos: position{line: 289, col: 5, offset: 6234},
run: (*parser).callonAST5,
expr: &zeroOrMoreExpr{
pos: position{line: 289, col: 5, offset: 6234},
expr: &charClassMatcher{
pos: position{line: 289, col: 5, offset: 6234},
val: "[ \\t]",
chars: []rune{' ', '\t'},
ignoreCase: false,
inverted: false,
},
},
},
&notExpr{
pos: position{line: 15, col: 5, offset: 230},
expr: &anyMatcher{
line: 15, col: 6, offset: 231,
},
},
},
},
},
},
{
name: "Nodes",
pos: position{line: 21, col: 1, offset: 358},
expr: &oneOrMoreExpr{
pos: position{line: 22, col: 5, offset: 371},
expr: &seqExpr{
pos: position{line: 22, col: 6, offset: 372},
exprs: []any{
&actionExpr{
pos: position{line: 289, col: 5, offset: 6234},
run: (*parser).callonNodes3,
expr: &zeroOrMoreExpr{
pos: position{line: 289, col: 5, offset: 6234},
expr: &charClassMatcher{
pos: position{line: 289, col: 5, offset: 6234},
val: "[ \\t]",
chars: []rune{' ', '\t'},
ignoreCase: false,
inverted: false,
},
},
},
&ruleRefExpr{
pos: position{line: 22, col: 8, offset: 374},
name: "Node",
},
},
},
},
},
{
name: "Node",
pos: position{line: 24, col: 1, offset: 382},
expr: &choiceExpr{
pos: position{line: 25, col: 5, offset: 394},
alternatives: []any{
&ruleRefExpr{
pos: position{line: 25, col: 5, offset: 394},
name: "GroupNode",
},
&actionExpr{
pos: position{line: 50, col: 5, offset: 1087},
run: (*parser).callonNode3,
expr: &seqExpr{
pos: position{line: 50, col: 5, offset: 1087},
exprs: []any{
&labeledExpr{
pos: position{line: 50, col: 5, offset: 1087},
label: "k",
expr: &actionExpr{
pos: position{line: 236, col: 5, offset: 5042},
run: (*parser).callonNode6,
expr: &seqExpr{
pos: position{line: 236, col: 5, offset: 5042},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 236, col: 5, offset: 5042},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode9,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrMoreExpr{
pos: position{line: 236, col: 11, offset: 5048},
expr: &seqExpr{
pos: position{line: 236, col: 12, offset: 5049},
exprs: []any{
&litMatcher{
pos: position{line: 236, col: 12, offset: 5049},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 236, col: 16, offset: 5053},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode15,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 50, col: 12, offset: 1094},
alternatives: []any{
&actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode18,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
&actionExpr{
pos: position{line: 138, col: 5, offset: 3349},
run: (*parser).callonNode20,
expr: &litMatcher{
pos: position{line: 138, col: 5, offset: 3349},
val: "=",
ignoreCase: false,
want: "\"=\"",
},
},
},
},
&labeledExpr{
pos: position{line: 50, col: 51, offset: 1133},
label: "v",
expr: &choiceExpr{
pos: position{line: 50, col: 54, offset: 1136},
alternatives: []any{
&litMatcher{
pos: position{line: 50, col: 54, offset: 1136},
val: "true",
ignoreCase: false,
want: "\"true\"",
},
&litMatcher{
pos: position{line: 50, col: 63, offset: 1145},
val: "false",
ignoreCase: false,
want: "\"false\"",
},
},
},
},
&choiceExpr{
pos: position{line: 276, col: 5, offset: 6074},
alternatives: []any{
&andExpr{
pos: position{line: 276, col: 5, offset: 6074},
expr: &charClassMatcher{
pos: position{line: 276, col: 6, offset: 6075},
val: "[ \\t()\"]",
chars: []rune{' ', '\t', '(', ')', '"'},
ignoreCase: false,
inverted: false,
},
},
&notExpr{
pos: position{line: 15, col: 5, offset: 230},
expr: &anyMatcher{
line: 15, col: 6, offset: 231,
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 55, col: 5, offset: 1256},
run: (*parser).callonNode31,
expr: &seqExpr{
pos: position{line: 55, col: 5, offset: 1256},
exprs: []any{
&labeledExpr{
pos: position{line: 55, col: 5, offset: 1256},
label: "k",
expr: &actionExpr{
pos: position{line: 236, col: 5, offset: 5042},
run: (*parser).callonNode34,
expr: &seqExpr{
pos: position{line: 236, col: 5, offset: 5042},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 236, col: 5, offset: 5042},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode37,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrMoreExpr{
pos: position{line: 236, col: 11, offset: 5048},
expr: &seqExpr{
pos: position{line: 236, col: 12, offset: 5049},
exprs: []any{
&litMatcher{
pos: position{line: 236, col: 12, offset: 5049},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 236, col: 16, offset: 5053},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode43,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
&labeledExpr{
pos: position{line: 55, col: 11, offset: 1262},
label: "o",
expr: &choiceExpr{
pos: position{line: 56, col: 9, offset: 1274},
alternatives: []any{
&actionExpr{
pos: position{line: 158, col: 5, offset: 3710},
run: (*parser).callonNode47,
expr: &litMatcher{
pos: position{line: 158, col: 5, offset: 3710},
val: ">=",
ignoreCase: false,
want: "\">=\"",
},
},
&actionExpr{
pos: position{line: 148, col: 5, offset: 3526},
run: (*parser).callonNode49,
expr: &litMatcher{
pos: position{line: 148, col: 5, offset: 3526},
val: "<=",
ignoreCase: false,
want: "\"<=\"",
},
},
&actionExpr{
pos: position{line: 153, col: 5, offset: 3615},
run: (*parser).callonNode51,
expr: &litMatcher{
pos: position{line: 153, col: 5, offset: 3615},
val: ">",
ignoreCase: false,
want: "\">\"",
},
},
&actionExpr{
pos: position{line: 143, col: 5, offset: 3434},
run: (*parser).callonNode53,
expr: &litMatcher{
pos: position{line: 143, col: 5, offset: 3434},
val: "<",
ignoreCase: false,
want: "\"<\"",
},
},
&actionExpr{
pos: position{line: 138, col: 5, offset: 3349},
run: (*parser).callonNode55,
expr: &litMatcher{
pos: position{line: 138, col: 5, offset: 3349},
val: "=",
ignoreCase: false,
want: "\"=\"",
},
},
&actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode57,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
},
},
},
&labeledExpr{
pos: position{line: 62, col: 7, offset: 1454},
label: "v",
expr: &choiceExpr{
pos: position{line: 251, col: 5, offset: 5546},
alternatives: []any{
&actionExpr{
pos: position{line: 251, col: 5, offset: 5546},
run: (*parser).callonNode61,
expr: &seqExpr{
pos: position{line: 251, col: 5, offset: 5546},
exprs: []any{
&litMatcher{
pos: position{line: 251, col: 5, offset: 5546},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&labeledExpr{
pos: position{line: 251, col: 9, offset: 5550},
label: "v",
expr: &choiceExpr{
pos: position{line: 251, col: 12, offset: 5553},
alternatives: []any{
&actionExpr{
pos: position{line: 208, col: 5, offset: 4549},
run: (*parser).callonNode66,
expr: &seqExpr{
pos: position{line: 208, col: 5, offset: 4549},
exprs: []any{
&actionExpr{
pos: position{line: 198, col: 5, offset: 4312},
run: (*parser).callonNode68,
expr: &seqExpr{
pos: position{line: 198, col: 5, offset: 4312},
exprs: []any{
&actionExpr{
pos: position{line: 168, col: 5, offset: 3912},
run: (*parser).callonNode70,
expr: &seqExpr{
pos: position{line: 168, col: 5, offset: 3912},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode72,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode74,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode76,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode78,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 14, offset: 4321},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 173, col: 5, offset: 3989},
run: (*parser).callonNode81,
expr: &seqExpr{
pos: position{line: 173, col: 5, offset: 3989},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode83,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode85,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 28, offset: 4335},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 178, col: 5, offset: 4052},
run: (*parser).callonNode88,
expr: &seqExpr{
pos: position{line: 178, col: 5, offset: 4052},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode90,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode92,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
&litMatcher{
pos: position{line: 208, col: 14, offset: 4558},
val: "T",
ignoreCase: false,
want: "\"T\"",
},
&actionExpr{
pos: position{line: 203, col: 5, offset: 4399},
run: (*parser).callonNode95,
expr: &seqExpr{
pos: position{line: 203, col: 5, offset: 4399},
exprs: []any{
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode97,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode99,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode101,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 14, offset: 4408},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode104,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode106,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode108,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 29, offset: 4423},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 193, col: 5, offset: 4248},
run: (*parser).callonNode111,
expr: &seqExpr{
pos: position{line: 193, col: 5, offset: 4248},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode113,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode115,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&zeroOrOneExpr{
pos: position{line: 203, col: 44, offset: 4438},
expr: &seqExpr{
pos: position{line: 203, col: 45, offset: 4439},
exprs: []any{
&litMatcher{
pos: position{line: 203, col: 45, offset: 4439},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 203, col: 49, offset: 4443},
expr: &actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode121,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 203, col: 59, offset: 4453},
alternatives: []any{
&litMatcher{
pos: position{line: 203, col: 59, offset: 4453},
val: "Z",
ignoreCase: false,
want: "\"Z\"",
},
&seqExpr{
pos: position{line: 203, col: 65, offset: 4459},
exprs: []any{
&charClassMatcher{
pos: position{line: 203, col: 66, offset: 4460},
val: "[+-]",
chars: []rune{'+', '-'},
ignoreCase: false,
inverted: false,
},
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode127,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode129,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode131,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 86, offset: 4480},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode134,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode136,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode138,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 198, col: 5, offset: 4312},
run: (*parser).callonNode140,
expr: &seqExpr{
pos: position{line: 198, col: 5, offset: 4312},
exprs: []any{
&actionExpr{
pos: position{line: 168, col: 5, offset: 3912},
run: (*parser).callonNode142,
expr: &seqExpr{
pos: position{line: 168, col: 5, offset: 3912},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode144,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode146,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode148,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode150,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 14, offset: 4321},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 173, col: 5, offset: 3989},
run: (*parser).callonNode153,
expr: &seqExpr{
pos: position{line: 173, col: 5, offset: 3989},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode155,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode157,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 28, offset: 4335},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 178, col: 5, offset: 4052},
run: (*parser).callonNode160,
expr: &seqExpr{
pos: position{line: 178, col: 5, offset: 4052},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode162,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode164,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 203, col: 5, offset: 4399},
run: (*parser).callonNode166,
expr: &seqExpr{
pos: position{line: 203, col: 5, offset: 4399},
exprs: []any{
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode168,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode170,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode172,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 14, offset: 4408},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode175,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode177,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode179,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 29, offset: 4423},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 193, col: 5, offset: 4248},
run: (*parser).callonNode182,
expr: &seqExpr{
pos: position{line: 193, col: 5, offset: 4248},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode184,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode186,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&zeroOrOneExpr{
pos: position{line: 203, col: 44, offset: 4438},
expr: &seqExpr{
pos: position{line: 203, col: 45, offset: 4439},
exprs: []any{
&litMatcher{
pos: position{line: 203, col: 45, offset: 4439},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 203, col: 49, offset: 4443},
expr: &actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode192,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 203, col: 59, offset: 4453},
alternatives: []any{
&litMatcher{
pos: position{line: 203, col: 59, offset: 4453},
val: "Z",
ignoreCase: false,
want: "\"Z\"",
},
&seqExpr{
pos: position{line: 203, col: 65, offset: 4459},
exprs: []any{
&charClassMatcher{
pos: position{line: 203, col: 66, offset: 4460},
val: "[+-]",
chars: []rune{'+', '-'},
ignoreCase: false,
inverted: false,
},
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode198,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode200,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode202,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 86, offset: 4480},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode205,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode207,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode209,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
&litMatcher{
pos: position{line: 251, col: 44, offset: 5585},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&notExpr{
pos: position{line: 251, col: 48, offset: 5589},
expr: &litMatcher{
pos: position{line: 251, col: 49, offset: 5590},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
},
},
},
},
&actionExpr{
pos: position{line: 254, col: 5, offset: 5630},
run: (*parser).callonNode214,
expr: &seqExpr{
pos: position{line: 254, col: 5, offset: 5630},
exprs: []any{
&labeledExpr{
pos: position{line: 254, col: 5, offset: 5630},
label: "v",
expr: &choiceExpr{
pos: position{line: 254, col: 8, offset: 5633},
alternatives: []any{
&actionExpr{
pos: position{line: 208, col: 5, offset: 4549},
run: (*parser).callonNode218,
expr: &seqExpr{
pos: position{line: 208, col: 5, offset: 4549},
exprs: []any{
&actionExpr{
pos: position{line: 198, col: 5, offset: 4312},
run: (*parser).callonNode220,
expr: &seqExpr{
pos: position{line: 198, col: 5, offset: 4312},
exprs: []any{
&actionExpr{
pos: position{line: 168, col: 5, offset: 3912},
run: (*parser).callonNode222,
expr: &seqExpr{
pos: position{line: 168, col: 5, offset: 3912},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode224,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode226,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode228,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode230,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 14, offset: 4321},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 173, col: 5, offset: 3989},
run: (*parser).callonNode233,
expr: &seqExpr{
pos: position{line: 173, col: 5, offset: 3989},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode235,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode237,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 28, offset: 4335},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 178, col: 5, offset: 4052},
run: (*parser).callonNode240,
expr: &seqExpr{
pos: position{line: 178, col: 5, offset: 4052},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode242,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode244,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
&litMatcher{
pos: position{line: 208, col: 14, offset: 4558},
val: "T",
ignoreCase: false,
want: "\"T\"",
},
&actionExpr{
pos: position{line: 203, col: 5, offset: 4399},
run: (*parser).callonNode247,
expr: &seqExpr{
pos: position{line: 203, col: 5, offset: 4399},
exprs: []any{
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode249,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode251,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode253,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 14, offset: 4408},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode256,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode258,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode260,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 29, offset: 4423},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 193, col: 5, offset: 4248},
run: (*parser).callonNode263,
expr: &seqExpr{
pos: position{line: 193, col: 5, offset: 4248},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode265,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode267,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&zeroOrOneExpr{
pos: position{line: 203, col: 44, offset: 4438},
expr: &seqExpr{
pos: position{line: 203, col: 45, offset: 4439},
exprs: []any{
&litMatcher{
pos: position{line: 203, col: 45, offset: 4439},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 203, col: 49, offset: 4443},
expr: &actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode273,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 203, col: 59, offset: 4453},
alternatives: []any{
&litMatcher{
pos: position{line: 203, col: 59, offset: 4453},
val: "Z",
ignoreCase: false,
want: "\"Z\"",
},
&seqExpr{
pos: position{line: 203, col: 65, offset: 4459},
exprs: []any{
&charClassMatcher{
pos: position{line: 203, col: 66, offset: 4460},
val: "[+-]",
chars: []rune{'+', '-'},
ignoreCase: false,
inverted: false,
},
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode279,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode281,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode283,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 86, offset: 4480},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode286,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode288,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode290,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 198, col: 5, offset: 4312},
run: (*parser).callonNode292,
expr: &seqExpr{
pos: position{line: 198, col: 5, offset: 4312},
exprs: []any{
&actionExpr{
pos: position{line: 168, col: 5, offset: 3912},
run: (*parser).callonNode294,
expr: &seqExpr{
pos: position{line: 168, col: 5, offset: 3912},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode296,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode298,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode300,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode302,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 14, offset: 4321},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 173, col: 5, offset: 3989},
run: (*parser).callonNode305,
expr: &seqExpr{
pos: position{line: 173, col: 5, offset: 3989},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode307,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode309,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 198, col: 28, offset: 4335},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
&actionExpr{
pos: position{line: 178, col: 5, offset: 4052},
run: (*parser).callonNode312,
expr: &seqExpr{
pos: position{line: 178, col: 5, offset: 4052},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode314,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode316,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 203, col: 5, offset: 4399},
run: (*parser).callonNode318,
expr: &seqExpr{
pos: position{line: 203, col: 5, offset: 4399},
exprs: []any{
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode320,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode322,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode324,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 14, offset: 4408},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode327,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode329,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode331,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 29, offset: 4423},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 193, col: 5, offset: 4248},
run: (*parser).callonNode334,
expr: &seqExpr{
pos: position{line: 193, col: 5, offset: 4248},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode336,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode338,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&zeroOrOneExpr{
pos: position{line: 203, col: 44, offset: 4438},
expr: &seqExpr{
pos: position{line: 203, col: 45, offset: 4439},
exprs: []any{
&litMatcher{
pos: position{line: 203, col: 45, offset: 4439},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 203, col: 49, offset: 4443},
expr: &actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode344,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 203, col: 59, offset: 4453},
alternatives: []any{
&litMatcher{
pos: position{line: 203, col: 59, offset: 4453},
val: "Z",
ignoreCase: false,
want: "\"Z\"",
},
&seqExpr{
pos: position{line: 203, col: 65, offset: 4459},
exprs: []any{
&charClassMatcher{
pos: position{line: 203, col: 66, offset: 4460},
val: "[+-]",
chars: []rune{'+', '-'},
ignoreCase: false,
inverted: false,
},
&actionExpr{
pos: position{line: 183, col: 5, offset: 4116},
run: (*parser).callonNode350,
expr: &seqExpr{
pos: position{line: 183, col: 5, offset: 4116},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode352,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode354,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
&litMatcher{
pos: position{line: 203, col: 86, offset: 4480},
val: ":",
ignoreCase: false,
want: "\":\"",
},
&actionExpr{
pos: position{line: 188, col: 5, offset: 4182},
run: (*parser).callonNode357,
expr: &seqExpr{
pos: position{line: 188, col: 5, offset: 4182},
exprs: []any{
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode359,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&actionExpr{
pos: position{line: 284, col: 5, offset: 6183},
run: (*parser).callonNode361,
expr: &charClassMatcher{
pos: position{line: 284, col: 5, offset: 6183},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 276, col: 5, offset: 6074},
alternatives: []any{
&andExpr{
pos: position{line: 276, col: 5, offset: 6074},
expr: &charClassMatcher{
pos: position{line: 276, col: 6, offset: 6075},
val: "[ \\t()\"]",
chars: []rune{' ', '\t', '(', ')', '"'},
ignoreCase: false,
inverted: false,
},
},
&notExpr{
pos: position{line: 15, col: 5, offset: 230},
expr: &anyMatcher{
line: 15, col: 6, offset: 231,
},
},
},
},
},
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 65, col: 5, offset: 1541},
run: (*parser).callonNode368,
expr: &seqExpr{
pos: position{line: 65, col: 5, offset: 1541},
exprs: []any{
&labeledExpr{
pos: position{line: 65, col: 5, offset: 1541},
label: "k",
expr: &actionExpr{
pos: position{line: 236, col: 5, offset: 5042},
run: (*parser).callonNode371,
expr: &seqExpr{
pos: position{line: 236, col: 5, offset: 5042},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 236, col: 5, offset: 5042},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode374,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrMoreExpr{
pos: position{line: 236, col: 11, offset: 5048},
expr: &seqExpr{
pos: position{line: 236, col: 12, offset: 5049},
exprs: []any{
&litMatcher{
pos: position{line: 236, col: 12, offset: 5049},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 236, col: 16, offset: 5053},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode380,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 66, col: 9, offset: 1557},
alternatives: []any{
&actionExpr{
pos: position{line: 138, col: 5, offset: 3349},
run: (*parser).callonNode383,
expr: &litMatcher{
pos: position{line: 138, col: 5, offset: 3349},
val: "=",
ignoreCase: false,
want: "\"=\"",
},
},
&actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode385,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
},
},
&labeledExpr{
pos: position{line: 68, col: 7, offset: 1609},
label: "v",
expr: &choiceExpr{
pos: position{line: 259, col: 5, offset: 5741},
alternatives: []any{
&actionExpr{
pos: position{line: 259, col: 5, offset: 5741},
run: (*parser).callonNode389,
expr: &seqExpr{
pos: position{line: 259, col: 5, offset: 5741},
exprs: []any{
&litMatcher{
pos: position{line: 259, col: 5, offset: 5741},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&labeledExpr{
pos: position{line: 259, col: 9, offset: 5745},
label: "v",
expr: &choiceExpr{
pos: position{line: 213, col: 5, offset: 4637},
alternatives: []any{
&litMatcher{
pos: position{line: 213, col: 5, offset: 4637},
val: "today",
ignoreCase: false,
want: "\"today\"",
},
&litMatcher{
pos: position{line: 214, col: 5, offset: 4651},
val: "yesterday",
ignoreCase: false,
want: "\"yesterday\"",
},
&litMatcher{
pos: position{line: 215, col: 5, offset: 4669},
val: "this week",
ignoreCase: false,
want: "\"this week\"",
},
&litMatcher{
pos: position{line: 216, col: 5, offset: 4687},
val: "last week",
ignoreCase: false,
want: "\"last week\"",
},
&litMatcher{
pos: position{line: 217, col: 5, offset: 4705},
val: "last 7 days",
ignoreCase: false,
want: "\"last 7 days\"",
},
&litMatcher{
pos: position{line: 218, col: 5, offset: 4725},
val: "this month",
ignoreCase: false,
want: "\"this month\"",
},
&litMatcher{
pos: position{line: 219, col: 5, offset: 4744},
val: "last month",
ignoreCase: false,
want: "\"last month\"",
},
&litMatcher{
pos: position{line: 220, col: 5, offset: 4763},
val: "last 30 days",
ignoreCase: false,
want: "\"last 30 days\"",
},
&litMatcher{
pos: position{line: 221, col: 5, offset: 4784},
val: "this year",
ignoreCase: false,
want: "\"this year\"",
},
&actionExpr{
pos: position{line: 222, col: 5, offset: 4802},
run: (*parser).callonNode403,
expr: &litMatcher{
pos: position{line: 222, col: 5, offset: 4802},
val: "last year",
ignoreCase: false,
want: "\"last year\"",
},
},
},
},
},
&litMatcher{
pos: position{line: 259, col: 35, offset: 5771},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&notExpr{
pos: position{line: 259, col: 39, offset: 5775},
expr: &litMatcher{
pos: position{line: 259, col: 40, offset: 5776},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
},
},
},
},
&actionExpr{
pos: position{line: 262, col: 5, offset: 5816},
run: (*parser).callonNode408,
expr: &seqExpr{
pos: position{line: 262, col: 5, offset: 5816},
exprs: []any{
&labeledExpr{
pos: position{line: 262, col: 5, offset: 5816},
label: "v",
expr: &choiceExpr{
pos: position{line: 213, col: 5, offset: 4637},
alternatives: []any{
&litMatcher{
pos: position{line: 213, col: 5, offset: 4637},
val: "today",
ignoreCase: false,
want: "\"today\"",
},
&litMatcher{
pos: position{line: 214, col: 5, offset: 4651},
val: "yesterday",
ignoreCase: false,
want: "\"yesterday\"",
},
&litMatcher{
pos: position{line: 215, col: 5, offset: 4669},
val: "this week",
ignoreCase: false,
want: "\"this week\"",
},
&litMatcher{
pos: position{line: 216, col: 5, offset: 4687},
val: "last week",
ignoreCase: false,
want: "\"last week\"",
},
&litMatcher{
pos: position{line: 217, col: 5, offset: 4705},
val: "last 7 days",
ignoreCase: false,
want: "\"last 7 days\"",
},
&litMatcher{
pos: position{line: 218, col: 5, offset: 4725},
val: "this month",
ignoreCase: false,
want: "\"this month\"",
},
&litMatcher{
pos: position{line: 219, col: 5, offset: 4744},
val: "last month",
ignoreCase: false,
want: "\"last month\"",
},
&litMatcher{
pos: position{line: 220, col: 5, offset: 4763},
val: "last 30 days",
ignoreCase: false,
want: "\"last 30 days\"",
},
&litMatcher{
pos: position{line: 221, col: 5, offset: 4784},
val: "this year",
ignoreCase: false,
want: "\"this year\"",
},
&actionExpr{
pos: position{line: 222, col: 5, offset: 4802},
run: (*parser).callonNode421,
expr: &litMatcher{
pos: position{line: 222, col: 5, offset: 4802},
val: "last year",
ignoreCase: false,
want: "\"last year\"",
},
},
},
},
},
&choiceExpr{
pos: position{line: 276, col: 5, offset: 6074},
alternatives: []any{
&andExpr{
pos: position{line: 276, col: 5, offset: 6074},
expr: &charClassMatcher{
pos: position{line: 276, col: 6, offset: 6075},
val: "[ \\t()\"]",
chars: []rune{' ', '\t', '(', ')', '"'},
ignoreCase: false,
inverted: false,
},
},
&notExpr{
pos: position{line: 15, col: 5, offset: 230},
expr: &anyMatcher{
line: 15, col: 6, offset: 231,
},
},
},
},
},
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 73, col: 5, offset: 1748},
run: (*parser).callonNode428,
expr: &seqExpr{
pos: position{line: 73, col: 5, offset: 1748},
exprs: []any{
&labeledExpr{
pos: position{line: 73, col: 5, offset: 1748},
label: "k",
expr: &actionExpr{
pos: position{line: 236, col: 5, offset: 5042},
run: (*parser).callonNode431,
expr: &seqExpr{
pos: position{line: 236, col: 5, offset: 5042},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 236, col: 5, offset: 5042},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode434,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrMoreExpr{
pos: position{line: 236, col: 11, offset: 5048},
expr: &seqExpr{
pos: position{line: 236, col: 12, offset: 5049},
exprs: []any{
&litMatcher{
pos: position{line: 236, col: 12, offset: 5049},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 236, col: 16, offset: 5053},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode440,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
&labeledExpr{
pos: position{line: 73, col: 11, offset: 1754},
label: "o",
expr: &choiceExpr{
pos: position{line: 74, col: 9, offset: 1766},
alternatives: []any{
&actionExpr{
pos: position{line: 158, col: 5, offset: 3710},
run: (*parser).callonNode444,
expr: &litMatcher{
pos: position{line: 158, col: 5, offset: 3710},
val: ">=",
ignoreCase: false,
want: "\">=\"",
},
},
&actionExpr{
pos: position{line: 148, col: 5, offset: 3526},
run: (*parser).callonNode446,
expr: &litMatcher{
pos: position{line: 148, col: 5, offset: 3526},
val: "<=",
ignoreCase: false,
want: "\"<=\"",
},
},
&actionExpr{
pos: position{line: 153, col: 5, offset: 3615},
run: (*parser).callonNode448,
expr: &litMatcher{
pos: position{line: 153, col: 5, offset: 3615},
val: ">",
ignoreCase: false,
want: "\">\"",
},
},
&actionExpr{
pos: position{line: 143, col: 5, offset: 3434},
run: (*parser).callonNode450,
expr: &litMatcher{
pos: position{line: 143, col: 5, offset: 3434},
val: "<",
ignoreCase: false,
want: "\"<\"",
},
},
},
},
},
&labeledExpr{
pos: position{line: 78, col: 7, offset: 1890},
label: "v",
expr: &choiceExpr{
pos: position{line: 267, col: 5, offset: 5901},
alternatives: []any{
&actionExpr{
pos: position{line: 267, col: 5, offset: 5901},
run: (*parser).callonNode454,
expr: &seqExpr{
pos: position{line: 267, col: 5, offset: 5901},
exprs: []any{
&litMatcher{
pos: position{line: 267, col: 5, offset: 5901},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&labeledExpr{
pos: position{line: 267, col: 9, offset: 5905},
label: "v",
expr: &actionExpr{
pos: position{line: 279, col: 5, offset: 6105},
run: (*parser).callonNode458,
expr: &seqExpr{
pos: position{line: 279, col: 5, offset: 6105},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 279, col: 5, offset: 6105},
expr: &charClassMatcher{
pos: position{line: 279, col: 5, offset: 6105},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&zeroOrOneExpr{
pos: position{line: 279, col: 12, offset: 6112},
expr: &seqExpr{
pos: position{line: 279, col: 13, offset: 6113},
exprs: []any{
&litMatcher{
pos: position{line: 279, col: 13, offset: 6113},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 279, col: 17, offset: 6117},
expr: &charClassMatcher{
pos: position{line: 279, col: 17, offset: 6117},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
&litMatcher{
pos: position{line: 267, col: 18, offset: 5914},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&notExpr{
pos: position{line: 267, col: 22, offset: 5918},
expr: &litMatcher{
pos: position{line: 267, col: 23, offset: 5919},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
},
},
},
},
&actionExpr{
pos: position{line: 270, col: 5, offset: 5959},
run: (*parser).callonNode470,
expr: &seqExpr{
pos: position{line: 270, col: 5, offset: 5959},
exprs: []any{
&labeledExpr{
pos: position{line: 270, col: 5, offset: 5959},
label: "v",
expr: &actionExpr{
pos: position{line: 279, col: 5, offset: 6105},
run: (*parser).callonNode473,
expr: &seqExpr{
pos: position{line: 279, col: 5, offset: 6105},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 279, col: 5, offset: 6105},
expr: &charClassMatcher{
pos: position{line: 279, col: 5, offset: 6105},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
&zeroOrOneExpr{
pos: position{line: 279, col: 12, offset: 6112},
expr: &seqExpr{
pos: position{line: 279, col: 13, offset: 6113},
exprs: []any{
&litMatcher{
pos: position{line: 279, col: 13, offset: 6113},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 279, col: 17, offset: 6117},
expr: &charClassMatcher{
pos: position{line: 279, col: 17, offset: 6117},
val: "[0-9]",
ranges: []rune{'0', '9'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
&choiceExpr{
pos: position{line: 276, col: 5, offset: 6074},
alternatives: []any{
&andExpr{
pos: position{line: 276, col: 5, offset: 6074},
expr: &charClassMatcher{
pos: position{line: 276, col: 6, offset: 6075},
val: "[ \\t()\"]",
chars: []rune{' ', '\t', '(', ')', '"'},
ignoreCase: false,
inverted: false,
},
},
&notExpr{
pos: position{line: 15, col: 5, offset: 230},
expr: &anyMatcher{
line: 15, col: 6, offset: 231,
},
},
},
},
},
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 83, col: 5, offset: 2003},
run: (*parser).callonNode487,
expr: &seqExpr{
pos: position{line: 83, col: 5, offset: 2003},
exprs: []any{
&labeledExpr{
pos: position{line: 83, col: 5, offset: 2003},
label: "k",
expr: &actionExpr{
pos: position{line: 236, col: 5, offset: 5042},
run: (*parser).callonNode490,
expr: &seqExpr{
pos: position{line: 236, col: 5, offset: 5042},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 236, col: 5, offset: 5042},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode493,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrMoreExpr{
pos: position{line: 236, col: 11, offset: 5048},
expr: &seqExpr{
pos: position{line: 236, col: 12, offset: 5049},
exprs: []any{
&litMatcher{
pos: position{line: 236, col: 12, offset: 5049},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 236, col: 16, offset: 5053},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode499,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 138, col: 5, offset: 3349},
run: (*parser).callonNode501,
expr: &litMatcher{
pos: position{line: 138, col: 5, offset: 3349},
val: "=",
ignoreCase: false,
want: "\"=\"",
},
},
&labeledExpr{
pos: position{line: 83, col: 29, offset: 2027},
label: "v",
expr: &choiceExpr{
pos: position{line: 83, col: 32, offset: 2030},
alternatives: []any{
&actionExpr{
pos: position{line: 243, col: 5, offset: 5231},
run: (*parser).callonNode505,
expr: &seqExpr{
pos: position{line: 243, col: 5, offset: 5231},
exprs: []any{
&litMatcher{
pos: position{line: 243, col: 5, offset: 5231},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&zeroOrMoreExpr{
pos: position{line: 243, col: 9, offset: 5235},
expr: &choiceExpr{
pos: position{line: 243, col: 10, offset: 5236},
alternatives: []any{
&litMatcher{
pos: position{line: 243, col: 10, offset: 5236},
val: "\"\"",
ignoreCase: false,
want: "\"\\\"\\\"\"",
},
&charClassMatcher{
pos: position{line: 243, col: 17, offset: 5243},
val: "[^\"]",
chars: []rune{'"'},
ignoreCase: false,
inverted: true,
},
},
},
},
&litMatcher{
pos: position{line: 243, col: 24, offset: 5250},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
},
},
},
&oneOrMoreExpr{
pos: position{line: 83, col: 41, offset: 2039},
expr: &charClassMatcher{
pos: position{line: 83, col: 41, offset: 2039},
val: "[^ ()\"]",
chars: []rune{' ', '(', ')', '"'},
ignoreCase: false,
inverted: true,
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 86, col: 5, offset: 2121},
run: (*parser).callonNode515,
expr: &seqExpr{
pos: position{line: 86, col: 5, offset: 2121},
exprs: []any{
&labeledExpr{
pos: position{line: 86, col: 5, offset: 2121},
label: "k",
expr: &actionExpr{
pos: position{line: 236, col: 5, offset: 5042},
run: (*parser).callonNode518,
expr: &seqExpr{
pos: position{line: 236, col: 5, offset: 5042},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 236, col: 5, offset: 5042},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode521,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrMoreExpr{
pos: position{line: 236, col: 11, offset: 5048},
expr: &seqExpr{
pos: position{line: 236, col: 12, offset: 5049},
exprs: []any{
&litMatcher{
pos: position{line: 236, col: 12, offset: 5049},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 236, col: 16, offset: 5053},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonNode527,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode529,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
&labeledExpr{
pos: position{line: 86, col: 29, offset: 2145},
label: "v",
expr: &choiceExpr{
pos: position{line: 86, col: 32, offset: 2148},
alternatives: []any{
&actionExpr{
pos: position{line: 243, col: 5, offset: 5231},
run: (*parser).callonNode533,
expr: &seqExpr{
pos: position{line: 243, col: 5, offset: 5231},
exprs: []any{
&litMatcher{
pos: position{line: 243, col: 5, offset: 5231},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&zeroOrMoreExpr{
pos: position{line: 243, col: 9, offset: 5235},
expr: &choiceExpr{
pos: position{line: 243, col: 10, offset: 5236},
alternatives: []any{
&litMatcher{
pos: position{line: 243, col: 10, offset: 5236},
val: "\"\"",
ignoreCase: false,
want: "\"\\\"\\\"\"",
},
&charClassMatcher{
pos: position{line: 243, col: 17, offset: 5243},
val: "[^\"]",
chars: []rune{'"'},
ignoreCase: false,
inverted: true,
},
},
},
},
&litMatcher{
pos: position{line: 243, col: 24, offset: 5250},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
},
},
},
&oneOrMoreExpr{
pos: position{line: 86, col: 41, offset: 2157},
expr: &charClassMatcher{
pos: position{line: 86, col: 41, offset: 2157},
val: "[^ ()\"]",
chars: []rune{' ', '(', ')', '"'},
ignoreCase: false,
inverted: true,
},
},
},
},
},
},
},
},
&actionExpr{
pos: position{line: 118, col: 5, offset: 2973},
run: (*parser).callonNode543,
expr: &choiceExpr{
pos: position{line: 118, col: 6, offset: 2974},
alternatives: []any{
&litMatcher{
pos: position{line: 118, col: 6, offset: 2974},
val: "AND",
ignoreCase: false,
want: "\"AND\"",
},
&litMatcher{
pos: position{line: 118, col: 14, offset: 2982},
val: "+",
ignoreCase: false,
want: "\"+\"",
},
},
},
},
&actionExpr{
pos: position{line: 123, col: 5, offset: 3074},
run: (*parser).callonNode547,
expr: &choiceExpr{
pos: position{line: 123, col: 6, offset: 3075},
alternatives: []any{
&litMatcher{
pos: position{line: 123, col: 6, offset: 3075},
val: "NOT",
ignoreCase: false,
want: "\"NOT\"",
},
&litMatcher{
pos: position{line: 123, col: 14, offset: 3083},
val: "-",
ignoreCase: false,
want: "\"-\"",
},
},
},
},
&actionExpr{
pos: position{line: 128, col: 5, offset: 3174},
run: (*parser).callonNode551,
expr: &litMatcher{
pos: position{line: 128, col: 6, offset: 3175},
val: "OR",
ignoreCase: false,
want: "\"OR\"",
},
},
&actionExpr{
pos: position{line: 99, col: 6, offset: 2446},
run: (*parser).callonNode553,
expr: &seqExpr{
pos: position{line: 99, col: 6, offset: 2446},
exprs: []any{
&zeroOrOneExpr{
pos: position{line: 99, col: 6, offset: 2446},
expr: &actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode556,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
},
&actionExpr{
pos: position{line: 289, col: 5, offset: 6234},
run: (*parser).callonNode558,
expr: &zeroOrMoreExpr{
pos: position{line: 289, col: 5, offset: 6234},
expr: &charClassMatcher{
pos: position{line: 289, col: 5, offset: 6234},
val: "[ \\t]",
chars: []rune{' ', '\t'},
ignoreCase: false,
inverted: false,
},
},
},
&labeledExpr{
pos: position{line: 99, col: 27, offset: 2467},
label: "v",
expr: &actionExpr{
pos: position{line: 243, col: 5, offset: 5231},
run: (*parser).callonNode562,
expr: &seqExpr{
pos: position{line: 243, col: 5, offset: 5231},
exprs: []any{
&litMatcher{
pos: position{line: 243, col: 5, offset: 5231},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
&zeroOrMoreExpr{
pos: position{line: 243, col: 9, offset: 5235},
expr: &choiceExpr{
pos: position{line: 243, col: 10, offset: 5236},
alternatives: []any{
&litMatcher{
pos: position{line: 243, col: 10, offset: 5236},
val: "\"\"",
ignoreCase: false,
want: "\"\\\"\\\"\"",
},
&charClassMatcher{
pos: position{line: 243, col: 17, offset: 5243},
val: "[^\"]",
chars: []rune{'"'},
ignoreCase: false,
inverted: true,
},
},
},
},
&litMatcher{
pos: position{line: 243, col: 24, offset: 5250},
val: "\"",
ignoreCase: false,
want: "\"\\\"\"",
},
},
},
},
},
&actionExpr{
pos: position{line: 289, col: 5, offset: 6234},
run: (*parser).callonNode570,
expr: &zeroOrMoreExpr{
pos: position{line: 289, col: 5, offset: 6234},
expr: &charClassMatcher{
pos: position{line: 289, col: 5, offset: 6234},
val: "[ \\t]",
chars: []rune{' ', '\t'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrOneExpr{
pos: position{line: 99, col: 38, offset: 2478},
expr: &actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode574,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
},
},
},
},
&actionExpr{
pos: position{line: 104, col: 6, offset: 2583},
run: (*parser).callonNode576,
expr: &seqExpr{
pos: position{line: 104, col: 6, offset: 2583},
exprs: []any{
&zeroOrOneExpr{
pos: position{line: 104, col: 6, offset: 2583},
expr: &actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode579,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
},
&actionExpr{
pos: position{line: 289, col: 5, offset: 6234},
run: (*parser).callonNode581,
expr: &zeroOrMoreExpr{
pos: position{line: 289, col: 5, offset: 6234},
expr: &charClassMatcher{
pos: position{line: 289, col: 5, offset: 6234},
val: "[ \\t]",
chars: []rune{' ', '\t'},
ignoreCase: false,
inverted: false,
},
},
},
&labeledExpr{
pos: position{line: 104, col: 27, offset: 2604},
label: "v",
expr: &oneOrMoreExpr{
pos: position{line: 104, col: 29, offset: 2606},
expr: &charClassMatcher{
pos: position{line: 104, col: 29, offset: 2606},
val: "[^ :()\"]",
chars: []rune{' ', ':', '(', ')', '"'},
ignoreCase: false,
inverted: true,
},
},
},
&actionExpr{
pos: position{line: 289, col: 5, offset: 6234},
run: (*parser).callonNode587,
expr: &zeroOrMoreExpr{
pos: position{line: 289, col: 5, offset: 6234},
expr: &charClassMatcher{
pos: position{line: 289, col: 5, offset: 6234},
val: "[ \\t]",
chars: []rune{' ', '\t'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrOneExpr{
pos: position{line: 104, col: 41, offset: 2618},
expr: &actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonNode591,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
},
},
},
},
},
},
},
{
name: "GroupNode",
pos: position{line: 34, col: 1, offset: 616},
expr: &actionExpr{
pos: position{line: 35, col: 5, offset: 633},
run: (*parser).callonGroupNode1,
expr: &seqExpr{
pos: position{line: 35, col: 5, offset: 633},
exprs: []any{
&labeledExpr{
pos: position{line: 35, col: 5, offset: 633},
label: "k",
expr: &zeroOrOneExpr{
pos: position{line: 35, col: 7, offset: 635},
expr: &actionExpr{
pos: position{line: 236, col: 5, offset: 5042},
run: (*parser).callonGroupNode5,
expr: &seqExpr{
pos: position{line: 236, col: 5, offset: 5042},
exprs: []any{
&oneOrMoreExpr{
pos: position{line: 236, col: 5, offset: 5042},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonGroupNode8,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
&zeroOrMoreExpr{
pos: position{line: 236, col: 11, offset: 5048},
expr: &seqExpr{
pos: position{line: 236, col: 12, offset: 5049},
exprs: []any{
&litMatcher{
pos: position{line: 236, col: 12, offset: 5049},
val: ".",
ignoreCase: false,
want: "\".\"",
},
&oneOrMoreExpr{
pos: position{line: 236, col: 16, offset: 5053},
expr: &actionExpr{
pos: position{line: 231, col: 5, offset: 4986},
run: (*parser).callonGroupNode14,
expr: &charClassMatcher{
pos: position{line: 231, col: 5, offset: 4986},
val: "[A-Za-z]",
ranges: []rune{'A', 'Z', 'a', 'z'},
ignoreCase: false,
inverted: false,
},
},
},
},
},
},
},
},
},
},
},
&zeroOrOneExpr{
pos: position{line: 35, col: 12, offset: 640},
expr: &choiceExpr{
pos: position{line: 35, col: 13, offset: 641},
alternatives: []any{
&actionExpr{
pos: position{line: 133, col: 5, offset: 3263},
run: (*parser).callonGroupNode18,
expr: &litMatcher{
pos: position{line: 133, col: 5, offset: 3263},
val: ":",
ignoreCase: false,
want: "\":\"",
},
},
&actionExpr{
pos: position{line: 138, col: 5, offset: 3349},
run: (*parser).callonGroupNode20,
expr: &litMatcher{
pos: position{line: 138, col: 5, offset: 3349},
val: "=",
ignoreCase: false,
want: "\"=\"",
},
},
},
},
},
&litMatcher{
pos: position{line: 35, col: 53, offset: 681},
val: "(",
ignoreCase: false,
want: "\"(\"",
},
&labeledExpr{
pos: position{line: 35, col: 57, offset: 685},
label: "v",
expr: &ruleRefExpr{
pos: position{line: 35, col: 59, offset: 687},
name: "Nodes",
},
},
&litMatcher{
pos: position{line: 35, col: 65, offset: 693},
val: ")",
ignoreCase: false,
want: "\")\"",
},
},
},
},
},
},
}
func (c *current) onAST5(n any) (any, error) {
return nil, nil
}
func (p *parser) callonAST5() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onAST5(stack["n"])
}
func (c *current) onAST1(n any) (any, error) {
return buildAST(n, c.text, c.pos)
}
func (p *parser) callonAST1() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onAST1(stack["n"])
}
func (c *current) onNodes3() (any, error) {
return nil, nil
}
func (p *parser) callonNodes3() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNodes3()
}
func (c *current) onNode9() (any, error) {
return c.text, nil
}
func (p *parser) callonNode9() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode9()
}
func (c *current) onNode15() (any, error) {
return c.text, nil
}
func (p *parser) callonNode15() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode15()
}
func (c *current) onNode6() (any, error) {
return c.text, nil
}
func (p *parser) callonNode6() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode6()
}
func (c *current) onNode18() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode18() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode18()
}
func (c *current) onNode20() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode20() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode20()
}
func (c *current) onNode3(k, v any) (any, error) {
return buildBooleanNode(k, v, c.text, c.pos)
}
func (p *parser) callonNode3() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode3(stack["k"], stack["v"])
}
func (c *current) onNode37() (any, error) {
return c.text, nil
}
func (p *parser) callonNode37() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode37()
}
func (c *current) onNode43() (any, error) {
return c.text, nil
}
func (p *parser) callonNode43() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode43()
}
func (c *current) onNode34() (any, error) {
return c.text, nil
}
func (p *parser) callonNode34() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode34()
}
func (c *current) onNode47() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode47() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode47()
}
func (c *current) onNode49() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode49() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode49()
}
func (c *current) onNode51() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode51() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode51()
}
func (c *current) onNode53() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode53() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode53()
}
func (c *current) onNode55() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode55() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode55()
}
func (c *current) onNode57() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode57() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode57()
}
func (c *current) onNode72() (any, error) {
return c.text, nil
}
func (p *parser) callonNode72() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode72()
}
func (c *current) onNode74() (any, error) {
return c.text, nil
}
func (p *parser) callonNode74() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode74()
}
func (c *current) onNode76() (any, error) {
return c.text, nil
}
func (p *parser) callonNode76() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode76()
}
func (c *current) onNode78() (any, error) {
return c.text, nil
}
func (p *parser) callonNode78() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode78()
}
func (c *current) onNode70() (any, error) {
return c.text, nil
}
func (p *parser) callonNode70() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode70()
}
func (c *current) onNode83() (any, error) {
return c.text, nil
}
func (p *parser) callonNode83() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode83()
}
func (c *current) onNode85() (any, error) {
return c.text, nil
}
func (p *parser) callonNode85() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode85()
}
func (c *current) onNode81() (any, error) {
return c.text, nil
}
func (p *parser) callonNode81() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode81()
}
func (c *current) onNode90() (any, error) {
return c.text, nil
}
func (p *parser) callonNode90() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode90()
}
func (c *current) onNode92() (any, error) {
return c.text, nil
}
func (p *parser) callonNode92() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode92()
}
func (c *current) onNode88() (any, error) {
return c.text, nil
}
func (p *parser) callonNode88() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode88()
}
func (c *current) onNode68() (any, error) {
return c.text, nil
}
func (p *parser) callonNode68() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode68()
}
func (c *current) onNode99() (any, error) {
return c.text, nil
}
func (p *parser) callonNode99() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode99()
}
func (c *current) onNode101() (any, error) {
return c.text, nil
}
func (p *parser) callonNode101() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode101()
}
func (c *current) onNode97() (any, error) {
return c.text, nil
}
func (p *parser) callonNode97() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode97()
}
func (c *current) onNode106() (any, error) {
return c.text, nil
}
func (p *parser) callonNode106() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode106()
}
func (c *current) onNode108() (any, error) {
return c.text, nil
}
func (p *parser) callonNode108() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode108()
}
func (c *current) onNode104() (any, error) {
return c.text, nil
}
func (p *parser) callonNode104() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode104()
}
func (c *current) onNode113() (any, error) {
return c.text, nil
}
func (p *parser) callonNode113() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode113()
}
func (c *current) onNode115() (any, error) {
return c.text, nil
}
func (p *parser) callonNode115() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode115()
}
func (c *current) onNode111() (any, error) {
return c.text, nil
}
func (p *parser) callonNode111() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode111()
}
func (c *current) onNode121() (any, error) {
return c.text, nil
}
func (p *parser) callonNode121() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode121()
}
func (c *current) onNode129() (any, error) {
return c.text, nil
}
func (p *parser) callonNode129() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode129()
}
func (c *current) onNode131() (any, error) {
return c.text, nil
}
func (p *parser) callonNode131() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode131()
}
func (c *current) onNode127() (any, error) {
return c.text, nil
}
func (p *parser) callonNode127() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode127()
}
func (c *current) onNode136() (any, error) {
return c.text, nil
}
func (p *parser) callonNode136() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode136()
}
func (c *current) onNode138() (any, error) {
return c.text, nil
}
func (p *parser) callonNode138() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode138()
}
func (c *current) onNode134() (any, error) {
return c.text, nil
}
func (p *parser) callonNode134() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode134()
}
func (c *current) onNode95() (any, error) {
return c.text, nil
}
func (p *parser) callonNode95() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode95()
}
func (c *current) onNode66() (any, error) {
return c.text, nil
}
func (p *parser) callonNode66() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode66()
}
func (c *current) onNode144() (any, error) {
return c.text, nil
}
func (p *parser) callonNode144() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode144()
}
func (c *current) onNode146() (any, error) {
return c.text, nil
}
func (p *parser) callonNode146() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode146()
}
func (c *current) onNode148() (any, error) {
return c.text, nil
}
func (p *parser) callonNode148() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode148()
}
func (c *current) onNode150() (any, error) {
return c.text, nil
}
func (p *parser) callonNode150() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode150()
}
func (c *current) onNode142() (any, error) {
return c.text, nil
}
func (p *parser) callonNode142() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode142()
}
func (c *current) onNode155() (any, error) {
return c.text, nil
}
func (p *parser) callonNode155() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode155()
}
func (c *current) onNode157() (any, error) {
return c.text, nil
}
func (p *parser) callonNode157() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode157()
}
func (c *current) onNode153() (any, error) {
return c.text, nil
}
func (p *parser) callonNode153() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode153()
}
func (c *current) onNode162() (any, error) {
return c.text, nil
}
func (p *parser) callonNode162() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode162()
}
func (c *current) onNode164() (any, error) {
return c.text, nil
}
func (p *parser) callonNode164() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode164()
}
func (c *current) onNode160() (any, error) {
return c.text, nil
}
func (p *parser) callonNode160() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode160()
}
func (c *current) onNode140() (any, error) {
return c.text, nil
}
func (p *parser) callonNode140() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode140()
}
func (c *current) onNode170() (any, error) {
return c.text, nil
}
func (p *parser) callonNode170() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode170()
}
func (c *current) onNode172() (any, error) {
return c.text, nil
}
func (p *parser) callonNode172() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode172()
}
func (c *current) onNode168() (any, error) {
return c.text, nil
}
func (p *parser) callonNode168() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode168()
}
func (c *current) onNode177() (any, error) {
return c.text, nil
}
func (p *parser) callonNode177() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode177()
}
func (c *current) onNode179() (any, error) {
return c.text, nil
}
func (p *parser) callonNode179() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode179()
}
func (c *current) onNode175() (any, error) {
return c.text, nil
}
func (p *parser) callonNode175() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode175()
}
func (c *current) onNode184() (any, error) {
return c.text, nil
}
func (p *parser) callonNode184() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode184()
}
func (c *current) onNode186() (any, error) {
return c.text, nil
}
func (p *parser) callonNode186() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode186()
}
func (c *current) onNode182() (any, error) {
return c.text, nil
}
func (p *parser) callonNode182() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode182()
}
func (c *current) onNode192() (any, error) {
return c.text, nil
}
func (p *parser) callonNode192() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode192()
}
func (c *current) onNode200() (any, error) {
return c.text, nil
}
func (p *parser) callonNode200() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode200()
}
func (c *current) onNode202() (any, error) {
return c.text, nil
}
func (p *parser) callonNode202() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode202()
}
func (c *current) onNode198() (any, error) {
return c.text, nil
}
func (p *parser) callonNode198() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode198()
}
func (c *current) onNode207() (any, error) {
return c.text, nil
}
func (p *parser) callonNode207() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode207()
}
func (c *current) onNode209() (any, error) {
return c.text, nil
}
func (p *parser) callonNode209() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode209()
}
func (c *current) onNode205() (any, error) {
return c.text, nil
}
func (p *parser) callonNode205() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode205()
}
func (c *current) onNode166() (any, error) {
return c.text, nil
}
func (p *parser) callonNode166() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode166()
}
func (c *current) onNode61(v any) (any, error) {
return v, nil
}
func (p *parser) callonNode61() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode61(stack["v"])
}
func (c *current) onNode224() (any, error) {
return c.text, nil
}
func (p *parser) callonNode224() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode224()
}
func (c *current) onNode226() (any, error) {
return c.text, nil
}
func (p *parser) callonNode226() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode226()
}
func (c *current) onNode228() (any, error) {
return c.text, nil
}
func (p *parser) callonNode228() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode228()
}
func (c *current) onNode230() (any, error) {
return c.text, nil
}
func (p *parser) callonNode230() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode230()
}
func (c *current) onNode222() (any, error) {
return c.text, nil
}
func (p *parser) callonNode222() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode222()
}
func (c *current) onNode235() (any, error) {
return c.text, nil
}
func (p *parser) callonNode235() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode235()
}
func (c *current) onNode237() (any, error) {
return c.text, nil
}
func (p *parser) callonNode237() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode237()
}
func (c *current) onNode233() (any, error) {
return c.text, nil
}
func (p *parser) callonNode233() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode233()
}
func (c *current) onNode242() (any, error) {
return c.text, nil
}
func (p *parser) callonNode242() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode242()
}
func (c *current) onNode244() (any, error) {
return c.text, nil
}
func (p *parser) callonNode244() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode244()
}
func (c *current) onNode240() (any, error) {
return c.text, nil
}
func (p *parser) callonNode240() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode240()
}
func (c *current) onNode220() (any, error) {
return c.text, nil
}
func (p *parser) callonNode220() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode220()
}
func (c *current) onNode251() (any, error) {
return c.text, nil
}
func (p *parser) callonNode251() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode251()
}
func (c *current) onNode253() (any, error) {
return c.text, nil
}
func (p *parser) callonNode253() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode253()
}
func (c *current) onNode249() (any, error) {
return c.text, nil
}
func (p *parser) callonNode249() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode249()
}
func (c *current) onNode258() (any, error) {
return c.text, nil
}
func (p *parser) callonNode258() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode258()
}
func (c *current) onNode260() (any, error) {
return c.text, nil
}
func (p *parser) callonNode260() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode260()
}
func (c *current) onNode256() (any, error) {
return c.text, nil
}
func (p *parser) callonNode256() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode256()
}
func (c *current) onNode265() (any, error) {
return c.text, nil
}
func (p *parser) callonNode265() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode265()
}
func (c *current) onNode267() (any, error) {
return c.text, nil
}
func (p *parser) callonNode267() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode267()
}
func (c *current) onNode263() (any, error) {
return c.text, nil
}
func (p *parser) callonNode263() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode263()
}
func (c *current) onNode273() (any, error) {
return c.text, nil
}
func (p *parser) callonNode273() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode273()
}
func (c *current) onNode281() (any, error) {
return c.text, nil
}
func (p *parser) callonNode281() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode281()
}
func (c *current) onNode283() (any, error) {
return c.text, nil
}
func (p *parser) callonNode283() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode283()
}
func (c *current) onNode279() (any, error) {
return c.text, nil
}
func (p *parser) callonNode279() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode279()
}
func (c *current) onNode288() (any, error) {
return c.text, nil
}
func (p *parser) callonNode288() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode288()
}
func (c *current) onNode290() (any, error) {
return c.text, nil
}
func (p *parser) callonNode290() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode290()
}
func (c *current) onNode286() (any, error) {
return c.text, nil
}
func (p *parser) callonNode286() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode286()
}
func (c *current) onNode247() (any, error) {
return c.text, nil
}
func (p *parser) callonNode247() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode247()
}
func (c *current) onNode218() (any, error) {
return c.text, nil
}
func (p *parser) callonNode218() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode218()
}
func (c *current) onNode296() (any, error) {
return c.text, nil
}
func (p *parser) callonNode296() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode296()
}
func (c *current) onNode298() (any, error) {
return c.text, nil
}
func (p *parser) callonNode298() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode298()
}
func (c *current) onNode300() (any, error) {
return c.text, nil
}
func (p *parser) callonNode300() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode300()
}
func (c *current) onNode302() (any, error) {
return c.text, nil
}
func (p *parser) callonNode302() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode302()
}
func (c *current) onNode294() (any, error) {
return c.text, nil
}
func (p *parser) callonNode294() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode294()
}
func (c *current) onNode307() (any, error) {
return c.text, nil
}
func (p *parser) callonNode307() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode307()
}
func (c *current) onNode309() (any, error) {
return c.text, nil
}
func (p *parser) callonNode309() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode309()
}
func (c *current) onNode305() (any, error) {
return c.text, nil
}
func (p *parser) callonNode305() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode305()
}
func (c *current) onNode314() (any, error) {
return c.text, nil
}
func (p *parser) callonNode314() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode314()
}
func (c *current) onNode316() (any, error) {
return c.text, nil
}
func (p *parser) callonNode316() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode316()
}
func (c *current) onNode312() (any, error) {
return c.text, nil
}
func (p *parser) callonNode312() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode312()
}
func (c *current) onNode292() (any, error) {
return c.text, nil
}
func (p *parser) callonNode292() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode292()
}
func (c *current) onNode322() (any, error) {
return c.text, nil
}
func (p *parser) callonNode322() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode322()
}
func (c *current) onNode324() (any, error) {
return c.text, nil
}
func (p *parser) callonNode324() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode324()
}
func (c *current) onNode320() (any, error) {
return c.text, nil
}
func (p *parser) callonNode320() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode320()
}
func (c *current) onNode329() (any, error) {
return c.text, nil
}
func (p *parser) callonNode329() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode329()
}
func (c *current) onNode331() (any, error) {
return c.text, nil
}
func (p *parser) callonNode331() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode331()
}
func (c *current) onNode327() (any, error) {
return c.text, nil
}
func (p *parser) callonNode327() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode327()
}
func (c *current) onNode336() (any, error) {
return c.text, nil
}
func (p *parser) callonNode336() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode336()
}
func (c *current) onNode338() (any, error) {
return c.text, nil
}
func (p *parser) callonNode338() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode338()
}
func (c *current) onNode334() (any, error) {
return c.text, nil
}
func (p *parser) callonNode334() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode334()
}
func (c *current) onNode344() (any, error) {
return c.text, nil
}
func (p *parser) callonNode344() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode344()
}
func (c *current) onNode352() (any, error) {
return c.text, nil
}
func (p *parser) callonNode352() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode352()
}
func (c *current) onNode354() (any, error) {
return c.text, nil
}
func (p *parser) callonNode354() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode354()
}
func (c *current) onNode350() (any, error) {
return c.text, nil
}
func (p *parser) callonNode350() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode350()
}
func (c *current) onNode359() (any, error) {
return c.text, nil
}
func (p *parser) callonNode359() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode359()
}
func (c *current) onNode361() (any, error) {
return c.text, nil
}
func (p *parser) callonNode361() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode361()
}
func (c *current) onNode357() (any, error) {
return c.text, nil
}
func (p *parser) callonNode357() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode357()
}
func (c *current) onNode318() (any, error) {
return c.text, nil
}
func (p *parser) callonNode318() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode318()
}
func (c *current) onNode214(v any) (any, error) {
return v, nil
}
func (p *parser) callonNode214() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode214(stack["v"])
}
func (c *current) onNode31(k, o, v any) (any, error) {
return buildDateTimeNode(k, o, v, c.text, c.pos)
}
func (p *parser) callonNode31() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode31(stack["k"], stack["o"], stack["v"])
}
func (c *current) onNode374() (any, error) {
return c.text, nil
}
func (p *parser) callonNode374() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode374()
}
func (c *current) onNode380() (any, error) {
return c.text, nil
}
func (p *parser) callonNode380() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode380()
}
func (c *current) onNode371() (any, error) {
return c.text, nil
}
func (p *parser) callonNode371() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode371()
}
func (c *current) onNode383() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode383() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode383()
}
func (c *current) onNode385() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode385() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode385()
}
func (c *current) onNode403() (any, error) {
return c.text, nil
}
func (p *parser) callonNode403() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode403()
}
func (c *current) onNode389(v any) (any, error) {
return v, nil
}
func (p *parser) callonNode389() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode389(stack["v"])
}
func (c *current) onNode421() (any, error) {
return c.text, nil
}
func (p *parser) callonNode421() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode421()
}
func (c *current) onNode408(v any) (any, error) {
return v, nil
}
func (p *parser) callonNode408() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode408(stack["v"])
}
func (c *current) onNode368(k, v any) (any, error) {
return buildNaturalLanguageDateTimeNodes(k, v, c.text, c.pos)
}
func (p *parser) callonNode368() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode368(stack["k"], stack["v"])
}
func (c *current) onNode434() (any, error) {
return c.text, nil
}
func (p *parser) callonNode434() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode434()
}
func (c *current) onNode440() (any, error) {
return c.text, nil
}
func (p *parser) callonNode440() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode440()
}
func (c *current) onNode431() (any, error) {
return c.text, nil
}
func (p *parser) callonNode431() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode431()
}
func (c *current) onNode444() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode444() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode444()
}
func (c *current) onNode446() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode446() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode446()
}
func (c *current) onNode448() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode448() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode448()
}
func (c *current) onNode450() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode450() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode450()
}
func (c *current) onNode458() (any, error) {
return string(c.text), nil
}
func (p *parser) callonNode458() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode458()
}
func (c *current) onNode454(v any) (any, error) {
return v, nil
}
func (p *parser) callonNode454() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode454(stack["v"])
}
func (c *current) onNode473() (any, error) {
return string(c.text), nil
}
func (p *parser) callonNode473() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode473()
}
func (c *current) onNode470(v any) (any, error) {
return v, nil
}
func (p *parser) callonNode470() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode470(stack["v"])
}
func (c *current) onNode428(k, o, v any) (any, error) {
return buildNumberNode(k, o, v, c.text, c.pos)
}
func (p *parser) callonNode428() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode428(stack["k"], stack["o"], stack["v"])
}
func (c *current) onNode493() (any, error) {
return c.text, nil
}
func (p *parser) callonNode493() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode493()
}
func (c *current) onNode499() (any, error) {
return c.text, nil
}
func (p *parser) callonNode499() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode499()
}
func (c *current) onNode490() (any, error) {
return c.text, nil
}
func (p *parser) callonNode490() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode490()
}
func (c *current) onNode501(k any) (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode501() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode501(stack["k"])
}
func (c *current) onNode505() (any, error) {
return unquote(c.text), nil
}
func (p *parser) callonNode505() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode505()
}
func (c *current) onNode487(k, v any) (any, error) {
return buildStringNode(k, v, true, c.text, c.pos)
}
func (p *parser) callonNode487() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode487(stack["k"], stack["v"])
}
func (c *current) onNode521() (any, error) {
return c.text, nil
}
func (p *parser) callonNode521() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode521()
}
func (c *current) onNode527() (any, error) {
return c.text, nil
}
func (p *parser) callonNode527() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode527()
}
func (c *current) onNode518() (any, error) {
return c.text, nil
}
func (p *parser) callonNode518() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode518()
}
func (c *current) onNode529(k any) (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode529() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode529(stack["k"])
}
func (c *current) onNode533() (any, error) {
return unquote(c.text), nil
}
func (p *parser) callonNode533() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode533()
}
func (c *current) onNode515(k, v any) (any, error) {
return buildStringNode(k, v, false, c.text, c.pos)
}
func (p *parser) callonNode515() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode515(stack["k"], stack["v"])
}
func (c *current) onNode543() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode543() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode543()
}
func (c *current) onNode547() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode547() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode547()
}
func (c *current) onNode551() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode551() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode551()
}
func (c *current) onNode556() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode556() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode556()
}
func (c *current) onNode558() (any, error) {
return nil, nil
}
func (p *parser) callonNode558() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode558()
}
func (c *current) onNode562() (any, error) {
return unquote(c.text), nil
}
func (p *parser) callonNode562() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode562()
}
func (c *current) onNode570(v any) (any, error) {
return nil, nil
}
func (p *parser) callonNode570() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode570(stack["v"])
}
func (c *current) onNode574() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode574() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode574()
}
func (c *current) onNode553(v any) (any, error) {
return buildStringNode("", v, false, c.text, c.pos)
}
func (p *parser) callonNode553() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode553(stack["v"])
}
func (c *current) onNode579() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode579() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode579()
}
func (c *current) onNode581() (any, error) {
return nil, nil
}
func (p *parser) callonNode581() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode581()
}
func (c *current) onNode587(v any) (any, error) {
return nil, nil
}
func (p *parser) callonNode587() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode587(stack["v"])
}
func (c *current) onNode591() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonNode591() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode591()
}
func (c *current) onNode576(v any) (any, error) {
return buildStringNode("", v, false, c.text, c.pos)
}
func (p *parser) callonNode576() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onNode576(stack["v"])
}
func (c *current) onGroupNode8() (any, error) {
return c.text, nil
}
func (p *parser) callonGroupNode8() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onGroupNode8()
}
func (c *current) onGroupNode14() (any, error) {
return c.text, nil
}
func (p *parser) callonGroupNode14() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onGroupNode14()
}
func (c *current) onGroupNode5() (any, error) {
return c.text, nil
}
func (p *parser) callonGroupNode5() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onGroupNode5()
}
func (c *current) onGroupNode18() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonGroupNode18() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onGroupNode18()
}
func (c *current) onGroupNode20() (any, error) {
return buildOperatorNode(c.text, c.pos)
}
func (p *parser) callonGroupNode20() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onGroupNode20()
}
func (c *current) onGroupNode1(k, v any) (any, error) {
return buildGroupNode(k, v, c.text, c.pos)
}
func (p *parser) callonGroupNode1() (any, error) {
stack := p.vstack[len(p.vstack)-1]
_ = stack
return p.cur.onGroupNode1(stack["k"], stack["v"])
}
var (
// errNoRule is returned when the grammar to parse has no rule.
errNoRule = errors.New("grammar has no rule")
// errInvalidEntrypoint is returned when the specified entrypoint rule
// does not exit.
errInvalidEntrypoint = errors.New("invalid entrypoint")
// errInvalidEncoding is returned when the source is not properly
// utf8-encoded.
errInvalidEncoding = errors.New("invalid encoding")
// errMaxExprCnt is used to signal that the maximum number of
// expressions have been parsed.
errMaxExprCnt = errors.New("max number of expressions parsed")
)
// Option is a function that can set an option on the parser. It returns
// the previous setting as an Option.
type Option func(*parser) Option
// MaxExpressions creates an Option to stop parsing after the provided
// number of expressions have been parsed, if the value is 0 then the parser will
// parse for as many steps as needed (possibly an infinite number).
//
// The default for maxExprCnt is 0.
func MaxExpressions(maxExprCnt uint64) Option {
return func(p *parser) Option {
oldMaxExprCnt := p.maxExprCnt
p.maxExprCnt = maxExprCnt
return MaxExpressions(oldMaxExprCnt)
}
}
// Entrypoint creates an Option to set the rule name to use as entrypoint.
// The rule name must have been specified in the -alternate-entrypoints
// if generating the parser with the -optimize-grammar flag, otherwise
// it may have been optimized out. Passing an empty string sets the
// entrypoint to the first rule in the grammar.
//
// The default is to start parsing at the first rule in the grammar.
func Entrypoint(ruleName string) Option {
return func(p *parser) Option {
oldEntrypoint := p.entrypoint
p.entrypoint = ruleName
if ruleName == "" {
p.entrypoint = g.rules[0].name
}
return Entrypoint(oldEntrypoint)
}
}
// AllowInvalidUTF8 creates an Option to allow invalid UTF-8 bytes.
// Every invalid UTF-8 byte is treated as a utf8.RuneError (U+FFFD)
// by character class matchers and is matched by the any matcher.
// The returned matched value, c.text and c.offset are NOT affected.
//
// The default is false.
func AllowInvalidUTF8(b bool) Option {
return func(p *parser) Option {
old := p.allowInvalidUTF8
p.allowInvalidUTF8 = b
return AllowInvalidUTF8(old)
}
}
// Recover creates an Option to set the recover flag to b. When set to
// true, this causes the parser to recover from panics and convert it
// to an error. Setting it to false can be useful while debugging to
// access the full stack trace.
//
// The default is true.
func Recover(b bool) Option {
return func(p *parser) Option {
old := p.recover
p.recover = b
return Recover(old)
}
}
// GlobalStore creates an Option to set a key to a certain value in
// the globalStore.
func GlobalStore(key string, value any) Option {
return func(p *parser) Option {
old := p.cur.globalStore[key]
p.cur.globalStore[key] = value
return GlobalStore(key, old)
}
}
// ParseFile parses the file identified by filename.
func ParseFile(filename string, opts ...Option) (i any, err error) {
f, err := os.Open(filename)
if err != nil {
return nil, err
}
defer func() {
if closeErr := f.Close(); closeErr != nil {
err = closeErr
}
}()
return ParseReader(filename, f, opts...)
}
// ParseReader parses the data from r using filename as information in the
// error messages.
func ParseReader(filename string, r io.Reader, opts ...Option) (any, error) {
b, err := io.ReadAll(r)
if err != nil {
return nil, err
}
return Parse(filename, b, opts...)
}
// Parse parses the data from b using filename as information in the
// error messages.
func Parse(filename string, b []byte, opts ...Option) (any, error) {
return newParser(filename, b, opts...).parse(g)
}
// position records a position in the text.
type position struct {
line, col, offset int
}
func (p position) String() string {
return strconv.Itoa(p.line) + ":" + strconv.Itoa(p.col) + " [" + strconv.Itoa(p.offset) + "]"
}
// savepoint stores all state required to go back to this point in the
// parser.
type savepoint struct {
position
rn rune
w int
}
type current struct {
pos position // start position of the match
text []byte // raw text of the match
// globalStore is a general store for the user to store arbitrary key-value
// pairs that they need to manage and that they do not want tied to the
// backtracking of the parser. This is only modified by the user and never
// rolled back by the parser. It is always up to the user to keep this in a
// consistent state.
globalStore storeDict
}
type storeDict map[string]any
// the AST types...
type grammar struct {
pos position
rules []*rule
}
type rule struct {
pos position
name string
displayName string
expr any
}
type choiceExpr struct {
pos position
alternatives []any
}
type actionExpr struct {
pos position
expr any
run func(*parser) (any, error)
}
type recoveryExpr struct {
pos position
expr any
recoverExpr any
failureLabel []string
}
type seqExpr struct {
pos position
exprs []any
}
type throwExpr struct {
pos position
label string
}
type labeledExpr struct {
pos position
label string
expr any
}
type expr struct {
pos position
expr any
}
type (
andExpr expr
notExpr expr
zeroOrOneExpr expr
zeroOrMoreExpr expr
oneOrMoreExpr expr
)
type ruleRefExpr struct {
pos position
name string
}
type andCodeExpr struct {
pos position
run func(*parser) (bool, error)
}
type notCodeExpr struct {
pos position
run func(*parser) (bool, error)
}
type litMatcher struct {
pos position
val string
ignoreCase bool
want string
}
type charClassMatcher struct {
pos position
val string
basicLatinChars [128]bool
chars []rune
ranges []rune
classes []*unicode.RangeTable
ignoreCase bool
inverted bool
}
type anyMatcher position
// errList cumulates the errors found by the parser.
type errList []error
func (e *errList) add(err error) {
*e = append(*e, err)
}
func (e errList) err() error {
if len(e) == 0 {
return nil
}
e.dedupe()
return e
}
func (e *errList) dedupe() {
var cleaned []error
set := make(map[string]bool)
for _, err := range *e {
if msg := err.Error(); !set[msg] {
set[msg] = true
cleaned = append(cleaned, err)
}
}
*e = cleaned
}
func (e errList) Error() string {
switch len(e) {
case 0:
return ""
case 1:
return e[0].Error()
default:
var buf bytes.Buffer
for i, err := range e {
if i > 0 {
buf.WriteRune('\n')
}
buf.WriteString(err.Error())
}
return buf.String()
}
}
// parserError wraps an error with a prefix indicating the rule in which
// the error occurred. The original error is stored in the Inner field.
type parserError struct {
Inner error
pos position
prefix string
expected []string
}
// Error returns the error message.
func (p *parserError) Error() string {
return p.prefix + ": " + p.Inner.Error()
}
// newParser creates a parser with the specified input source and options.
func newParser(filename string, b []byte, opts ...Option) *parser {
stats := Stats{
ChoiceAltCnt: make(map[string]map[string]int),
}
p := &parser{
filename: filename,
errs: new(errList),
data: b,
pt: savepoint{position: position{line: 1}},
recover: true,
cur: current{
globalStore: make(storeDict),
},
maxFailPos: position{col: 1, line: 1},
maxFailExpected: make([]string, 0, 20),
Stats: &stats,
// start rule is rule [0] unless an alternate entrypoint is specified
entrypoint: g.rules[0].name,
}
p.setOptions(opts)
if p.maxExprCnt == 0 {
p.maxExprCnt = math.MaxUint64
}
return p
}
// setOptions applies the options to the parser.
func (p *parser) setOptions(opts []Option) {
for _, opt := range opts {
opt(p)
}
}
type resultTuple struct {
v any
b bool
end savepoint
}
const choiceNoMatch = -1
// Stats stores some statistics, gathered during parsing
type Stats struct {
// ExprCnt counts the number of expressions processed during parsing
// This value is compared to the maximum number of expressions allowed
// (set by the MaxExpressions option).
ExprCnt uint64
// ChoiceAltCnt is used to count for each ordered choice expression,
// which alternative is used how may times.
// These numbers allow to optimize the order of the ordered choice expression
// to increase the performance of the parser
//
// The outer key of ChoiceAltCnt is composed of the name of the rule as well
// as the line and the column of the ordered choice.
// The inner key of ChoiceAltCnt is the number (one-based) of the matching alternative.
// For each alternative the number of matches are counted. If an ordered choice does not
// match, a special counter is incremented. The name of this counter is set with
// the parser option Statistics.
// For an alternative to be included in ChoiceAltCnt, it has to match at least once.
ChoiceAltCnt map[string]map[string]int
}
type parser struct {
filename string
pt savepoint
cur current
data []byte
errs *errList
depth int
recover bool
// rules table, maps the rule identifier to the rule node
rules map[string]*rule
// variables stack, map of label to value
vstack []map[string]any
// rule stack, allows identification of the current rule in errors
rstack []*rule
// parse fail
maxFailPos position
maxFailExpected []string
maxFailInvertExpected bool
// max number of expressions to be parsed
maxExprCnt uint64
// entrypoint for the parser
entrypoint string
allowInvalidUTF8 bool
*Stats
choiceNoMatch string
// recovery expression stack, keeps track of the currently available recovery expression, these are traversed in reverse
recoveryStack []map[string]any
}
// push a variable set on the vstack.
func (p *parser) pushV() {
if cap(p.vstack) == len(p.vstack) {
// create new empty slot in the stack
p.vstack = append(p.vstack, nil)
} else {
// slice to 1 more
p.vstack = p.vstack[:len(p.vstack)+1]
}
// get the last args set
m := p.vstack[len(p.vstack)-1]
if m != nil && len(m) == 0 {
// empty map, all good
return
}
m = make(map[string]any)
p.vstack[len(p.vstack)-1] = m
}
// pop a variable set from the vstack.
func (p *parser) popV() {
// if the map is not empty, clear it
m := p.vstack[len(p.vstack)-1]
if len(m) > 0 {
// GC that map
p.vstack[len(p.vstack)-1] = nil
}
p.vstack = p.vstack[:len(p.vstack)-1]
}
// push a recovery expression with its labels to the recoveryStack
func (p *parser) pushRecovery(labels []string, expr any) {
if cap(p.recoveryStack) == len(p.recoveryStack) {
// create new empty slot in the stack
p.recoveryStack = append(p.recoveryStack, nil)
} else {
// slice to 1 more
p.recoveryStack = p.recoveryStack[:len(p.recoveryStack)+1]
}
m := make(map[string]any, len(labels))
for _, fl := range labels {
m[fl] = expr
}
p.recoveryStack[len(p.recoveryStack)-1] = m
}
// pop a recovery expression from the recoveryStack
func (p *parser) popRecovery() {
// GC that map
p.recoveryStack[len(p.recoveryStack)-1] = nil
p.recoveryStack = p.recoveryStack[:len(p.recoveryStack)-1]
}
func (p *parser) addErr(err error) {
p.addErrAt(err, p.pt.position, []string{})
}
func (p *parser) addErrAt(err error, pos position, expected []string) {
var buf bytes.Buffer
if p.filename != "" {
buf.WriteString(p.filename)
}
if buf.Len() > 0 {
buf.WriteString(":")
}
buf.WriteString(fmt.Sprintf("%d:%d (%d)", pos.line, pos.col, pos.offset))
if len(p.rstack) > 0 {
if buf.Len() > 0 {
buf.WriteString(": ")
}
rule := p.rstack[len(p.rstack)-1]
if rule.displayName != "" {
buf.WriteString("rule " + rule.displayName)
} else {
buf.WriteString("rule " + rule.name)
}
}
pe := &parserError{Inner: err, pos: pos, prefix: buf.String(), expected: expected}
p.errs.add(pe)
}
func (p *parser) failAt(fail bool, pos position, want string) {
// process fail if parsing fails and not inverted or parsing succeeds and invert is set
if fail == p.maxFailInvertExpected {
if pos.offset < p.maxFailPos.offset {
return
}
if pos.offset > p.maxFailPos.offset {
p.maxFailPos = pos
p.maxFailExpected = p.maxFailExpected[:0]
}
if p.maxFailInvertExpected {
want = "!" + want
}
p.maxFailExpected = append(p.maxFailExpected, want)
}
}
// read advances the parser to the next rune.
func (p *parser) read() {
p.pt.offset += p.pt.w
rn, n := utf8.DecodeRune(p.data[p.pt.offset:])
p.pt.rn = rn
p.pt.w = n
p.pt.col++
if rn == '\n' {
p.pt.line++
p.pt.col = 0
}
if rn == utf8.RuneError && n == 1 { // see utf8.DecodeRune
if !p.allowInvalidUTF8 {
p.addErr(errInvalidEncoding)
}
}
}
// restore parser position to the savepoint pt.
func (p *parser) restore(pt savepoint) {
if pt.offset == p.pt.offset {
return
}
p.pt = pt
}
// get the slice of bytes from the savepoint start to the current position.
func (p *parser) sliceFrom(start savepoint) []byte {
return p.data[start.position.offset:p.pt.position.offset]
}
func (p *parser) buildRulesTable(g *grammar) {
p.rules = make(map[string]*rule, len(g.rules))
for _, r := range g.rules {
p.rules[r.name] = r
}
}
func (p *parser) parse(g *grammar) (val any, err error) {
if len(g.rules) == 0 {
p.addErr(errNoRule)
return nil, p.errs.err()
}
// TODO : not super critical but this could be generated
p.buildRulesTable(g)
if p.recover {
// panic can be used in action code to stop parsing immediately
// and return the panic as an error.
defer func() {
if e := recover(); e != nil {
val = nil
switch e := e.(type) {
case error:
p.addErr(e)
default:
p.addErr(fmt.Errorf("%v", e))
}
err = p.errs.err()
}
}()
}
startRule, ok := p.rules[p.entrypoint]
if !ok {
p.addErr(errInvalidEntrypoint)
return nil, p.errs.err()
}
p.read() // advance to first rune
val, ok = p.parseRuleWrap(startRule)
if !ok {
if len(*p.errs) == 0 {
// If parsing fails, but no errors have been recorded, the expected values
// for the farthest parser position are returned as error.
maxFailExpectedMap := make(map[string]struct{}, len(p.maxFailExpected))
for _, v := range p.maxFailExpected {
maxFailExpectedMap[v] = struct{}{}
}
expected := make([]string, 0, len(maxFailExpectedMap))
eof := false
if _, ok := maxFailExpectedMap["!."]; ok {
delete(maxFailExpectedMap, "!.")
eof = true
}
for k := range maxFailExpectedMap {
expected = append(expected, k)
}
sort.Strings(expected)
if eof {
expected = append(expected, "EOF")
}
p.addErrAt(errors.New("no match found, expected: "+listJoin(expected, ", ", "or")), p.maxFailPos, expected)
}
return nil, p.errs.err()
}
return val, p.errs.err()
}
func listJoin(list []string, sep string, lastSep string) string {
switch len(list) {
case 0:
return ""
case 1:
return list[0]
default:
return strings.Join(list[:len(list)-1], sep) + " " + lastSep + " " + list[len(list)-1]
}
}
func (p *parser) parseRuleWrap(rule *rule) (any, bool) {
var (
val any
ok bool
)
val, ok = p.parseRule(rule)
return val, ok
}
func (p *parser) parseRule(rule *rule) (any, bool) {
p.rstack = append(p.rstack, rule)
p.pushV()
val, ok := p.parseExprWrap(rule.expr)
p.popV()
p.rstack = p.rstack[:len(p.rstack)-1]
return val, ok
}
func (p *parser) parseExprWrap(expr any) (any, bool) {
val, ok := p.parseExpr(expr)
return val, ok
}
func (p *parser) parseExpr(expr any) (any, bool) {
p.ExprCnt++
if p.ExprCnt > p.maxExprCnt {
panic(errMaxExprCnt)
}
var val any
var ok bool
switch expr := expr.(type) {
case *actionExpr:
val, ok = p.parseActionExpr(expr)
case *andCodeExpr:
val, ok = p.parseAndCodeExpr(expr)
case *andExpr:
val, ok = p.parseAndExpr(expr)
case *anyMatcher:
val, ok = p.parseAnyMatcher(expr)
case *charClassMatcher:
val, ok = p.parseCharClassMatcher(expr)
case *choiceExpr:
val, ok = p.parseChoiceExpr(expr)
case *labeledExpr:
val, ok = p.parseLabeledExpr(expr)
case *litMatcher:
val, ok = p.parseLitMatcher(expr)
case *notCodeExpr:
val, ok = p.parseNotCodeExpr(expr)
case *notExpr:
val, ok = p.parseNotExpr(expr)
case *oneOrMoreExpr:
val, ok = p.parseOneOrMoreExpr(expr)
case *recoveryExpr:
val, ok = p.parseRecoveryExpr(expr)
case *ruleRefExpr:
val, ok = p.parseRuleRefExpr(expr)
case *seqExpr:
val, ok = p.parseSeqExpr(expr)
case *throwExpr:
val, ok = p.parseThrowExpr(expr)
case *zeroOrMoreExpr:
val, ok = p.parseZeroOrMoreExpr(expr)
case *zeroOrOneExpr:
val, ok = p.parseZeroOrOneExpr(expr)
default:
panic(fmt.Sprintf("unknown expression type %T", expr))
}
return val, ok
}
func (p *parser) parseActionExpr(act *actionExpr) (any, bool) {
start := p.pt
val, ok := p.parseExprWrap(act.expr)
if ok {
p.cur.pos = start.position
p.cur.text = p.sliceFrom(start)
actVal, err := act.run(p)
if err != nil {
p.addErrAt(err, start.position, []string{})
}
val = actVal
}
return val, ok
}
func (p *parser) parseAndCodeExpr(and *andCodeExpr) (any, bool) {
ok, err := and.run(p)
if err != nil {
p.addErr(err)
}
return nil, ok
}
func (p *parser) parseAndExpr(and *andExpr) (any, bool) {
pt := p.pt
p.pushV()
_, ok := p.parseExprWrap(and.expr)
p.popV()
p.restore(pt)
return nil, ok
}
func (p *parser) parseAnyMatcher(any *anyMatcher) (any, bool) {
if p.pt.rn == utf8.RuneError && p.pt.w == 0 {
// EOF - see utf8.DecodeRune
p.failAt(false, p.pt.position, ".")
return nil, false
}
start := p.pt
p.read()
p.failAt(true, start.position, ".")
return p.sliceFrom(start), true
}
func (p *parser) parseCharClassMatcher(chr *charClassMatcher) (any, bool) {
cur := p.pt.rn
start := p.pt
// can't match EOF
if cur == utf8.RuneError && p.pt.w == 0 { // see utf8.DecodeRune
p.failAt(false, start.position, chr.val)
return nil, false
}
if chr.ignoreCase {
cur = unicode.ToLower(cur)
}
// try to match in the list of available chars
for _, rn := range chr.chars {
if rn == cur {
if chr.inverted {
p.failAt(false, start.position, chr.val)
return nil, false
}
p.read()
p.failAt(true, start.position, chr.val)
return p.sliceFrom(start), true
}
}
// try to match in the list of ranges
for i := 0; i < len(chr.ranges); i += 2 {
if cur >= chr.ranges[i] && cur <= chr.ranges[i+1] {
if chr.inverted {
p.failAt(false, start.position, chr.val)
return nil, false
}
p.read()
p.failAt(true, start.position, chr.val)
return p.sliceFrom(start), true
}
}
// try to match in the list of Unicode classes
for _, cl := range chr.classes {
if unicode.Is(cl, cur) {
if chr.inverted {
p.failAt(false, start.position, chr.val)
return nil, false
}
p.read()
p.failAt(true, start.position, chr.val)
return p.sliceFrom(start), true
}
}
if chr.inverted {
p.read()
p.failAt(true, start.position, chr.val)
return p.sliceFrom(start), true
}
p.failAt(false, start.position, chr.val)
return nil, false
}
func (p *parser) parseChoiceExpr(ch *choiceExpr) (any, bool) {
for altI, alt := range ch.alternatives {
// dummy assignment to prevent compile error if optimized
_ = altI
p.pushV()
val, ok := p.parseExprWrap(alt)
p.popV()
if ok {
return val, ok
}
}
return nil, false
}
func (p *parser) parseLabeledExpr(lab *labeledExpr) (any, bool) {
p.pushV()
val, ok := p.parseExprWrap(lab.expr)
p.popV()
if ok && lab.label != "" {
m := p.vstack[len(p.vstack)-1]
m[lab.label] = val
}
return val, ok
}
func (p *parser) parseLitMatcher(lit *litMatcher) (any, bool) {
start := p.pt
for _, want := range lit.val {
cur := p.pt.rn
if lit.ignoreCase {
cur = unicode.ToLower(cur)
}
if cur != want {
p.failAt(false, start.position, lit.want)
p.restore(start)
return nil, false
}
p.read()
}
p.failAt(true, start.position, lit.want)
return p.sliceFrom(start), true
}
func (p *parser) parseNotCodeExpr(not *notCodeExpr) (any, bool) {
ok, err := not.run(p)
if err != nil {
p.addErr(err)
}
return nil, !ok
}
func (p *parser) parseNotExpr(not *notExpr) (any, bool) {
pt := p.pt
p.pushV()
p.maxFailInvertExpected = !p.maxFailInvertExpected
_, ok := p.parseExprWrap(not.expr)
p.maxFailInvertExpected = !p.maxFailInvertExpected
p.popV()
p.restore(pt)
return nil, !ok
}
func (p *parser) parseOneOrMoreExpr(expr *oneOrMoreExpr) (any, bool) {
var vals []any
for {
p.pushV()
val, ok := p.parseExprWrap(expr.expr)
p.popV()
if !ok {
if len(vals) == 0 {
// did not match once, no match
return nil, false
}
return vals, true
}
vals = append(vals, val)
}
}
func (p *parser) parseRecoveryExpr(recover *recoveryExpr) (any, bool) {
p.pushRecovery(recover.failureLabel, recover.recoverExpr)
val, ok := p.parseExprWrap(recover.expr)
p.popRecovery()
return val, ok
}
func (p *parser) parseRuleRefExpr(ref *ruleRefExpr) (any, bool) {
if ref.name == "" {
panic(fmt.Sprintf("%s: invalid rule: missing name", ref.pos))
}
rule := p.rules[ref.name]
if rule == nil {
p.addErr(fmt.Errorf("undefined rule: %s", ref.name))
return nil, false
}
return p.parseRuleWrap(rule)
}
func (p *parser) parseSeqExpr(seq *seqExpr) (any, bool) {
vals := make([]any, 0, len(seq.exprs))
pt := p.pt
for _, expr := range seq.exprs {
val, ok := p.parseExprWrap(expr)
if !ok {
p.restore(pt)
return nil, false
}
vals = append(vals, val)
}
return vals, true
}
func (p *parser) parseThrowExpr(expr *throwExpr) (any, bool) {
for i := len(p.recoveryStack) - 1; i >= 0; i-- {
if recoverExpr, ok := p.recoveryStack[i][expr.label]; ok {
if val, ok := p.parseExprWrap(recoverExpr); ok {
return val, ok
}
}
}
return nil, false
}
func (p *parser) parseZeroOrMoreExpr(expr *zeroOrMoreExpr) (any, bool) {
var vals []any
for {
p.pushV()
val, ok := p.parseExprWrap(expr.expr)
p.popV()
if !ok {
return vals, true
}
vals = append(vals, val)
}
}
func (p *parser) parseZeroOrOneExpr(expr *zeroOrOneExpr) (any, bool) {
p.pushV()
val, _ := p.parseExprWrap(expr.expr)
p.popV()
// whether it matched or not, consider it a match
return val, true
}