diff --git a/Makefile b/Makefile index 067b195647..d1aa602a31 100644 --- a/Makefile +++ b/Makefile @@ -83,8 +83,7 @@ install: installdev: @go install -ldflags='$(LDFLAGS)' ./cmd/... -PEG_GEN := $(addprefix compiler/parser/parser., go js es.js) -$(PEG_GEN): compiler/parser/Makefile compiler/parser/support.js compiler/parser/parser.peg +compiler/parser/parser.go: compiler/parser/Makefile compiler/parser/support.go compiler/parser/parser.peg $(MAKE) -C compiler/parser # This rule is best for edit-compile-debug cycle of peg development. It should @@ -92,7 +91,7 @@ $(PEG_GEN): compiler/parser/Makefile compiler/parser/support.js compiler/parser/ # "make -C compiler/parser" when changing versions of pigeon, pegjs, or JavaScript # dependencies. .PHONY: peg peg-run -peg: $(PEG_GEN) +peg: compiler/parser/parser.go peg-run: $(PEG_GEN) go run ./cmd/zc -repl diff --git a/cmd/zed/dev/compile/command.go b/cmd/zed/dev/compile/command.go index e4c0ebb5a0..617a5fef18 100644 --- a/cmd/zed/dev/compile/command.go +++ b/cmd/zed/dev/compile/command.go @@ -6,7 +6,6 @@ import ( "flag" "fmt" "os" - "os/exec" "strings" "github.com/brimdata/zed/cmd/zed/dev" @@ -52,7 +51,6 @@ func init() { type Command struct { *root.Command - js bool pigeon bool proc bool canon bool @@ -65,7 +63,6 @@ type Command struct { func New(parent charm.Command, f *flag.FlagSet) (charm.Command, error) { c := &Command{Command: parent.(*root.Command)} - f.BoolVar(&c.js, "js", false, "run JavaScript version of peg parser") f.BoolVar(&c.pigeon, "pigeon", false, "run pigeon version of peg parser") f.BoolVar(&c.proc, "proc", false, "run pigeon version of peg parser and marshal into ast.Op") f.BoolVar(&c.semantic, "s", false, "display semantically analyzed AST (implies -proc)") @@ -97,9 +94,6 @@ func (c *Command) Run(args []string) error { return charm.NeedHelp } c.n = 0 - if c.js { - c.n++ - } if c.pigeon { c.n++ } @@ -153,14 +147,6 @@ func (c *Command) header(msg string) { } func (c *Command) parse(z string, lk *lake.Root) error { - if c.js { - s, err := parsePEGjs(z) - if err != nil { - return err - } - c.header("pegjs") - fmt.Println(s) - } if c.pigeon { s, err := parsePigeon(z) if err != nil { @@ -244,15 +230,6 @@ Failed to run node on ./compiler/parser/run.js. The "-js" flag is for PEG development and should only be used when running "zed dev compile" in the root directory of the Zed repository.` -func runNode(dir, line string) ([]byte, error) { - cmd := exec.Command("node", "./compiler/parser/run.js", "-e", "start") - if dir != "" { - cmd.Dir = dir - } - cmd.Stdin = strings.NewReader(line) - return cmd.Output() -} - func normalize(b []byte) (string, error) { var v interface{} err := json.Unmarshal(b, &v) @@ -263,16 +240,6 @@ func normalize(b []byte) (string, error) { return string(out), err } -func parsePEGjs(z string) (string, error) { - b, err := runNode("", z) - if err != nil { - // parse errors don't cause this... this is only - // caused by a problem running node. - return "", errors.New(strings.TrimSpace(nodeProblem)) - } - return normalize(b) -} - func astFmt(seq ast.Seq, canon bool) (string, error) { if canon { return zfmt.AST(seq), nil diff --git a/compiler/parser/Makefile b/compiler/parser/Makefile index a0d44b2462..53729b202d 100644 --- a/compiler/parser/Makefile +++ b/compiler/parser/Makefile @@ -1,16 +1,12 @@ -GOIMPORTS_VERSION = v0.0.0-20200204192400-7124308813f3 -PEGJS_VERSION = 0.10.0 -PIGEON_VERSION = v1.0.1-0.20190520151103-9fec3898cef8 -ROLLUP_PLUGIN_COMMONJS_VERSION = 14.0.0 -ROLLUP_VERSION = 2.23.1 +GOIMPORTS_VERSION = v0.19.0 +PIGEON_VERSION = v1.2.1 # GNU cpp needs -std=gnu90 to prevent errors on \uHHHH sequences, and Clang cpp # with -std=gnu90 needs -Wno-unicode to prevent warnings on \uHHHH sequences. cpp = cpp -E -P -std=gnu90 -Wno-unicode deps = $(CURDIR)/deps -npm = npm --global --prefix $(deps) -all: parser.go parser.js parser.es.js +all: parser.go .PHONY: parser.go parser.go: @@ -22,20 +18,3 @@ ifeq "$(shell go version -m $(deps)/bin/pigeon 2>&1 | fgrep $(PIGEON_VERSION))" endif $(cpp) -DGO parser.peg | $(deps)/bin/pigeon -o $@ $(deps)/bin/goimports -w $@ - -.PHONY: parser.js -parser.js: -ifeq "$(shell $(deps)/bin/pegjs --version 2>&1 | fgrep $(PEGJS_VERSION))" "" - $(npm) install pegjs@$(PEGJS_VERSION) -endif - $(cpp) parser.peg | $(deps)/bin/pegjs --allowed-start-rules start,Expr -o $@ - -.PHONY: parser.es.js -parser.es.js: parser.js -ifeq "$(shell $(deps)/bin/rollup --version 2>&1 | fgrep $(ROLLUP_VERSION))" "" - $(npm) install rollup@$(ROLLUP_VERSION) -endif -ifeq "$(shell $(npm) list @rollup/plugin-commonjs 2>&1 | fgrep $(ROLLUP_PLUGIN_COMMONJS_VERSION))" "" - $(npm) install @rollup/plugin-commonjs@$(ROLLUP_PLUGIN_COMMONJS_VERSION) -endif - $(deps)/bin/rollup --format es --plugin commonjs $^ -o $@ diff --git a/compiler/parser/README.md b/compiler/parser/README.md index 9e3c180ddd..5e8d267805 100644 --- a/compiler/parser/README.md +++ b/compiler/parser/README.md @@ -2,23 +2,8 @@ This directory contains the Zed parser implemented in PEG. -There is a single PEG input file that works with both -[pigeon](https://github.com/mna/pigeon), which is Go based, and -[pegjs](https://github.com/pegjs/pegjs), which is JavaScript based. This allows us -to embed a Zed compiler into either JavaScript or Go. - -The single parser file is run through the C pre-processor allowing -macro and ifdef logic to create the two variants of PEG. - -## Install - -You need pegjs, pigeon, and goimports to build the parsers. To install -them, run: - -``` -go get github.com/mna/pigeon golang.org/x/tools/cmd/goimports -npm install -g pegjs -``` +There is a single PEG input file that works with +[pigeon](https://github.com/mna/pigeon) to generate the Go parser. ## Build @@ -26,8 +11,8 @@ To build the parsers, just run make: `make` -This will run the C pre-processor to make the two PEG files and run -pigeon and pegjs to create the two parsers. +This will ensure the required libraries are installed and then produce the Go +parser (parser.go). ## Testing @@ -41,7 +26,6 @@ is with this `make` command at the root of this repository: ``` make peg ``` -This will ensure the PEG-generated JavaScript and Go parsers are up to date -with `parser.peg` +This will ensure the PEG-generated Go parser is up to date with `parser.peg` To update the parser and launch the `zc -repl`, your can run `make peg-run`. diff --git a/compiler/parser/parser.es.js b/compiler/parser/parser.es.js deleted file mode 100644 index 063bfbba8c..0000000000 --- a/compiler/parser/parser.es.js +++ /dev/null @@ -1,16523 +0,0 @@ -function peg$subclass(child, parent) { - function ctor() { this.constructor = child; } - ctor.prototype = parent.prototype; - child.prototype = new ctor(); -} - -function peg$SyntaxError(message, expected, found, location) { - this.message = message; - this.expected = expected; - this.found = found; - this.location = location; - this.name = "SyntaxError"; - - if (typeof Error.captureStackTrace === "function") { - Error.captureStackTrace(this, peg$SyntaxError); - } -} - -peg$subclass(peg$SyntaxError, Error); - -peg$SyntaxError.buildMessage = function(expected, found) { - var DESCRIBE_EXPECTATION_FNS = { - literal: function(expectation) { - return "\"" + literalEscape(expectation.text) + "\""; - }, - - "class": function(expectation) { - var escapedParts = "", - i; - - for (i = 0; i < expectation.parts.length; i++) { - escapedParts += expectation.parts[i] instanceof Array - ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) - : classEscape(expectation.parts[i]); - } - - return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; - }, - - any: function(expectation) { - return "any character"; - }, - - end: function(expectation) { - return "end of input"; - }, - - other: function(expectation) { - return expectation.description; - } - }; - - function hex(ch) { - return ch.charCodeAt(0).toString(16).toUpperCase(); - } - - function literalEscape(s) { - return s - .replace(/\\/g, '\\\\') - .replace(/"/g, '\\"') - .replace(/\0/g, '\\0') - .replace(/\t/g, '\\t') - .replace(/\n/g, '\\n') - .replace(/\r/g, '\\r') - .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); - } - - function classEscape(s) { - return s - .replace(/\\/g, '\\\\') - .replace(/\]/g, '\\]') - .replace(/\^/g, '\\^') - .replace(/-/g, '\\-') - .replace(/\0/g, '\\0') - .replace(/\t/g, '\\t') - .replace(/\n/g, '\\n') - .replace(/\r/g, '\\r') - .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); - } - - function describeExpectation(expectation) { - return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); - } - - function describeExpected(expected) { - var descriptions = new Array(expected.length), - i, j; - - for (i = 0; i < expected.length; i++) { - descriptions[i] = describeExpectation(expected[i]); - } - - descriptions.sort(); - - if (descriptions.length > 0) { - for (i = 1, j = 1; i < descriptions.length; i++) { - if (descriptions[i - 1] !== descriptions[i]) { - descriptions[j] = descriptions[i]; - j++; - } - } - descriptions.length = j; - } - - switch (descriptions.length) { - case 1: - return descriptions[0]; - - case 2: - return descriptions[0] + " or " + descriptions[1]; - - default: - return descriptions.slice(0, -1).join(", ") - + ", or " - + descriptions[descriptions.length - 1]; - } - } - - function describeFound(found) { - return found ? "\"" + literalEscape(found) + "\"" : "end of input"; - } - - return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; -}; - -function peg$parse(input, options) { - options = options !== void 0 ? options : {}; - - var peg$FAILED = {}, - - peg$startRuleFunctions = { start: peg$parsestart, Expr: peg$parseExpr }, - peg$startRuleFunction = peg$parsestart, - - peg$c0 = function(scope) { return [scope] }, - peg$c1 = function(seq) { return seq }, - peg$c2 = function(decls, body) { - return {"kind": "Scope", "decls": decls, "body": body} - }, - peg$c3 = function(first, rest) { - return [first, ... rest] - }, - peg$c4 = function(o) { return o }, - peg$c5 = function(v) { return v }, - peg$c6 = "const", - peg$c7 = peg$literalExpectation("const", false), - peg$c8 = "=", - peg$c9 = peg$literalExpectation("=", false), - peg$c10 = function(id, expr) { - return {"kind": "ConstDecl", "name": id, "expr": expr} - }, - peg$c11 = "type", - peg$c12 = peg$literalExpectation("type", false), - peg$c13 = function(id, typ) { - return { - - "kind": "ConstDecl", - - "name": id, - - "expr": {"kind": "TypeValue", "value": {"kind": "TypeDef", "name": id, "type": typ}}} - - }, - peg$c14 = "func", - peg$c15 = peg$literalExpectation("func", false), - peg$c16 = "(", - peg$c17 = peg$literalExpectation("(", false), - peg$c18 = ")", - peg$c19 = peg$literalExpectation(")", false), - peg$c20 = ":", - peg$c21 = peg$literalExpectation(":", false), - peg$c22 = function(id, params, expr) { - return { - - "kind": "FuncDecl", - - "name": id, - - "params": params, - - "expr": expr} - - }, - peg$c23 = "op", - peg$c24 = peg$literalExpectation("op", false), - peg$c25 = function(name, params, body) { - return { - - "kind": "OpDecl", - - "name": name, - - "params": params, - - "body": body} - - }, - peg$c26 = "fork", - peg$c27 = peg$literalExpectation("fork", false), - peg$c28 = function(paths) { - return {"kind": "Parallel", "paths": paths} - }, - peg$c29 = "switch", - peg$c30 = peg$literalExpectation("switch", false), - peg$c31 = function(expr, cases) { - return {"kind": "Switch", "expr": expr, "cases": cases} - }, - peg$c32 = function(cases) { - return {"kind": "Switch", "expr": null, "cases": cases} - }, - peg$c33 = "from", - peg$c34 = peg$literalExpectation("from", false), - peg$c35 = function(trunks) { - return {"kind": "From", "trunks": trunks} - }, - peg$c36 = function(scope) { return scope }, - peg$c37 = function(a) { return a }, - peg$c38 = "search", - peg$c39 = peg$literalExpectation("search", false), - peg$c40 = function(expr) { - return {"kind": "Search", "expr": expr} - }, - peg$c41 = function(expr) { - return {"kind": "OpExpr", "expr": expr} - }, - peg$c42 = function(expr) { - return {"kind": "OpExpr", "expr": expr} - }, - peg$c43 = "=>", - peg$c44 = peg$literalExpectation("=>", false), - peg$c45 = "|", - peg$c46 = peg$literalExpectation("|", false), - peg$c47 = "{", - peg$c48 = peg$literalExpectation("{", false), - peg$c49 = "[", - peg$c50 = peg$literalExpectation("[", false), - peg$c51 = function(expr, path) { - return {"expr": expr, "path": path} - }, - peg$c52 = "case", - peg$c53 = peg$literalExpectation("case", false), - peg$c54 = function(expr) { return expr }, - peg$c55 = "default", - peg$c56 = peg$literalExpectation("default", false), - peg$c57 = function() { return null }, - peg$c58 = function(source, opt) { - let m = {"kind": "Trunk", "source": source, "seq": null}; - if (opt) { - m["seq"] = opt[3]; - } - return m - }, - peg$c59 = "~", - peg$c60 = peg$literalExpectation("~", false), - peg$c61 = "==", - peg$c62 = peg$literalExpectation("==", false), - peg$c63 = "!=", - peg$c64 = peg$literalExpectation("!=", false), - peg$c65 = "in", - peg$c66 = peg$literalExpectation("in", false), - peg$c67 = "<=", - peg$c68 = peg$literalExpectation("<=", false), - peg$c69 = "<", - peg$c70 = peg$literalExpectation("<", false), - peg$c71 = ">=", - peg$c72 = peg$literalExpectation(">=", false), - peg$c73 = ">", - peg$c74 = peg$literalExpectation(">", false), - peg$c75 = function() { return text() }, - peg$c76 = function(first, rest) { - return makeBinaryExprChain(first, rest) - }, - peg$c77 = function(t) { return ["or", t] }, - peg$c78 = function(first, expr) { return ["and", expr] }, - peg$c79 = "!", - peg$c80 = peg$literalExpectation("!", false), - peg$c81 = function(e) { - return {"kind": "UnaryExpr", "op": "!", "operand": e} - }, - peg$c82 = function(v) { - return {"kind": "Term", "text": text(), "value": v} - }, - peg$c83 = "*", - peg$c84 = peg$literalExpectation("*", false), - peg$c85 = function() { - return {"kind": "Primitive", "type": "bool", "text": "true"} - }, - peg$c86 = function(lhs, op, rhs) { - return {"kind": "BinaryExpr", "op": op, "lhs": lhs, "rhs": rhs} - }, - peg$c87 = function(first, rest) { - return makeBinaryExprChain(first, rest) - }, - peg$c88 = function(v) { - return {"kind": "Primitive", "type": "string", "text": v} - }, - peg$c89 = function(pattern) { - return {"kind": "Glob", "pattern": pattern} - }, - peg$c90 = function(pattern) { - return {"kind": "Regexp", "pattern": pattern} - }, - peg$c91 = function(keys, limit) { - return {"kind": "Summarize", "keys": keys, "aggs": null, "limit": limit} - }, - peg$c92 = function(aggs, keys, limit) { - let p = {"kind": "Summarize", "keys": null, "aggs": aggs, "limit": limit}; - if (keys) { - p["keys"] = keys[1]; - } - return p - }, - peg$c93 = "summarize", - peg$c94 = peg$literalExpectation("summarize", false), - peg$c95 = function(columns) { return columns }, - peg$c96 = "with", - peg$c97 = peg$literalExpectation("with", false), - peg$c98 = "-limit", - peg$c99 = peg$literalExpectation("-limit", false), - peg$c100 = function(limit) { return limit }, - peg$c101 = "", - peg$c102 = function() { return 0 }, - peg$c103 = function(expr) { return {"kind": "Assignment", "lhs": null, "rhs": expr} }, - peg$c104 = ",", - peg$c105 = peg$literalExpectation(",", false), - peg$c106 = function(first, expr) { return expr }, - peg$c107 = ":=", - peg$c108 = peg$literalExpectation(":=", false), - peg$c109 = function(lval, agg) { - return {"kind": "Assignment", "lhs": lval, "rhs": agg} - }, - peg$c110 = function(agg) { - return {"kind": "Assignment", "lhs": null, "rhs": agg} - }, - peg$c111 = ".", - peg$c112 = peg$literalExpectation(".", false), - peg$c113 = function(op, expr, where) { - let r = {"kind": "Agg", "name": op, "expr": null, "where": where}; - if (expr) { - r["expr"] = expr; - } - return r - }, - peg$c114 = "where", - peg$c115 = peg$literalExpectation("where", false), - peg$c116 = function(first, rest) { - let result = [first]; - for(let r of rest) { - result.push( r[3]); - } - return result - }, - peg$c117 = "assert", - peg$c118 = peg$literalExpectation("assert", false), - peg$c119 = function(e) { return [e, text()] }, - peg$c120 = function(expr) { - // 'assert EXPR' is equivalent to - // 'yield EXPR ? this : error({message: "assertion failed", "expr": EXPR_text, "on": this}' - // where EXPR_text is the literal text of EXPR. - return {"kind": "Yield", "exprs": [{ - - "kind": "Conditional", - - "cond": expr[0], - - "then": {"kind": "ID", "name": "this"}, - - "else": { - - "kind": "Call", - - "name": "error", - - "args": [{"kind": "RecordExpr", "elems": [ - - {"kind": "Field", "name": "message", "value": { - - "kind": "Primitive", "text": "assertion failed", "type": "string"}}, - - {"kind": "Field", "name": "expr", "value": { - - "kind": "Primitive", "text": expr[1], "type": "string"}}, - - {"kind": "Field", "name": "on", "value": { - - "kind": "ID", "name": "this"}}]}], - - "where": null}}]} - - }, - peg$c121 = "sort", - peg$c122 = peg$literalExpectation("sort", false), - peg$c123 = function(args, l) { return l }, - peg$c124 = function(args, list) { - let argm = args; - let op = {"kind": "Sort", "args": list, "order": "asc", "nullsfirst": false}; - if ( "r" in argm) { - op["order"] = "desc"; - } - if ( "nulls" in argm) { - if (argm["nulls"] == "first") { - op["nullsfirst"] = true; - } - } - return op - }, - peg$c125 = function(args) { return makeArgMap(args) }, - peg$c126 = "-r", - peg$c127 = peg$literalExpectation("-r", false), - peg$c128 = function() { return {"name": "r", "value": null} }, - peg$c129 = "-nulls", - peg$c130 = peg$literalExpectation("-nulls", false), - peg$c131 = "first", - peg$c132 = peg$literalExpectation("first", false), - peg$c133 = "last", - peg$c134 = peg$literalExpectation("last", false), - peg$c135 = function(where) { return {"name": "nulls", "value": where} }, - peg$c136 = "top", - peg$c137 = peg$literalExpectation("top", false), - peg$c138 = function(n) { return n }, - peg$c139 = "-flush", - peg$c140 = peg$literalExpectation("-flush", false), - peg$c141 = function(limit, flush, f) { return f }, - peg$c142 = function(limit, flush, fields) { - let op = {"kind": "Top", "limit": 0, "args": null, "flush": false}; - if (limit) { - op["limit"] = limit; - } - if (fields) { - op["args"] = fields; - } - if (flush) { - op["flush"] = true; - } - return op - }, - peg$c143 = "cut", - peg$c144 = peg$literalExpectation("cut", false), - peg$c145 = function(args) { - return {"kind": "Cut", "args": args} - }, - peg$c146 = "drop", - peg$c147 = peg$literalExpectation("drop", false), - peg$c148 = function(args) { - return {"kind": "Drop", "args": args} - }, - peg$c149 = "head", - peg$c150 = peg$literalExpectation("head", false), - peg$c151 = function(count) { return {"kind": "Head", "count": count} }, - peg$c152 = function() { return {"kind": "Head", "count": {"kind": "Primitive", "type": "int64", "text": "1"}} }, - peg$c153 = "tail", - peg$c154 = peg$literalExpectation("tail", false), - peg$c155 = function(count) { return {"kind": "Tail", "count": count} }, - peg$c156 = function() { return {"kind": "Tail", "count": {"kind": "Primitive", "type": "int64", "text": "1"}} }, - peg$c157 = function(expr) { - return {"kind": "Where", "expr": expr} - }, - peg$c158 = "uniq", - peg$c159 = peg$literalExpectation("uniq", false), - peg$c160 = "-c", - peg$c161 = peg$literalExpectation("-c", false), - peg$c162 = function() { - return {"kind": "Uniq", "cflag": true} - }, - peg$c163 = function() { - return {"kind": "Uniq", "cflag": false} - }, - peg$c164 = "put", - peg$c165 = peg$literalExpectation("put", false), - peg$c166 = function(args) { - return {"kind": "Put", "args": args} - }, - peg$c167 = "rename", - peg$c168 = peg$literalExpectation("rename", false), - peg$c169 = function(first, cl) { return cl }, - peg$c170 = function(first, rest) { - return {"kind": "Rename", "args": [first, ... rest]} - }, - peg$c171 = "fuse", - peg$c172 = peg$literalExpectation("fuse", false), - peg$c173 = function() { - return {"kind": "Fuse"} - }, - peg$c174 = "shape", - peg$c175 = peg$literalExpectation("shape", false), - peg$c176 = function() { - return {"kind": "Shape"} - }, - peg$c177 = "join", - peg$c178 = peg$literalExpectation("join", false), - peg$c179 = function(style, rightInput, key, optKey, optArgs) { - let m = {"kind": "Join", "style": style, "right_input": rightInput, "left_key": key, "right_key": key, "args": null}; - if (optKey) { - m["right_key"] = optKey[3]; - } - if (optArgs) { - m["args"] = optArgs[1]; - } - return m - }, - peg$c180 = "anti", - peg$c181 = peg$literalExpectation("anti", false), - peg$c182 = function() { return "anti" }, - peg$c183 = "inner", - peg$c184 = peg$literalExpectation("inner", false), - peg$c185 = function() { return "inner" }, - peg$c186 = "left", - peg$c187 = peg$literalExpectation("left", false), - peg$c188 = function() { return "left" }, - peg$c189 = "right", - peg$c190 = peg$literalExpectation("right", false), - peg$c191 = function() { return "right" }, - peg$c192 = function(s) { return s }, - peg$c193 = "sample", - peg$c194 = peg$literalExpectation("sample", false), - peg$c195 = function(e) { return {"kind": "Sample", "expr": e} }, - peg$c196 = function(a) { - return {"kind": "OpAssignment", "assignments": a} - }, - peg$c197 = function(lval) { return lval }, - peg$c198 = function() { return {"kind": "ID", "name": "this"} }, - peg$c199 = "load", - peg$c200 = peg$literalExpectation("load", false), - peg$c201 = function(pool, branch, author, message, meta) { - return {"kind": "Load", "pool": pool, "branch": branch, "author": author, "message": message, "meta": meta} - }, - peg$c202 = "author", - peg$c203 = peg$literalExpectation("author", false), - peg$c204 = function(val) { return val }, - peg$c205 = "message", - peg$c206 = peg$literalExpectation("message", false), - peg$c207 = "meta", - peg$c208 = peg$literalExpectation("meta", false), - peg$c209 = "@", - peg$c210 = peg$literalExpectation("@", false), - peg$c211 = function(branch) { return branch }, - peg$c212 = function(source) { - return {"kind": "From", "trunks": [{"kind": "Trunk", "source": source}]} - }, - peg$c213 = "file", - peg$c214 = peg$literalExpectation("file", false), - peg$c215 = function(path, format, sort_key) { - return {"kind": "File", "path": path, "format": format, "sort_key": sort_key} - }, - peg$c216 = function(body) { return body }, - peg$c217 = "pool", - peg$c218 = peg$literalExpectation("pool", false), - peg$c219 = function(spec, at) { - return {"kind": "Pool", "spec": spec, "at": at} - }, - peg$c220 = "get", - peg$c221 = peg$literalExpectation("get", false), - peg$c222 = function(url, format, sort_key, method, headers, body) { - return { - - "kind": "HTTP", - - "url": url, - - "format": format, - - "sort_key": sort_key, - - "method": method, - - "headers": headers, - - "body": body} - - }, - peg$c223 = "method", - peg$c224 = peg$literalExpectation("method", false), - peg$c225 = "headers", - peg$c226 = peg$literalExpectation("headers", false), - peg$c227 = "body", - peg$c228 = peg$literalExpectation("body", false), - peg$c229 = function(v) { return {"kind": "QuotedString", "text": v} }, - peg$c230 = /^[0-9a-zA-Z!@$%\^&*_=<>,.\/?:[\]{}~+\-]/, - peg$c231 = peg$classExpectation([["0", "9"], ["a", "z"], ["A", "Z"], "!", "@", "$", "%", "^", "&", "*", "_", "=", "<", ">", ",", ".", "/", "?", ":", "[", "]", "{", "}", "~", "+", "-"], false, false), - peg$c232 = function() { return {"kind": "String", "text": text()} }, - peg$c233 = "at", - peg$c234 = peg$literalExpectation("at", false), - peg$c235 = function(id) { return id }, - peg$c236 = /^[0-9a-zA-Z]/, - peg$c237 = peg$classExpectation([["0", "9"], ["a", "z"], ["A", "Z"]], false, false), - peg$c238 = function(pool, commit, meta, tap) { - return {"pool": pool, "commit": commit, "meta": meta, "tap": tap} - }, - peg$c239 = function(meta) { - return {"pool": null, "commit": null, "meta": meta} - }, - peg$c240 = function(commit) { return commit }, - peg$c241 = function(meta) { return meta }, - peg$c242 = function() { return {"kind": "Glob", "pattern": "*"} }, - peg$c243 = function(name) { return {"kind": "QuotedString", "text": name} }, - peg$c244 = function(name) { return {"kind": "String", "text": name} }, - peg$c245 = "order", - peg$c246 = peg$literalExpectation("order", false), - peg$c247 = function(keys, order) { - return {"kind": "SortKey", "keys": keys, "order": order} - }, - peg$c248 = "tap", - peg$c249 = peg$literalExpectation("tap", false), - peg$c250 = function() { return true }, - peg$c251 = function() { return false }, - peg$c252 = "format", - peg$c253 = peg$literalExpectation("format", false), - peg$c254 = ":asc", - peg$c255 = peg$literalExpectation(":asc", false), - peg$c256 = function() { return "asc" }, - peg$c257 = ":desc", - peg$c258 = peg$literalExpectation(":desc", false), - peg$c259 = function() { return "desc" }, - peg$c260 = "pass", - peg$c261 = peg$literalExpectation("pass", false), - peg$c262 = function() { - return {"kind": "Pass"} - }, - peg$c263 = "explode", - peg$c264 = peg$literalExpectation("explode", false), - peg$c265 = function(args, typ, as) { - return {"kind": "Explode", "args": args, "as": as, "type": typ} - }, - peg$c266 = "merge", - peg$c267 = peg$literalExpectation("merge", false), - peg$c268 = function(expr) { - return {"kind": "Merge", "expr": expr} - }, - peg$c269 = "over", - peg$c270 = peg$literalExpectation("over", false), - peg$c271 = function(exprs, locals, body) { - return {"kind": "Over", "exprs": exprs, "locals": locals, "body": body} - }, - peg$c272 = function(first, a) { return a }, - peg$c273 = function(name, opt) { - let m = {"name": name, "expr": {"kind": "ID", "name": name}}; - if (opt) { - m["expr"] = opt[3]; - } - return m - }, - peg$c274 = "yield", - peg$c275 = peg$literalExpectation("yield", false), - peg$c276 = function(exprs) { - return {"kind": "Yield", "exprs": exprs} - }, - peg$c277 = function(typ) { return typ }, - peg$c278 = function(lhs) { return lhs }, - peg$c280 = function(first, rest) { - let result = [first]; - - for(let r of rest) { - result.push( r[3]); - } - - return result - }, - peg$c281 = function(first, rest) { - return [first, ... rest] - }, - peg$c282 = function(lhs, rhs) { return {"kind": "Assignment", "lhs": lhs, "rhs": rhs} }, - peg$c283 = "?", - peg$c284 = peg$literalExpectation("?", false), - peg$c285 = function(cond, opt) { - if (opt) { - let Then = opt[3]; - let Else = opt[7]; - return {"kind": "Conditional", "cond": cond, "then": Then, "else": Else} - } - return cond - }, - peg$c286 = function(first, op, expr) { return [op, expr] }, - peg$c287 = function(first, rest) { - return makeBinaryExprChain(first, rest) - }, - peg$c288 = function(lhs) { return text() }, - peg$c289 = function(lhs, opAndRHS) { - if (!opAndRHS) { - return lhs - } - let op = opAndRHS[1]; - let rhs = opAndRHS[3]; - return {"kind": "BinaryExpr", "op": op, "lhs": lhs, "rhs": rhs} - }, - peg$c290 = "+", - peg$c291 = peg$literalExpectation("+", false), - peg$c292 = "-", - peg$c293 = peg$literalExpectation("-", false), - peg$c294 = "/", - peg$c295 = peg$literalExpectation("/", false), - peg$c296 = "%", - peg$c297 = peg$literalExpectation("%", false), - peg$c298 = function(e) { - return {"kind": "UnaryExpr", "op": "!", "operand": e} - }, - peg$c299 = function(e) { - return {"kind": "UnaryExpr", "op": "-", "operand": e} - }, - peg$c300 = "not", - peg$c301 = peg$literalExpectation("not", false), - peg$c302 = "select", - peg$c303 = peg$literalExpectation("select", false), - peg$c304 = function(typ, expr) { - return {"kind": "Cast", "expr": expr, "type": typ} - }, - peg$c305 = "regexp", - peg$c306 = peg$literalExpectation("regexp", false), - peg$c307 = function(arg0Text, arg1, where) { - let arg0 = {"kind": "Primitive", "type": "string", "text": arg0Text}; - return {"kind": "Call", "name": "regexp", "args": [arg0, arg1], "where": where} - }, - peg$c308 = "regexp_replace", - peg$c309 = peg$literalExpectation("regexp_replace", false), - peg$c310 = function(arg0, arg1Text, arg2, where) { - let arg1 = {"kind": "Primitive", "type": "string", "text": arg1Text}; - return {"kind": "Call", "name": "regexp_replace", "args": [arg0, arg1, arg2], "where": where} - }, - peg$c311 = function(fn, args, where) { - return {"kind": "Call", "name": fn, "args": args, "where": where} - }, - peg$c312 = function(o) { return [o] }, - peg$c313 = "grep", - peg$c314 = peg$literalExpectation("grep", false), - peg$c315 = function(pattern, opt) { - let m = {"kind": "Grep", "pattern": pattern, "expr": {"kind": "ID", "name": "this"}}; - if (opt) { - m["expr"] = opt[2]; - } - return m - }, - peg$c316 = function() { return [] }, - peg$c317 = function(first, e) { return e }, - peg$c318 = "]", - peg$c319 = peg$literalExpectation("]", false), - peg$c320 = function(from, to) { - return ["[", {"kind": "BinaryExpr", "op": ":", - - "lhs": from, "rhs": to}] - - }, - peg$c321 = function(to) { - return ["[", {"kind": "BinaryExpr", "op": ":", - - "lhs": null, "rhs": to}] - - }, - peg$c322 = function(expr) { return ["[", expr] }, - peg$c323 = function(id) { return [".", id] }, - peg$c324 = function(exprs, locals, body) { - return {"kind": "OverExpr", "locals": locals, "exprs": exprs, "body": body} - }, - peg$c325 = "}", - peg$c326 = peg$literalExpectation("}", false), - peg$c327 = function(elems) { - return {"kind": "RecordExpr", "elems": elems} - }, - peg$c328 = function(elem) { return elem }, - peg$c329 = "...", - peg$c330 = peg$literalExpectation("...", false), - peg$c331 = function(expr) { - return {"kind": "Spread", "expr": expr} - }, - peg$c332 = function(name, value) { - return {"kind": "Field", "name": name, "value": value} - }, - peg$c333 = function(elems) { - return {"kind": "ArrayExpr", "elems": elems} - }, - peg$c334 = "|[", - peg$c335 = peg$literalExpectation("|[", false), - peg$c336 = "]|", - peg$c337 = peg$literalExpectation("]|", false), - peg$c338 = function(elems) { - return {"kind": "SetExpr", "elems": elems} - }, - peg$c339 = function(e) { return {"kind": "VectorValue", "expr": e} }, - peg$c340 = "|{", - peg$c341 = peg$literalExpectation("|{", false), - peg$c342 = "}|", - peg$c343 = peg$literalExpectation("}|", false), - peg$c344 = function(exprs) { - return {"kind": "MapExpr", "entries": exprs} - }, - peg$c345 = function(e) { return e }, - peg$c346 = function(key, value) { - return {"key": key, "value": value} - }, - peg$c347 = function(selection, from, joins, where, groupby, having, orderby, limit) { - return { - - "kind": "SQLExpr", - - "select": selection, - - "from": from, - - "joins": joins, - - "where": where, - - "group_by": groupby, - - "having": having, - - "order_by": orderby, - - "limit": limit} - - }, - peg$c348 = function(assignments) { return assignments }, - peg$c349 = function(rhs, opt) { - let m = {"kind": "Assignment", "lhs": null, "rhs": rhs}; - if (opt) { - m["lhs"] = opt[3]; - } - return m - }, - peg$c350 = function(table, alias) { - return {"table": table, "alias": alias} - }, - peg$c351 = function(first, join) { return join }, - peg$c352 = function(style, table, alias, leftKey, rightKey) { - return { - - "table": table, - - "style": style, - - "left_key": leftKey, - - "right_key": rightKey, - - "alias": alias} - - }, - peg$c353 = function(style) { return style }, - peg$c354 = function(keys, order) { - return {"kind": "SQLOrderBy", "keys": keys, "order": order} - }, - peg$c355 = function(dir) { return dir }, - peg$c356 = function(count) { return count }, - peg$c357 = peg$literalExpectation("select", true), - peg$c358 = function() { return "select" }, - peg$c359 = "as", - peg$c360 = peg$literalExpectation("as", true), - peg$c361 = function() { return "as" }, - peg$c362 = peg$literalExpectation("from", true), - peg$c363 = function() { return "from" }, - peg$c364 = peg$literalExpectation("join", true), - peg$c365 = function() { return "join" }, - peg$c366 = peg$literalExpectation("where", true), - peg$c367 = function() { return "where" }, - peg$c368 = "group", - peg$c369 = peg$literalExpectation("group", true), - peg$c370 = function() { return "group" }, - peg$c371 = "by", - peg$c372 = peg$literalExpectation("by", true), - peg$c373 = function() { return "by" }, - peg$c374 = "having", - peg$c375 = peg$literalExpectation("having", true), - peg$c376 = function() { return "having" }, - peg$c377 = peg$literalExpectation("order", true), - peg$c378 = function() { return "order" }, - peg$c379 = "on", - peg$c380 = peg$literalExpectation("on", true), - peg$c381 = function() { return "on" }, - peg$c382 = "limit", - peg$c383 = peg$literalExpectation("limit", true), - peg$c384 = function() { return "limit" }, - peg$c385 = "asc", - peg$c386 = peg$literalExpectation("asc", true), - peg$c387 = "desc", - peg$c388 = peg$literalExpectation("desc", true), - peg$c389 = peg$literalExpectation("anti", true), - peg$c390 = peg$literalExpectation("left", true), - peg$c391 = peg$literalExpectation("right", true), - peg$c392 = peg$literalExpectation("inner", true), - peg$c393 = function(v) { - return {"kind": "Primitive", "type": "net", "text": v} - }, - peg$c394 = function(v) { - return {"kind": "Primitive", "type": "ip", "text": v} - }, - peg$c395 = function(v) { - return {"kind": "Primitive", "type": "float64", "text": v} - }, - peg$c396 = function(v) { - return {"kind": "Primitive", "type": "int64", "text": v} - }, - peg$c397 = function() { return {"kind": "Primitive", "type": "bool", "text": "true"} }, - peg$c398 = function() { return {"kind": "Primitive", "type": "bool", "text": "false"} }, - peg$c399 = function() { return {"kind": "Primitive", "type": "null", "text": ""} }, - peg$c400 = "0x", - peg$c401 = peg$literalExpectation("0x", false), - peg$c402 = function() { - return {"kind": "Primitive", "type": "bytes", "text": text()} - }, - peg$c403 = function(typ) { - return {"kind": "TypeValue", "value": typ} - }, - peg$c404 = function(name) { return name }, - peg$c405 = "error", - peg$c406 = peg$literalExpectation("error", false), - peg$c407 = function(t) { - return {"kind": "TypeError", "type": t} - }, - peg$c408 = function(name, opt) { - if (opt) { - return {"kind": "TypeDef", "name": name, "type": opt[3]} - } - return {"kind": "TypeName", "name": name} - }, - peg$c409 = function(name) { - return {"kind": "TypeName", "name": name} - }, - peg$c410 = function(u) { return u }, - peg$c411 = function(types) { - return {"kind": "TypeUnion", "types": types} - }, - peg$c412 = function(fields) { - return {"kind": "TypeRecord", "fields": fields} - }, - peg$c413 = function(typ) { - return {"kind": "TypeArray", "type": typ} - }, - peg$c414 = function(typ) { - return {"kind": "TypeSet", "type": typ} - }, - peg$c415 = function(keyType, valType) { - return {"kind": "TypeMap", "key_type": keyType, "val_type": valType} - }, - peg$c416 = function(v) { - if (v.length == 0) { - return {"kind": "Primitive", "type": "string", "text": ""} - } - return makeTemplateExprChain(v) - }, - peg$c417 = "\"", - peg$c418 = peg$literalExpectation("\"", false), - peg$c419 = "'", - peg$c420 = peg$literalExpectation("'", false), - peg$c421 = function(v) { - return {"kind": "Primitive", "type": "string", "text": joinChars(v)} - }, - peg$c422 = "\\", - peg$c423 = peg$literalExpectation("\\", false), - peg$c424 = "${", - peg$c425 = peg$literalExpectation("${", false), - peg$c426 = function(e) { - return { - - "kind": "Cast", - - "expr": e, - - "type": { - - "kind": "TypeValue", - - "value": {"kind": "TypePrimitive", "name": "string"}}} - - }, - peg$c427 = "uint8", - peg$c428 = peg$literalExpectation("uint8", false), - peg$c429 = "uint16", - peg$c430 = peg$literalExpectation("uint16", false), - peg$c431 = "uint32", - peg$c432 = peg$literalExpectation("uint32", false), - peg$c433 = "uint64", - peg$c434 = peg$literalExpectation("uint64", false), - peg$c435 = "int8", - peg$c436 = peg$literalExpectation("int8", false), - peg$c437 = "int16", - peg$c438 = peg$literalExpectation("int16", false), - peg$c439 = "int32", - peg$c440 = peg$literalExpectation("int32", false), - peg$c441 = "int64", - peg$c442 = peg$literalExpectation("int64", false), - peg$c443 = "float16", - peg$c444 = peg$literalExpectation("float16", false), - peg$c445 = "float32", - peg$c446 = peg$literalExpectation("float32", false), - peg$c447 = "float64", - peg$c448 = peg$literalExpectation("float64", false), - peg$c449 = "bool", - peg$c450 = peg$literalExpectation("bool", false), - peg$c451 = "string", - peg$c452 = peg$literalExpectation("string", false), - peg$c453 = "duration", - peg$c454 = peg$literalExpectation("duration", false), - peg$c455 = "time", - peg$c456 = peg$literalExpectation("time", false), - peg$c457 = "bytes", - peg$c458 = peg$literalExpectation("bytes", false), - peg$c459 = "ip", - peg$c460 = peg$literalExpectation("ip", false), - peg$c461 = "net", - peg$c462 = peg$literalExpectation("net", false), - peg$c463 = "null", - peg$c464 = peg$literalExpectation("null", false), - peg$c465 = function() { - return {"kind": "TypePrimitive", "name": text()} - }, - peg$c466 = function(name, typ) { - return {"name": name, "type": typ} - }, - peg$c467 = "and", - peg$c468 = peg$literalExpectation("and", false), - peg$c469 = "AND", - peg$c470 = peg$literalExpectation("AND", false), - peg$c471 = function() { return "and" }, - peg$c472 = peg$literalExpectation("by", false), - peg$c473 = "false", - peg$c474 = peg$literalExpectation("false", false), - peg$c475 = "NOT", - peg$c476 = peg$literalExpectation("NOT", false), - peg$c477 = function() { return "not" }, - peg$c478 = "or", - peg$c479 = peg$literalExpectation("or", false), - peg$c480 = "OR", - peg$c481 = peg$literalExpectation("OR", false), - peg$c482 = function() { return "or" }, - peg$c483 = "true", - peg$c484 = peg$literalExpectation("true", false), - peg$c485 = function(id) { return {"kind": "ID", "name": id} }, - peg$c486 = "$", - peg$c487 = peg$literalExpectation("$", false), - peg$c488 = function(first, id) { return id }, - peg$c489 = "_", - peg$c490 = peg$literalExpectation("_", false), - peg$c491 = "T", - peg$c492 = peg$literalExpectation("T", false), - peg$c493 = function() { - return {"kind": "Primitive", "type": "time", "text": text()} - }, - peg$c494 = /^[0-9]/, - peg$c495 = peg$classExpectation([["0", "9"]], false, false), - peg$c496 = "Z", - peg$c497 = peg$literalExpectation("Z", false), - peg$c498 = function() { - return {"kind": "Primitive", "type": "duration", "text": text()} - }, - peg$c499 = "ns", - peg$c500 = peg$literalExpectation("ns", false), - peg$c501 = "us", - peg$c502 = peg$literalExpectation("us", false), - peg$c503 = "ms", - peg$c504 = peg$literalExpectation("ms", false), - peg$c505 = "s", - peg$c506 = peg$literalExpectation("s", false), - peg$c507 = "m", - peg$c508 = peg$literalExpectation("m", false), - peg$c509 = "h", - peg$c510 = peg$literalExpectation("h", false), - peg$c511 = "d", - peg$c512 = peg$literalExpectation("d", false), - peg$c513 = "w", - peg$c514 = peg$literalExpectation("w", false), - peg$c515 = "y", - peg$c516 = peg$literalExpectation("y", false), - peg$c517 = function(a, b) { - return joinChars(a) + b - }, - peg$c518 = "::", - peg$c519 = peg$literalExpectation("::", false), - peg$c520 = function(a, b, d, e) { - return a + joinChars(b) + "::" + joinChars(d) + e - }, - peg$c521 = function(a, b) { - return "::" + joinChars(a) + b - }, - peg$c522 = function(a, b) { - return a + joinChars(b) + "::" - }, - peg$c523 = function() { - return "::" - }, - peg$c524 = function(v) { return ":" + v }, - peg$c525 = function(v) { return v + ":" }, - peg$c526 = function(a, m) { - return a + "/" + m; - }, - peg$c527 = function(s) { return parseInt(s) }, - peg$c528 = function() { - return text() - }, - peg$c529 = "e", - peg$c530 = peg$literalExpectation("e", true), - peg$c531 = /^[+\-]/, - peg$c532 = peg$classExpectation(["+", "-"], false, false), - peg$c533 = "NaN", - peg$c534 = peg$literalExpectation("NaN", false), - peg$c535 = "Inf", - peg$c536 = peg$literalExpectation("Inf", false), - peg$c537 = /^[0-9a-fA-F]/, - peg$c538 = peg$classExpectation([["0", "9"], ["a", "f"], ["A", "F"]], false, false), - peg$c539 = function(v) { return joinChars(v) }, - peg$c540 = peg$anyExpectation(), - peg$c541 = function(head, tail) { return head + joinChars(tail) }, - peg$c542 = /^[_.:\/%#@~]/, - peg$c543 = peg$classExpectation(["_", ".", ":", "/", "%", "#", "@", "~"], false, false), - peg$c544 = function(head, tail) { - return head + joinChars(tail) - }, - peg$c545 = function() { return "*" }, - peg$c546 = function() { return "=" }, - peg$c547 = function() { return "\\*" }, - peg$c548 = "b", - peg$c549 = peg$literalExpectation("b", false), - peg$c550 = function() { return "\b" }, - peg$c551 = "f", - peg$c552 = peg$literalExpectation("f", false), - peg$c553 = function() { return "\f" }, - peg$c554 = "n", - peg$c555 = peg$literalExpectation("n", false), - peg$c556 = function() { return "\n" }, - peg$c557 = "r", - peg$c558 = peg$literalExpectation("r", false), - peg$c559 = function() { return "\r" }, - peg$c560 = "t", - peg$c561 = peg$literalExpectation("t", false), - peg$c562 = function() { return "\t" }, - peg$c563 = "v", - peg$c564 = peg$literalExpectation("v", false), - peg$c565 = function() { return "\v" }, - peg$c566 = "u", - peg$c567 = peg$literalExpectation("u", false), - peg$c568 = function(chars) { - return makeUnicodeChar(chars) - }, - peg$c569 = /^[^\/\\]/, - peg$c570 = peg$classExpectation(["/", "\\"], true, false), - peg$c571 = /^[\0-\x1F\\]/, - peg$c572 = peg$classExpectation([["\0", "\x1F"], "\\"], false, false), - peg$c573 = /^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/, - peg$c574 = peg$classExpectation([["a", "z"], "\xB5", ["\xDF", "\xF6"], ["\xF8", "\xFF"], "\u0101", "\u0103", "\u0105", "\u0107", "\u0109", "\u010B", "\u010D", "\u010F", "\u0111", "\u0113", "\u0115", "\u0117", "\u0119", "\u011B", "\u011D", "\u011F", "\u0121", "\u0123", "\u0125", "\u0127", "\u0129", "\u012B", "\u012D", "\u012F", "\u0131", "\u0133", "\u0135", ["\u0137", "\u0138"], "\u013A", "\u013C", "\u013E", "\u0140", "\u0142", "\u0144", "\u0146", ["\u0148", "\u0149"], "\u014B", "\u014D", "\u014F", "\u0151", "\u0153", "\u0155", "\u0157", "\u0159", "\u015B", "\u015D", "\u015F", "\u0161", "\u0163", "\u0165", "\u0167", "\u0169", "\u016B", "\u016D", "\u016F", "\u0171", "\u0173", "\u0175", "\u0177", "\u017A", "\u017C", ["\u017E", "\u0180"], "\u0183", "\u0185", "\u0188", ["\u018C", "\u018D"], "\u0192", "\u0195", ["\u0199", "\u019B"], "\u019E", "\u01A1", "\u01A3", "\u01A5", "\u01A8", ["\u01AA", "\u01AB"], "\u01AD", "\u01B0", "\u01B4", "\u01B6", ["\u01B9", "\u01BA"], ["\u01BD", "\u01BF"], "\u01C6", "\u01C9", "\u01CC", "\u01CE", "\u01D0", "\u01D2", "\u01D4", "\u01D6", "\u01D8", "\u01DA", ["\u01DC", "\u01DD"], "\u01DF", "\u01E1", "\u01E3", "\u01E5", "\u01E7", "\u01E9", "\u01EB", "\u01ED", ["\u01EF", "\u01F0"], "\u01F3", "\u01F5", "\u01F9", "\u01FB", "\u01FD", "\u01FF", "\u0201", "\u0203", "\u0205", "\u0207", "\u0209", "\u020B", "\u020D", "\u020F", "\u0211", "\u0213", "\u0215", "\u0217", "\u0219", "\u021B", "\u021D", "\u021F", "\u0221", "\u0223", "\u0225", "\u0227", "\u0229", "\u022B", "\u022D", "\u022F", "\u0231", ["\u0233", "\u0239"], "\u023C", ["\u023F", "\u0240"], "\u0242", "\u0247", "\u0249", "\u024B", "\u024D", ["\u024F", "\u0293"], ["\u0295", "\u02AF"], "\u0371", "\u0373", "\u0377", ["\u037B", "\u037D"], "\u0390", ["\u03AC", "\u03CE"], ["\u03D0", "\u03D1"], ["\u03D5", "\u03D7"], "\u03D9", "\u03DB", "\u03DD", "\u03DF", "\u03E1", "\u03E3", "\u03E5", "\u03E7", "\u03E9", "\u03EB", "\u03ED", ["\u03EF", "\u03F3"], "\u03F5", "\u03F8", ["\u03FB", "\u03FC"], ["\u0430", "\u045F"], "\u0461", "\u0463", "\u0465", "\u0467", "\u0469", "\u046B", "\u046D", "\u046F", "\u0471", "\u0473", "\u0475", "\u0477", "\u0479", "\u047B", "\u047D", "\u047F", "\u0481", "\u048B", "\u048D", "\u048F", "\u0491", "\u0493", "\u0495", "\u0497", "\u0499", "\u049B", "\u049D", "\u049F", "\u04A1", "\u04A3", "\u04A5", "\u04A7", "\u04A9", "\u04AB", "\u04AD", "\u04AF", "\u04B1", "\u04B3", "\u04B5", "\u04B7", "\u04B9", "\u04BB", "\u04BD", "\u04BF", "\u04C2", "\u04C4", "\u04C6", "\u04C8", "\u04CA", "\u04CC", ["\u04CE", "\u04CF"], "\u04D1", "\u04D3", "\u04D5", "\u04D7", "\u04D9", "\u04DB", "\u04DD", "\u04DF", "\u04E1", "\u04E3", "\u04E5", "\u04E7", "\u04E9", "\u04EB", "\u04ED", "\u04EF", "\u04F1", "\u04F3", "\u04F5", "\u04F7", "\u04F9", "\u04FB", "\u04FD", "\u04FF", "\u0501", "\u0503", "\u0505", "\u0507", "\u0509", "\u050B", "\u050D", "\u050F", "\u0511", "\u0513", "\u0515", "\u0517", "\u0519", "\u051B", "\u051D", "\u051F", "\u0521", "\u0523", "\u0525", "\u0527", "\u0529", "\u052B", "\u052D", "\u052F", ["\u0560", "\u0588"], ["\u10D0", "\u10FA"], ["\u10FD", "\u10FF"], ["\u13F8", "\u13FD"], ["\u1C80", "\u1C88"], ["\u1D00", "\u1D2B"], ["\u1D6B", "\u1D77"], ["\u1D79", "\u1D9A"], "\u1E01", "\u1E03", "\u1E05", "\u1E07", "\u1E09", "\u1E0B", "\u1E0D", "\u1E0F", "\u1E11", "\u1E13", "\u1E15", "\u1E17", "\u1E19", "\u1E1B", "\u1E1D", "\u1E1F", "\u1E21", "\u1E23", "\u1E25", "\u1E27", "\u1E29", "\u1E2B", "\u1E2D", "\u1E2F", "\u1E31", "\u1E33", "\u1E35", "\u1E37", "\u1E39", "\u1E3B", "\u1E3D", "\u1E3F", "\u1E41", "\u1E43", "\u1E45", "\u1E47", "\u1E49", "\u1E4B", "\u1E4D", "\u1E4F", "\u1E51", "\u1E53", "\u1E55", "\u1E57", "\u1E59", "\u1E5B", "\u1E5D", "\u1E5F", "\u1E61", "\u1E63", "\u1E65", "\u1E67", "\u1E69", "\u1E6B", "\u1E6D", "\u1E6F", "\u1E71", "\u1E73", "\u1E75", "\u1E77", "\u1E79", "\u1E7B", "\u1E7D", "\u1E7F", "\u1E81", "\u1E83", "\u1E85", "\u1E87", "\u1E89", "\u1E8B", "\u1E8D", "\u1E8F", "\u1E91", "\u1E93", ["\u1E95", "\u1E9D"], "\u1E9F", "\u1EA1", "\u1EA3", "\u1EA5", "\u1EA7", "\u1EA9", "\u1EAB", "\u1EAD", "\u1EAF", "\u1EB1", "\u1EB3", "\u1EB5", "\u1EB7", "\u1EB9", "\u1EBB", "\u1EBD", "\u1EBF", "\u1EC1", "\u1EC3", "\u1EC5", "\u1EC7", "\u1EC9", "\u1ECB", "\u1ECD", "\u1ECF", "\u1ED1", "\u1ED3", "\u1ED5", "\u1ED7", "\u1ED9", "\u1EDB", "\u1EDD", "\u1EDF", "\u1EE1", "\u1EE3", "\u1EE5", "\u1EE7", "\u1EE9", "\u1EEB", "\u1EED", "\u1EEF", "\u1EF1", "\u1EF3", "\u1EF5", "\u1EF7", "\u1EF9", "\u1EFB", "\u1EFD", ["\u1EFF", "\u1F07"], ["\u1F10", "\u1F15"], ["\u1F20", "\u1F27"], ["\u1F30", "\u1F37"], ["\u1F40", "\u1F45"], ["\u1F50", "\u1F57"], ["\u1F60", "\u1F67"], ["\u1F70", "\u1F7D"], ["\u1F80", "\u1F87"], ["\u1F90", "\u1F97"], ["\u1FA0", "\u1FA7"], ["\u1FB0", "\u1FB4"], ["\u1FB6", "\u1FB7"], "\u1FBE", ["\u1FC2", "\u1FC4"], ["\u1FC6", "\u1FC7"], ["\u1FD0", "\u1FD3"], ["\u1FD6", "\u1FD7"], ["\u1FE0", "\u1FE7"], ["\u1FF2", "\u1FF4"], ["\u1FF6", "\u1FF7"], "\u210A", ["\u210E", "\u210F"], "\u2113", "\u212F", "\u2134", "\u2139", ["\u213C", "\u213D"], ["\u2146", "\u2149"], "\u214E", "\u2184", ["\u2C30", "\u2C5E"], "\u2C61", ["\u2C65", "\u2C66"], "\u2C68", "\u2C6A", "\u2C6C", "\u2C71", ["\u2C73", "\u2C74"], ["\u2C76", "\u2C7B"], "\u2C81", "\u2C83", "\u2C85", "\u2C87", "\u2C89", "\u2C8B", "\u2C8D", "\u2C8F", "\u2C91", "\u2C93", "\u2C95", "\u2C97", "\u2C99", "\u2C9B", "\u2C9D", "\u2C9F", "\u2CA1", "\u2CA3", "\u2CA5", "\u2CA7", "\u2CA9", "\u2CAB", "\u2CAD", "\u2CAF", "\u2CB1", "\u2CB3", "\u2CB5", "\u2CB7", "\u2CB9", "\u2CBB", "\u2CBD", "\u2CBF", "\u2CC1", "\u2CC3", "\u2CC5", "\u2CC7", "\u2CC9", "\u2CCB", "\u2CCD", "\u2CCF", "\u2CD1", "\u2CD3", "\u2CD5", "\u2CD7", "\u2CD9", "\u2CDB", "\u2CDD", "\u2CDF", "\u2CE1", ["\u2CE3", "\u2CE4"], "\u2CEC", "\u2CEE", "\u2CF3", ["\u2D00", "\u2D25"], "\u2D27", "\u2D2D", "\uA641", "\uA643", "\uA645", "\uA647", "\uA649", "\uA64B", "\uA64D", "\uA64F", "\uA651", "\uA653", "\uA655", "\uA657", "\uA659", "\uA65B", "\uA65D", "\uA65F", "\uA661", "\uA663", "\uA665", "\uA667", "\uA669", "\uA66B", "\uA66D", "\uA681", "\uA683", "\uA685", "\uA687", "\uA689", "\uA68B", "\uA68D", "\uA68F", "\uA691", "\uA693", "\uA695", "\uA697", "\uA699", "\uA69B", "\uA723", "\uA725", "\uA727", "\uA729", "\uA72B", "\uA72D", ["\uA72F", "\uA731"], "\uA733", "\uA735", "\uA737", "\uA739", "\uA73B", "\uA73D", "\uA73F", "\uA741", "\uA743", "\uA745", "\uA747", "\uA749", "\uA74B", "\uA74D", "\uA74F", "\uA751", "\uA753", "\uA755", "\uA757", "\uA759", "\uA75B", "\uA75D", "\uA75F", "\uA761", "\uA763", "\uA765", "\uA767", "\uA769", "\uA76B", "\uA76D", "\uA76F", ["\uA771", "\uA778"], "\uA77A", "\uA77C", "\uA77F", "\uA781", "\uA783", "\uA785", "\uA787", "\uA78C", "\uA78E", "\uA791", ["\uA793", "\uA795"], "\uA797", "\uA799", "\uA79B", "\uA79D", "\uA79F", "\uA7A1", "\uA7A3", "\uA7A5", "\uA7A7", "\uA7A9", "\uA7AF", "\uA7B5", "\uA7B7", "\uA7B9", "\uA7FA", ["\uAB30", "\uAB5A"], ["\uAB60", "\uAB65"], ["\uAB70", "\uABBF"], ["\uFB00", "\uFB06"], ["\uFB13", "\uFB17"], ["\uFF41", "\uFF5A"]], false, false), - peg$c575 = /^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/, - peg$c576 = peg$classExpectation([["\u02B0", "\u02C1"], ["\u02C6", "\u02D1"], ["\u02E0", "\u02E4"], "\u02EC", "\u02EE", "\u0374", "\u037A", "\u0559", "\u0640", ["\u06E5", "\u06E6"], ["\u07F4", "\u07F5"], "\u07FA", "\u081A", "\u0824", "\u0828", "\u0971", "\u0E46", "\u0EC6", "\u10FC", "\u17D7", "\u1843", "\u1AA7", ["\u1C78", "\u1C7D"], ["\u1D2C", "\u1D6A"], "\u1D78", ["\u1D9B", "\u1DBF"], "\u2071", "\u207F", ["\u2090", "\u209C"], ["\u2C7C", "\u2C7D"], "\u2D6F", "\u2E2F", "\u3005", ["\u3031", "\u3035"], "\u303B", ["\u309D", "\u309E"], ["\u30FC", "\u30FE"], "\uA015", ["\uA4F8", "\uA4FD"], "\uA60C", "\uA67F", ["\uA69C", "\uA69D"], ["\uA717", "\uA71F"], "\uA770", "\uA788", ["\uA7F8", "\uA7F9"], "\uA9CF", "\uA9E6", "\uAA70", "\uAADD", ["\uAAF3", "\uAAF4"], ["\uAB5C", "\uAB5F"], "\uFF70", ["\uFF9E", "\uFF9F"]], false, false), - peg$c577 = /^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05EF-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u09FC\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD-\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/, - peg$c578 = peg$classExpectation(["\xAA", "\xBA", "\u01BB", ["\u01C0", "\u01C3"], "\u0294", ["\u05D0", "\u05EA"], ["\u05EF", "\u05F2"], ["\u0620", "\u063F"], ["\u0641", "\u064A"], ["\u066E", "\u066F"], ["\u0671", "\u06D3"], "\u06D5", ["\u06EE", "\u06EF"], ["\u06FA", "\u06FC"], "\u06FF", "\u0710", ["\u0712", "\u072F"], ["\u074D", "\u07A5"], "\u07B1", ["\u07CA", "\u07EA"], ["\u0800", "\u0815"], ["\u0840", "\u0858"], ["\u0860", "\u086A"], ["\u08A0", "\u08B4"], ["\u08B6", "\u08BD"], ["\u0904", "\u0939"], "\u093D", "\u0950", ["\u0958", "\u0961"], ["\u0972", "\u0980"], ["\u0985", "\u098C"], ["\u098F", "\u0990"], ["\u0993", "\u09A8"], ["\u09AA", "\u09B0"], "\u09B2", ["\u09B6", "\u09B9"], "\u09BD", "\u09CE", ["\u09DC", "\u09DD"], ["\u09DF", "\u09E1"], ["\u09F0", "\u09F1"], "\u09FC", ["\u0A05", "\u0A0A"], ["\u0A0F", "\u0A10"], ["\u0A13", "\u0A28"], ["\u0A2A", "\u0A30"], ["\u0A32", "\u0A33"], ["\u0A35", "\u0A36"], ["\u0A38", "\u0A39"], ["\u0A59", "\u0A5C"], "\u0A5E", ["\u0A72", "\u0A74"], ["\u0A85", "\u0A8D"], ["\u0A8F", "\u0A91"], ["\u0A93", "\u0AA8"], ["\u0AAA", "\u0AB0"], ["\u0AB2", "\u0AB3"], ["\u0AB5", "\u0AB9"], "\u0ABD", "\u0AD0", ["\u0AE0", "\u0AE1"], "\u0AF9", ["\u0B05", "\u0B0C"], ["\u0B0F", "\u0B10"], ["\u0B13", "\u0B28"], ["\u0B2A", "\u0B30"], ["\u0B32", "\u0B33"], ["\u0B35", "\u0B39"], "\u0B3D", ["\u0B5C", "\u0B5D"], ["\u0B5F", "\u0B61"], "\u0B71", "\u0B83", ["\u0B85", "\u0B8A"], ["\u0B8E", "\u0B90"], ["\u0B92", "\u0B95"], ["\u0B99", "\u0B9A"], "\u0B9C", ["\u0B9E", "\u0B9F"], ["\u0BA3", "\u0BA4"], ["\u0BA8", "\u0BAA"], ["\u0BAE", "\u0BB9"], "\u0BD0", ["\u0C05", "\u0C0C"], ["\u0C0E", "\u0C10"], ["\u0C12", "\u0C28"], ["\u0C2A", "\u0C39"], "\u0C3D", ["\u0C58", "\u0C5A"], ["\u0C60", "\u0C61"], "\u0C80", ["\u0C85", "\u0C8C"], ["\u0C8E", "\u0C90"], ["\u0C92", "\u0CA8"], ["\u0CAA", "\u0CB3"], ["\u0CB5", "\u0CB9"], "\u0CBD", "\u0CDE", ["\u0CE0", "\u0CE1"], ["\u0CF1", "\u0CF2"], ["\u0D05", "\u0D0C"], ["\u0D0E", "\u0D10"], ["\u0D12", "\u0D3A"], "\u0D3D", "\u0D4E", ["\u0D54", "\u0D56"], ["\u0D5F", "\u0D61"], ["\u0D7A", "\u0D7F"], ["\u0D85", "\u0D96"], ["\u0D9A", "\u0DB1"], ["\u0DB3", "\u0DBB"], "\u0DBD", ["\u0DC0", "\u0DC6"], ["\u0E01", "\u0E30"], ["\u0E32", "\u0E33"], ["\u0E40", "\u0E45"], ["\u0E81", "\u0E82"], "\u0E84", ["\u0E87", "\u0E88"], "\u0E8A", "\u0E8D", ["\u0E94", "\u0E97"], ["\u0E99", "\u0E9F"], ["\u0EA1", "\u0EA3"], "\u0EA5", "\u0EA7", ["\u0EAA", "\u0EAB"], ["\u0EAD", "\u0EB0"], ["\u0EB2", "\u0EB3"], "\u0EBD", ["\u0EC0", "\u0EC4"], ["\u0EDC", "\u0EDF"], "\u0F00", ["\u0F40", "\u0F47"], ["\u0F49", "\u0F6C"], ["\u0F88", "\u0F8C"], ["\u1000", "\u102A"], "\u103F", ["\u1050", "\u1055"], ["\u105A", "\u105D"], "\u1061", ["\u1065", "\u1066"], ["\u106E", "\u1070"], ["\u1075", "\u1081"], "\u108E", ["\u1100", "\u1248"], ["\u124A", "\u124D"], ["\u1250", "\u1256"], "\u1258", ["\u125A", "\u125D"], ["\u1260", "\u1288"], ["\u128A", "\u128D"], ["\u1290", "\u12B0"], ["\u12B2", "\u12B5"], ["\u12B8", "\u12BE"], "\u12C0", ["\u12C2", "\u12C5"], ["\u12C8", "\u12D6"], ["\u12D8", "\u1310"], ["\u1312", "\u1315"], ["\u1318", "\u135A"], ["\u1380", "\u138F"], ["\u1401", "\u166C"], ["\u166F", "\u167F"], ["\u1681", "\u169A"], ["\u16A0", "\u16EA"], ["\u16F1", "\u16F8"], ["\u1700", "\u170C"], ["\u170E", "\u1711"], ["\u1720", "\u1731"], ["\u1740", "\u1751"], ["\u1760", "\u176C"], ["\u176E", "\u1770"], ["\u1780", "\u17B3"], "\u17DC", ["\u1820", "\u1842"], ["\u1844", "\u1878"], ["\u1880", "\u1884"], ["\u1887", "\u18A8"], "\u18AA", ["\u18B0", "\u18F5"], ["\u1900", "\u191E"], ["\u1950", "\u196D"], ["\u1970", "\u1974"], ["\u1980", "\u19AB"], ["\u19B0", "\u19C9"], ["\u1A00", "\u1A16"], ["\u1A20", "\u1A54"], ["\u1B05", "\u1B33"], ["\u1B45", "\u1B4B"], ["\u1B83", "\u1BA0"], ["\u1BAE", "\u1BAF"], ["\u1BBA", "\u1BE5"], ["\u1C00", "\u1C23"], ["\u1C4D", "\u1C4F"], ["\u1C5A", "\u1C77"], ["\u1CE9", "\u1CEC"], ["\u1CEE", "\u1CF1"], ["\u1CF5", "\u1CF6"], ["\u2135", "\u2138"], ["\u2D30", "\u2D67"], ["\u2D80", "\u2D96"], ["\u2DA0", "\u2DA6"], ["\u2DA8", "\u2DAE"], ["\u2DB0", "\u2DB6"], ["\u2DB8", "\u2DBE"], ["\u2DC0", "\u2DC6"], ["\u2DC8", "\u2DCE"], ["\u2DD0", "\u2DD6"], ["\u2DD8", "\u2DDE"], "\u3006", "\u303C", ["\u3041", "\u3096"], "\u309F", ["\u30A1", "\u30FA"], "\u30FF", ["\u3105", "\u312F"], ["\u3131", "\u318E"], ["\u31A0", "\u31BA"], ["\u31F0", "\u31FF"], ["\u3400", "\u4DB5"], ["\u4E00", "\u9FEF"], ["\uA000", "\uA014"], ["\uA016", "\uA48C"], ["\uA4D0", "\uA4F7"], ["\uA500", "\uA60B"], ["\uA610", "\uA61F"], ["\uA62A", "\uA62B"], "\uA66E", ["\uA6A0", "\uA6E5"], "\uA78F", "\uA7F7", ["\uA7FB", "\uA801"], ["\uA803", "\uA805"], ["\uA807", "\uA80A"], ["\uA80C", "\uA822"], ["\uA840", "\uA873"], ["\uA882", "\uA8B3"], ["\uA8F2", "\uA8F7"], "\uA8FB", ["\uA8FD", "\uA8FE"], ["\uA90A", "\uA925"], ["\uA930", "\uA946"], ["\uA960", "\uA97C"], ["\uA984", "\uA9B2"], ["\uA9E0", "\uA9E4"], ["\uA9E7", "\uA9EF"], ["\uA9FA", "\uA9FE"], ["\uAA00", "\uAA28"], ["\uAA40", "\uAA42"], ["\uAA44", "\uAA4B"], ["\uAA60", "\uAA6F"], ["\uAA71", "\uAA76"], "\uAA7A", ["\uAA7E", "\uAAAF"], "\uAAB1", ["\uAAB5", "\uAAB6"], ["\uAAB9", "\uAABD"], "\uAAC0", "\uAAC2", ["\uAADB", "\uAADC"], ["\uAAE0", "\uAAEA"], "\uAAF2", ["\uAB01", "\uAB06"], ["\uAB09", "\uAB0E"], ["\uAB11", "\uAB16"], ["\uAB20", "\uAB26"], ["\uAB28", "\uAB2E"], ["\uABC0", "\uABE2"], ["\uAC00", "\uD7A3"], ["\uD7B0", "\uD7C6"], ["\uD7CB", "\uD7FB"], ["\uF900", "\uFA6D"], ["\uFA70", "\uFAD9"], "\uFB1D", ["\uFB1F", "\uFB28"], ["\uFB2A", "\uFB36"], ["\uFB38", "\uFB3C"], "\uFB3E", ["\uFB40", "\uFB41"], ["\uFB43", "\uFB44"], ["\uFB46", "\uFBB1"], ["\uFBD3", "\uFD3D"], ["\uFD50", "\uFD8F"], ["\uFD92", "\uFDC7"], ["\uFDF0", "\uFDFB"], ["\uFE70", "\uFE74"], ["\uFE76", "\uFEFC"], ["\uFF66", "\uFF6F"], ["\uFF71", "\uFF9D"], ["\uFFA0", "\uFFBE"], ["\uFFC2", "\uFFC7"], ["\uFFCA", "\uFFCF"], ["\uFFD2", "\uFFD7"], ["\uFFDA", "\uFFDC"]], false, false), - peg$c579 = /^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/, - peg$c580 = peg$classExpectation(["\u01C5", "\u01C8", "\u01CB", "\u01F2", ["\u1F88", "\u1F8F"], ["\u1F98", "\u1F9F"], ["\u1FA8", "\u1FAF"], "\u1FBC", "\u1FCC", "\u1FFC"], false, false), - peg$c581 = /^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uFF21-\uFF3A]/, - peg$c582 = peg$classExpectation([["A", "Z"], ["\xC0", "\xD6"], ["\xD8", "\xDE"], "\u0100", "\u0102", "\u0104", "\u0106", "\u0108", "\u010A", "\u010C", "\u010E", "\u0110", "\u0112", "\u0114", "\u0116", "\u0118", "\u011A", "\u011C", "\u011E", "\u0120", "\u0122", "\u0124", "\u0126", "\u0128", "\u012A", "\u012C", "\u012E", "\u0130", "\u0132", "\u0134", "\u0136", "\u0139", "\u013B", "\u013D", "\u013F", "\u0141", "\u0143", "\u0145", "\u0147", "\u014A", "\u014C", "\u014E", "\u0150", "\u0152", "\u0154", "\u0156", "\u0158", "\u015A", "\u015C", "\u015E", "\u0160", "\u0162", "\u0164", "\u0166", "\u0168", "\u016A", "\u016C", "\u016E", "\u0170", "\u0172", "\u0174", "\u0176", ["\u0178", "\u0179"], "\u017B", "\u017D", ["\u0181", "\u0182"], "\u0184", ["\u0186", "\u0187"], ["\u0189", "\u018B"], ["\u018E", "\u0191"], ["\u0193", "\u0194"], ["\u0196", "\u0198"], ["\u019C", "\u019D"], ["\u019F", "\u01A0"], "\u01A2", "\u01A4", ["\u01A6", "\u01A7"], "\u01A9", "\u01AC", ["\u01AE", "\u01AF"], ["\u01B1", "\u01B3"], "\u01B5", ["\u01B7", "\u01B8"], "\u01BC", "\u01C4", "\u01C7", "\u01CA", "\u01CD", "\u01CF", "\u01D1", "\u01D3", "\u01D5", "\u01D7", "\u01D9", "\u01DB", "\u01DE", "\u01E0", "\u01E2", "\u01E4", "\u01E6", "\u01E8", "\u01EA", "\u01EC", "\u01EE", "\u01F1", "\u01F4", ["\u01F6", "\u01F8"], "\u01FA", "\u01FC", "\u01FE", "\u0200", "\u0202", "\u0204", "\u0206", "\u0208", "\u020A", "\u020C", "\u020E", "\u0210", "\u0212", "\u0214", "\u0216", "\u0218", "\u021A", "\u021C", "\u021E", "\u0220", "\u0222", "\u0224", "\u0226", "\u0228", "\u022A", "\u022C", "\u022E", "\u0230", "\u0232", ["\u023A", "\u023B"], ["\u023D", "\u023E"], "\u0241", ["\u0243", "\u0246"], "\u0248", "\u024A", "\u024C", "\u024E", "\u0370", "\u0372", "\u0376", "\u037F", "\u0386", ["\u0388", "\u038A"], "\u038C", ["\u038E", "\u038F"], ["\u0391", "\u03A1"], ["\u03A3", "\u03AB"], "\u03CF", ["\u03D2", "\u03D4"], "\u03D8", "\u03DA", "\u03DC", "\u03DE", "\u03E0", "\u03E2", "\u03E4", "\u03E6", "\u03E8", "\u03EA", "\u03EC", "\u03EE", "\u03F4", "\u03F7", ["\u03F9", "\u03FA"], ["\u03FD", "\u042F"], "\u0460", "\u0462", "\u0464", "\u0466", "\u0468", "\u046A", "\u046C", "\u046E", "\u0470", "\u0472", "\u0474", "\u0476", "\u0478", "\u047A", "\u047C", "\u047E", "\u0480", "\u048A", "\u048C", "\u048E", "\u0490", "\u0492", "\u0494", "\u0496", "\u0498", "\u049A", "\u049C", "\u049E", "\u04A0", "\u04A2", "\u04A4", "\u04A6", "\u04A8", "\u04AA", "\u04AC", "\u04AE", "\u04B0", "\u04B2", "\u04B4", "\u04B6", "\u04B8", "\u04BA", "\u04BC", "\u04BE", ["\u04C0", "\u04C1"], "\u04C3", "\u04C5", "\u04C7", "\u04C9", "\u04CB", "\u04CD", "\u04D0", "\u04D2", "\u04D4", "\u04D6", "\u04D8", "\u04DA", "\u04DC", "\u04DE", "\u04E0", "\u04E2", "\u04E4", "\u04E6", "\u04E8", "\u04EA", "\u04EC", "\u04EE", "\u04F0", "\u04F2", "\u04F4", "\u04F6", "\u04F8", "\u04FA", "\u04FC", "\u04FE", "\u0500", "\u0502", "\u0504", "\u0506", "\u0508", "\u050A", "\u050C", "\u050E", "\u0510", "\u0512", "\u0514", "\u0516", "\u0518", "\u051A", "\u051C", "\u051E", "\u0520", "\u0522", "\u0524", "\u0526", "\u0528", "\u052A", "\u052C", "\u052E", ["\u0531", "\u0556"], ["\u10A0", "\u10C5"], "\u10C7", "\u10CD", ["\u13A0", "\u13F5"], ["\u1C90", "\u1CBA"], ["\u1CBD", "\u1CBF"], "\u1E00", "\u1E02", "\u1E04", "\u1E06", "\u1E08", "\u1E0A", "\u1E0C", "\u1E0E", "\u1E10", "\u1E12", "\u1E14", "\u1E16", "\u1E18", "\u1E1A", "\u1E1C", "\u1E1E", "\u1E20", "\u1E22", "\u1E24", "\u1E26", "\u1E28", "\u1E2A", "\u1E2C", "\u1E2E", "\u1E30", "\u1E32", "\u1E34", "\u1E36", "\u1E38", "\u1E3A", "\u1E3C", "\u1E3E", "\u1E40", "\u1E42", "\u1E44", "\u1E46", "\u1E48", "\u1E4A", "\u1E4C", "\u1E4E", "\u1E50", "\u1E52", "\u1E54", "\u1E56", "\u1E58", "\u1E5A", "\u1E5C", "\u1E5E", "\u1E60", "\u1E62", "\u1E64", "\u1E66", "\u1E68", "\u1E6A", "\u1E6C", "\u1E6E", "\u1E70", "\u1E72", "\u1E74", "\u1E76", "\u1E78", "\u1E7A", "\u1E7C", "\u1E7E", "\u1E80", "\u1E82", "\u1E84", "\u1E86", "\u1E88", "\u1E8A", "\u1E8C", "\u1E8E", "\u1E90", "\u1E92", "\u1E94", "\u1E9E", "\u1EA0", "\u1EA2", "\u1EA4", "\u1EA6", "\u1EA8", "\u1EAA", "\u1EAC", "\u1EAE", "\u1EB0", "\u1EB2", "\u1EB4", "\u1EB6", "\u1EB8", "\u1EBA", "\u1EBC", "\u1EBE", "\u1EC0", "\u1EC2", "\u1EC4", "\u1EC6", "\u1EC8", "\u1ECA", "\u1ECC", "\u1ECE", "\u1ED0", "\u1ED2", "\u1ED4", "\u1ED6", "\u1ED8", "\u1EDA", "\u1EDC", "\u1EDE", "\u1EE0", "\u1EE2", "\u1EE4", "\u1EE6", "\u1EE8", "\u1EEA", "\u1EEC", "\u1EEE", "\u1EF0", "\u1EF2", "\u1EF4", "\u1EF6", "\u1EF8", "\u1EFA", "\u1EFC", "\u1EFE", ["\u1F08", "\u1F0F"], ["\u1F18", "\u1F1D"], ["\u1F28", "\u1F2F"], ["\u1F38", "\u1F3F"], ["\u1F48", "\u1F4D"], "\u1F59", "\u1F5B", "\u1F5D", "\u1F5F", ["\u1F68", "\u1F6F"], ["\u1FB8", "\u1FBB"], ["\u1FC8", "\u1FCB"], ["\u1FD8", "\u1FDB"], ["\u1FE8", "\u1FEC"], ["\u1FF8", "\u1FFB"], "\u2102", "\u2107", ["\u210B", "\u210D"], ["\u2110", "\u2112"], "\u2115", ["\u2119", "\u211D"], "\u2124", "\u2126", "\u2128", ["\u212A", "\u212D"], ["\u2130", "\u2133"], ["\u213E", "\u213F"], "\u2145", "\u2183", ["\u2C00", "\u2C2E"], "\u2C60", ["\u2C62", "\u2C64"], "\u2C67", "\u2C69", "\u2C6B", ["\u2C6D", "\u2C70"], "\u2C72", "\u2C75", ["\u2C7E", "\u2C80"], "\u2C82", "\u2C84", "\u2C86", "\u2C88", "\u2C8A", "\u2C8C", "\u2C8E", "\u2C90", "\u2C92", "\u2C94", "\u2C96", "\u2C98", "\u2C9A", "\u2C9C", "\u2C9E", "\u2CA0", "\u2CA2", "\u2CA4", "\u2CA6", "\u2CA8", "\u2CAA", "\u2CAC", "\u2CAE", "\u2CB0", "\u2CB2", "\u2CB4", "\u2CB6", "\u2CB8", "\u2CBA", "\u2CBC", "\u2CBE", "\u2CC0", "\u2CC2", "\u2CC4", "\u2CC6", "\u2CC8", "\u2CCA", "\u2CCC", "\u2CCE", "\u2CD0", "\u2CD2", "\u2CD4", "\u2CD6", "\u2CD8", "\u2CDA", "\u2CDC", "\u2CDE", "\u2CE0", "\u2CE2", "\u2CEB", "\u2CED", "\u2CF2", "\uA640", "\uA642", "\uA644", "\uA646", "\uA648", "\uA64A", "\uA64C", "\uA64E", "\uA650", "\uA652", "\uA654", "\uA656", "\uA658", "\uA65A", "\uA65C", "\uA65E", "\uA660", "\uA662", "\uA664", "\uA666", "\uA668", "\uA66A", "\uA66C", "\uA680", "\uA682", "\uA684", "\uA686", "\uA688", "\uA68A", "\uA68C", "\uA68E", "\uA690", "\uA692", "\uA694", "\uA696", "\uA698", "\uA69A", "\uA722", "\uA724", "\uA726", "\uA728", "\uA72A", "\uA72C", "\uA72E", "\uA732", "\uA734", "\uA736", "\uA738", "\uA73A", "\uA73C", "\uA73E", "\uA740", "\uA742", "\uA744", "\uA746", "\uA748", "\uA74A", "\uA74C", "\uA74E", "\uA750", "\uA752", "\uA754", "\uA756", "\uA758", "\uA75A", "\uA75C", "\uA75E", "\uA760", "\uA762", "\uA764", "\uA766", "\uA768", "\uA76A", "\uA76C", "\uA76E", "\uA779", "\uA77B", ["\uA77D", "\uA77E"], "\uA780", "\uA782", "\uA784", "\uA786", "\uA78B", "\uA78D", "\uA790", "\uA792", "\uA796", "\uA798", "\uA79A", "\uA79C", "\uA79E", "\uA7A0", "\uA7A2", "\uA7A4", "\uA7A6", "\uA7A8", ["\uA7AA", "\uA7AE"], ["\uA7B0", "\uA7B4"], "\uA7B6", "\uA7B8", ["\uFF21", "\uFF3A"]], false, false), - peg$c583 = /^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u1CF7\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/, - peg$c584 = peg$classExpectation(["\u0903", "\u093B", ["\u093E", "\u0940"], ["\u0949", "\u094C"], ["\u094E", "\u094F"], ["\u0982", "\u0983"], ["\u09BE", "\u09C0"], ["\u09C7", "\u09C8"], ["\u09CB", "\u09CC"], "\u09D7", "\u0A03", ["\u0A3E", "\u0A40"], "\u0A83", ["\u0ABE", "\u0AC0"], "\u0AC9", ["\u0ACB", "\u0ACC"], ["\u0B02", "\u0B03"], "\u0B3E", "\u0B40", ["\u0B47", "\u0B48"], ["\u0B4B", "\u0B4C"], "\u0B57", ["\u0BBE", "\u0BBF"], ["\u0BC1", "\u0BC2"], ["\u0BC6", "\u0BC8"], ["\u0BCA", "\u0BCC"], "\u0BD7", ["\u0C01", "\u0C03"], ["\u0C41", "\u0C44"], ["\u0C82", "\u0C83"], "\u0CBE", ["\u0CC0", "\u0CC4"], ["\u0CC7", "\u0CC8"], ["\u0CCA", "\u0CCB"], ["\u0CD5", "\u0CD6"], ["\u0D02", "\u0D03"], ["\u0D3E", "\u0D40"], ["\u0D46", "\u0D48"], ["\u0D4A", "\u0D4C"], "\u0D57", ["\u0D82", "\u0D83"], ["\u0DCF", "\u0DD1"], ["\u0DD8", "\u0DDF"], ["\u0DF2", "\u0DF3"], ["\u0F3E", "\u0F3F"], "\u0F7F", ["\u102B", "\u102C"], "\u1031", "\u1038", ["\u103B", "\u103C"], ["\u1056", "\u1057"], ["\u1062", "\u1064"], ["\u1067", "\u106D"], ["\u1083", "\u1084"], ["\u1087", "\u108C"], "\u108F", ["\u109A", "\u109C"], "\u17B6", ["\u17BE", "\u17C5"], ["\u17C7", "\u17C8"], ["\u1923", "\u1926"], ["\u1929", "\u192B"], ["\u1930", "\u1931"], ["\u1933", "\u1938"], ["\u1A19", "\u1A1A"], "\u1A55", "\u1A57", "\u1A61", ["\u1A63", "\u1A64"], ["\u1A6D", "\u1A72"], "\u1B04", "\u1B35", "\u1B3B", ["\u1B3D", "\u1B41"], ["\u1B43", "\u1B44"], "\u1B82", "\u1BA1", ["\u1BA6", "\u1BA7"], "\u1BAA", "\u1BE7", ["\u1BEA", "\u1BEC"], "\u1BEE", ["\u1BF2", "\u1BF3"], ["\u1C24", "\u1C2B"], ["\u1C34", "\u1C35"], "\u1CE1", ["\u1CF2", "\u1CF3"], "\u1CF7", ["\u302E", "\u302F"], ["\uA823", "\uA824"], "\uA827", ["\uA880", "\uA881"], ["\uA8B4", "\uA8C3"], ["\uA952", "\uA953"], "\uA983", ["\uA9B4", "\uA9B5"], ["\uA9BA", "\uA9BB"], ["\uA9BD", "\uA9C0"], ["\uAA2F", "\uAA30"], ["\uAA33", "\uAA34"], "\uAA4D", "\uAA7B", "\uAA7D", "\uAAEB", ["\uAAEE", "\uAAEF"], "\uAAF5", ["\uABE3", "\uABE4"], ["\uABE6", "\uABE7"], ["\uABE9", "\uABEA"], "\uABEC"], false, false), - peg$c585 = /^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u09FE\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D00-\u0D01\u0D3B-\u0D3C\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885-\u1886\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/, - peg$c586 = peg$classExpectation([["\u0300", "\u036F"], ["\u0483", "\u0487"], ["\u0591", "\u05BD"], "\u05BF", ["\u05C1", "\u05C2"], ["\u05C4", "\u05C5"], "\u05C7", ["\u0610", "\u061A"], ["\u064B", "\u065F"], "\u0670", ["\u06D6", "\u06DC"], ["\u06DF", "\u06E4"], ["\u06E7", "\u06E8"], ["\u06EA", "\u06ED"], "\u0711", ["\u0730", "\u074A"], ["\u07A6", "\u07B0"], ["\u07EB", "\u07F3"], "\u07FD", ["\u0816", "\u0819"], ["\u081B", "\u0823"], ["\u0825", "\u0827"], ["\u0829", "\u082D"], ["\u0859", "\u085B"], ["\u08D3", "\u08E1"], ["\u08E3", "\u0902"], "\u093A", "\u093C", ["\u0941", "\u0948"], "\u094D", ["\u0951", "\u0957"], ["\u0962", "\u0963"], "\u0981", "\u09BC", ["\u09C1", "\u09C4"], "\u09CD", ["\u09E2", "\u09E3"], "\u09FE", ["\u0A01", "\u0A02"], "\u0A3C", ["\u0A41", "\u0A42"], ["\u0A47", "\u0A48"], ["\u0A4B", "\u0A4D"], "\u0A51", ["\u0A70", "\u0A71"], "\u0A75", ["\u0A81", "\u0A82"], "\u0ABC", ["\u0AC1", "\u0AC5"], ["\u0AC7", "\u0AC8"], "\u0ACD", ["\u0AE2", "\u0AE3"], ["\u0AFA", "\u0AFF"], "\u0B01", "\u0B3C", "\u0B3F", ["\u0B41", "\u0B44"], "\u0B4D", "\u0B56", ["\u0B62", "\u0B63"], "\u0B82", "\u0BC0", "\u0BCD", "\u0C00", "\u0C04", ["\u0C3E", "\u0C40"], ["\u0C46", "\u0C48"], ["\u0C4A", "\u0C4D"], ["\u0C55", "\u0C56"], ["\u0C62", "\u0C63"], "\u0C81", "\u0CBC", "\u0CBF", "\u0CC6", ["\u0CCC", "\u0CCD"], ["\u0CE2", "\u0CE3"], ["\u0D00", "\u0D01"], ["\u0D3B", "\u0D3C"], ["\u0D41", "\u0D44"], "\u0D4D", ["\u0D62", "\u0D63"], "\u0DCA", ["\u0DD2", "\u0DD4"], "\u0DD6", "\u0E31", ["\u0E34", "\u0E3A"], ["\u0E47", "\u0E4E"], "\u0EB1", ["\u0EB4", "\u0EB9"], ["\u0EBB", "\u0EBC"], ["\u0EC8", "\u0ECD"], ["\u0F18", "\u0F19"], "\u0F35", "\u0F37", "\u0F39", ["\u0F71", "\u0F7E"], ["\u0F80", "\u0F84"], ["\u0F86", "\u0F87"], ["\u0F8D", "\u0F97"], ["\u0F99", "\u0FBC"], "\u0FC6", ["\u102D", "\u1030"], ["\u1032", "\u1037"], ["\u1039", "\u103A"], ["\u103D", "\u103E"], ["\u1058", "\u1059"], ["\u105E", "\u1060"], ["\u1071", "\u1074"], "\u1082", ["\u1085", "\u1086"], "\u108D", "\u109D", ["\u135D", "\u135F"], ["\u1712", "\u1714"], ["\u1732", "\u1734"], ["\u1752", "\u1753"], ["\u1772", "\u1773"], ["\u17B4", "\u17B5"], ["\u17B7", "\u17BD"], "\u17C6", ["\u17C9", "\u17D3"], "\u17DD", ["\u180B", "\u180D"], ["\u1885", "\u1886"], "\u18A9", ["\u1920", "\u1922"], ["\u1927", "\u1928"], "\u1932", ["\u1939", "\u193B"], ["\u1A17", "\u1A18"], "\u1A1B", "\u1A56", ["\u1A58", "\u1A5E"], "\u1A60", "\u1A62", ["\u1A65", "\u1A6C"], ["\u1A73", "\u1A7C"], "\u1A7F", ["\u1AB0", "\u1ABD"], ["\u1B00", "\u1B03"], "\u1B34", ["\u1B36", "\u1B3A"], "\u1B3C", "\u1B42", ["\u1B6B", "\u1B73"], ["\u1B80", "\u1B81"], ["\u1BA2", "\u1BA5"], ["\u1BA8", "\u1BA9"], ["\u1BAB", "\u1BAD"], "\u1BE6", ["\u1BE8", "\u1BE9"], "\u1BED", ["\u1BEF", "\u1BF1"], ["\u1C2C", "\u1C33"], ["\u1C36", "\u1C37"], ["\u1CD0", "\u1CD2"], ["\u1CD4", "\u1CE0"], ["\u1CE2", "\u1CE8"], "\u1CED", "\u1CF4", ["\u1CF8", "\u1CF9"], ["\u1DC0", "\u1DF9"], ["\u1DFB", "\u1DFF"], ["\u20D0", "\u20DC"], "\u20E1", ["\u20E5", "\u20F0"], ["\u2CEF", "\u2CF1"], "\u2D7F", ["\u2DE0", "\u2DFF"], ["\u302A", "\u302D"], ["\u3099", "\u309A"], "\uA66F", ["\uA674", "\uA67D"], ["\uA69E", "\uA69F"], ["\uA6F0", "\uA6F1"], "\uA802", "\uA806", "\uA80B", ["\uA825", "\uA826"], ["\uA8C4", "\uA8C5"], ["\uA8E0", "\uA8F1"], "\uA8FF", ["\uA926", "\uA92D"], ["\uA947", "\uA951"], ["\uA980", "\uA982"], "\uA9B3", ["\uA9B6", "\uA9B9"], "\uA9BC", "\uA9E5", ["\uAA29", "\uAA2E"], ["\uAA31", "\uAA32"], ["\uAA35", "\uAA36"], "\uAA43", "\uAA4C", "\uAA7C", "\uAAB0", ["\uAAB2", "\uAAB4"], ["\uAAB7", "\uAAB8"], ["\uAABE", "\uAABF"], "\uAAC1", ["\uAAEC", "\uAAED"], "\uAAF6", "\uABE5", "\uABE8", "\uABED", "\uFB1E", ["\uFE00", "\uFE0F"], ["\uFE20", "\uFE2F"]], false, false), - peg$c587 = /^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/, - peg$c588 = peg$classExpectation([["0", "9"], ["\u0660", "\u0669"], ["\u06F0", "\u06F9"], ["\u07C0", "\u07C9"], ["\u0966", "\u096F"], ["\u09E6", "\u09EF"], ["\u0A66", "\u0A6F"], ["\u0AE6", "\u0AEF"], ["\u0B66", "\u0B6F"], ["\u0BE6", "\u0BEF"], ["\u0C66", "\u0C6F"], ["\u0CE6", "\u0CEF"], ["\u0D66", "\u0D6F"], ["\u0DE6", "\u0DEF"], ["\u0E50", "\u0E59"], ["\u0ED0", "\u0ED9"], ["\u0F20", "\u0F29"], ["\u1040", "\u1049"], ["\u1090", "\u1099"], ["\u17E0", "\u17E9"], ["\u1810", "\u1819"], ["\u1946", "\u194F"], ["\u19D0", "\u19D9"], ["\u1A80", "\u1A89"], ["\u1A90", "\u1A99"], ["\u1B50", "\u1B59"], ["\u1BB0", "\u1BB9"], ["\u1C40", "\u1C49"], ["\u1C50", "\u1C59"], ["\uA620", "\uA629"], ["\uA8D0", "\uA8D9"], ["\uA900", "\uA909"], ["\uA9D0", "\uA9D9"], ["\uA9F0", "\uA9F9"], ["\uAA50", "\uAA59"], ["\uABF0", "\uABF9"], ["\uFF10", "\uFF19"]], false, false), - peg$c589 = /^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/, - peg$c590 = peg$classExpectation([["\u16EE", "\u16F0"], ["\u2160", "\u2182"], ["\u2185", "\u2188"], "\u3007", ["\u3021", "\u3029"], ["\u3038", "\u303A"], ["\uA6E6", "\uA6EF"]], false, false), - peg$c591 = /^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/, - peg$c592 = peg$classExpectation(["_", ["\u203F", "\u2040"], "\u2054", ["\uFE33", "\uFE34"], ["\uFE4D", "\uFE4F"], "\uFF3F"], false, false), - peg$c593 = /^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, - peg$c594 = peg$classExpectation([" ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false), - peg$c595 = peg$otherExpectation("whitespace"), - peg$c596 = "\t", - peg$c597 = peg$literalExpectation("\t", false), - peg$c598 = "\x0B", - peg$c599 = peg$literalExpectation("\x0B", false), - peg$c600 = "\f", - peg$c601 = peg$literalExpectation("\f", false), - peg$c602 = " ", - peg$c603 = peg$literalExpectation(" ", false), - peg$c604 = "\xA0", - peg$c605 = peg$literalExpectation("\xA0", false), - peg$c606 = "\uFEFF", - peg$c607 = peg$literalExpectation("\uFEFF", false), - peg$c608 = /^[\n\r\u2028\u2029]/, - peg$c609 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false), - peg$c610 = peg$otherExpectation("comment"), - peg$c615 = "//", - peg$c616 = peg$literalExpectation("//", false), - - peg$currPos = 0, - peg$savedPos = 0, - peg$posDetailsCache = [{ line: 1, column: 1 }], - peg$maxFailPos = 0, - peg$maxFailExpected = [], - peg$silentFails = 0, - - peg$result; - - if ("startRule" in options) { - if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); - } - - peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; - } - - function text() { - return input.substring(peg$savedPos, peg$currPos); - } - - function peg$literalExpectation(text, ignoreCase) { - return { type: "literal", text: text, ignoreCase: ignoreCase }; - } - - function peg$classExpectation(parts, inverted, ignoreCase) { - return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase }; - } - - function peg$anyExpectation() { - return { type: "any" }; - } - - function peg$endExpectation() { - return { type: "end" }; - } - - function peg$otherExpectation(description) { - return { type: "other", description: description }; - } - - function peg$computePosDetails(pos) { - var details = peg$posDetailsCache[pos], p; - - if (details) { - return details; - } else { - p = pos - 1; - while (!peg$posDetailsCache[p]) { - p--; - } - - details = peg$posDetailsCache[p]; - details = { - line: details.line, - column: details.column - }; - - while (p < pos) { - if (input.charCodeAt(p) === 10) { - details.line++; - details.column = 1; - } else { - details.column++; - } - - p++; - } - - peg$posDetailsCache[pos] = details; - return details; - } - } - - function peg$computeLocation(startPos, endPos) { - var startPosDetails = peg$computePosDetails(startPos), - endPosDetails = peg$computePosDetails(endPos); - - return { - start: { - offset: startPos, - line: startPosDetails.line, - column: startPosDetails.column - }, - end: { - offset: endPos, - line: endPosDetails.line, - column: endPosDetails.column - } - }; - } - - function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { return; } - - if (peg$currPos > peg$maxFailPos) { - peg$maxFailPos = peg$currPos; - peg$maxFailExpected = []; - } - - peg$maxFailExpected.push(expected); - } - - function peg$buildStructuredError(expected, found, location) { - return new peg$SyntaxError( - peg$SyntaxError.buildMessage(expected, found), - expected, - found, - location - ); - } - - function peg$parsestart() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseScope(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEOF(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c0(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseSeq(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEOF(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseScope() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseDecl(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseDecl(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseSeq(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c2(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSeq() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseOperation(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseSeqTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseSeqTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSeqTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePipe(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseOperation(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c4(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDecl() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parseConstDecl(); - if (s1 === peg$FAILED) { - s1 = peg$parseFuncDecl(); - if (s1 === peg$FAILED) { - s1 = peg$parseOpDecl(); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseConstDecl() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c6) { - s1 = peg$c6; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c7); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s5 = peg$c8; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseConditionalExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c10(s3, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c11) { - s1 = peg$c11; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c12); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 === peg$FAILED) { - s3 = peg$parseQuotedString(); - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s5 = peg$c8; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseType(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c13(s3, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseFuncDecl() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c14) { - s1 = peg$c14; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c15); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierNames(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s9 = peg$c18; - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s11 = peg$c20; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parse__(); - if (s12 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s13 = peg$c16; - peg$currPos++; - } else { - s13 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s13 !== peg$FAILED) { - s14 = peg$parse__(); - if (s14 !== peg$FAILED) { - s15 = peg$parseConditionalExpr(); - if (s15 !== peg$FAILED) { - s16 = peg$parse__(); - if (s16 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s17 = peg$c18; - peg$currPos++; - } else { - s17 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s17 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c22(s3, s7, s15); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOpDecl() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c23) { - s1 = peg$c23; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c24); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierNames(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s9 = peg$c18; - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s11 = peg$c20; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parse__(); - if (s12 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s13 = peg$c16; - peg$currPos++; - } else { - s13 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s13 !== peg$FAILED) { - s14 = peg$parse__(); - if (s14 !== peg$FAILED) { - s15 = peg$parseOpDeclBody(); - if (s15 !== peg$FAILED) { - s16 = peg$parse__(); - if (s16 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s17 = peg$c18; - peg$currPos++; - } else { - s17 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s17 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c25(s3, s7, s15); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOpDeclBody() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseScope(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c0(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSeq(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseOperation() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c26) { - s1 = peg$c26; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c27); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseLeg(); - if (s5 !== peg$FAILED) { - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseLeg(); - } - } else { - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c28(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c29) { - s1 = peg$c29; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c30); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s6 = []; - s7 = peg$parseSwitchLeg(); - if (s7 !== peg$FAILED) { - while (s7 !== peg$FAILED) { - s6.push(s7); - s7 = peg$parseSwitchLeg(); - } - } else { - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c31(s3, s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c29) { - s1 = peg$c29; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c30); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseSwitchLeg(); - if (s5 !== peg$FAILED) { - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseSwitchLeg(); - } - } else { - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c32(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c33) { - s1 = peg$c33; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c34); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseFromLeg(); - if (s5 !== peg$FAILED) { - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseFromLeg(); - } - } else { - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c35(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseScope(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c36(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseOperator(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseOpAssignment(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEndOfOp(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c37(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$currPos; - s3 = peg$parseFunction(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEndOfOp(); - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAggregation(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEndOfOp(); - peg$silentFails--; - if (s4 !== peg$FAILED) { - peg$currPos = s3; - s3 = void 0; - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c37(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c38) { - s1 = peg$c38; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c39); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseSearchBoolean(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c40(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSearchBoolean(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c41(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseCast(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c42(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c41(s1); - } - s0 = s1; - } - } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseEndOfOp() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePipe(); - if (s2 === peg$FAILED) { - s2 = peg$parseSearchKeywordGuard(); - if (s2 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s2 = peg$c18; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s2 === peg$FAILED) { - s2 = peg$parseEOF(); - } - } - } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePipe() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 124) { - s1 = peg$c45; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c46); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 123) { - s3 = peg$c47; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s3 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 91) { - s3 = peg$c49; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLeg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSeq(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSwitchLeg() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseCase(); - if (s2 !== peg$FAILED) { - s3 = peg$parseLeg(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c51(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseCase() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c52) { - s1 = peg$c52; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c53); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 7) === peg$c55) { - s1 = peg$c55; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c56); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFromLeg() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseFromSource(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s5 = peg$c43; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSeq(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c58(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFromSource() { - var s0; - - s0 = peg$parseFile(); - if (s0 === peg$FAILED) { - s0 = peg$parseGet(); - if (s0 === peg$FAILED) { - s0 = peg$parsePool(); - if (s0 === peg$FAILED) { - s0 = peg$parsePassOp(); - } - } - } - - return s0; - } - - function peg$parseExprGuard() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c43) { - s4 = peg$c43; - peg$currPos += 2; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseComparator(); - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = peg$parseAdditiveOperator(); - if (s2 === peg$FAILED) { - s2 = peg$parseMultiplicativeOperator(); - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s2 = peg$c20; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s2 = peg$c16; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 91) { - s2 = peg$c49; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 126) { - s2 = peg$c59; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c60); } - } - } - } - } - } - } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseComparator() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c61) { - s1 = peg$c61; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c63) { - s1 = peg$c63; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c64); } - } - if (s1 === peg$FAILED) { - s1 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c65) { - s2 = peg$c65; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c66); } - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c67) { - s1 = peg$c67; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c68); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 60) { - s1 = peg$c69; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c71) { - s1 = peg$c71; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c72); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s1 = peg$c73; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c74); } - } - } - } - } - } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseSearchBoolean() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseSearchAnd(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseSearchOrTerm(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseSearchOrTerm(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSearchOrTerm() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseOrToken(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSearchAnd(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c77(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSearchAnd() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseSearchFactor(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAndToken(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - peg$silentFails++; - s7 = peg$parseOrToken(); - if (s7 === peg$FAILED) { - s7 = peg$parseSearchKeywordGuard(); - } - peg$silentFails--; - if (s7 === peg$FAILED) { - s6 = void 0; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseSearchFactor(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c78(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAndToken(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - peg$silentFails++; - s7 = peg$parseOrToken(); - if (s7 === peg$FAILED) { - s7 = peg$parseSearchKeywordGuard(); - } - peg$silentFails--; - if (s7 === peg$FAILED) { - s6 = void 0; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseSearchFactor(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c78(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSearchKeywordGuard() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parseFromSource(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s3 = peg$c43; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s1 = [s1, s2, s3, s4]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseCase(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSearchFactor() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$currPos; - s2 = peg$parseNotToken(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s2 = peg$c79; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c80); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseSearchFactor(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c81(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseSearchBoolean(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseSearchExpr(); - } - } - - return s0; - } - - function peg$parseSearchExpr() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$parseRegexp(); - if (s0 === peg$FAILED) { - s0 = peg$parseGlob(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSearchValue(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseExprGuard(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseGlob(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c82(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseExprGuard(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c85(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseSearchPredicate(); - } - } - } - } - - return s0; - } - - function peg$parseSearchPredicate() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseAdditiveExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseComparator(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c86(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseFunction(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c87(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSearchValue() { - var s0, s1, s2; - - s0 = peg$parseLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseRegexpPattern(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseKeyWord(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c88(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseGlob() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseGlobPattern(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c89(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseRegexp() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseRegexpPattern(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c90(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseAggregation() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseSummarize(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseGroupByKeys(); - if (s2 !== peg$FAILED) { - s3 = peg$parseLimitArg(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c91(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSummarize(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAggAssignments(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseGroupByKeys(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseLimitArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c92(s2, s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSummarize() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 9) === peg$c93) { - s1 = peg$c93; - peg$currPos += 9; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c94); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGroupByKeys() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseByToken(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseFlexAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c95(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLimitArg() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c96) { - s2 = peg$c96; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c97); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c98) { - s4 = peg$c98; - peg$currPos += 6; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c99); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseUInt(); - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c100(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c102(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFlexAssignment() { - var s0, s1; - - s0 = peg$parseAssignment(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c103(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFlexAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseFlexAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseFlexAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseFlexAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAggAssignment() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseDerefExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c107) { - s3 = peg$c107; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c108); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAgg(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c109(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseAgg(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c110(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseAgg() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseFuncGuard(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAggName(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseOverExpr(); - if (s6 === peg$FAILED) { - s6 = peg$parseConditionalExpr(); - } - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - s9 = peg$currPos; - peg$silentFails++; - s10 = peg$currPos; - s11 = peg$parse__(); - if (s11 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s12 = peg$c111; - peg$currPos++; - } else { - s12 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s12 !== peg$FAILED) { - s11 = [s11, s12]; - s10 = s11; - } else { - peg$currPos = s10; - s10 = peg$FAILED; - } - } else { - peg$currPos = s10; - s10 = peg$FAILED; - } - peg$silentFails--; - if (s10 === peg$FAILED) { - s9 = void 0; - } else { - peg$currPos = s9; - s9 = peg$FAILED; - } - if (s9 !== peg$FAILED) { - s10 = peg$parseWhereClause(); - if (s10 === peg$FAILED) { - s10 = null; - } - if (s10 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c113(s2, s6, s10); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAggName() { - var s0; - - s0 = peg$parseIdentifierName(); - if (s0 === peg$FAILED) { - s0 = peg$parseAndToken(); - if (s0 === peg$FAILED) { - s0 = peg$parseOrToken(); - } - } - - return s0; - } - - function peg$parseWhereClause() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c114) { - s2 = peg$c114; - peg$currPos += 5; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c115); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLogicalOrExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAggAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseAggAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAggAssignment(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAggAssignment(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c116(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOperator() { - var s0; - - s0 = peg$parseAssertOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseSortOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseTopOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseCutOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseDropOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseHeadOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseTailOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseWhereOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseUniqOp(); - if (s0 === peg$FAILED) { - s0 = peg$parsePutOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseRenameOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseFuseOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseShapeOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseJoinOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseSampleOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseSQLOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseFromOp(); - if (s0 === peg$FAILED) { - s0 = peg$parsePassOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseExplodeOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseMergeOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseOverOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseYieldOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseLoadOp(); - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseAssertOp() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c117) { - s1 = peg$c117; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c118); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c119(s4); - } - s3 = s4; - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c120(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSortOp() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c121) { - s1 = peg$c121; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c122); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseSortArgs(); - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseExprs(); - if (s6 !== peg$FAILED) { - peg$savedPos = s4; - s5 = peg$c123(s3, s6); - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c124(s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSortArgs() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = []; - s2 = peg$currPos; - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSortArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s2; - s3 = peg$c37(s4); - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$currPos; - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSortArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s2; - s3 = peg$c37(s4); - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c125(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseSortArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c126) { - s1 = peg$c126; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c127); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c128(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c129) { - s1 = peg$c129; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c130); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c131) { - s4 = peg$c131; - peg$currPos += 5; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c132); } - } - if (s4 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c133) { - s4 = peg$c133; - peg$currPos += 4; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c134); } - } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c75(); - } - s3 = s4; - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c135(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTopOp() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c136) { - s1 = peg$c136; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c137); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseUInt(); - if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c138(s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c139) { - s6 = peg$c139; - peg$currPos += 6; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c140); } - } - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$currPos; - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseFieldExprs(); - if (s7 !== peg$FAILED) { - peg$savedPos = s5; - s6 = peg$c141(s3, s4, s7); - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c142(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseCutOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c143) { - s1 = peg$c143; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c144); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseFlexAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c145(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDropOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c146) { - s1 = peg$c146; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c147); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseFieldExprs(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c148(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHeadOp() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c149) { - s1 = peg$c149; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c150); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEndOfOp(); - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c151(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c149) { - s1 = peg$c149; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c150); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c152(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTailOp() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c153) { - s1 = peg$c153; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c154); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEndOfOp(); - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c155(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c153) { - s1 = peg$c153; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c154); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c156(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseWhereOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c114) { - s1 = peg$c114; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c115); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c157(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseUniqOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c158) { - s1 = peg$c158; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c159); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c160) { - s3 = peg$c160; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c161); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c162(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c158) { - s1 = peg$c158; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c159); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c163(); - } - s0 = s1; - } - - return s0; - } - - function peg$parsePutOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c164) { - s1 = peg$c164; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c165); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c166(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRenameOp() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c167) { - s1 = peg$c167; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c168); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseAssignment(); - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$currPos; - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseAssignment(); - if (s9 !== peg$FAILED) { - peg$savedPos = s5; - s6 = peg$c169(s3, s9); - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$currPos; - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseAssignment(); - if (s9 !== peg$FAILED) { - peg$savedPos = s5; - s6 = peg$c169(s3, s9); - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c170(s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFuseOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c171) { - s1 = peg$c171; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c172); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEOKW(); - peg$silentFails--; - if (s4 !== peg$FAILED) { - peg$currPos = s3; - s3 = void 0; - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c173(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseShapeOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c174) { - s1 = peg$c174; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c175); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEOKW(); - peg$silentFails--; - if (s4 !== peg$FAILED) { - peg$currPos = s3; - s3 = void 0; - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c176(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseJoinOp() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; - - s0 = peg$currPos; - s1 = peg$parseJoinStyle(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c177) { - s2 = peg$c177; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c178); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseJoinRightInput(); - if (s3 !== peg$FAILED) { - s4 = peg$parseON(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseJoinKey(); - if (s6 !== peg$FAILED) { - s7 = peg$currPos; - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s9 = peg$c8; - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - s11 = peg$parseJoinKey(); - if (s11 !== peg$FAILED) { - s8 = [s8, s9, s10, s11]; - s7 = s8; - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$currPos; - s9 = peg$parse_(); - if (s9 !== peg$FAILED) { - s10 = peg$parseFlexAssignments(); - if (s10 !== peg$FAILED) { - s9 = [s9, s10]; - s8 = s9; - } else { - peg$currPos = s8; - s8 = peg$FAILED; - } - } else { - peg$currPos = s8; - s8 = peg$FAILED; - } - if (s8 === peg$FAILED) { - s8 = null; - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c179(s1, s3, s6, s7, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseJoinStyle() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c180) { - s1 = peg$c180; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c181); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c182(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c183) { - s1 = peg$c183; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c184); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c186) { - s1 = peg$c186; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c187); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c188(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c189) { - s1 = peg$c189; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c190); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c191(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - } - s0 = s1; - } - } - } - } - - return s0; - } - - function peg$parseJoinRightInput() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s2 = peg$c16; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSeq(); - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseJoinKey() { - var s0, s1, s2, s3; - - s0 = peg$parseDerefExpr(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseConditionalExpr(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s3 = peg$c18; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSampleOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c193) { - s1 = peg$c193; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c194); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseSampleExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c195(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOpAssignment() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseAssignments(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c196(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseSampleExpr() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseDerefExpr(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c197(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c198(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseLoadOp() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c199) { - s1 = peg$c199; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c200); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolNameString(); - if (s3 !== peg$FAILED) { - s4 = peg$parsePoolBranch(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseAuthorArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseMessageArg(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseMetaArg(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c201(s3, s4, s5, s6, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAuthorArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c202) { - s2 = peg$c202; - peg$currPos += 6; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c203); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseQuotedString(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMessageArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c205) { - s2 = peg$c205; - peg$currPos += 7; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c206); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseQuotedString(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMetaArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c207) { - s2 = peg$c207; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c208); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseQuotedString(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolBranch() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 64) { - s1 = peg$c209; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c210); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolIdentifier(); - if (s2 === peg$FAILED) { - s2 = peg$parseQuotedString(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c211(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFromOp() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseFromAny(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c212(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseFromAny() { - var s0; - - s0 = peg$parseFile(); - if (s0 === peg$FAILED) { - s0 = peg$parseGet(); - if (s0 === peg$FAILED) { - s0 = peg$parseFrom(); - } - } - - return s0; - } - - function peg$parseFile() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c213) { - s1 = peg$c213; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c214); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePath(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFormatArg(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSortKeyArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c215(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFrom() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c33) { - s1 = peg$c33; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c34); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolBody(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c216(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePool() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c217) { - s1 = peg$c217; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c218); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolBody(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c216(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolBody() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parsePoolSpec(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolAt(); - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c219(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGet() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c220) { - s1 = peg$c220; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c221); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePath(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFormatArg(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSortKeyArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseMethodArg(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseHeadersArg(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parseBodyArg(); - if (s8 === peg$FAILED) { - s8 = null; - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c222(s3, s4, s5, s6, s7, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMethodArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c223) { - s2 = peg$c223; - peg$currPos += 6; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c224); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseIdentifierName(); - if (s4 === peg$FAILED) { - s4 = peg$parseQuotedString(); - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHeadersArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c225) { - s2 = peg$c225; - peg$currPos += 7; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c226); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseRecord(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseBodyArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c227) { - s2 = peg$c227; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c228); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseIdentifierName(); - if (s4 === peg$FAILED) { - s4 = peg$parseQuotedString(); - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePath() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parseQuotedString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c229(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - if (peg$c230.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c231); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c230.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c231); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c232(); - } - s0 = s1; - } - - return s0; - } - - function peg$parsePoolAt() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c233) { - s2 = peg$c233; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c234); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseKSUID(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseKSUID() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - if (peg$c236.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c237); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c236.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c237); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parsePoolSpec() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parsePoolName(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolCommit(); - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolMeta(); - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseTapArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c238(s1, s2, s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parsePoolMeta(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c239(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parsePoolCommit() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 64) { - s1 = peg$c209; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c210); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolNameString(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c240(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolMeta() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c20; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolIdentifier(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c241(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolName() { - var s0, s1, s2, s3; - - s0 = peg$parseRegexp(); - if (s0 === peg$FAILED) { - s0 = peg$parseGlob(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseExprGuard(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c242(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseQuotedString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c243(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parsePoolNameString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c244(s1); - } - s0 = s1; - } - } - } - } - - return s0; - } - - function peg$parsePoolNameString() { - var s0; - - s0 = peg$parsePoolIdentifier(); - if (s0 === peg$FAILED) { - s0 = peg$parseKSUID(); - if (s0 === peg$FAILED) { - s0 = peg$parseQuotedString(); - } - } - - return s0; - } - - function peg$parsePoolIdentifier() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIdentifierStart(); - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c111; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseIdentifierRest(); - if (s3 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseIdentifierRest(); - if (s3 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSortKeyArg() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c245) { - s2 = peg$c245; - peg$currPos += 5; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c246); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFieldExprs(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOrderSuffix(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c247(s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTapArg() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c248) { - s2 = peg$c248; - peg$currPos += 3; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c249); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c250(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c251(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFormatArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c252) { - s2 = peg$c252; - peg$currPos += 6; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c253); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseIdentifierName(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOrderSuffix() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c254) { - s1 = peg$c254; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c255); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c257) { - s1 = peg$c257; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c258); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c259(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - } - } - - return s0; - } - - function peg$parsePassOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c260) { - s1 = peg$c260; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c261); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c262(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseExplodeOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 7) === peg$c263) { - s1 = peg$c263; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c264); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - s4 = peg$parseTypeArg(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAsArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c265(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMergeOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c266) { - s1 = peg$c266; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c267); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c268(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOverOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c269) { - s1 = peg$c269; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c270); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLocals(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseLateral(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c271(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLateral() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseScope(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c0(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseSeq(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseLocals() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c96) { - s2 = peg$c96; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c97); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLocalsAssignment(); - if (s4 !== peg$FAILED) { - s5 = []; - s6 = peg$currPos; - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s8 = peg$c104; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseLocalsAssignment(); - if (s10 !== peg$FAILED) { - peg$savedPos = s6; - s7 = peg$c272(s4, s10); - s6 = s7; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - while (s6 !== peg$FAILED) { - s5.push(s6); - s6 = peg$currPos; - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s8 = peg$c104; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseLocalsAssignment(); - if (s10 !== peg$FAILED) { - peg$savedPos = s6; - s7 = peg$c272(s4, s10); - s6 = s7; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLocalsAssignment() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s4 = peg$c8; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseConditionalExpr(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c273(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseYieldOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c274) { - s1 = peg$c274; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c275); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c276(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseBY(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseType(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c277(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAsArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseAS(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseDerefExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c278(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFieldExprs() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseDerefExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseDerefExpr(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseDerefExpr(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c280(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c272(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c272(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAssignment() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseDerefExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c107) { - s3 = peg$c107; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c108); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c282(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseExpr() { - var s0; - - s0 = peg$parseConditionalExpr(); - - return s0; - } - - function peg$parseConditionalExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10; - - s0 = peg$currPos; - s1 = peg$parseLogicalOrExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 63) { - s4 = peg$c283; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c284); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseConditionalExpr(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s8 = peg$c20; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseConditionalExpr(); - if (s10 !== peg$FAILED) { - s3 = [s3, s4, s5, s6, s7, s8, s9, s10]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c285(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLogicalOrExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseLogicalAndExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOrToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseLogicalAndExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOrToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseLogicalAndExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLogicalAndExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseComparisonExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAndToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseComparisonExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAndToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseComparisonExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseComparisonExpr() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parseAdditiveExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseComparator(); - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAdditiveExpr(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 126) { - s5 = peg$c59; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c60); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s4; - s5 = peg$c288(); - } - s4 = s5; - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseRegexp(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c289(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAdditiveExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseMultiplicativeExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseMultiplicativeExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseMultiplicativeExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAdditiveOperator() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 43) { - s1 = peg$c290; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c291); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseMultiplicativeExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseNotExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseMultiplicativeOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseNotExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseMultiplicativeOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseNotExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMultiplicativeOperator() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c294; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 37) { - s1 = peg$c296; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c297); } - } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseNotExpr() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$currPos; - s2 = peg$parseNotToken(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s2 = peg$c79; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c80); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseNotExpr(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c298(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseNegationExpr(); - } - - return s0; - } - - function peg$parseNegationExpr() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseLiteral(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s2 = peg$c292; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFuncExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c299(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseFuncExpr(); - } - - return s0; - } - - function peg$parseFuncExpr() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseCast(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseFunction(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseDerefExpr(); - } - } - - return s0; - } - - function peg$parseFuncGuard() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseNotFuncs(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s1 = [s1, s2, s3]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNotFuncs() { - var s0; - - if (input.substr(peg$currPos, 3) === peg$c300) { - s0 = peg$c300; - peg$currPos += 3; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c301); } - } - if (s0 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c302) { - s0 = peg$c302; - peg$currPos += 6; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c303); } - } - } - - return s0; - } - - function peg$parseCast() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseTypeLiteral(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOverExpr(); - if (s5 === peg$FAILED) { - s5 = peg$parseConditionalExpr(); - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s7 = peg$c18; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c304(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFunction() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16; - - s0 = peg$parseGrep(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c305) { - s1 = peg$c305; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c306); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseRegexpPattern(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseConditionalExpr(); - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s11 = peg$c18; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parseWhereClause(); - if (s12 === peg$FAILED) { - s12 = null; - } - if (s12 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c307(s5, s9, s12); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 14) === peg$c308) { - s1 = peg$c308; - peg$currPos += 14; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c309); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseRegexpPattern(); - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s11 = peg$c104; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parse__(); - if (s12 !== peg$FAILED) { - s13 = peg$parseConditionalExpr(); - if (s13 !== peg$FAILED) { - s14 = peg$parse__(); - if (s14 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s15 = peg$c18; - peg$currPos++; - } else { - s15 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s15 !== peg$FAILED) { - s16 = peg$parseWhereClause(); - if (s16 === peg$FAILED) { - s16 = null; - } - if (s16 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c310(s5, s9, s13, s16); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseFuncGuard(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIdentifierName(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseFunctionArgs(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parseWhereClause(); - if (s9 === peg$FAILED) { - s9 = null; - } - if (s9 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c311(s2, s6, s9); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - - return s0; - } - - function peg$parseFunctionArgs() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseOverExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c312(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$parseOptionalExprs(); - } - - return s0; - } - - function peg$parseGrep() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c313) { - s1 = peg$c313; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c314); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseRegexp(); - if (s5 === peg$FAILED) { - s5 = peg$parseGlob(); - if (s5 === peg$FAILED) { - s5 = peg$parseConditionalExpr(); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 44) { - s8 = peg$c104; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseOverExpr(); - if (s10 === peg$FAILED) { - s10 = peg$parseConditionalExpr(); - } - if (s10 !== peg$FAILED) { - s11 = peg$parse__(); - if (s11 !== peg$FAILED) { - s8 = [s8, s9, s10, s11]; - s7 = s8; - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c315(s5, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOptionalExprs() { - var s0, s1; - - s0 = peg$parseExprs(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseExprs() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseConditionalExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseConditionalExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDerefExpr() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parsePrimary(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDeref() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAdditiveExpr(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s4 = peg$c20; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAdditiveExpr(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s7 = peg$c318; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c320(s2, s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveExpr(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s6 = peg$c318; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c321(s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseConditionalExpr(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s3 = peg$c318; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c322(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c111; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIdentifier(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c323(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - - return s0; - } - - function peg$parsePrimary() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$parseRecord(); - if (s0 === peg$FAILED) { - s0 = peg$parseArray(); - if (s0 === peg$FAILED) { - s0 = peg$parseSet(); - if (s0 === peg$FAILED) { - s0 = peg$parseMap(); - if (s0 === peg$FAILED) { - s0 = peg$parseLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseIdentifier(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseOverExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseOverExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c269) { - s1 = peg$c269; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c270); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLocals(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 124) { - s6 = peg$c45; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c46); } - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - s8 = peg$parseSeq(); - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c324(s3, s4, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRecord() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 123) { - s1 = peg$c47; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseRecordElems(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s5 = peg$c325; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c327(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRecordElems() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseRecordElem(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseRecordElemTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseRecordElemTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseRecordElemTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseRecordElem(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c328(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRecordElem() { - var s0; - - s0 = peg$parseSpread(); - if (s0 === peg$FAILED) { - s0 = peg$parseField(); - if (s0 === peg$FAILED) { - s0 = peg$parseIdentifier(); - } - } - - return s0; - } - - function peg$parseSpread() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c329) { - s1 = peg$c329; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c330); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c331(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseField() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseFieldName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c332(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseArray() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseVectorElems(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c318; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c333(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSet() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c334) { - s1 = peg$c334; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c335); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseVectorElems(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c336) { - s5 = peg$c336; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c337); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c338(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseVectorElems() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseVectorElem(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseVectorElem(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseVectorElem(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseVectorElem() { - var s0, s1; - - s0 = peg$parseSpread(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c339(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseMap() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c340) { - s1 = peg$c340; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c341); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseEntries(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c342) { - s5 = peg$c342; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c343); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c344(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEntries() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseEntry(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseEntryTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseEntryTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseEntryTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEntry(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c345(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEntry() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c346(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLOp() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - s1 = peg$parseSQLSelect(); - if (s1 !== peg$FAILED) { - s2 = peg$parseSQLFrom(); - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseSQLJoins(); - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseSQLWhere(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSQLGroupBy(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseSQLHaving(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLOrderBy(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parseSQLLimit(); - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c347(s1, s2, s3, s4, s5, s6, s7, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLSelect() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseSELECT(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 42) { - s3 = peg$c83; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSELECT(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseSQLAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c348(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSQLAssignment() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseAS(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseDerefExpr(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c349(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseSQLAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLFrom() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseFROM(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - s5 = peg$parseSQLAlias(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c350(s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseFROM(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 42) { - s4 = peg$c83; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSQLAlias() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseAS(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseDerefExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parseSQLTokenSentinels(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseDerefExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSQLJoins() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parseSQLJoin(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parseSQLJoin(); - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c351(s1, s4); - } - s3 = s4; - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parseSQLJoin(); - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c351(s1, s4); - } - s3 = s4; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLJoin() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14; - - s0 = peg$currPos; - s1 = peg$parseSQLJoinStyle(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseJOIN(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - s6 = peg$parseSQLAlias(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parse_(); - if (s7 !== peg$FAILED) { - s8 = peg$parseON(); - if (s8 !== peg$FAILED) { - s9 = peg$parse_(); - if (s9 !== peg$FAILED) { - s10 = peg$parseJoinKey(); - if (s10 !== peg$FAILED) { - s11 = peg$parse__(); - if (s11 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s12 = peg$c8; - peg$currPos++; - } else { - s12 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s12 !== peg$FAILED) { - s13 = peg$parse__(); - if (s13 !== peg$FAILED) { - s14 = peg$parseJoinKey(); - if (s14 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c352(s1, s5, s6, s10, s14); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLJoinStyle() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseANTI(); - if (s2 === peg$FAILED) { - s2 = peg$parseINNER(); - if (s2 === peg$FAILED) { - s2 = peg$parseLEFT(); - if (s2 === peg$FAILED) { - s2 = peg$parseRIGHT(); - } - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c353(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseSQLWhere() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseWHERE(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLogicalOrExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLGroupBy() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseGROUP(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseBY(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseFieldExprs(); - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c95(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLHaving() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseHAVING(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLogicalOrExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLOrderBy() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseORDER(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseBY(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseExprs(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLOrder(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c354(s6, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLOrder() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseASC(); - if (s2 === peg$FAILED) { - s2 = peg$parseDESC(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c355(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseSQLLimit() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseLIMIT(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseUInt(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c356(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c102(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseSELECT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6).toLowerCase() === peg$c302) { - s1 = input.substr(peg$currPos, 6); - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c357); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c358(); - } - s0 = s1; - - return s0; - } - - function peg$parseAS() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2).toLowerCase() === peg$c359) { - s1 = input.substr(peg$currPos, 2); - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c360); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c361(); - } - s0 = s1; - - return s0; - } - - function peg$parseFROM() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c33) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c362); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c363(); - } - s0 = s1; - - return s0; - } - - function peg$parseJOIN() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c177) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c364); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c365(); - } - s0 = s1; - - return s0; - } - - function peg$parseWHERE() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c114) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c366); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c367(); - } - s0 = s1; - - return s0; - } - - function peg$parseGROUP() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c368) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c369); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c370(); - } - s0 = s1; - - return s0; - } - - function peg$parseBY() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2).toLowerCase() === peg$c371) { - s1 = input.substr(peg$currPos, 2); - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c372); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c373(); - } - s0 = s1; - - return s0; - } - - function peg$parseHAVING() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6).toLowerCase() === peg$c374) { - s1 = input.substr(peg$currPos, 6); - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c375); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c376(); - } - s0 = s1; - - return s0; - } - - function peg$parseORDER() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c245) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c377); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c378(); - } - s0 = s1; - - return s0; - } - - function peg$parseON() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2).toLowerCase() === peg$c379) { - s1 = input.substr(peg$currPos, 2); - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c380); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c381(); - } - s0 = s1; - - return s0; - } - - function peg$parseLIMIT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c382) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c383); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c384(); - } - s0 = s1; - - return s0; - } - - function peg$parseASC() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3).toLowerCase() === peg$c385) { - s1 = input.substr(peg$currPos, 3); - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c386); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - - return s0; - } - - function peg$parseDESC() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c387) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c388); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c259(); - } - s0 = s1; - - return s0; - } - - function peg$parseANTI() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c180) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c389); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c182(); - } - s0 = s1; - - return s0; - } - - function peg$parseLEFT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c186) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c390); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c188(); - } - s0 = s1; - - return s0; - } - - function peg$parseRIGHT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c189) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c391); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c191(); - } - s0 = s1; - - return s0; - } - - function peg$parseINNER() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c183) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c392); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - } - s0 = s1; - - return s0; - } - - function peg$parseSQLTokenSentinels() { - var s0; - - s0 = peg$parseSELECT(); - if (s0 === peg$FAILED) { - s0 = peg$parseAS(); - if (s0 === peg$FAILED) { - s0 = peg$parseFROM(); - if (s0 === peg$FAILED) { - s0 = peg$parseJOIN(); - if (s0 === peg$FAILED) { - s0 = peg$parseWHERE(); - if (s0 === peg$FAILED) { - s0 = peg$parseGROUP(); - if (s0 === peg$FAILED) { - s0 = peg$parseHAVING(); - if (s0 === peg$FAILED) { - s0 = peg$parseORDER(); - if (s0 === peg$FAILED) { - s0 = peg$parseLIMIT(); - if (s0 === peg$FAILED) { - s0 = peg$parseON(); - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseLiteral() { - var s0; - - s0 = peg$parseTypeLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseTemplateLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseSubnetLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseAddressLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseBytesLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseDuration(); - if (s0 === peg$FAILED) { - s0 = peg$parseTime(); - if (s0 === peg$FAILED) { - s0 = peg$parseFloatLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseIntegerLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseBooleanLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseNullLiteral(); - } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseSubnetLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP6Net(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c393(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseIP4Net(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c393(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseAddressLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP6(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c394(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseIP(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c394(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFloatLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseFloatString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c395(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseIntegerLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseIntString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c396(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseBooleanLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseTrueToken(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c397(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseFalseToken(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c398(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseNullLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseNullToken(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c399(); - } - s0 = s1; - - return s0; - } - - function peg$parseBytesLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c400) { - s1 = peg$c400; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c401); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseHexDigit(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseHexDigit(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c402(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 60) { - s1 = peg$c69; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseType(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s3 = peg$c73; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c74); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c403(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseType() { - var s0; - - s0 = peg$parseAmbiguousType(); - if (s0 === peg$FAILED) { - s0 = peg$parseComplexType(); - } - - return s0; - } - - function peg$parseAmbiguousType() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parsePrimitiveType(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c404(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c405) { - s1 = peg$c405; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c406); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseType(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s7 = peg$c18; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c407(s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s4 = peg$c8; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseType(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c408(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseQuotedString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c409(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseTypeUnion(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s4 = peg$c18; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c410(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - } - - return s0; - } - - function peg$parseTypeUnion() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseTypeList(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c411(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseTypeList() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseType(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTypeListTail(); - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTypeListTail(); - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeListTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseType(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c277(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseComplexType() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 123) { - s1 = peg$c47; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseTypeFieldList(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s5 = peg$c325; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c412(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseType(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c318; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c413(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c334) { - s1 = peg$c334; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c335); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseType(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c336) { - s5 = peg$c336; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c337); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c414(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c340) { - s1 = peg$c340; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c341); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseType(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s5 = peg$c20; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseType(); - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c342) { - s9 = peg$c342; - peg$currPos += 2; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c343); } - } - if (s9 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c415(s3, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - - return s0; - } - - function peg$parseTemplateLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseTemplateLiteralParts(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c416(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseTemplateLiteralParts() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c417; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTemplateDoubleQuotedPart(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTemplateDoubleQuotedPart(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c417; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c419; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTemplateSingleQuotedPart(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTemplateSingleQuotedPart(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c419; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTemplateDoubleQuotedPart() { - var s0, s1, s2; - - s0 = peg$parseTemplateExpr(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - s2 = peg$parseTemplateDoubleQuotedChar(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseTemplateDoubleQuotedChar(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c421(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTemplateDoubleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseDoubleQuotedChar(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTemplateSingleQuotedPart() { - var s0, s1, s2; - - s0 = peg$parseTemplateExpr(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - s2 = peg$parseTemplateSingleQuotedChar(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseTemplateSingleQuotedChar(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c421(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTemplateSingleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseSingleQuotedChar(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTemplateExpr() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c424) { - s1 = peg$c424; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s5 = peg$c325; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c426(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePrimitiveType() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c427) { - s1 = peg$c427; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c428); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c429) { - s1 = peg$c429; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c430); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c431) { - s1 = peg$c431; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c432); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c433) { - s1 = peg$c433; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c434); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c435) { - s1 = peg$c435; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c436); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c437) { - s1 = peg$c437; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c438); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c439) { - s1 = peg$c439; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c440); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c441) { - s1 = peg$c441; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c442); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c443) { - s1 = peg$c443; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c444); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c445) { - s1 = peg$c445; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c446); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c447) { - s1 = peg$c447; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c448); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c449) { - s1 = peg$c449; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c450); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c451) { - s1 = peg$c451; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c452); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 8) === peg$c453) { - s1 = peg$c453; - peg$currPos += 8; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c454); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c455) { - s1 = peg$c455; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c456); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c457) { - s1 = peg$c457; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c458); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c459) { - s1 = peg$c459; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c460); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c461) { - s1 = peg$c461; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c462); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c11) { - s1 = peg$c11; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c12); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c463) { - s1 = peg$c463; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c464); } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c465(); - } - s0 = s1; - - return s0; - } - - function peg$parseTypeFieldList() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseTypeField(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTypeFieldListTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTypeFieldListTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTypeFieldListTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseTypeField(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c277(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeField() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseFieldName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseType(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c466(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFieldName() { - var s0; - - s0 = peg$parseIdentifierName(); - if (s0 === peg$FAILED) { - s0 = peg$parseQuotedString(); - } - - return s0; - } - - function peg$parseAndToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c467) { - s1 = peg$c467; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c468); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c469) { - s1 = peg$c469; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c470); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c471(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseByToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c371) { - s1 = peg$c371; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c472); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFalseToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c473) { - s1 = peg$c473; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c474); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNotToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c300) { - s1 = peg$c300; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c301); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c475) { - s1 = peg$c475; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c476); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c477(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNullToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c463) { - s1 = peg$c463; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c464); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOrToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c478) { - s1 = peg$c478; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c479); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c480) { - s1 = peg$c480; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c481); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c482(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTrueToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c483) { - s1 = peg$c483; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c484); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIdentifier() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c485(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseIdentifierName() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$currPos; - s3 = peg$parseIDGuard(); - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIdentifierStart(); - if (s2 !== peg$FAILED) { - s3 = []; - s4 = peg$parseIdentifierRest(); - while (s4 !== peg$FAILED) { - s3.push(s4); - s4 = peg$parseIdentifierRest(); - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 36) { - s1 = peg$c486; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c487); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIDGuard(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c11) { - s1 = peg$c11; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c12); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSQLTokenSentinels(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - } - - return s0; - } - - function peg$parseIdentifierNames() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierName(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c488(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierName(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c488(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIdentifierStart() { - var s0; - - s0 = peg$parseUnicodeLetter(); - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 36) { - s0 = peg$c486; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c487); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 95) { - s0 = peg$c489; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c490); } - } - } - } - - return s0; - } - - function peg$parseIdentifierRest() { - var s0; - - s0 = peg$parseIdentifierStart(); - if (s0 === peg$FAILED) { - s0 = peg$parseUnicodeCombiningMark(); - if (s0 === peg$FAILED) { - s0 = peg$parseNd(); - if (s0 === peg$FAILED) { - s0 = peg$parsePc(); - } - } - } - - return s0; - } - - function peg$parseIDGuard() { - var s0; - - s0 = peg$parseBooleanLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseNullLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseNaN(); - if (s0 === peg$FAILED) { - s0 = peg$parseInfinity(); - } - } - } - - return s0; - } - - function peg$parseTime() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseFullDate(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 84) { - s2 = peg$c491; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c492); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseFullTime(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c493(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFullDate() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseD4(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s2 = peg$c292; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseD2(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s4 = peg$c292; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseD2(); - if (s5 !== peg$FAILED) { - s1 = [s1, s2, s3, s4, s5]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseD4() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (peg$c494.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s1 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s2 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s3 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s4 !== peg$FAILED) { - s1 = [s1, s2, s3, s4]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseD2() { - var s0, s1, s2; - - s0 = peg$currPos; - if (peg$c494.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s1 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFullTime() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parsePartialTime(); - if (s1 !== peg$FAILED) { - s2 = peg$parseTimeOffset(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePartialTime() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - s1 = peg$parseD2(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s2 = peg$c20; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseD2(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s4 = peg$c20; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseD2(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s7 = peg$c111; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s7 !== peg$FAILED) { - s8 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s9 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s9 !== peg$FAILED) { - while (s9 !== peg$FAILED) { - s8.push(s9); - if (peg$c494.test(input.charAt(peg$currPos))) { - s9 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s8 = peg$FAILED; - } - if (s8 !== peg$FAILED) { - s7 = [s7, s8]; - s6 = s7; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s1 = [s1, s2, s3, s4, s5, s6]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTimeOffset() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - if (input.charCodeAt(peg$currPos) === 90) { - s0 = peg$c496; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c497); } - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 43) { - s1 = peg$c290; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c291); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseD2(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseD2(); - if (s4 !== peg$FAILED) { - s5 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s6 = peg$c111; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s6 !== peg$FAILED) { - s7 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s8 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s8 !== peg$FAILED) { - while (s8 !== peg$FAILED) { - s7.push(s8); - if (peg$c494.test(input.charAt(peg$currPos))) { - s8 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s7 = peg$FAILED; - } - if (s7 !== peg$FAILED) { - s6 = [s6, s7]; - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s1 = [s1, s2, s3, s4, s5]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseDuration() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parseDecimal(); - if (s4 !== peg$FAILED) { - s5 = peg$parseTimeUnit(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parseDecimal(); - if (s4 !== peg$FAILED) { - s5 = peg$parseTimeUnit(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c498(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDecimal() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parseUInt(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseUInt(); - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTimeUnit() { - var s0; - - if (input.substr(peg$currPos, 2) === peg$c499) { - s0 = peg$c499; - peg$currPos += 2; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c500); } - } - if (s0 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c501) { - s0 = peg$c501; - peg$currPos += 2; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c502); } - } - if (s0 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c503) { - s0 = peg$c503; - peg$currPos += 2; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c504); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 115) { - s0 = peg$c505; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c506); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 109) { - s0 = peg$c507; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c508); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 104) { - s0 = peg$c509; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c510); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 100) { - s0 = peg$c511; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c512); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 119) { - s0 = peg$c513; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c514); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 121) { - s0 = peg$c515; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c516); } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseIP() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseUInt(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s2 = peg$c111; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUInt(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c111; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseUInt(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s6 = peg$c111; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s6 !== peg$FAILED) { - s7 = peg$parseUInt(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP6() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$currPos; - s3 = peg$parseHex(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s4 = peg$c20; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseHex(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - peg$silentFails++; - s7 = peg$parseHexDigit(); - if (s7 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s7 = peg$c20; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - } - peg$silentFails--; - if (s7 === peg$FAILED) { - s6 = void 0; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIP6Variations(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP6Variations() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseHexColon(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseHexColon(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIP6Tail(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c517(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseHex(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseColonHex(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseColonHex(); - } - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c518) { - s3 = peg$c518; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseHexColon(); - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseHexColon(); - } - if (s4 !== peg$FAILED) { - s5 = peg$parseIP6Tail(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c520(s1, s2, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c518) { - s1 = peg$c518; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseHexColon(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseHexColon(); - } - if (s2 !== peg$FAILED) { - s3 = peg$parseIP6Tail(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c521(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseHex(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseColonHex(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseColonHex(); - } - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c518) { - s3 = peg$c518; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c522(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c518) { - s1 = peg$c518; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c523(); - } - s0 = s1; - } - } - } - } - - return s0; - } - - function peg$parseIP6Tail() { - var s0; - - s0 = peg$parseIP(); - if (s0 === peg$FAILED) { - s0 = peg$parseHex(); - } - - return s0; - } - - function peg$parseColonHex() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c20; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseHex(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c524(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHexColon() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parseHex(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s2 = peg$c20; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c525(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP4Net() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s2 = peg$c294; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUIntString(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c526(s1, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP6Net() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP6(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s2 = peg$c294; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUIntString(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c526(s1, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseUInt() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseUIntString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c527(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseIntString() { - var s0; - - s0 = peg$parseUIntString(); - if (s0 === peg$FAILED) { - s0 = peg$parseMinusIntString(); - } - - return s0; - } - - function peg$parseUIntString() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseMinusIntString() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseUIntString(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFloatString() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c494.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s3 !== peg$FAILED) { - s4 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - while (s5 !== peg$FAILED) { - s4.push(s5); - if (peg$c494.test(input.charAt(peg$currPos))) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseExponentPart(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c528(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s2 = peg$c111; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c494.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseExponentPart(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c528(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseNaN(); - if (s1 === peg$FAILED) { - s1 = peg$parseInfinity(); - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - } - } - - return s0; - } - - function peg$parseExponentPart() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 1).toLowerCase() === peg$c529) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c530); } - } - if (s1 !== peg$FAILED) { - if (peg$c531.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c532); } - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUIntString(); - if (s3 !== peg$FAILED) { - s1 = [s1, s2, s3]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNaN() { - var s0; - - if (input.substr(peg$currPos, 3) === peg$c533) { - s0 = peg$c533; - peg$currPos += 3; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c534); } - } - - return s0; - } - - function peg$parseInfinity() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 43) { - s1 = peg$c290; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c291); } - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c535) { - s2 = peg$c535; - peg$currPos += 3; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c536); } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHex() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseHexDigit(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseHexDigit(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseHexDigit() { - var s0; - - if (peg$c537.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c538); } - } - - return s0; - } - - function peg$parseQuotedString() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c417; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDoubleQuotedChar(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDoubleQuotedChar(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c417; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c539(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c419; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseSingleQuotedChar(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseSingleQuotedChar(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c419; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c539(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseDoubleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 34) { - s2 = peg$c417; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s2 === peg$FAILED) { - s2 = peg$parseEscapedChar(); - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - if (input.length > peg$currPos) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseEscapeSequence(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseKeyWord() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseKeyWordStart(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseKeyWordRest(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseKeyWordRest(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c541(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseKeyWordStart() { - var s0; - - s0 = peg$parseKeyWordChars(); - if (s0 === peg$FAILED) { - s0 = peg$parseKeyWordEsc(); - } - - return s0; - } - - function peg$parseKeyWordRest() { - var s0; - - s0 = peg$parseKeyWordStart(); - if (s0 === peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - - return s0; - } - - function peg$parseKeyWordChars() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseUnicodeLetter(); - if (s1 === peg$FAILED) { - if (peg$c542.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c543); } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseKeyWordEsc() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseKeywordEscape(); - if (s2 === peg$FAILED) { - s2 = peg$parseEscapeSequence(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobPattern() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseGlobProperStart(); - peg$silentFails--; - if (s2 !== peg$FAILED) { - peg$currPos = s1; - s1 = void 0; - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseGlobHasStar(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseGlobStart(); - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseGlobRest(); - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseGlobRest(); - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c544(s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobProperStart() { - var s0, s1, s2; - - s0 = peg$parseKeyWordStart(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - if (input.charCodeAt(peg$currPos) === 42) { - s2 = peg$c83; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (input.charCodeAt(peg$currPos) === 42) { - s2 = peg$c83; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseKeyWordRest(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseGlobHasStar() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseKeyWordRest(); - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseKeyWordRest(); - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 42) { - s2 = peg$c83; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobStart() { - var s0, s1; - - s0 = peg$parseKeyWordChars(); - if (s0 === peg$FAILED) { - s0 = peg$parseGlobEsc(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c545(); - } - s0 = s1; - } - } - - return s0; - } - - function peg$parseGlobRest() { - var s0; - - s0 = peg$parseGlobStart(); - if (s0 === peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - - return s0; - } - - function peg$parseGlobEsc() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseGlobEscape(); - if (s2 === peg$FAILED) { - s2 = peg$parseEscapeSequence(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobEscape() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 61) { - s1 = peg$c8; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c546(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c547(); - } - s0 = s1; - if (s0 === peg$FAILED) { - if (peg$c531.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c532); } - } - } - } - - return s0; - } - - function peg$parseSingleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 39) { - s2 = peg$c419; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s2 === peg$FAILED) { - s2 = peg$parseEscapedChar(); - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - if (input.length > peg$currPos) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseEscapeSequence(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseEscapeSequence() { - var s0; - - s0 = peg$parseSingleCharEscape(); - if (s0 === peg$FAILED) { - s0 = peg$parseUnicodeEscape(); - } - - return s0; - } - - function peg$parseSingleCharEscape() { - var s0, s1; - - if (input.charCodeAt(peg$currPos) === 39) { - s0 = peg$c419; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c417; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 92) { - s0 = peg$c422; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 98) { - s1 = peg$c548; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c549); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c550(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 102) { - s1 = peg$c551; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c552); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c553(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 110) { - s1 = peg$c554; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c555); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c556(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 114) { - s1 = peg$c557; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c558); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c559(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 116) { - s1 = peg$c560; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c561); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c562(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 118) { - s1 = peg$c563; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c564); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c565(); - } - s0 = s1; - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseKeywordEscape() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 61) { - s1 = peg$c8; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c546(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c545(); - } - s0 = s1; - if (s0 === peg$FAILED) { - if (peg$c531.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c532); } - } - } - } - - return s0; - } - - function peg$parseUnicodeEscape() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 117) { - s1 = peg$c566; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c567); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parseHexDigit(); - if (s3 !== peg$FAILED) { - s4 = peg$parseHexDigit(); - if (s4 !== peg$FAILED) { - s5 = peg$parseHexDigit(); - if (s5 !== peg$FAILED) { - s6 = peg$parseHexDigit(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c568(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 117) { - s1 = peg$c566; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c567); } - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 123) { - s2 = peg$c47; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parseHexDigit(); - if (s4 !== peg$FAILED) { - s5 = peg$parseHexDigit(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseHexDigit(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseHexDigit(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parseHexDigit(); - if (s8 === peg$FAILED) { - s8 = null; - } - if (s8 !== peg$FAILED) { - s9 = peg$parseHexDigit(); - if (s9 === peg$FAILED) { - s9 = null; - } - if (s9 !== peg$FAILED) { - s4 = [s4, s5, s6, s7, s8, s9]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s4 = peg$c325; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c568(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseRegexpPattern() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c294; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseRegexpBody(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s3 = peg$c294; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseKeyWordStart(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c216(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRegexpBody() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = []; - if (peg$c569.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c570); } - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s3 = peg$c422; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s3 !== peg$FAILED) { - if (input.length > peg$currPos) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c569.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c570); } - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s3 = peg$c422; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s3 !== peg$FAILED) { - if (input.length > peg$currPos) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseEscapedChar() { - var s0; - - if (peg$c571.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c572); } - } - - return s0; - } - - function peg$parse_() { - var s0, s1; - - s0 = []; - s1 = peg$parseAnySpace(); - if (s1 !== peg$FAILED) { - while (s1 !== peg$FAILED) { - s0.push(s1); - s1 = peg$parseAnySpace(); - } - } else { - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parse__() { - var s0, s1; - - s0 = []; - s1 = peg$parseAnySpace(); - while (s1 !== peg$FAILED) { - s0.push(s1); - s1 = peg$parseAnySpace(); - } - - return s0; - } - - function peg$parseAnySpace() { - var s0; - - s0 = peg$parseWhiteSpace(); - if (s0 === peg$FAILED) { - s0 = peg$parseLineTerminator(); - if (s0 === peg$FAILED) { - s0 = peg$parseComment(); - } - } - - return s0; - } - - function peg$parseUnicodeLetter() { - var s0; - - s0 = peg$parseLu(); - if (s0 === peg$FAILED) { - s0 = peg$parseLl(); - if (s0 === peg$FAILED) { - s0 = peg$parseLt(); - if (s0 === peg$FAILED) { - s0 = peg$parseLm(); - if (s0 === peg$FAILED) { - s0 = peg$parseLo(); - if (s0 === peg$FAILED) { - s0 = peg$parseNl(); - } - } - } - } - } - - return s0; - } - - function peg$parseUnicodeCombiningMark() { - var s0; - - s0 = peg$parseMn(); - if (s0 === peg$FAILED) { - s0 = peg$parseMc(); - } - - return s0; - } - - function peg$parseLl() { - var s0; - - if (peg$c573.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c574); } - } - - return s0; - } - - function peg$parseLm() { - var s0; - - if (peg$c575.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c576); } - } - - return s0; - } - - function peg$parseLo() { - var s0; - - if (peg$c577.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c578); } - } - - return s0; - } - - function peg$parseLt() { - var s0; - - if (peg$c579.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c580); } - } - - return s0; - } - - function peg$parseLu() { - var s0; - - if (peg$c581.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c582); } - } - - return s0; - } - - function peg$parseMc() { - var s0; - - if (peg$c583.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c584); } - } - - return s0; - } - - function peg$parseMn() { - var s0; - - if (peg$c585.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c586); } - } - - return s0; - } - - function peg$parseNd() { - var s0; - - if (peg$c587.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c588); } - } - - return s0; - } - - function peg$parseNl() { - var s0; - - if (peg$c589.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c590); } - } - - return s0; - } - - function peg$parsePc() { - var s0; - - if (peg$c591.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c592); } - } - - return s0; - } - - function peg$parseZs() { - var s0; - - if (peg$c593.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c594); } - } - - return s0; - } - - function peg$parseSourceCharacter() { - var s0; - - if (input.length > peg$currPos) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - - return s0; - } - - function peg$parseWhiteSpace() { - var s0; - - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 9) { - s0 = peg$c596; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c597); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 11) { - s0 = peg$c598; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c599); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 12) { - s0 = peg$c600; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c601); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 32) { - s0 = peg$c602; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c603); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 160) { - s0 = peg$c604; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c605); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 65279) { - s0 = peg$c606; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c607); } - } - if (s0 === peg$FAILED) { - s0 = peg$parseZs(); - } - } - } - } - } - } - peg$silentFails--; - if (s0 === peg$FAILED) { - if (peg$silentFails === 0) { peg$fail(peg$c595); } - } - - return s0; - } - - function peg$parseLineTerminator() { - var s0; - - if (peg$c608.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c609); } - } - - return s0; - } - - function peg$parseComment() { - var s0; - - peg$silentFails++; - s0 = peg$parseSingleLineComment(); - peg$silentFails--; - if (s0 === peg$FAILED) { - if (peg$silentFails === 0) { peg$fail(peg$c610); } - } - - return s0; - } - - function peg$parseSingleLineComment() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c615) { - s1 = peg$c615; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c616); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseLineTerminator(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSourceCharacter(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseLineTerminator(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSourceCharacter(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEOF() { - var s0, s1; - - s0 = peg$currPos; - peg$silentFails++; - if (input.length > peg$currPos) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - peg$silentFails--; - if (s1 === peg$FAILED) { - s0 = void 0; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEOKW() { - var s0, s1; - - s0 = peg$currPos; - peg$silentFails++; - s1 = peg$parseKeyWordChars(); - peg$silentFails--; - if (s1 === peg$FAILED) { - s0 = void 0; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function makeArgMap(args) { - let m = {}; - for (let arg of args) { - if (arg.name in m) { - throw new Error(`Duplicate argument -${arg.name}`); - } - m[arg.name] = arg.value; - } - return m - } - - function makeBinaryExprChain(first, rest) { - let ret = first; - for (let part of rest) { - ret = { kind: "BinaryExpr", op: part[0], lhs: ret, rhs: part[1] }; - } - return ret - } - - function makeTemplateExprChain(args) { - let ret = args[0]; - for (let part of args.slice(1)) { - ret = { kind: "BinaryExpr", op: "+", lhs: ret, rhs: part }; - } - return ret - } - - function joinChars(chars) { - return chars.join(""); - } - - function makeUnicodeChar(chars) { - let n = parseInt(chars.join(""), 16); - if (n < 0x10000) { - return String.fromCharCode(n); - } - - // stupid JavaScript 16 bit code points... - n -= 0x10000; - let surrogate1 = 0xD800 + ((n >> 10) & 0x7ff); - let surrogate2 = 0xDC00 + (n & 0x3ff); - return String.fromCharCode(surrogate1) + String.fromCharCode(surrogate2); - } - - - - peg$result = peg$startRuleFunction(); - - if (peg$result !== peg$FAILED && peg$currPos === input.length) { - return peg$result; - } else { - if (peg$result !== peg$FAILED && peg$currPos < input.length) { - peg$fail(peg$endExpectation()); - } - - throw peg$buildStructuredError( - peg$maxFailExpected, - peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, - peg$maxFailPos < input.length - ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) - : peg$computeLocation(peg$maxFailPos, peg$maxFailPos) - ); - } -} - -var parser = { - SyntaxError: peg$SyntaxError, - parse: peg$parse -}; - -export default parser; diff --git a/compiler/parser/parser.go b/compiler/parser/parser.go index 29d6facdb7..711d00895a 100644 --- a/compiler/parser/parser.go +++ b/compiler/parser/parser.go @@ -7,12 +7,12 @@ import ( "errors" "fmt" "io" - "io/ioutil" "math" "os" "sort" "strconv" "strings" + "sync" "unicode" "unicode/utf8" ) @@ -21,63 +21,63 @@ var g = &grammar{ rules: []*rule{ { name: "start", - pos: position{line: 7, col: 1, offset: 26}, + pos: position{line: 6, col: 1, offset: 25}, expr: &choiceExpr{ - pos: position{line: 8, col: 5, offset: 36}, - alternatives: []interface{}{ + pos: position{line: 7, col: 5, offset: 35}, + alternatives: []any{ &actionExpr{ - pos: position{line: 8, col: 5, offset: 36}, + pos: position{line: 7, col: 5, offset: 35}, run: (*parser).callonstart2, expr: &seqExpr{ - pos: position{line: 8, col: 5, offset: 36}, - exprs: []interface{}{ + pos: position{line: 7, col: 5, offset: 35}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 8, col: 5, offset: 36}, + pos: position{line: 7, col: 5, offset: 35}, name: "__", }, &labeledExpr{ - pos: position{line: 8, col: 8, offset: 39}, + pos: position{line: 7, col: 8, offset: 38}, label: "scope", expr: &ruleRefExpr{ - pos: position{line: 8, col: 14, offset: 45}, + pos: position{line: 7, col: 14, offset: 44}, name: "Scope", }, }, &ruleRefExpr{ - pos: position{line: 8, col: 20, offset: 51}, + pos: position{line: 7, col: 20, offset: 50}, name: "__", }, &ruleRefExpr{ - pos: position{line: 8, col: 23, offset: 54}, + pos: position{line: 7, col: 23, offset: 53}, name: "EOF", }, }, }, }, &actionExpr{ - pos: position{line: 9, col: 5, offset: 99}, + pos: position{line: 8, col: 5, offset: 98}, run: (*parser).callonstart9, expr: &seqExpr{ - pos: position{line: 9, col: 5, offset: 99}, - exprs: []interface{}{ + pos: position{line: 8, col: 5, offset: 98}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 9, col: 5, offset: 99}, + pos: position{line: 8, col: 5, offset: 98}, name: "__", }, &labeledExpr{ - pos: position{line: 9, col: 8, offset: 102}, + pos: position{line: 8, col: 8, offset: 101}, label: "seq", expr: &ruleRefExpr{ - pos: position{line: 9, col: 12, offset: 106}, + pos: position{line: 8, col: 12, offset: 105}, name: "Seq", }, }, &ruleRefExpr{ - pos: position{line: 9, col: 16, offset: 110}, + pos: position{line: 8, col: 16, offset: 109}, name: "__", }, &ruleRefExpr{ - pos: position{line: 9, col: 19, offset: 113}, + pos: position{line: 8, col: 19, offset: 112}, name: "EOF", }, }, @@ -88,29 +88,29 @@ var g = &grammar{ }, { name: "Scope", - pos: position{line: 11, col: 1, offset: 138}, + pos: position{line: 10, col: 1, offset: 137}, expr: &actionExpr{ - pos: position{line: 12, col: 5, offset: 148}, + pos: position{line: 11, col: 5, offset: 147}, run: (*parser).callonScope1, expr: &seqExpr{ - pos: position{line: 12, col: 5, offset: 148}, - exprs: []interface{}{ + pos: position{line: 11, col: 5, offset: 147}, + exprs: []any{ &labeledExpr{ - pos: position{line: 12, col: 5, offset: 148}, + pos: position{line: 11, col: 5, offset: 147}, label: "decls", expr: &oneOrMoreExpr{ - pos: position{line: 12, col: 11, offset: 154}, + pos: position{line: 11, col: 11, offset: 153}, expr: &ruleRefExpr{ - pos: position{line: 12, col: 11, offset: 154}, + pos: position{line: 11, col: 11, offset: 153}, name: "Decl", }, }, }, &labeledExpr{ - pos: position{line: 12, col: 17, offset: 160}, + pos: position{line: 11, col: 17, offset: 159}, label: "body", expr: &ruleRefExpr{ - pos: position{line: 12, col: 22, offset: 165}, + pos: position{line: 11, col: 22, offset: 164}, name: "Seq", }, }, @@ -120,28 +120,28 @@ var g = &grammar{ }, { name: "Seq", - pos: position{line: 16, col: 1, offset: 266}, + pos: position{line: 15, col: 1, offset: 265}, expr: &actionExpr{ - pos: position{line: 17, col: 5, offset: 274}, + pos: position{line: 16, col: 5, offset: 273}, run: (*parser).callonSeq1, expr: &seqExpr{ - pos: position{line: 17, col: 5, offset: 274}, - exprs: []interface{}{ + pos: position{line: 16, col: 5, offset: 273}, + exprs: []any{ &labeledExpr{ - pos: position{line: 17, col: 5, offset: 274}, + pos: position{line: 16, col: 5, offset: 273}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 17, col: 11, offset: 280}, + pos: position{line: 16, col: 11, offset: 279}, name: "Operation", }, }, &labeledExpr{ - pos: position{line: 17, col: 21, offset: 290}, + pos: position{line: 16, col: 21, offset: 289}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 17, col: 26, offset: 295}, + pos: position{line: 16, col: 26, offset: 294}, expr: &ruleRefExpr{ - pos: position{line: 17, col: 26, offset: 295}, + pos: position{line: 16, col: 26, offset: 294}, name: "SeqTail", }, }, @@ -152,30 +152,30 @@ var g = &grammar{ }, { name: "SeqTail", - pos: position{line: 21, col: 1, offset: 388}, + pos: position{line: 20, col: 1, offset: 387}, expr: &actionExpr{ - pos: position{line: 21, col: 11, offset: 398}, + pos: position{line: 20, col: 11, offset: 397}, run: (*parser).callonSeqTail1, expr: &seqExpr{ - pos: position{line: 21, col: 11, offset: 398}, - exprs: []interface{}{ + pos: position{line: 20, col: 11, offset: 397}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 21, col: 11, offset: 398}, + pos: position{line: 20, col: 11, offset: 397}, name: "__", }, &ruleRefExpr{ - pos: position{line: 21, col: 14, offset: 401}, + pos: position{line: 20, col: 14, offset: 400}, name: "Pipe", }, &ruleRefExpr{ - pos: position{line: 21, col: 19, offset: 406}, + pos: position{line: 20, col: 19, offset: 405}, name: "__", }, &labeledExpr{ - pos: position{line: 21, col: 22, offset: 409}, + pos: position{line: 20, col: 22, offset: 408}, label: "o", expr: &ruleRefExpr{ - pos: position{line: 21, col: 24, offset: 411}, + pos: position{line: 20, col: 24, offset: 410}, name: "Operation", }, }, @@ -185,36 +185,36 @@ var g = &grammar{ }, { name: "Decl", - pos: position{line: 23, col: 1, offset: 440}, + pos: position{line: 22, col: 1, offset: 439}, expr: &actionExpr{ - pos: position{line: 24, col: 5, offset: 449}, + pos: position{line: 23, col: 5, offset: 448}, run: (*parser).callonDecl1, expr: &seqExpr{ - pos: position{line: 24, col: 5, offset: 449}, - exprs: []interface{}{ + pos: position{line: 23, col: 5, offset: 448}, + exprs: []any{ &labeledExpr{ - pos: position{line: 24, col: 5, offset: 449}, + pos: position{line: 23, col: 5, offset: 448}, label: "v", expr: &choiceExpr{ - pos: position{line: 24, col: 8, offset: 452}, - alternatives: []interface{}{ + pos: position{line: 23, col: 8, offset: 451}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 24, col: 8, offset: 452}, + pos: position{line: 23, col: 8, offset: 451}, name: "ConstDecl", }, &ruleRefExpr{ - pos: position{line: 24, col: 20, offset: 464}, + pos: position{line: 23, col: 20, offset: 463}, name: "FuncDecl", }, &ruleRefExpr{ - pos: position{line: 24, col: 31, offset: 475}, + pos: position{line: 23, col: 31, offset: 474}, name: "OpDecl", }, }, }, }, &ruleRefExpr{ - pos: position{line: 24, col: 39, offset: 483}, + pos: position{line: 23, col: 39, offset: 482}, name: "_", }, }, @@ -223,51 +223,53 @@ var g = &grammar{ }, { name: "ConstDecl", - pos: position{line: 26, col: 1, offset: 504}, + pos: position{line: 25, col: 1, offset: 503}, expr: &choiceExpr{ - pos: position{line: 27, col: 5, offset: 518}, - alternatives: []interface{}{ + pos: position{line: 26, col: 5, offset: 517}, + alternatives: []any{ &actionExpr{ - pos: position{line: 27, col: 5, offset: 518}, + pos: position{line: 26, col: 5, offset: 517}, run: (*parser).callonConstDecl2, expr: &seqExpr{ - pos: position{line: 27, col: 5, offset: 518}, - exprs: []interface{}{ + pos: position{line: 26, col: 5, offset: 517}, + exprs: []any{ &litMatcher{ - pos: position{line: 27, col: 5, offset: 518}, + pos: position{line: 26, col: 5, offset: 517}, val: "const", ignoreCase: false, + want: "\"const\"", }, &ruleRefExpr{ - pos: position{line: 27, col: 13, offset: 526}, + pos: position{line: 26, col: 13, offset: 525}, name: "_", }, &labeledExpr{ - pos: position{line: 27, col: 15, offset: 528}, + pos: position{line: 26, col: 15, offset: 527}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 27, col: 18, offset: 531}, + pos: position{line: 26, col: 18, offset: 530}, name: "IdentifierName", }, }, &ruleRefExpr{ - pos: position{line: 27, col: 33, offset: 546}, + pos: position{line: 26, col: 33, offset: 545}, name: "__", }, &litMatcher{ - pos: position{line: 27, col: 36, offset: 549}, + pos: position{line: 26, col: 36, offset: 548}, val: "=", ignoreCase: false, + want: "\"=\"", }, &ruleRefExpr{ - pos: position{line: 27, col: 40, offset: 553}, + pos: position{line: 26, col: 40, offset: 552}, name: "__", }, &labeledExpr{ - pos: position{line: 27, col: 43, offset: 556}, + pos: position{line: 26, col: 43, offset: 555}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 27, col: 48, offset: 561}, + pos: position{line: 26, col: 48, offset: 560}, name: "Expr", }, }, @@ -275,55 +277,57 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 30, col: 5, offset: 666}, + pos: position{line: 29, col: 5, offset: 665}, run: (*parser).callonConstDecl13, expr: &seqExpr{ - pos: position{line: 30, col: 5, offset: 666}, - exprs: []interface{}{ + pos: position{line: 29, col: 5, offset: 665}, + exprs: []any{ &litMatcher{ - pos: position{line: 30, col: 5, offset: 666}, + pos: position{line: 29, col: 5, offset: 665}, val: "type", ignoreCase: false, + want: "\"type\"", }, &ruleRefExpr{ - pos: position{line: 30, col: 12, offset: 673}, + pos: position{line: 29, col: 12, offset: 672}, name: "_", }, &labeledExpr{ - pos: position{line: 30, col: 14, offset: 675}, + pos: position{line: 29, col: 14, offset: 674}, label: "id", expr: &choiceExpr{ - pos: position{line: 30, col: 18, offset: 679}, - alternatives: []interface{}{ + pos: position{line: 29, col: 18, offset: 678}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 30, col: 18, offset: 679}, + pos: position{line: 29, col: 18, offset: 678}, name: "IdentifierName", }, &ruleRefExpr{ - pos: position{line: 30, col: 35, offset: 696}, + pos: position{line: 29, col: 35, offset: 695}, name: "QuotedString", }, }, }, }, &ruleRefExpr{ - pos: position{line: 30, col: 49, offset: 710}, + pos: position{line: 29, col: 49, offset: 709}, name: "__", }, &litMatcher{ - pos: position{line: 30, col: 52, offset: 713}, + pos: position{line: 29, col: 52, offset: 712}, val: "=", ignoreCase: false, + want: "\"=\"", }, &ruleRefExpr{ - pos: position{line: 30, col: 56, offset: 717}, + pos: position{line: 29, col: 56, offset: 716}, name: "__", }, &labeledExpr{ - pos: position{line: 30, col: 59, offset: 720}, + pos: position{line: 29, col: 59, offset: 719}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 30, col: 63, offset: 724}, + pos: position{line: 29, col: 63, offset: 723}, name: "Type", }, }, @@ -335,101 +339,107 @@ var g = &grammar{ }, { name: "FuncDecl", - pos: position{line: 41, col: 1, offset: 993}, + pos: position{line: 40, col: 1, offset: 992}, expr: &actionExpr{ - pos: position{line: 42, col: 5, offset: 1006}, + pos: position{line: 41, col: 5, offset: 1005}, run: (*parser).callonFuncDecl1, expr: &seqExpr{ - pos: position{line: 42, col: 5, offset: 1006}, - exprs: []interface{}{ + pos: position{line: 41, col: 5, offset: 1005}, + exprs: []any{ &litMatcher{ - pos: position{line: 42, col: 5, offset: 1006}, + pos: position{line: 41, col: 5, offset: 1005}, val: "func", ignoreCase: false, + want: "\"func\"", }, &ruleRefExpr{ - pos: position{line: 42, col: 12, offset: 1013}, + pos: position{line: 41, col: 12, offset: 1012}, name: "_", }, &labeledExpr{ - pos: position{line: 42, col: 14, offset: 1015}, + pos: position{line: 41, col: 14, offset: 1014}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 42, col: 17, offset: 1018}, + pos: position{line: 41, col: 17, offset: 1017}, name: "IdentifierName", }, }, &ruleRefExpr{ - pos: position{line: 42, col: 32, offset: 1033}, + pos: position{line: 41, col: 32, offset: 1032}, name: "__", }, &litMatcher{ - pos: position{line: 42, col: 35, offset: 1036}, + pos: position{line: 41, col: 35, offset: 1035}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 42, col: 39, offset: 1040}, + pos: position{line: 41, col: 39, offset: 1039}, name: "__", }, &labeledExpr{ - pos: position{line: 42, col: 42, offset: 1043}, + pos: position{line: 41, col: 42, offset: 1042}, label: "params", expr: &zeroOrOneExpr{ - pos: position{line: 42, col: 49, offset: 1050}, + pos: position{line: 41, col: 49, offset: 1049}, expr: &ruleRefExpr{ - pos: position{line: 42, col: 49, offset: 1050}, + pos: position{line: 41, col: 49, offset: 1049}, name: "IdentifierNames", }, }, }, &ruleRefExpr{ - pos: position{line: 42, col: 66, offset: 1067}, + pos: position{line: 41, col: 66, offset: 1066}, name: "__", }, &litMatcher{ - pos: position{line: 42, col: 69, offset: 1070}, + pos: position{line: 41, col: 69, offset: 1069}, val: ")", ignoreCase: false, + want: "\")\"", }, &ruleRefExpr{ - pos: position{line: 42, col: 73, offset: 1074}, + pos: position{line: 41, col: 73, offset: 1073}, name: "__", }, &litMatcher{ - pos: position{line: 42, col: 76, offset: 1077}, + pos: position{line: 41, col: 76, offset: 1076}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 42, col: 80, offset: 1081}, + pos: position{line: 41, col: 80, offset: 1080}, name: "__", }, &litMatcher{ - pos: position{line: 42, col: 83, offset: 1084}, + pos: position{line: 41, col: 83, offset: 1083}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 42, col: 87, offset: 1088}, + pos: position{line: 41, col: 87, offset: 1087}, name: "__", }, &labeledExpr{ - pos: position{line: 42, col: 90, offset: 1091}, + pos: position{line: 41, col: 90, offset: 1090}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 42, col: 95, offset: 1096}, + pos: position{line: 41, col: 95, offset: 1095}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 42, col: 100, offset: 1101}, + pos: position{line: 41, col: 100, offset: 1100}, name: "__", }, &litMatcher{ - pos: position{line: 42, col: 103, offset: 1104}, + pos: position{line: 41, col: 103, offset: 1103}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -437,101 +447,107 @@ var g = &grammar{ }, { name: "OpDecl", - pos: position{line: 55, col: 1, offset: 1288}, + pos: position{line: 54, col: 1, offset: 1287}, expr: &actionExpr{ - pos: position{line: 56, col: 5, offset: 1299}, + pos: position{line: 55, col: 5, offset: 1298}, run: (*parser).callonOpDecl1, expr: &seqExpr{ - pos: position{line: 56, col: 5, offset: 1299}, - exprs: []interface{}{ + pos: position{line: 55, col: 5, offset: 1298}, + exprs: []any{ &litMatcher{ - pos: position{line: 56, col: 5, offset: 1299}, + pos: position{line: 55, col: 5, offset: 1298}, val: "op", ignoreCase: false, + want: "\"op\"", }, &ruleRefExpr{ - pos: position{line: 56, col: 10, offset: 1304}, + pos: position{line: 55, col: 10, offset: 1303}, name: "_", }, &labeledExpr{ - pos: position{line: 56, col: 12, offset: 1306}, + pos: position{line: 55, col: 12, offset: 1305}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 56, col: 17, offset: 1311}, + pos: position{line: 55, col: 17, offset: 1310}, name: "IdentifierName", }, }, &ruleRefExpr{ - pos: position{line: 56, col: 32, offset: 1326}, + pos: position{line: 55, col: 32, offset: 1325}, name: "__", }, &litMatcher{ - pos: position{line: 56, col: 35, offset: 1329}, + pos: position{line: 55, col: 35, offset: 1328}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 56, col: 39, offset: 1333}, + pos: position{line: 55, col: 39, offset: 1332}, name: "__", }, &labeledExpr{ - pos: position{line: 56, col: 42, offset: 1336}, + pos: position{line: 55, col: 42, offset: 1335}, label: "params", expr: &zeroOrOneExpr{ - pos: position{line: 56, col: 49, offset: 1343}, + pos: position{line: 55, col: 49, offset: 1342}, expr: &ruleRefExpr{ - pos: position{line: 56, col: 49, offset: 1343}, + pos: position{line: 55, col: 49, offset: 1342}, name: "IdentifierNames", }, }, }, &ruleRefExpr{ - pos: position{line: 56, col: 66, offset: 1360}, + pos: position{line: 55, col: 66, offset: 1359}, name: "__", }, &litMatcher{ - pos: position{line: 56, col: 69, offset: 1363}, + pos: position{line: 55, col: 69, offset: 1362}, val: ")", ignoreCase: false, + want: "\")\"", }, &ruleRefExpr{ - pos: position{line: 56, col: 73, offset: 1367}, + pos: position{line: 55, col: 73, offset: 1366}, name: "__", }, &litMatcher{ - pos: position{line: 56, col: 76, offset: 1370}, + pos: position{line: 55, col: 76, offset: 1369}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 56, col: 80, offset: 1374}, + pos: position{line: 55, col: 80, offset: 1373}, name: "__", }, &litMatcher{ - pos: position{line: 56, col: 83, offset: 1377}, + pos: position{line: 55, col: 83, offset: 1376}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 56, col: 87, offset: 1381}, + pos: position{line: 55, col: 87, offset: 1380}, name: "__", }, &labeledExpr{ - pos: position{line: 56, col: 90, offset: 1384}, + pos: position{line: 55, col: 90, offset: 1383}, label: "body", expr: &ruleRefExpr{ - pos: position{line: 56, col: 95, offset: 1389}, + pos: position{line: 55, col: 95, offset: 1388}, name: "OpDeclBody", }, }, &ruleRefExpr{ - pos: position{line: 56, col: 106, offset: 1400}, + pos: position{line: 55, col: 106, offset: 1399}, name: "__", }, &litMatcher{ - pos: position{line: 56, col: 109, offset: 1403}, + pos: position{line: 55, col: 109, offset: 1402}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -539,30 +555,30 @@ var g = &grammar{ }, { name: "OpDeclBody", - pos: position{line: 69, col: 1, offset: 1587}, + pos: position{line: 68, col: 1, offset: 1586}, expr: &choiceExpr{ - pos: position{line: 70, col: 5, offset: 1602}, - alternatives: []interface{}{ + pos: position{line: 69, col: 5, offset: 1601}, + alternatives: []any{ &actionExpr{ - pos: position{line: 70, col: 5, offset: 1602}, + pos: position{line: 69, col: 5, offset: 1601}, run: (*parser).callonOpDeclBody2, expr: &labeledExpr{ - pos: position{line: 70, col: 5, offset: 1602}, + pos: position{line: 69, col: 5, offset: 1601}, label: "scope", expr: &ruleRefExpr{ - pos: position{line: 70, col: 11, offset: 1608}, + pos: position{line: 69, col: 11, offset: 1607}, name: "Scope", }, }, }, &actionExpr{ - pos: position{line: 71, col: 5, offset: 1655}, + pos: position{line: 70, col: 5, offset: 1654}, run: (*parser).callonOpDeclBody5, expr: &labeledExpr{ - pos: position{line: 71, col: 5, offset: 1655}, + pos: position{line: 70, col: 5, offset: 1654}, label: "seq", expr: &ruleRefExpr{ - pos: position{line: 71, col: 9, offset: 1659}, + pos: position{line: 70, col: 9, offset: 1658}, name: "Seq", }, }, @@ -572,255 +588,269 @@ var g = &grammar{ }, { name: "Operation", - pos: position{line: 73, col: 1, offset: 1684}, + pos: position{line: 72, col: 1, offset: 1683}, expr: &choiceExpr{ - pos: position{line: 74, col: 5, offset: 1698}, - alternatives: []interface{}{ + pos: position{line: 73, col: 5, offset: 1697}, + alternatives: []any{ &actionExpr{ - pos: position{line: 74, col: 5, offset: 1698}, + pos: position{line: 73, col: 5, offset: 1697}, run: (*parser).callonOperation2, expr: &seqExpr{ - pos: position{line: 74, col: 5, offset: 1698}, - exprs: []interface{}{ + pos: position{line: 73, col: 5, offset: 1697}, + exprs: []any{ &litMatcher{ - pos: position{line: 74, col: 5, offset: 1698}, + pos: position{line: 73, col: 5, offset: 1697}, val: "fork", ignoreCase: false, + want: "\"fork\"", }, &ruleRefExpr{ - pos: position{line: 74, col: 12, offset: 1705}, + pos: position{line: 73, col: 12, offset: 1704}, name: "__", }, &litMatcher{ - pos: position{line: 74, col: 15, offset: 1708}, + pos: position{line: 73, col: 15, offset: 1707}, val: "(", ignoreCase: false, + want: "\"(\"", }, &labeledExpr{ - pos: position{line: 74, col: 19, offset: 1712}, + pos: position{line: 73, col: 19, offset: 1711}, label: "paths", expr: &oneOrMoreExpr{ - pos: position{line: 74, col: 25, offset: 1718}, + pos: position{line: 73, col: 25, offset: 1717}, expr: &ruleRefExpr{ - pos: position{line: 74, col: 25, offset: 1718}, + pos: position{line: 73, col: 25, offset: 1717}, name: "Leg", }, }, }, &ruleRefExpr{ - pos: position{line: 74, col: 30, offset: 1723}, + pos: position{line: 73, col: 30, offset: 1722}, name: "__", }, &litMatcher{ - pos: position{line: 74, col: 33, offset: 1726}, + pos: position{line: 73, col: 33, offset: 1725}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &actionExpr{ - pos: position{line: 77, col: 5, offset: 1819}, + pos: position{line: 76, col: 5, offset: 1818}, run: (*parser).callonOperation12, expr: &seqExpr{ - pos: position{line: 77, col: 5, offset: 1819}, - exprs: []interface{}{ + pos: position{line: 76, col: 5, offset: 1818}, + exprs: []any{ &litMatcher{ - pos: position{line: 77, col: 5, offset: 1819}, + pos: position{line: 76, col: 5, offset: 1818}, val: "switch", ignoreCase: false, + want: "\"switch\"", }, &ruleRefExpr{ - pos: position{line: 77, col: 14, offset: 1828}, + pos: position{line: 76, col: 14, offset: 1827}, name: "_", }, &labeledExpr{ - pos: position{line: 77, col: 16, offset: 1830}, + pos: position{line: 76, col: 16, offset: 1829}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 77, col: 21, offset: 1835}, + pos: position{line: 76, col: 21, offset: 1834}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 77, col: 26, offset: 1840}, + pos: position{line: 76, col: 26, offset: 1839}, name: "_", }, &litMatcher{ - pos: position{line: 77, col: 28, offset: 1842}, + pos: position{line: 76, col: 28, offset: 1841}, val: "(", ignoreCase: false, + want: "\"(\"", }, &labeledExpr{ - pos: position{line: 77, col: 32, offset: 1846}, + pos: position{line: 76, col: 32, offset: 1845}, label: "cases", expr: &oneOrMoreExpr{ - pos: position{line: 77, col: 38, offset: 1852}, + pos: position{line: 76, col: 38, offset: 1851}, expr: &ruleRefExpr{ - pos: position{line: 77, col: 38, offset: 1852}, + pos: position{line: 76, col: 38, offset: 1851}, name: "SwitchLeg", }, }, }, &ruleRefExpr{ - pos: position{line: 77, col: 49, offset: 1863}, + pos: position{line: 76, col: 49, offset: 1862}, name: "__", }, &litMatcher{ - pos: position{line: 77, col: 52, offset: 1866}, + pos: position{line: 76, col: 52, offset: 1865}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &actionExpr{ - pos: position{line: 80, col: 5, offset: 1971}, + pos: position{line: 79, col: 5, offset: 1970}, run: (*parser).callonOperation25, expr: &seqExpr{ - pos: position{line: 80, col: 5, offset: 1971}, - exprs: []interface{}{ + pos: position{line: 79, col: 5, offset: 1970}, + exprs: []any{ &litMatcher{ - pos: position{line: 80, col: 5, offset: 1971}, + pos: position{line: 79, col: 5, offset: 1970}, val: "switch", ignoreCase: false, + want: "\"switch\"", }, &ruleRefExpr{ - pos: position{line: 80, col: 14, offset: 1980}, + pos: position{line: 79, col: 14, offset: 1979}, name: "__", }, &litMatcher{ - pos: position{line: 80, col: 17, offset: 1983}, + pos: position{line: 79, col: 17, offset: 1982}, val: "(", ignoreCase: false, + want: "\"(\"", }, &labeledExpr{ - pos: position{line: 80, col: 21, offset: 1987}, + pos: position{line: 79, col: 21, offset: 1986}, label: "cases", expr: &oneOrMoreExpr{ - pos: position{line: 80, col: 27, offset: 1993}, + pos: position{line: 79, col: 27, offset: 1992}, expr: &ruleRefExpr{ - pos: position{line: 80, col: 27, offset: 1993}, + pos: position{line: 79, col: 27, offset: 1992}, name: "SwitchLeg", }, }, }, &ruleRefExpr{ - pos: position{line: 80, col: 38, offset: 2004}, + pos: position{line: 79, col: 38, offset: 2003}, name: "__", }, &litMatcher{ - pos: position{line: 80, col: 41, offset: 2007}, + pos: position{line: 79, col: 41, offset: 2006}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &actionExpr{ - pos: position{line: 83, col: 5, offset: 2111}, + pos: position{line: 82, col: 5, offset: 2110}, run: (*parser).callonOperation35, expr: &seqExpr{ - pos: position{line: 83, col: 5, offset: 2111}, - exprs: []interface{}{ + pos: position{line: 82, col: 5, offset: 2110}, + exprs: []any{ &litMatcher{ - pos: position{line: 83, col: 5, offset: 2111}, + pos: position{line: 82, col: 5, offset: 2110}, val: "from", ignoreCase: false, + want: "\"from\"", }, &ruleRefExpr{ - pos: position{line: 83, col: 12, offset: 2118}, + pos: position{line: 82, col: 12, offset: 2117}, name: "__", }, &litMatcher{ - pos: position{line: 83, col: 15, offset: 2121}, + pos: position{line: 82, col: 15, offset: 2120}, val: "(", ignoreCase: false, + want: "\"(\"", }, &labeledExpr{ - pos: position{line: 83, col: 19, offset: 2125}, + pos: position{line: 82, col: 19, offset: 2124}, label: "trunks", expr: &oneOrMoreExpr{ - pos: position{line: 83, col: 26, offset: 2132}, + pos: position{line: 82, col: 26, offset: 2131}, expr: &ruleRefExpr{ - pos: position{line: 83, col: 26, offset: 2132}, + pos: position{line: 82, col: 26, offset: 2131}, name: "FromLeg", }, }, }, &ruleRefExpr{ - pos: position{line: 83, col: 35, offset: 2141}, + pos: position{line: 82, col: 35, offset: 2140}, name: "__", }, &litMatcher{ - pos: position{line: 83, col: 38, offset: 2144}, + pos: position{line: 82, col: 38, offset: 2143}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &actionExpr{ - pos: position{line: 86, col: 5, offset: 2235}, + pos: position{line: 85, col: 5, offset: 2234}, run: (*parser).callonOperation45, expr: &seqExpr{ - pos: position{line: 86, col: 5, offset: 2235}, - exprs: []interface{}{ + pos: position{line: 85, col: 5, offset: 2234}, + exprs: []any{ &litMatcher{ - pos: position{line: 86, col: 5, offset: 2235}, + pos: position{line: 85, col: 5, offset: 2234}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 86, col: 9, offset: 2239}, + pos: position{line: 85, col: 9, offset: 2238}, name: "__", }, &labeledExpr{ - pos: position{line: 86, col: 12, offset: 2242}, + pos: position{line: 85, col: 12, offset: 2241}, label: "scope", expr: &ruleRefExpr{ - pos: position{line: 86, col: 18, offset: 2248}, + pos: position{line: 85, col: 18, offset: 2247}, name: "Scope", }, }, &ruleRefExpr{ - pos: position{line: 86, col: 24, offset: 2254}, + pos: position{line: 85, col: 24, offset: 2253}, name: "__", }, &litMatcher{ - pos: position{line: 86, col: 27, offset: 2257}, + pos: position{line: 85, col: 27, offset: 2256}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &labeledExpr{ - pos: position{line: 87, col: 5, offset: 2287}, + pos: position{line: 86, col: 5, offset: 2286}, label: "op", expr: &ruleRefExpr{ - pos: position{line: 87, col: 8, offset: 2290}, + pos: position{line: 86, col: 8, offset: 2289}, name: "Operator", }, }, &actionExpr{ - pos: position{line: 88, col: 5, offset: 2303}, + pos: position{line: 87, col: 5, offset: 2302}, run: (*parser).callonOperation55, expr: &seqExpr{ - pos: position{line: 88, col: 5, offset: 2303}, - exprs: []interface{}{ + pos: position{line: 87, col: 5, offset: 2302}, + exprs: []any{ &labeledExpr{ - pos: position{line: 88, col: 5, offset: 2303}, + pos: position{line: 87, col: 5, offset: 2302}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 88, col: 7, offset: 2305}, + pos: position{line: 87, col: 7, offset: 2304}, name: "OpAssignment", }, }, &andExpr{ - pos: position{line: 88, col: 20, offset: 2318}, + pos: position{line: 87, col: 20, offset: 2317}, expr: &ruleRefExpr{ - pos: position{line: 88, col: 21, offset: 2319}, + pos: position{line: 87, col: 21, offset: 2318}, name: "EndOfOp", }, }, @@ -828,39 +858,39 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 89, col: 5, offset: 2349}, + pos: position{line: 88, col: 5, offset: 2348}, run: (*parser).callonOperation61, expr: &seqExpr{ - pos: position{line: 89, col: 5, offset: 2349}, - exprs: []interface{}{ + pos: position{line: 88, col: 5, offset: 2348}, + exprs: []any{ ¬Expr{ - pos: position{line: 89, col: 5, offset: 2349}, + pos: position{line: 88, col: 5, offset: 2348}, expr: &seqExpr{ - pos: position{line: 89, col: 7, offset: 2351}, - exprs: []interface{}{ + pos: position{line: 88, col: 7, offset: 2350}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 89, col: 7, offset: 2351}, + pos: position{line: 88, col: 7, offset: 2350}, name: "Function", }, &ruleRefExpr{ - pos: position{line: 89, col: 16, offset: 2360}, + pos: position{line: 88, col: 16, offset: 2359}, name: "EndOfOp", }, }, }, }, &labeledExpr{ - pos: position{line: 89, col: 25, offset: 2369}, + pos: position{line: 88, col: 25, offset: 2368}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 89, col: 27, offset: 2371}, + pos: position{line: 88, col: 27, offset: 2370}, name: "Aggregation", }, }, &andExpr{ - pos: position{line: 89, col: 39, offset: 2383}, + pos: position{line: 88, col: 39, offset: 2382}, expr: &ruleRefExpr{ - pos: position{line: 89, col: 40, offset: 2384}, + pos: position{line: 88, col: 40, offset: 2383}, name: "EndOfOp", }, }, @@ -868,25 +898,26 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 90, col: 5, offset: 2414}, + pos: position{line: 89, col: 5, offset: 2413}, run: (*parser).callonOperation71, expr: &seqExpr{ - pos: position{line: 90, col: 5, offset: 2414}, - exprs: []interface{}{ + pos: position{line: 89, col: 5, offset: 2413}, + exprs: []any{ &litMatcher{ - pos: position{line: 90, col: 5, offset: 2414}, + pos: position{line: 89, col: 5, offset: 2413}, val: "search", ignoreCase: false, + want: "\"search\"", }, &ruleRefExpr{ - pos: position{line: 90, col: 14, offset: 2423}, + pos: position{line: 89, col: 14, offset: 2422}, name: "_", }, &labeledExpr{ - pos: position{line: 90, col: 16, offset: 2425}, + pos: position{line: 89, col: 16, offset: 2424}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 90, col: 21, offset: 2430}, + pos: position{line: 89, col: 21, offset: 2429}, name: "SearchBoolean", }, }, @@ -894,37 +925,37 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 93, col: 5, offset: 2529}, + pos: position{line: 92, col: 5, offset: 2528}, run: (*parser).callonOperation77, expr: &labeledExpr{ - pos: position{line: 93, col: 5, offset: 2529}, + pos: position{line: 92, col: 5, offset: 2528}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 93, col: 10, offset: 2534}, + pos: position{line: 92, col: 10, offset: 2533}, name: "SearchBoolean", }, }, }, &actionExpr{ - pos: position{line: 96, col: 5, offset: 2633}, + pos: position{line: 95, col: 5, offset: 2632}, run: (*parser).callonOperation80, expr: &labeledExpr{ - pos: position{line: 96, col: 5, offset: 2633}, + pos: position{line: 95, col: 5, offset: 2632}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 96, col: 10, offset: 2638}, + pos: position{line: 95, col: 10, offset: 2637}, name: "Cast", }, }, }, &actionExpr{ - pos: position{line: 99, col: 5, offset: 2726}, + pos: position{line: 98, col: 5, offset: 2725}, run: (*parser).callonOperation83, expr: &labeledExpr{ - pos: position{line: 99, col: 5, offset: 2726}, + pos: position{line: 98, col: 5, offset: 2725}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 99, col: 10, offset: 2731}, + pos: position{line: 98, col: 10, offset: 2730}, name: "Expr", }, }, @@ -934,37 +965,39 @@ var g = &grammar{ }, { name: "EndOfOp", - pos: position{line: 103, col: 1, offset: 2818}, + pos: position{line: 102, col: 1, offset: 2817}, expr: &seqExpr{ - pos: position{line: 103, col: 11, offset: 2828}, - exprs: []interface{}{ + pos: position{line: 102, col: 11, offset: 2827}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 103, col: 11, offset: 2828}, + pos: position{line: 102, col: 11, offset: 2827}, name: "__", }, &choiceExpr{ - pos: position{line: 103, col: 15, offset: 2832}, - alternatives: []interface{}{ + pos: position{line: 102, col: 15, offset: 2831}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 103, col: 15, offset: 2832}, + pos: position{line: 102, col: 15, offset: 2831}, name: "Pipe", }, &ruleRefExpr{ - pos: position{line: 103, col: 22, offset: 2839}, + pos: position{line: 102, col: 22, offset: 2838}, name: "SearchKeywordGuard", }, &litMatcher{ - pos: position{line: 103, col: 43, offset: 2860}, + pos: position{line: 102, col: 43, offset: 2859}, val: "=>", ignoreCase: false, + want: "\"=>\"", }, &litMatcher{ - pos: position{line: 103, col: 50, offset: 2867}, + pos: position{line: 102, col: 50, offset: 2866}, val: ")", ignoreCase: false, + want: "\")\"", }, &ruleRefExpr{ - pos: position{line: 103, col: 56, offset: 2873}, + pos: position{line: 102, col: 56, offset: 2872}, name: "EOF", }, }, @@ -974,29 +1007,32 @@ var g = &grammar{ }, { name: "Pipe", - pos: position{line: 104, col: 1, offset: 2878}, + pos: position{line: 103, col: 1, offset: 2877}, expr: &seqExpr{ - pos: position{line: 104, col: 8, offset: 2885}, - exprs: []interface{}{ + pos: position{line: 103, col: 8, offset: 2884}, + exprs: []any{ &litMatcher{ - pos: position{line: 104, col: 8, offset: 2885}, + pos: position{line: 103, col: 8, offset: 2884}, val: "|", ignoreCase: false, + want: "\"|\"", }, ¬Expr{ - pos: position{line: 104, col: 12, offset: 2889}, + pos: position{line: 103, col: 12, offset: 2888}, expr: &choiceExpr{ - pos: position{line: 104, col: 14, offset: 2891}, - alternatives: []interface{}{ + pos: position{line: 103, col: 14, offset: 2890}, + alternatives: []any{ &litMatcher{ - pos: position{line: 104, col: 14, offset: 2891}, + pos: position{line: 103, col: 14, offset: 2890}, val: "{", ignoreCase: false, + want: "\"{\"", }, &litMatcher{ - pos: position{line: 104, col: 20, offset: 2897}, + pos: position{line: 103, col: 20, offset: 2896}, val: "[", ignoreCase: false, + want: "\"[\"", }, }, }, @@ -1006,31 +1042,32 @@ var g = &grammar{ }, { name: "Leg", - pos: position{line: 106, col: 1, offset: 2903}, + pos: position{line: 105, col: 1, offset: 2902}, expr: &actionExpr{ - pos: position{line: 106, col: 7, offset: 2909}, + pos: position{line: 105, col: 7, offset: 2908}, run: (*parser).callonLeg1, expr: &seqExpr{ - pos: position{line: 106, col: 7, offset: 2909}, - exprs: []interface{}{ + pos: position{line: 105, col: 7, offset: 2908}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 106, col: 7, offset: 2909}, + pos: position{line: 105, col: 7, offset: 2908}, name: "__", }, &litMatcher{ - pos: position{line: 106, col: 10, offset: 2912}, + pos: position{line: 105, col: 10, offset: 2911}, val: "=>", ignoreCase: false, + want: "\"=>\"", }, &ruleRefExpr{ - pos: position{line: 106, col: 15, offset: 2917}, + pos: position{line: 105, col: 15, offset: 2916}, name: "__", }, &labeledExpr{ - pos: position{line: 106, col: 18, offset: 2920}, + pos: position{line: 105, col: 18, offset: 2919}, label: "seq", expr: &ruleRefExpr{ - pos: position{line: 106, col: 22, offset: 2924}, + pos: position{line: 105, col: 22, offset: 2923}, name: "Seq", }, }, @@ -1040,30 +1077,30 @@ var g = &grammar{ }, { name: "SwitchLeg", - pos: position{line: 108, col: 1, offset: 2949}, + pos: position{line: 107, col: 1, offset: 2948}, expr: &actionExpr{ - pos: position{line: 109, col: 5, offset: 2963}, + pos: position{line: 108, col: 5, offset: 2962}, run: (*parser).callonSwitchLeg1, expr: &seqExpr{ - pos: position{line: 109, col: 5, offset: 2963}, - exprs: []interface{}{ + pos: position{line: 108, col: 5, offset: 2962}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 109, col: 5, offset: 2963}, + pos: position{line: 108, col: 5, offset: 2962}, name: "__", }, &labeledExpr{ - pos: position{line: 109, col: 8, offset: 2966}, + pos: position{line: 108, col: 8, offset: 2965}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 109, col: 13, offset: 2971}, + pos: position{line: 108, col: 13, offset: 2970}, name: "Case", }, }, &labeledExpr{ - pos: position{line: 109, col: 18, offset: 2976}, + pos: position{line: 108, col: 18, offset: 2975}, label: "path", expr: &ruleRefExpr{ - pos: position{line: 109, col: 23, offset: 2981}, + pos: position{line: 108, col: 23, offset: 2980}, name: "Leg", }, }, @@ -1073,30 +1110,31 @@ var g = &grammar{ }, { name: "Case", - pos: position{line: 113, col: 1, offset: 3063}, + pos: position{line: 112, col: 1, offset: 3062}, expr: &choiceExpr{ - pos: position{line: 114, col: 5, offset: 3072}, - alternatives: []interface{}{ + pos: position{line: 113, col: 5, offset: 3071}, + alternatives: []any{ &actionExpr{ - pos: position{line: 114, col: 5, offset: 3072}, + pos: position{line: 113, col: 5, offset: 3071}, run: (*parser).callonCase2, expr: &seqExpr{ - pos: position{line: 114, col: 5, offset: 3072}, - exprs: []interface{}{ + pos: position{line: 113, col: 5, offset: 3071}, + exprs: []any{ &litMatcher{ - pos: position{line: 114, col: 5, offset: 3072}, + pos: position{line: 113, col: 5, offset: 3071}, val: "case", ignoreCase: false, + want: "\"case\"", }, &ruleRefExpr{ - pos: position{line: 114, col: 12, offset: 3079}, + pos: position{line: 113, col: 12, offset: 3078}, name: "_", }, &labeledExpr{ - pos: position{line: 114, col: 14, offset: 3081}, + pos: position{line: 113, col: 14, offset: 3080}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 114, col: 19, offset: 3086}, + pos: position{line: 113, col: 19, offset: 3085}, name: "Expr", }, }, @@ -1104,12 +1142,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 115, col: 5, offset: 3116}, + pos: position{line: 114, col: 5, offset: 3115}, run: (*parser).callonCase8, expr: &litMatcher{ - pos: position{line: 115, col: 5, offset: 3116}, + pos: position{line: 114, col: 5, offset: 3115}, val: "default", ignoreCase: false, + want: "\"default\"", }, }, }, @@ -1117,48 +1156,49 @@ var g = &grammar{ }, { name: "FromLeg", - pos: position{line: 117, col: 1, offset: 3147}, + pos: position{line: 116, col: 1, offset: 3146}, expr: &actionExpr{ - pos: position{line: 118, col: 5, offset: 3159}, + pos: position{line: 117, col: 5, offset: 3158}, run: (*parser).callonFromLeg1, expr: &seqExpr{ - pos: position{line: 118, col: 5, offset: 3159}, - exprs: []interface{}{ + pos: position{line: 117, col: 5, offset: 3158}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 118, col: 5, offset: 3159}, + pos: position{line: 117, col: 5, offset: 3158}, name: "__", }, &labeledExpr{ - pos: position{line: 118, col: 8, offset: 3162}, + pos: position{line: 117, col: 8, offset: 3161}, label: "source", expr: &ruleRefExpr{ - pos: position{line: 118, col: 15, offset: 3169}, + pos: position{line: 117, col: 15, offset: 3168}, name: "FromSource", }, }, &labeledExpr{ - pos: position{line: 118, col: 26, offset: 3180}, + pos: position{line: 117, col: 26, offset: 3179}, label: "opt", expr: &zeroOrOneExpr{ - pos: position{line: 118, col: 30, offset: 3184}, + pos: position{line: 117, col: 30, offset: 3183}, expr: &seqExpr{ - pos: position{line: 118, col: 31, offset: 3185}, - exprs: []interface{}{ + pos: position{line: 117, col: 31, offset: 3184}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 118, col: 31, offset: 3185}, + pos: position{line: 117, col: 31, offset: 3184}, name: "__", }, &litMatcher{ - pos: position{line: 118, col: 34, offset: 3188}, + pos: position{line: 117, col: 34, offset: 3187}, val: "=>", ignoreCase: false, + want: "\"=>\"", }, &ruleRefExpr{ - pos: position{line: 118, col: 39, offset: 3193}, + pos: position{line: 117, col: 39, offset: 3192}, name: "__", }, &ruleRefExpr{ - pos: position{line: 118, col: 42, offset: 3196}, + pos: position{line: 117, col: 42, offset: 3195}, name: "Seq", }, }, @@ -1171,24 +1211,24 @@ var g = &grammar{ }, { name: "FromSource", - pos: position{line: 126, col: 1, offset: 3387}, + pos: position{line: 125, col: 1, offset: 3386}, expr: &choiceExpr{ - pos: position{line: 127, col: 5, offset: 3402}, - alternatives: []interface{}{ + pos: position{line: 126, col: 5, offset: 3401}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 127, col: 5, offset: 3402}, + pos: position{line: 126, col: 5, offset: 3401}, name: "File", }, &ruleRefExpr{ - pos: position{line: 128, col: 5, offset: 3411}, + pos: position{line: 127, col: 5, offset: 3410}, name: "Get", }, &ruleRefExpr{ - pos: position{line: 129, col: 5, offset: 3419}, + pos: position{line: 128, col: 5, offset: 3418}, name: "Pool", }, &ruleRefExpr{ - pos: position{line: 130, col: 5, offset: 3428}, + pos: position{line: 129, col: 5, offset: 3427}, name: "PassOp", }, }, @@ -1196,61 +1236,66 @@ var g = &grammar{ }, { name: "ExprGuard", - pos: position{line: 132, col: 1, offset: 3436}, + pos: position{line: 131, col: 1, offset: 3435}, expr: &seqExpr{ - pos: position{line: 132, col: 13, offset: 3448}, - exprs: []interface{}{ + pos: position{line: 131, col: 13, offset: 3447}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 132, col: 13, offset: 3448}, + pos: position{line: 131, col: 13, offset: 3447}, name: "__", }, &choiceExpr{ - pos: position{line: 132, col: 17, offset: 3452}, - alternatives: []interface{}{ + pos: position{line: 131, col: 17, offset: 3451}, + alternatives: []any{ &seqExpr{ - pos: position{line: 132, col: 18, offset: 3453}, - exprs: []interface{}{ + pos: position{line: 131, col: 18, offset: 3452}, + exprs: []any{ ¬Expr{ - pos: position{line: 132, col: 18, offset: 3453}, + pos: position{line: 131, col: 18, offset: 3452}, expr: &litMatcher{ - pos: position{line: 132, col: 19, offset: 3454}, + pos: position{line: 131, col: 19, offset: 3453}, val: "=>", ignoreCase: false, + want: "\"=>\"", }, }, &ruleRefExpr{ - pos: position{line: 132, col: 24, offset: 3459}, + pos: position{line: 131, col: 24, offset: 3458}, name: "Comparator", }, }, }, &ruleRefExpr{ - pos: position{line: 132, col: 38, offset: 3473}, + pos: position{line: 131, col: 38, offset: 3472}, name: "AdditiveOperator", }, &ruleRefExpr{ - pos: position{line: 132, col: 57, offset: 3492}, + pos: position{line: 131, col: 57, offset: 3491}, name: "MultiplicativeOperator", }, &litMatcher{ - pos: position{line: 132, col: 82, offset: 3517}, + pos: position{line: 131, col: 82, offset: 3516}, val: ":", ignoreCase: false, + want: "\":\"", }, &litMatcher{ - pos: position{line: 132, col: 88, offset: 3523}, + pos: position{line: 131, col: 88, offset: 3522}, val: "(", ignoreCase: false, + want: "\"(\"", }, &litMatcher{ - pos: position{line: 132, col: 94, offset: 3529}, + pos: position{line: 131, col: 94, offset: 3528}, val: "[", ignoreCase: false, + want: "\"[\"", }, &litMatcher{ - pos: position{line: 132, col: 100, offset: 3535}, + pos: position{line: 131, col: 100, offset: 3534}, val: "~", ignoreCase: false, + want: "\"~\"", }, }, }, @@ -1259,59 +1304,66 @@ var g = &grammar{ }, { name: "Comparator", - pos: position{line: 134, col: 1, offset: 3541}, + pos: position{line: 133, col: 1, offset: 3540}, expr: &actionExpr{ - pos: position{line: 134, col: 14, offset: 3554}, + pos: position{line: 133, col: 14, offset: 3553}, run: (*parser).callonComparator1, expr: &choiceExpr{ - pos: position{line: 134, col: 15, offset: 3555}, - alternatives: []interface{}{ + pos: position{line: 133, col: 15, offset: 3554}, + alternatives: []any{ &litMatcher{ - pos: position{line: 134, col: 15, offset: 3555}, + pos: position{line: 133, col: 15, offset: 3554}, val: "==", ignoreCase: false, + want: "\"==\"", }, &litMatcher{ - pos: position{line: 134, col: 22, offset: 3562}, + pos: position{line: 133, col: 22, offset: 3561}, val: "!=", ignoreCase: false, + want: "\"!=\"", }, &seqExpr{ - pos: position{line: 134, col: 30, offset: 3570}, - exprs: []interface{}{ + pos: position{line: 133, col: 30, offset: 3569}, + exprs: []any{ &litMatcher{ - pos: position{line: 134, col: 30, offset: 3570}, + pos: position{line: 133, col: 30, offset: 3569}, val: "in", ignoreCase: false, + want: "\"in\"", }, ¬Expr{ - pos: position{line: 134, col: 35, offset: 3575}, + pos: position{line: 133, col: 35, offset: 3574}, expr: &ruleRefExpr{ - pos: position{line: 134, col: 36, offset: 3576}, + pos: position{line: 133, col: 36, offset: 3575}, name: "IdentifierRest", }, }, }, }, &litMatcher{ - pos: position{line: 134, col: 54, offset: 3594}, + pos: position{line: 133, col: 54, offset: 3593}, val: "<=", ignoreCase: false, + want: "\"<=\"", }, &litMatcher{ - pos: position{line: 134, col: 61, offset: 3601}, + pos: position{line: 133, col: 61, offset: 3600}, val: "<", ignoreCase: false, + want: "\"<\"", }, &litMatcher{ - pos: position{line: 134, col: 67, offset: 3607}, + pos: position{line: 133, col: 67, offset: 3606}, val: ">=", ignoreCase: false, + want: "\">=\"", }, &litMatcher{ - pos: position{line: 134, col: 74, offset: 3614}, + pos: position{line: 133, col: 74, offset: 3613}, val: ">", ignoreCase: false, + want: "\">\"", }, }, }, @@ -1319,28 +1371,28 @@ var g = &grammar{ }, { name: "SearchBoolean", - pos: position{line: 136, col: 1, offset: 3651}, + pos: position{line: 135, col: 1, offset: 3650}, expr: &actionExpr{ - pos: position{line: 137, col: 5, offset: 3669}, + pos: position{line: 136, col: 5, offset: 3668}, run: (*parser).callonSearchBoolean1, expr: &seqExpr{ - pos: position{line: 137, col: 5, offset: 3669}, - exprs: []interface{}{ + pos: position{line: 136, col: 5, offset: 3668}, + exprs: []any{ &labeledExpr{ - pos: position{line: 137, col: 5, offset: 3669}, + pos: position{line: 136, col: 5, offset: 3668}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 137, col: 11, offset: 3675}, + pos: position{line: 136, col: 11, offset: 3674}, name: "SearchAnd", }, }, &labeledExpr{ - pos: position{line: 137, col: 21, offset: 3685}, + pos: position{line: 136, col: 21, offset: 3684}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 137, col: 26, offset: 3690}, + pos: position{line: 136, col: 26, offset: 3689}, expr: &ruleRefExpr{ - pos: position{line: 137, col: 26, offset: 3690}, + pos: position{line: 136, col: 26, offset: 3689}, name: "SearchOrTerm", }, }, @@ -1351,30 +1403,30 @@ var g = &grammar{ }, { name: "SearchOrTerm", - pos: position{line: 141, col: 1, offset: 3764}, + pos: position{line: 140, col: 1, offset: 3763}, expr: &actionExpr{ - pos: position{line: 141, col: 16, offset: 3779}, + pos: position{line: 140, col: 16, offset: 3778}, run: (*parser).callonSearchOrTerm1, expr: &seqExpr{ - pos: position{line: 141, col: 16, offset: 3779}, - exprs: []interface{}{ + pos: position{line: 140, col: 16, offset: 3778}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 141, col: 16, offset: 3779}, + pos: position{line: 140, col: 16, offset: 3778}, name: "_", }, &ruleRefExpr{ - pos: position{line: 141, col: 18, offset: 3781}, + pos: position{line: 140, col: 18, offset: 3780}, name: "OrToken", }, &ruleRefExpr{ - pos: position{line: 141, col: 26, offset: 3789}, + pos: position{line: 140, col: 26, offset: 3788}, name: "_", }, &labeledExpr{ - pos: position{line: 141, col: 28, offset: 3791}, + pos: position{line: 140, col: 28, offset: 3790}, label: "t", expr: &ruleRefExpr{ - pos: position{line: 141, col: 30, offset: 3793}, + pos: position{line: 140, col: 30, offset: 3792}, name: "SearchAnd", }, }, @@ -1384,73 +1436,73 @@ var g = &grammar{ }, { name: "SearchAnd", - pos: position{line: 143, col: 1, offset: 3843}, + pos: position{line: 142, col: 1, offset: 3842}, expr: &actionExpr{ - pos: position{line: 144, col: 5, offset: 3857}, + pos: position{line: 143, col: 5, offset: 3856}, run: (*parser).callonSearchAnd1, expr: &seqExpr{ - pos: position{line: 144, col: 5, offset: 3857}, - exprs: []interface{}{ + pos: position{line: 143, col: 5, offset: 3856}, + exprs: []any{ &labeledExpr{ - pos: position{line: 144, col: 5, offset: 3857}, + pos: position{line: 143, col: 5, offset: 3856}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 144, col: 11, offset: 3863}, + pos: position{line: 143, col: 11, offset: 3862}, name: "SearchFactor", }, }, &labeledExpr{ - pos: position{line: 145, col: 5, offset: 3880}, + pos: position{line: 144, col: 5, offset: 3879}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 145, col: 10, offset: 3885}, + pos: position{line: 144, col: 10, offset: 3884}, expr: &actionExpr{ - pos: position{line: 145, col: 11, offset: 3886}, + pos: position{line: 144, col: 11, offset: 3885}, run: (*parser).callonSearchAnd7, expr: &seqExpr{ - pos: position{line: 145, col: 11, offset: 3886}, - exprs: []interface{}{ + pos: position{line: 144, col: 11, offset: 3885}, + exprs: []any{ &zeroOrOneExpr{ - pos: position{line: 145, col: 11, offset: 3886}, + pos: position{line: 144, col: 11, offset: 3885}, expr: &seqExpr{ - pos: position{line: 145, col: 12, offset: 3887}, - exprs: []interface{}{ + pos: position{line: 144, col: 12, offset: 3886}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 145, col: 12, offset: 3887}, + pos: position{line: 144, col: 12, offset: 3886}, name: "_", }, &ruleRefExpr{ - pos: position{line: 145, col: 14, offset: 3889}, + pos: position{line: 144, col: 14, offset: 3888}, name: "AndToken", }, }, }, }, &ruleRefExpr{ - pos: position{line: 145, col: 25, offset: 3900}, + pos: position{line: 144, col: 25, offset: 3899}, name: "_", }, ¬Expr{ - pos: position{line: 145, col: 27, offset: 3902}, + pos: position{line: 144, col: 27, offset: 3901}, expr: &choiceExpr{ - pos: position{line: 145, col: 29, offset: 3904}, - alternatives: []interface{}{ + pos: position{line: 144, col: 29, offset: 3903}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 145, col: 29, offset: 3904}, + pos: position{line: 144, col: 29, offset: 3903}, name: "OrToken", }, &ruleRefExpr{ - pos: position{line: 145, col: 39, offset: 3914}, + pos: position{line: 144, col: 39, offset: 3913}, name: "SearchKeywordGuard", }, }, }, }, &labeledExpr{ - pos: position{line: 145, col: 59, offset: 3934}, + pos: position{line: 144, col: 59, offset: 3933}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 145, col: 64, offset: 3939}, + pos: position{line: 144, col: 64, offset: 3938}, name: "SearchFactor", }, }, @@ -1465,41 +1517,42 @@ var g = &grammar{ }, { name: "SearchKeywordGuard", - pos: position{line: 149, col: 1, offset: 4057}, + pos: position{line: 148, col: 1, offset: 4056}, expr: &choiceExpr{ - pos: position{line: 150, col: 5, offset: 4080}, - alternatives: []interface{}{ + pos: position{line: 149, col: 5, offset: 4079}, + alternatives: []any{ &seqExpr{ - pos: position{line: 150, col: 5, offset: 4080}, - exprs: []interface{}{ + pos: position{line: 149, col: 5, offset: 4079}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 150, col: 5, offset: 4080}, + pos: position{line: 149, col: 5, offset: 4079}, name: "FromSource", }, &ruleRefExpr{ - pos: position{line: 150, col: 16, offset: 4091}, + pos: position{line: 149, col: 16, offset: 4090}, name: "__", }, &litMatcher{ - pos: position{line: 150, col: 19, offset: 4094}, + pos: position{line: 149, col: 19, offset: 4093}, val: "=>", ignoreCase: false, + want: "\"=>\"", }, &ruleRefExpr{ - pos: position{line: 150, col: 24, offset: 4099}, + pos: position{line: 149, col: 24, offset: 4098}, name: "__", }, }, }, &seqExpr{ - pos: position{line: 151, col: 5, offset: 4106}, - exprs: []interface{}{ + pos: position{line: 150, col: 5, offset: 4105}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 151, col: 5, offset: 4106}, + pos: position{line: 150, col: 5, offset: 4105}, name: "Case", }, &ruleRefExpr{ - pos: position{line: 151, col: 10, offset: 4111}, + pos: position{line: 150, col: 10, offset: 4110}, name: "__", }, }, @@ -1509,42 +1562,43 @@ var g = &grammar{ }, { name: "SearchFactor", - pos: position{line: 153, col: 1, offset: 4115}, + pos: position{line: 152, col: 1, offset: 4114}, expr: &choiceExpr{ - pos: position{line: 154, col: 5, offset: 4132}, - alternatives: []interface{}{ + pos: position{line: 153, col: 5, offset: 4131}, + alternatives: []any{ &actionExpr{ - pos: position{line: 154, col: 5, offset: 4132}, + pos: position{line: 153, col: 5, offset: 4131}, run: (*parser).callonSearchFactor2, expr: &seqExpr{ - pos: position{line: 154, col: 5, offset: 4132}, - exprs: []interface{}{ + pos: position{line: 153, col: 5, offset: 4131}, + exprs: []any{ &choiceExpr{ - pos: position{line: 154, col: 6, offset: 4133}, - alternatives: []interface{}{ + pos: position{line: 153, col: 6, offset: 4132}, + alternatives: []any{ &seqExpr{ - pos: position{line: 154, col: 6, offset: 4133}, - exprs: []interface{}{ + pos: position{line: 153, col: 6, offset: 4132}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 154, col: 6, offset: 4133}, + pos: position{line: 153, col: 6, offset: 4132}, name: "NotToken", }, &ruleRefExpr{ - pos: position{line: 154, col: 15, offset: 4142}, + pos: position{line: 153, col: 15, offset: 4141}, name: "_", }, }, }, &seqExpr{ - pos: position{line: 154, col: 19, offset: 4146}, - exprs: []interface{}{ + pos: position{line: 153, col: 19, offset: 4145}, + exprs: []any{ &litMatcher{ - pos: position{line: 154, col: 19, offset: 4146}, + pos: position{line: 153, col: 19, offset: 4145}, val: "!", ignoreCase: false, + want: "\"!\"", }, &ruleRefExpr{ - pos: position{line: 154, col: 23, offset: 4150}, + pos: position{line: 153, col: 23, offset: 4149}, name: "__", }, }, @@ -1552,10 +1606,10 @@ var g = &grammar{ }, }, &labeledExpr{ - pos: position{line: 154, col: 27, offset: 4154}, + pos: position{line: 153, col: 27, offset: 4153}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 154, col: 29, offset: 4156}, + pos: position{line: 153, col: 29, offset: 4155}, name: "SearchFactor", }, }, @@ -1563,42 +1617,44 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 157, col: 5, offset: 4268}, + pos: position{line: 156, col: 5, offset: 4267}, run: (*parser).callonSearchFactor13, expr: &seqExpr{ - pos: position{line: 157, col: 5, offset: 4268}, - exprs: []interface{}{ + pos: position{line: 156, col: 5, offset: 4267}, + exprs: []any{ &litMatcher{ - pos: position{line: 157, col: 5, offset: 4268}, + pos: position{line: 156, col: 5, offset: 4267}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 157, col: 9, offset: 4272}, + pos: position{line: 156, col: 9, offset: 4271}, name: "__", }, &labeledExpr{ - pos: position{line: 157, col: 12, offset: 4275}, + pos: position{line: 156, col: 12, offset: 4274}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 157, col: 17, offset: 4280}, + pos: position{line: 156, col: 17, offset: 4279}, name: "SearchBoolean", }, }, &ruleRefExpr{ - pos: position{line: 157, col: 31, offset: 4294}, + pos: position{line: 156, col: 31, offset: 4293}, name: "__", }, &litMatcher{ - pos: position{line: 157, col: 34, offset: 4297}, + pos: position{line: 156, col: 34, offset: 4296}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &ruleRefExpr{ - pos: position{line: 158, col: 5, offset: 4326}, + pos: position{line: 157, col: 5, offset: 4325}, name: "SearchExpr", }, }, @@ -1606,53 +1662,53 @@ var g = &grammar{ }, { name: "SearchExpr", - pos: position{line: 160, col: 1, offset: 4338}, + pos: position{line: 159, col: 1, offset: 4337}, expr: &choiceExpr{ - pos: position{line: 161, col: 5, offset: 4353}, - alternatives: []interface{}{ + pos: position{line: 160, col: 5, offset: 4352}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 161, col: 5, offset: 4353}, + pos: position{line: 160, col: 5, offset: 4352}, name: "Regexp", }, &ruleRefExpr{ - pos: position{line: 162, col: 5, offset: 4364}, + pos: position{line: 161, col: 5, offset: 4363}, name: "Glob", }, &actionExpr{ - pos: position{line: 163, col: 5, offset: 4373}, + pos: position{line: 162, col: 5, offset: 4372}, run: (*parser).callonSearchExpr4, expr: &seqExpr{ - pos: position{line: 163, col: 5, offset: 4373}, - exprs: []interface{}{ + pos: position{line: 162, col: 5, offset: 4372}, + exprs: []any{ &labeledExpr{ - pos: position{line: 163, col: 5, offset: 4373}, + pos: position{line: 162, col: 5, offset: 4372}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 163, col: 7, offset: 4375}, + pos: position{line: 162, col: 7, offset: 4374}, name: "SearchValue", }, }, &choiceExpr{ - pos: position{line: 163, col: 20, offset: 4388}, - alternatives: []interface{}{ + pos: position{line: 162, col: 20, offset: 4387}, + alternatives: []any{ ¬Expr{ - pos: position{line: 163, col: 20, offset: 4388}, + pos: position{line: 162, col: 20, offset: 4387}, expr: &ruleRefExpr{ - pos: position{line: 163, col: 21, offset: 4389}, + pos: position{line: 162, col: 21, offset: 4388}, name: "ExprGuard", }, }, &andExpr{ - pos: position{line: 163, col: 33, offset: 4401}, + pos: position{line: 162, col: 33, offset: 4400}, expr: &seqExpr{ - pos: position{line: 163, col: 35, offset: 4403}, - exprs: []interface{}{ + pos: position{line: 162, col: 35, offset: 4402}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 163, col: 35, offset: 4403}, + pos: position{line: 162, col: 35, offset: 4402}, name: "_", }, &ruleRefExpr{ - pos: position{line: 163, col: 37, offset: 4405}, + pos: position{line: 162, col: 37, offset: 4404}, name: "Glob", }, }, @@ -1664,20 +1720,21 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 166, col: 5, offset: 4517}, + pos: position{line: 165, col: 5, offset: 4516}, run: (*parser).callonSearchExpr15, expr: &seqExpr{ - pos: position{line: 166, col: 5, offset: 4517}, - exprs: []interface{}{ + pos: position{line: 165, col: 5, offset: 4516}, + exprs: []any{ &litMatcher{ - pos: position{line: 166, col: 5, offset: 4517}, + pos: position{line: 165, col: 5, offset: 4516}, val: "*", ignoreCase: false, + want: "\"*\"", }, ¬Expr{ - pos: position{line: 166, col: 9, offset: 4521}, + pos: position{line: 165, col: 9, offset: 4520}, expr: &ruleRefExpr{ - pos: position{line: 166, col: 10, offset: 4522}, + pos: position{line: 165, col: 10, offset: 4521}, name: "ExprGuard", }, }, @@ -1685,7 +1742,7 @@ var g = &grammar{ }, }, &ruleRefExpr{ - pos: position{line: 169, col: 5, offset: 4638}, + pos: position{line: 168, col: 5, offset: 4637}, name: "SearchPredicate", }, }, @@ -1693,45 +1750,45 @@ var g = &grammar{ }, { name: "SearchPredicate", - pos: position{line: 171, col: 1, offset: 4655}, + pos: position{line: 170, col: 1, offset: 4654}, expr: &choiceExpr{ - pos: position{line: 172, col: 5, offset: 4675}, - alternatives: []interface{}{ + pos: position{line: 171, col: 5, offset: 4674}, + alternatives: []any{ &actionExpr{ - pos: position{line: 172, col: 5, offset: 4675}, + pos: position{line: 171, col: 5, offset: 4674}, run: (*parser).callonSearchPredicate2, expr: &seqExpr{ - pos: position{line: 172, col: 5, offset: 4675}, - exprs: []interface{}{ + pos: position{line: 171, col: 5, offset: 4674}, + exprs: []any{ &labeledExpr{ - pos: position{line: 172, col: 5, offset: 4675}, + pos: position{line: 171, col: 5, offset: 4674}, label: "lhs", expr: &ruleRefExpr{ - pos: position{line: 172, col: 9, offset: 4679}, + pos: position{line: 171, col: 9, offset: 4678}, name: "AdditiveExpr", }, }, &ruleRefExpr{ - pos: position{line: 172, col: 22, offset: 4692}, + pos: position{line: 171, col: 22, offset: 4691}, name: "__", }, &labeledExpr{ - pos: position{line: 172, col: 25, offset: 4695}, + pos: position{line: 171, col: 25, offset: 4694}, label: "op", expr: &ruleRefExpr{ - pos: position{line: 172, col: 28, offset: 4698}, + pos: position{line: 171, col: 28, offset: 4697}, name: "Comparator", }, }, &ruleRefExpr{ - pos: position{line: 172, col: 39, offset: 4709}, + pos: position{line: 171, col: 39, offset: 4708}, name: "__", }, &labeledExpr{ - pos: position{line: 172, col: 42, offset: 4712}, + pos: position{line: 171, col: 42, offset: 4711}, label: "rhs", expr: &ruleRefExpr{ - pos: position{line: 172, col: 46, offset: 4716}, + pos: position{line: 171, col: 46, offset: 4715}, name: "AdditiveExpr", }, }, @@ -1739,26 +1796,26 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 175, col: 6, offset: 4839}, + pos: position{line: 174, col: 6, offset: 4838}, run: (*parser).callonSearchPredicate12, expr: &seqExpr{ - pos: position{line: 175, col: 6, offset: 4839}, - exprs: []interface{}{ + pos: position{line: 174, col: 6, offset: 4838}, + exprs: []any{ &labeledExpr{ - pos: position{line: 175, col: 6, offset: 4839}, + pos: position{line: 174, col: 6, offset: 4838}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 175, col: 12, offset: 4845}, + pos: position{line: 174, col: 12, offset: 4844}, name: "Function", }, }, &labeledExpr{ - pos: position{line: 175, col: 21, offset: 4854}, + pos: position{line: 174, col: 21, offset: 4853}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 175, col: 26, offset: 4859}, + pos: position{line: 174, col: 26, offset: 4858}, expr: &ruleRefExpr{ - pos: position{line: 175, col: 27, offset: 4860}, + pos: position{line: 174, col: 27, offset: 4859}, name: "Deref", }, }, @@ -1771,32 +1828,32 @@ var g = &grammar{ }, { name: "SearchValue", - pos: position{line: 179, col: 1, offset: 4932}, + pos: position{line: 178, col: 1, offset: 4931}, expr: &choiceExpr{ - pos: position{line: 180, col: 5, offset: 4948}, - alternatives: []interface{}{ + pos: position{line: 179, col: 5, offset: 4947}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 180, col: 5, offset: 4948}, + pos: position{line: 179, col: 5, offset: 4947}, name: "Literal", }, &actionExpr{ - pos: position{line: 181, col: 5, offset: 4960}, + pos: position{line: 180, col: 5, offset: 4959}, run: (*parser).callonSearchValue3, expr: &seqExpr{ - pos: position{line: 181, col: 5, offset: 4960}, - exprs: []interface{}{ + pos: position{line: 180, col: 5, offset: 4959}, + exprs: []any{ ¬Expr{ - pos: position{line: 181, col: 5, offset: 4960}, + pos: position{line: 180, col: 5, offset: 4959}, expr: &ruleRefExpr{ - pos: position{line: 181, col: 6, offset: 4961}, + pos: position{line: 180, col: 6, offset: 4960}, name: "RegexpPattern", }, }, &labeledExpr{ - pos: position{line: 181, col: 20, offset: 4975}, + pos: position{line: 180, col: 20, offset: 4974}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 181, col: 22, offset: 4977}, + pos: position{line: 180, col: 22, offset: 4976}, name: "KeyWord", }, }, @@ -1808,15 +1865,15 @@ var g = &grammar{ }, { name: "Glob", - pos: position{line: 185, col: 1, offset: 5085}, + pos: position{line: 184, col: 1, offset: 5084}, expr: &actionExpr{ - pos: position{line: 186, col: 5, offset: 5094}, + pos: position{line: 185, col: 5, offset: 5093}, run: (*parser).callonGlob1, expr: &labeledExpr{ - pos: position{line: 186, col: 5, offset: 5094}, + pos: position{line: 185, col: 5, offset: 5093}, label: "pattern", expr: &ruleRefExpr{ - pos: position{line: 186, col: 13, offset: 5102}, + pos: position{line: 185, col: 13, offset: 5101}, name: "GlobPattern", }, }, @@ -1824,15 +1881,15 @@ var g = &grammar{ }, { name: "Regexp", - pos: position{line: 190, col: 1, offset: 5198}, + pos: position{line: 189, col: 1, offset: 5197}, expr: &actionExpr{ - pos: position{line: 191, col: 5, offset: 5209}, + pos: position{line: 190, col: 5, offset: 5208}, run: (*parser).callonRegexp1, expr: &labeledExpr{ - pos: position{line: 191, col: 5, offset: 5209}, + pos: position{line: 190, col: 5, offset: 5208}, label: "pattern", expr: &ruleRefExpr{ - pos: position{line: 191, col: 13, offset: 5217}, + pos: position{line: 190, col: 13, offset: 5216}, name: "RegexpPattern", }, }, @@ -1840,36 +1897,36 @@ var g = &grammar{ }, { name: "Aggregation", - pos: position{line: 197, col: 1, offset: 5343}, + pos: position{line: 196, col: 1, offset: 5342}, expr: &choiceExpr{ - pos: position{line: 198, col: 5, offset: 5359}, - alternatives: []interface{}{ + pos: position{line: 197, col: 5, offset: 5358}, + alternatives: []any{ &actionExpr{ - pos: position{line: 198, col: 5, offset: 5359}, + pos: position{line: 197, col: 5, offset: 5358}, run: (*parser).callonAggregation2, expr: &seqExpr{ - pos: position{line: 198, col: 5, offset: 5359}, - exprs: []interface{}{ + pos: position{line: 197, col: 5, offset: 5358}, + exprs: []any{ &zeroOrOneExpr{ - pos: position{line: 198, col: 5, offset: 5359}, + pos: position{line: 197, col: 5, offset: 5358}, expr: &ruleRefExpr{ - pos: position{line: 198, col: 5, offset: 5359}, + pos: position{line: 197, col: 5, offset: 5358}, name: "Summarize", }, }, &labeledExpr{ - pos: position{line: 198, col: 16, offset: 5370}, + pos: position{line: 197, col: 16, offset: 5369}, label: "keys", expr: &ruleRefExpr{ - pos: position{line: 198, col: 21, offset: 5375}, + pos: position{line: 197, col: 21, offset: 5374}, name: "GroupByKeys", }, }, &labeledExpr{ - pos: position{line: 198, col: 33, offset: 5387}, + pos: position{line: 197, col: 33, offset: 5386}, label: "limit", expr: &ruleRefExpr{ - pos: position{line: 198, col: 39, offset: 5393}, + pos: position{line: 197, col: 39, offset: 5392}, name: "LimitArg", }, }, @@ -1877,40 +1934,40 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 201, col: 5, offset: 5519}, + pos: position{line: 200, col: 5, offset: 5518}, run: (*parser).callonAggregation10, expr: &seqExpr{ - pos: position{line: 201, col: 5, offset: 5519}, - exprs: []interface{}{ + pos: position{line: 200, col: 5, offset: 5518}, + exprs: []any{ &zeroOrOneExpr{ - pos: position{line: 201, col: 5, offset: 5519}, + pos: position{line: 200, col: 5, offset: 5518}, expr: &ruleRefExpr{ - pos: position{line: 201, col: 5, offset: 5519}, + pos: position{line: 200, col: 5, offset: 5518}, name: "Summarize", }, }, &labeledExpr{ - pos: position{line: 201, col: 16, offset: 5530}, + pos: position{line: 200, col: 16, offset: 5529}, label: "aggs", expr: &ruleRefExpr{ - pos: position{line: 201, col: 21, offset: 5535}, + pos: position{line: 200, col: 21, offset: 5534}, name: "AggAssignments", }, }, &labeledExpr{ - pos: position{line: 201, col: 36, offset: 5550}, + pos: position{line: 200, col: 36, offset: 5549}, label: "keys", expr: &zeroOrOneExpr{ - pos: position{line: 201, col: 41, offset: 5555}, + pos: position{line: 200, col: 41, offset: 5554}, expr: &seqExpr{ - pos: position{line: 201, col: 42, offset: 5556}, - exprs: []interface{}{ + pos: position{line: 200, col: 42, offset: 5555}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 201, col: 42, offset: 5556}, + pos: position{line: 200, col: 42, offset: 5555}, name: "_", }, &ruleRefExpr{ - pos: position{line: 201, col: 44, offset: 5558}, + pos: position{line: 200, col: 44, offset: 5557}, name: "GroupByKeys", }, }, @@ -1918,10 +1975,10 @@ var g = &grammar{ }, }, &labeledExpr{ - pos: position{line: 201, col: 58, offset: 5572}, + pos: position{line: 200, col: 58, offset: 5571}, label: "limit", expr: &ruleRefExpr{ - pos: position{line: 201, col: 64, offset: 5578}, + pos: position{line: 200, col: 64, offset: 5577}, name: "LimitArg", }, }, @@ -1933,17 +1990,18 @@ var g = &grammar{ }, { name: "Summarize", - pos: position{line: 209, col: 1, offset: 5792}, + pos: position{line: 208, col: 1, offset: 5791}, expr: &seqExpr{ - pos: position{line: 209, col: 13, offset: 5804}, - exprs: []interface{}{ + pos: position{line: 208, col: 13, offset: 5803}, + exprs: []any{ &litMatcher{ - pos: position{line: 209, col: 13, offset: 5804}, + pos: position{line: 208, col: 13, offset: 5803}, val: "summarize", ignoreCase: false, + want: "\"summarize\"", }, &ruleRefExpr{ - pos: position{line: 209, col: 25, offset: 5816}, + pos: position{line: 208, col: 25, offset: 5815}, name: "_", }, }, @@ -1951,26 +2009,26 @@ var g = &grammar{ }, { name: "GroupByKeys", - pos: position{line: 211, col: 1, offset: 5819}, + pos: position{line: 210, col: 1, offset: 5818}, expr: &actionExpr{ - pos: position{line: 212, col: 5, offset: 5835}, + pos: position{line: 211, col: 5, offset: 5834}, run: (*parser).callonGroupByKeys1, expr: &seqExpr{ - pos: position{line: 212, col: 5, offset: 5835}, - exprs: []interface{}{ + pos: position{line: 211, col: 5, offset: 5834}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 212, col: 5, offset: 5835}, + pos: position{line: 211, col: 5, offset: 5834}, name: "ByToken", }, &ruleRefExpr{ - pos: position{line: 212, col: 13, offset: 5843}, + pos: position{line: 211, col: 13, offset: 5842}, name: "_", }, &labeledExpr{ - pos: position{line: 212, col: 15, offset: 5845}, + pos: position{line: 211, col: 15, offset: 5844}, label: "columns", expr: &ruleRefExpr{ - pos: position{line: 212, col: 23, offset: 5853}, + pos: position{line: 211, col: 23, offset: 5852}, name: "FlexAssignments", }, }, @@ -1980,43 +2038,45 @@ var g = &grammar{ }, { name: "LimitArg", - pos: position{line: 214, col: 1, offset: 5894}, + pos: position{line: 213, col: 1, offset: 5893}, expr: &choiceExpr{ - pos: position{line: 215, col: 5, offset: 5907}, - alternatives: []interface{}{ + pos: position{line: 214, col: 5, offset: 5906}, + alternatives: []any{ &actionExpr{ - pos: position{line: 215, col: 5, offset: 5907}, + pos: position{line: 214, col: 5, offset: 5906}, run: (*parser).callonLimitArg2, expr: &seqExpr{ - pos: position{line: 215, col: 5, offset: 5907}, - exprs: []interface{}{ + pos: position{line: 214, col: 5, offset: 5906}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 215, col: 5, offset: 5907}, + pos: position{line: 214, col: 5, offset: 5906}, name: "_", }, &litMatcher{ - pos: position{line: 215, col: 7, offset: 5909}, + pos: position{line: 214, col: 7, offset: 5908}, val: "with", ignoreCase: false, + want: "\"with\"", }, &ruleRefExpr{ - pos: position{line: 215, col: 14, offset: 5916}, + pos: position{line: 214, col: 14, offset: 5915}, name: "_", }, &litMatcher{ - pos: position{line: 215, col: 16, offset: 5918}, + pos: position{line: 214, col: 16, offset: 5917}, val: "-limit", ignoreCase: false, + want: "\"-limit\"", }, &ruleRefExpr{ - pos: position{line: 215, col: 25, offset: 5927}, + pos: position{line: 214, col: 25, offset: 5926}, name: "_", }, &labeledExpr{ - pos: position{line: 215, col: 27, offset: 5929}, + pos: position{line: 214, col: 27, offset: 5928}, label: "limit", expr: &ruleRefExpr{ - pos: position{line: 215, col: 33, offset: 5935}, + pos: position{line: 214, col: 33, offset: 5934}, name: "UInt", }, }, @@ -2024,12 +2084,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 216, col: 5, offset: 5966}, + pos: position{line: 215, col: 5, offset: 5965}, run: (*parser).callonLimitArg11, expr: &litMatcher{ - pos: position{line: 216, col: 5, offset: 5966}, + pos: position{line: 215, col: 5, offset: 5965}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -2037,22 +2098,22 @@ var g = &grammar{ }, { name: "FlexAssignment", - pos: position{line: 221, col: 1, offset: 6226}, + pos: position{line: 220, col: 1, offset: 6225}, expr: &choiceExpr{ - pos: position{line: 222, col: 5, offset: 6245}, - alternatives: []interface{}{ + pos: position{line: 221, col: 5, offset: 6244}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 222, col: 5, offset: 6245}, + pos: position{line: 221, col: 5, offset: 6244}, name: "Assignment", }, &actionExpr{ - pos: position{line: 223, col: 5, offset: 6260}, + pos: position{line: 222, col: 5, offset: 6259}, run: (*parser).callonFlexAssignment3, expr: &labeledExpr{ - pos: position{line: 223, col: 5, offset: 6260}, + pos: position{line: 222, col: 5, offset: 6259}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 223, col: 10, offset: 6265}, + pos: position{line: 222, col: 10, offset: 6264}, name: "Expr", }, }, @@ -2062,50 +2123,51 @@ var g = &grammar{ }, { name: "FlexAssignments", - pos: position{line: 225, col: 1, offset: 6357}, + pos: position{line: 224, col: 1, offset: 6356}, expr: &actionExpr{ - pos: position{line: 226, col: 5, offset: 6377}, + pos: position{line: 225, col: 5, offset: 6376}, run: (*parser).callonFlexAssignments1, expr: &seqExpr{ - pos: position{line: 226, col: 5, offset: 6377}, - exprs: []interface{}{ + pos: position{line: 225, col: 5, offset: 6376}, + exprs: []any{ &labeledExpr{ - pos: position{line: 226, col: 5, offset: 6377}, + pos: position{line: 225, col: 5, offset: 6376}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 226, col: 11, offset: 6383}, + pos: position{line: 225, col: 11, offset: 6382}, name: "FlexAssignment", }, }, &labeledExpr{ - pos: position{line: 226, col: 26, offset: 6398}, + pos: position{line: 225, col: 26, offset: 6397}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 226, col: 31, offset: 6403}, + pos: position{line: 225, col: 31, offset: 6402}, expr: &actionExpr{ - pos: position{line: 226, col: 32, offset: 6404}, + pos: position{line: 225, col: 32, offset: 6403}, run: (*parser).callonFlexAssignments7, expr: &seqExpr{ - pos: position{line: 226, col: 32, offset: 6404}, - exprs: []interface{}{ + pos: position{line: 225, col: 32, offset: 6403}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 226, col: 32, offset: 6404}, + pos: position{line: 225, col: 32, offset: 6403}, name: "__", }, &litMatcher{ - pos: position{line: 226, col: 35, offset: 6407}, + pos: position{line: 225, col: 35, offset: 6406}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 226, col: 39, offset: 6411}, + pos: position{line: 225, col: 39, offset: 6410}, name: "__", }, &labeledExpr{ - pos: position{line: 226, col: 42, offset: 6414}, + pos: position{line: 225, col: 42, offset: 6413}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 226, col: 47, offset: 6419}, + pos: position{line: 225, col: 47, offset: 6418}, name: "FlexAssignment", }, }, @@ -2120,42 +2182,43 @@ var g = &grammar{ }, { name: "AggAssignment", - pos: position{line: 230, col: 1, offset: 6541}, + pos: position{line: 229, col: 1, offset: 6540}, expr: &choiceExpr{ - pos: position{line: 231, col: 5, offset: 6559}, - alternatives: []interface{}{ + pos: position{line: 230, col: 5, offset: 6558}, + alternatives: []any{ &actionExpr{ - pos: position{line: 231, col: 5, offset: 6559}, + pos: position{line: 230, col: 5, offset: 6558}, run: (*parser).callonAggAssignment2, expr: &seqExpr{ - pos: position{line: 231, col: 5, offset: 6559}, - exprs: []interface{}{ + pos: position{line: 230, col: 5, offset: 6558}, + exprs: []any{ &labeledExpr{ - pos: position{line: 231, col: 5, offset: 6559}, + pos: position{line: 230, col: 5, offset: 6558}, label: "lval", expr: &ruleRefExpr{ - pos: position{line: 231, col: 10, offset: 6564}, + pos: position{line: 230, col: 10, offset: 6563}, name: "Lval", }, }, &ruleRefExpr{ - pos: position{line: 231, col: 15, offset: 6569}, + pos: position{line: 230, col: 15, offset: 6568}, name: "__", }, &litMatcher{ - pos: position{line: 231, col: 18, offset: 6572}, + pos: position{line: 230, col: 18, offset: 6571}, val: ":=", ignoreCase: false, + want: "\":=\"", }, &ruleRefExpr{ - pos: position{line: 231, col: 23, offset: 6577}, + pos: position{line: 230, col: 23, offset: 6576}, name: "__", }, &labeledExpr{ - pos: position{line: 231, col: 26, offset: 6580}, + pos: position{line: 230, col: 26, offset: 6579}, label: "agg", expr: &ruleRefExpr{ - pos: position{line: 231, col: 30, offset: 6584}, + pos: position{line: 230, col: 30, offset: 6583}, name: "Agg", }, }, @@ -2163,13 +2226,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 234, col: 5, offset: 6688}, + pos: position{line: 233, col: 5, offset: 6687}, run: (*parser).callonAggAssignment11, expr: &labeledExpr{ - pos: position{line: 234, col: 5, offset: 6688}, + pos: position{line: 233, col: 5, offset: 6687}, label: "agg", expr: &ruleRefExpr{ - pos: position{line: 234, col: 9, offset: 6692}, + pos: position{line: 233, col: 9, offset: 6691}, name: "Agg", }, }, @@ -2179,55 +2242,56 @@ var g = &grammar{ }, { name: "Agg", - pos: position{line: 238, col: 1, offset: 6792}, + pos: position{line: 237, col: 1, offset: 6791}, expr: &actionExpr{ - pos: position{line: 239, col: 5, offset: 6800}, + pos: position{line: 238, col: 5, offset: 6799}, run: (*parser).callonAgg1, expr: &seqExpr{ - pos: position{line: 239, col: 5, offset: 6800}, - exprs: []interface{}{ + pos: position{line: 238, col: 5, offset: 6799}, + exprs: []any{ ¬Expr{ - pos: position{line: 239, col: 5, offset: 6800}, + pos: position{line: 238, col: 5, offset: 6799}, expr: &ruleRefExpr{ - pos: position{line: 239, col: 6, offset: 6801}, + pos: position{line: 238, col: 6, offset: 6800}, name: "FuncGuard", }, }, &labeledExpr{ - pos: position{line: 239, col: 16, offset: 6811}, + pos: position{line: 238, col: 16, offset: 6810}, label: "op", expr: &ruleRefExpr{ - pos: position{line: 239, col: 19, offset: 6814}, + pos: position{line: 238, col: 19, offset: 6813}, name: "AggName", }, }, &ruleRefExpr{ - pos: position{line: 239, col: 27, offset: 6822}, + pos: position{line: 238, col: 27, offset: 6821}, name: "__", }, &litMatcher{ - pos: position{line: 239, col: 30, offset: 6825}, + pos: position{line: 238, col: 30, offset: 6824}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 239, col: 34, offset: 6829}, + pos: position{line: 238, col: 34, offset: 6828}, name: "__", }, &labeledExpr{ - pos: position{line: 239, col: 37, offset: 6832}, + pos: position{line: 238, col: 37, offset: 6831}, label: "expr", expr: &zeroOrOneExpr{ - pos: position{line: 239, col: 42, offset: 6837}, + pos: position{line: 238, col: 42, offset: 6836}, expr: &choiceExpr{ - pos: position{line: 239, col: 43, offset: 6838}, - alternatives: []interface{}{ + pos: position{line: 238, col: 43, offset: 6837}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 239, col: 43, offset: 6838}, + pos: position{line: 238, col: 43, offset: 6837}, name: "OverExpr", }, &ruleRefExpr{ - pos: position{line: 239, col: 54, offset: 6849}, + pos: position{line: 238, col: 54, offset: 6848}, name: "Expr", }, }, @@ -2235,38 +2299,40 @@ var g = &grammar{ }, }, &ruleRefExpr{ - pos: position{line: 239, col: 61, offset: 6856}, + pos: position{line: 238, col: 61, offset: 6855}, name: "__", }, &litMatcher{ - pos: position{line: 239, col: 64, offset: 6859}, + pos: position{line: 238, col: 64, offset: 6858}, val: ")", ignoreCase: false, + want: "\")\"", }, ¬Expr{ - pos: position{line: 239, col: 68, offset: 6863}, + pos: position{line: 238, col: 68, offset: 6862}, expr: &seqExpr{ - pos: position{line: 239, col: 70, offset: 6865}, - exprs: []interface{}{ + pos: position{line: 238, col: 70, offset: 6864}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 239, col: 70, offset: 6865}, + pos: position{line: 238, col: 70, offset: 6864}, name: "__", }, &litMatcher{ - pos: position{line: 239, col: 73, offset: 6868}, + pos: position{line: 238, col: 73, offset: 6867}, val: ".", ignoreCase: false, + want: "\".\"", }, }, }, }, &labeledExpr{ - pos: position{line: 239, col: 78, offset: 6873}, + pos: position{line: 238, col: 78, offset: 6872}, label: "where", expr: &zeroOrOneExpr{ - pos: position{line: 239, col: 84, offset: 6879}, + pos: position{line: 238, col: 84, offset: 6878}, expr: &ruleRefExpr{ - pos: position{line: 239, col: 84, offset: 6879}, + pos: position{line: 238, col: 84, offset: 6878}, name: "WhereClause", }, }, @@ -2277,20 +2343,20 @@ var g = &grammar{ }, { name: "AggName", - pos: position{line: 247, col: 1, offset: 7070}, + pos: position{line: 246, col: 1, offset: 7069}, expr: &choiceExpr{ - pos: position{line: 248, col: 5, offset: 7082}, - alternatives: []interface{}{ + pos: position{line: 247, col: 5, offset: 7081}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 248, col: 5, offset: 7082}, + pos: position{line: 247, col: 5, offset: 7081}, name: "IdentifierName", }, &ruleRefExpr{ - pos: position{line: 249, col: 5, offset: 7101}, + pos: position{line: 248, col: 5, offset: 7100}, name: "AndToken", }, &ruleRefExpr{ - pos: position{line: 250, col: 5, offset: 7114}, + pos: position{line: 249, col: 5, offset: 7113}, name: "OrToken", }, }, @@ -2298,31 +2364,32 @@ var g = &grammar{ }, { name: "WhereClause", - pos: position{line: 252, col: 1, offset: 7123}, + pos: position{line: 251, col: 1, offset: 7122}, expr: &actionExpr{ - pos: position{line: 252, col: 15, offset: 7137}, + pos: position{line: 251, col: 15, offset: 7136}, run: (*parser).callonWhereClause1, expr: &seqExpr{ - pos: position{line: 252, col: 15, offset: 7137}, - exprs: []interface{}{ + pos: position{line: 251, col: 15, offset: 7136}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 252, col: 15, offset: 7137}, + pos: position{line: 251, col: 15, offset: 7136}, name: "_", }, &litMatcher{ - pos: position{line: 252, col: 17, offset: 7139}, + pos: position{line: 251, col: 17, offset: 7138}, val: "where", ignoreCase: false, + want: "\"where\"", }, &ruleRefExpr{ - pos: position{line: 252, col: 25, offset: 7147}, + pos: position{line: 251, col: 25, offset: 7146}, name: "_", }, &labeledExpr{ - pos: position{line: 252, col: 27, offset: 7149}, + pos: position{line: 251, col: 27, offset: 7148}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 252, col: 32, offset: 7154}, + pos: position{line: 251, col: 32, offset: 7153}, name: "LogicalOrExpr", }, }, @@ -2332,44 +2399,45 @@ var g = &grammar{ }, { name: "AggAssignments", - pos: position{line: 254, col: 1, offset: 7190}, + pos: position{line: 253, col: 1, offset: 7189}, expr: &actionExpr{ - pos: position{line: 255, col: 5, offset: 7209}, + pos: position{line: 254, col: 5, offset: 7208}, run: (*parser).callonAggAssignments1, expr: &seqExpr{ - pos: position{line: 255, col: 5, offset: 7209}, - exprs: []interface{}{ + pos: position{line: 254, col: 5, offset: 7208}, + exprs: []any{ &labeledExpr{ - pos: position{line: 255, col: 5, offset: 7209}, + pos: position{line: 254, col: 5, offset: 7208}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 255, col: 11, offset: 7215}, + pos: position{line: 254, col: 11, offset: 7214}, name: "AggAssignment", }, }, &labeledExpr{ - pos: position{line: 255, col: 25, offset: 7229}, + pos: position{line: 254, col: 25, offset: 7228}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 255, col: 30, offset: 7234}, + pos: position{line: 254, col: 30, offset: 7233}, expr: &seqExpr{ - pos: position{line: 255, col: 31, offset: 7235}, - exprs: []interface{}{ + pos: position{line: 254, col: 31, offset: 7234}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 255, col: 31, offset: 7235}, + pos: position{line: 254, col: 31, offset: 7234}, name: "__", }, &litMatcher{ - pos: position{line: 255, col: 34, offset: 7238}, + pos: position{line: 254, col: 34, offset: 7237}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 255, col: 38, offset: 7242}, + pos: position{line: 254, col: 38, offset: 7241}, name: "__", }, &ruleRefExpr{ - pos: position{line: 255, col: 41, offset: 7245}, + pos: position{line: 254, col: 41, offset: 7244}, name: "AggAssignment", }, }, @@ -2382,100 +2450,100 @@ var g = &grammar{ }, { name: "Operator", - pos: position{line: 265, col: 1, offset: 7469}, + pos: position{line: 264, col: 1, offset: 7468}, expr: &choiceExpr{ - pos: position{line: 266, col: 5, offset: 7482}, - alternatives: []interface{}{ + pos: position{line: 265, col: 5, offset: 7481}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 266, col: 5, offset: 7482}, + pos: position{line: 265, col: 5, offset: 7481}, name: "AssertOp", }, &ruleRefExpr{ - pos: position{line: 267, col: 5, offset: 7495}, + pos: position{line: 266, col: 5, offset: 7494}, name: "SortOp", }, &ruleRefExpr{ - pos: position{line: 268, col: 5, offset: 7506}, + pos: position{line: 267, col: 5, offset: 7505}, name: "TopOp", }, &ruleRefExpr{ - pos: position{line: 269, col: 5, offset: 7516}, + pos: position{line: 268, col: 5, offset: 7515}, name: "CutOp", }, &ruleRefExpr{ - pos: position{line: 270, col: 5, offset: 7526}, + pos: position{line: 269, col: 5, offset: 7525}, name: "DropOp", }, &ruleRefExpr{ - pos: position{line: 271, col: 5, offset: 7537}, + pos: position{line: 270, col: 5, offset: 7536}, name: "HeadOp", }, &ruleRefExpr{ - pos: position{line: 272, col: 5, offset: 7548}, + pos: position{line: 271, col: 5, offset: 7547}, name: "TailOp", }, &ruleRefExpr{ - pos: position{line: 273, col: 5, offset: 7559}, + pos: position{line: 272, col: 5, offset: 7558}, name: "WhereOp", }, &ruleRefExpr{ - pos: position{line: 274, col: 5, offset: 7571}, + pos: position{line: 273, col: 5, offset: 7570}, name: "UniqOp", }, &ruleRefExpr{ - pos: position{line: 275, col: 5, offset: 7582}, + pos: position{line: 274, col: 5, offset: 7581}, name: "PutOp", }, &ruleRefExpr{ - pos: position{line: 276, col: 5, offset: 7592}, + pos: position{line: 275, col: 5, offset: 7591}, name: "RenameOp", }, &ruleRefExpr{ - pos: position{line: 277, col: 5, offset: 7605}, + pos: position{line: 276, col: 5, offset: 7604}, name: "FuseOp", }, &ruleRefExpr{ - pos: position{line: 278, col: 5, offset: 7616}, + pos: position{line: 277, col: 5, offset: 7615}, name: "ShapeOp", }, &ruleRefExpr{ - pos: position{line: 279, col: 5, offset: 7628}, + pos: position{line: 278, col: 5, offset: 7627}, name: "JoinOp", }, &ruleRefExpr{ - pos: position{line: 280, col: 5, offset: 7639}, + pos: position{line: 279, col: 5, offset: 7638}, name: "SampleOp", }, &ruleRefExpr{ - pos: position{line: 281, col: 5, offset: 7652}, + pos: position{line: 280, col: 5, offset: 7651}, name: "SQLOp", }, &ruleRefExpr{ - pos: position{line: 282, col: 5, offset: 7662}, + pos: position{line: 281, col: 5, offset: 7661}, name: "FromOp", }, &ruleRefExpr{ - pos: position{line: 283, col: 5, offset: 7673}, + pos: position{line: 282, col: 5, offset: 7672}, name: "PassOp", }, &ruleRefExpr{ - pos: position{line: 284, col: 5, offset: 7684}, + pos: position{line: 283, col: 5, offset: 7683}, name: "ExplodeOp", }, &ruleRefExpr{ - pos: position{line: 285, col: 5, offset: 7698}, + pos: position{line: 284, col: 5, offset: 7697}, name: "MergeOp", }, &ruleRefExpr{ - pos: position{line: 286, col: 5, offset: 7710}, + pos: position{line: 285, col: 5, offset: 7709}, name: "OverOp", }, &ruleRefExpr{ - pos: position{line: 287, col: 5, offset: 7721}, + pos: position{line: 286, col: 5, offset: 7720}, name: "YieldOp", }, &ruleRefExpr{ - pos: position{line: 288, col: 5, offset: 7733}, + pos: position{line: 287, col: 5, offset: 7732}, name: "LoadOp", }, }, @@ -2483,33 +2551,34 @@ var g = &grammar{ }, { name: "AssertOp", - pos: position{line: 290, col: 1, offset: 7741}, + pos: position{line: 289, col: 1, offset: 7740}, expr: &actionExpr{ - pos: position{line: 291, col: 5, offset: 7754}, + pos: position{line: 290, col: 5, offset: 7753}, run: (*parser).callonAssertOp1, expr: &seqExpr{ - pos: position{line: 291, col: 5, offset: 7754}, - exprs: []interface{}{ + pos: position{line: 290, col: 5, offset: 7753}, + exprs: []any{ &litMatcher{ - pos: position{line: 291, col: 5, offset: 7754}, + pos: position{line: 290, col: 5, offset: 7753}, val: "assert", ignoreCase: false, + want: "\"assert\"", }, &ruleRefExpr{ - pos: position{line: 291, col: 14, offset: 7763}, + pos: position{line: 290, col: 14, offset: 7762}, name: "_", }, &labeledExpr{ - pos: position{line: 291, col: 16, offset: 7765}, + pos: position{line: 290, col: 16, offset: 7764}, label: "expr", expr: &actionExpr{ - pos: position{line: 291, col: 22, offset: 7771}, + pos: position{line: 290, col: 22, offset: 7770}, run: (*parser).callonAssertOp6, expr: &labeledExpr{ - pos: position{line: 291, col: 22, offset: 7771}, + pos: position{line: 290, col: 22, offset: 7770}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 291, col: 24, offset: 7773}, + pos: position{line: 290, col: 24, offset: 7772}, name: "Expr", }, }, @@ -2521,53 +2590,54 @@ var g = &grammar{ }, { name: "SortOp", - pos: position{line: 327, col: 1, offset: 9124}, + pos: position{line: 326, col: 1, offset: 9123}, expr: &actionExpr{ - pos: position{line: 328, col: 5, offset: 9135}, + pos: position{line: 327, col: 5, offset: 9134}, run: (*parser).callonSortOp1, expr: &seqExpr{ - pos: position{line: 328, col: 5, offset: 9135}, - exprs: []interface{}{ + pos: position{line: 327, col: 5, offset: 9134}, + exprs: []any{ &litMatcher{ - pos: position{line: 328, col: 5, offset: 9135}, + pos: position{line: 327, col: 5, offset: 9134}, val: "sort", ignoreCase: false, + want: "\"sort\"", }, &andExpr{ - pos: position{line: 328, col: 12, offset: 9142}, + pos: position{line: 327, col: 12, offset: 9141}, expr: &ruleRefExpr{ - pos: position{line: 328, col: 13, offset: 9143}, + pos: position{line: 327, col: 13, offset: 9142}, name: "EOKW", }, }, &labeledExpr{ - pos: position{line: 328, col: 18, offset: 9148}, + pos: position{line: 327, col: 18, offset: 9147}, label: "args", expr: &ruleRefExpr{ - pos: position{line: 328, col: 23, offset: 9153}, + pos: position{line: 327, col: 23, offset: 9152}, name: "SortArgs", }, }, &labeledExpr{ - pos: position{line: 328, col: 32, offset: 9162}, + pos: position{line: 327, col: 32, offset: 9161}, label: "list", expr: &zeroOrOneExpr{ - pos: position{line: 328, col: 37, offset: 9167}, + pos: position{line: 327, col: 37, offset: 9166}, expr: &actionExpr{ - pos: position{line: 328, col: 38, offset: 9168}, + pos: position{line: 327, col: 38, offset: 9167}, run: (*parser).callonSortOp10, expr: &seqExpr{ - pos: position{line: 328, col: 38, offset: 9168}, - exprs: []interface{}{ + pos: position{line: 327, col: 38, offset: 9167}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 328, col: 38, offset: 9168}, + pos: position{line: 327, col: 38, offset: 9167}, name: "_", }, &labeledExpr{ - pos: position{line: 328, col: 40, offset: 9170}, + pos: position{line: 327, col: 40, offset: 9169}, label: "l", expr: &ruleRefExpr{ - pos: position{line: 328, col: 42, offset: 9172}, + pos: position{line: 327, col: 42, offset: 9171}, name: "Exprs", }, }, @@ -2582,30 +2652,30 @@ var g = &grammar{ }, { name: "SortArgs", - pos: position{line: 342, col: 1, offset: 9583}, + pos: position{line: 341, col: 1, offset: 9582}, expr: &actionExpr{ - pos: position{line: 342, col: 12, offset: 9594}, + pos: position{line: 341, col: 12, offset: 9593}, run: (*parser).callonSortArgs1, expr: &labeledExpr{ - pos: position{line: 342, col: 12, offset: 9594}, + pos: position{line: 341, col: 12, offset: 9593}, label: "args", expr: &zeroOrMoreExpr{ - pos: position{line: 342, col: 17, offset: 9599}, + pos: position{line: 341, col: 17, offset: 9598}, expr: &actionExpr{ - pos: position{line: 342, col: 18, offset: 9600}, + pos: position{line: 341, col: 18, offset: 9599}, run: (*parser).callonSortArgs4, expr: &seqExpr{ - pos: position{line: 342, col: 18, offset: 9600}, - exprs: []interface{}{ + pos: position{line: 341, col: 18, offset: 9599}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 342, col: 18, offset: 9600}, + pos: position{line: 341, col: 18, offset: 9599}, name: "_", }, &labeledExpr{ - pos: position{line: 342, col: 20, offset: 9602}, + pos: position{line: 341, col: 20, offset: 9601}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 342, col: 22, offset: 9604}, + pos: position{line: 341, col: 22, offset: 9603}, name: "SortArg", }, }, @@ -2618,52 +2688,56 @@ var g = &grammar{ }, { name: "SortArg", - pos: position{line: 344, col: 1, offset: 9661}, + pos: position{line: 343, col: 1, offset: 9660}, expr: &choiceExpr{ - pos: position{line: 345, col: 5, offset: 9673}, - alternatives: []interface{}{ + pos: position{line: 344, col: 5, offset: 9672}, + alternatives: []any{ &actionExpr{ - pos: position{line: 345, col: 5, offset: 9673}, + pos: position{line: 344, col: 5, offset: 9672}, run: (*parser).callonSortArg2, expr: &litMatcher{ - pos: position{line: 345, col: 5, offset: 9673}, + pos: position{line: 344, col: 5, offset: 9672}, val: "-r", ignoreCase: false, + want: "\"-r\"", }, }, &actionExpr{ - pos: position{line: 346, col: 5, offset: 9748}, + pos: position{line: 345, col: 5, offset: 9747}, run: (*parser).callonSortArg4, expr: &seqExpr{ - pos: position{line: 346, col: 5, offset: 9748}, - exprs: []interface{}{ + pos: position{line: 345, col: 5, offset: 9747}, + exprs: []any{ &litMatcher{ - pos: position{line: 346, col: 5, offset: 9748}, + pos: position{line: 345, col: 5, offset: 9747}, val: "-nulls", ignoreCase: false, + want: "\"-nulls\"", }, &ruleRefExpr{ - pos: position{line: 346, col: 14, offset: 9757}, + pos: position{line: 345, col: 14, offset: 9756}, name: "_", }, &labeledExpr{ - pos: position{line: 346, col: 16, offset: 9759}, + pos: position{line: 345, col: 16, offset: 9758}, label: "where", expr: &actionExpr{ - pos: position{line: 346, col: 23, offset: 9766}, + pos: position{line: 345, col: 23, offset: 9765}, run: (*parser).callonSortArg9, expr: &choiceExpr{ - pos: position{line: 346, col: 24, offset: 9767}, - alternatives: []interface{}{ + pos: position{line: 345, col: 24, offset: 9766}, + alternatives: []any{ &litMatcher{ - pos: position{line: 346, col: 24, offset: 9767}, + pos: position{line: 345, col: 24, offset: 9766}, val: "first", ignoreCase: false, + want: "\"first\"", }, &litMatcher{ - pos: position{line: 346, col: 34, offset: 9777}, + pos: position{line: 345, col: 34, offset: 9776}, val: "last", ignoreCase: false, + want: "\"last\"", }, }, }, @@ -2677,45 +2751,46 @@ var g = &grammar{ }, { name: "TopOp", - pos: position{line: 348, col: 1, offset: 9890}, + pos: position{line: 347, col: 1, offset: 9889}, expr: &actionExpr{ - pos: position{line: 349, col: 5, offset: 9900}, + pos: position{line: 348, col: 5, offset: 9899}, run: (*parser).callonTopOp1, expr: &seqExpr{ - pos: position{line: 349, col: 5, offset: 9900}, - exprs: []interface{}{ + pos: position{line: 348, col: 5, offset: 9899}, + exprs: []any{ &litMatcher{ - pos: position{line: 349, col: 5, offset: 9900}, + pos: position{line: 348, col: 5, offset: 9899}, val: "top", ignoreCase: false, + want: "\"top\"", }, &andExpr{ - pos: position{line: 349, col: 11, offset: 9906}, + pos: position{line: 348, col: 11, offset: 9905}, expr: &ruleRefExpr{ - pos: position{line: 349, col: 12, offset: 9907}, + pos: position{line: 348, col: 12, offset: 9906}, name: "EOKW", }, }, &labeledExpr{ - pos: position{line: 349, col: 17, offset: 9912}, + pos: position{line: 348, col: 17, offset: 9911}, label: "limit", expr: &zeroOrOneExpr{ - pos: position{line: 349, col: 23, offset: 9918}, + pos: position{line: 348, col: 23, offset: 9917}, expr: &actionExpr{ - pos: position{line: 349, col: 24, offset: 9919}, + pos: position{line: 348, col: 24, offset: 9918}, run: (*parser).callonTopOp8, expr: &seqExpr{ - pos: position{line: 349, col: 24, offset: 9919}, - exprs: []interface{}{ + pos: position{line: 348, col: 24, offset: 9918}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 349, col: 24, offset: 9919}, + pos: position{line: 348, col: 24, offset: 9918}, name: "_", }, &labeledExpr{ - pos: position{line: 349, col: 26, offset: 9921}, + pos: position{line: 348, col: 26, offset: 9920}, label: "n", expr: &ruleRefExpr{ - pos: position{line: 349, col: 28, offset: 9923}, + pos: position{line: 348, col: 28, offset: 9922}, name: "UInt", }, }, @@ -2725,46 +2800,47 @@ var g = &grammar{ }, }, &labeledExpr{ - pos: position{line: 349, col: 53, offset: 9948}, + pos: position{line: 348, col: 53, offset: 9947}, label: "flush", expr: &zeroOrOneExpr{ - pos: position{line: 349, col: 59, offset: 9954}, + pos: position{line: 348, col: 59, offset: 9953}, expr: &seqExpr{ - pos: position{line: 349, col: 60, offset: 9955}, - exprs: []interface{}{ + pos: position{line: 348, col: 60, offset: 9954}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 349, col: 60, offset: 9955}, + pos: position{line: 348, col: 60, offset: 9954}, name: "_", }, &litMatcher{ - pos: position{line: 349, col: 62, offset: 9957}, + pos: position{line: 348, col: 62, offset: 9956}, val: "-flush", ignoreCase: false, + want: "\"-flush\"", }, }, }, }, }, &labeledExpr{ - pos: position{line: 349, col: 73, offset: 9968}, + pos: position{line: 348, col: 73, offset: 9967}, label: "fields", expr: &zeroOrOneExpr{ - pos: position{line: 349, col: 80, offset: 9975}, + pos: position{line: 348, col: 80, offset: 9974}, expr: &actionExpr{ - pos: position{line: 349, col: 81, offset: 9976}, + pos: position{line: 348, col: 81, offset: 9975}, run: (*parser).callonTopOp20, expr: &seqExpr{ - pos: position{line: 349, col: 81, offset: 9976}, - exprs: []interface{}{ + pos: position{line: 348, col: 81, offset: 9975}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 349, col: 81, offset: 9976}, + pos: position{line: 348, col: 81, offset: 9975}, name: "_", }, &labeledExpr{ - pos: position{line: 349, col: 83, offset: 9978}, + pos: position{line: 348, col: 83, offset: 9977}, label: "f", expr: &ruleRefExpr{ - pos: position{line: 349, col: 85, offset: 9980}, + pos: position{line: 348, col: 85, offset: 9979}, name: "FieldExprs", }, }, @@ -2779,27 +2855,28 @@ var g = &grammar{ }, { name: "CutOp", - pos: position{line: 363, col: 1, offset: 10315}, + pos: position{line: 362, col: 1, offset: 10314}, expr: &actionExpr{ - pos: position{line: 364, col: 5, offset: 10325}, + pos: position{line: 363, col: 5, offset: 10324}, run: (*parser).callonCutOp1, expr: &seqExpr{ - pos: position{line: 364, col: 5, offset: 10325}, - exprs: []interface{}{ + pos: position{line: 363, col: 5, offset: 10324}, + exprs: []any{ &litMatcher{ - pos: position{line: 364, col: 5, offset: 10325}, + pos: position{line: 363, col: 5, offset: 10324}, val: "cut", ignoreCase: false, + want: "\"cut\"", }, &ruleRefExpr{ - pos: position{line: 364, col: 11, offset: 10331}, + pos: position{line: 363, col: 11, offset: 10330}, name: "_", }, &labeledExpr{ - pos: position{line: 364, col: 13, offset: 10333}, + pos: position{line: 363, col: 13, offset: 10332}, label: "args", expr: &ruleRefExpr{ - pos: position{line: 364, col: 18, offset: 10338}, + pos: position{line: 363, col: 18, offset: 10337}, name: "FlexAssignments", }, }, @@ -2809,27 +2886,28 @@ var g = &grammar{ }, { name: "DropOp", - pos: position{line: 368, col: 1, offset: 10433}, + pos: position{line: 367, col: 1, offset: 10432}, expr: &actionExpr{ - pos: position{line: 369, col: 5, offset: 10444}, + pos: position{line: 368, col: 5, offset: 10443}, run: (*parser).callonDropOp1, expr: &seqExpr{ - pos: position{line: 369, col: 5, offset: 10444}, - exprs: []interface{}{ + pos: position{line: 368, col: 5, offset: 10443}, + exprs: []any{ &litMatcher{ - pos: position{line: 369, col: 5, offset: 10444}, + pos: position{line: 368, col: 5, offset: 10443}, val: "drop", ignoreCase: false, + want: "\"drop\"", }, &ruleRefExpr{ - pos: position{line: 369, col: 12, offset: 10451}, + pos: position{line: 368, col: 12, offset: 10450}, name: "_", }, &labeledExpr{ - pos: position{line: 369, col: 14, offset: 10453}, + pos: position{line: 368, col: 14, offset: 10452}, label: "args", expr: &ruleRefExpr{ - pos: position{line: 369, col: 19, offset: 10458}, + pos: position{line: 368, col: 19, offset: 10457}, name: "FieldExprs", }, }, @@ -2839,37 +2917,38 @@ var g = &grammar{ }, { name: "HeadOp", - pos: position{line: 373, col: 1, offset: 10549}, + pos: position{line: 372, col: 1, offset: 10548}, expr: &choiceExpr{ - pos: position{line: 374, col: 5, offset: 10560}, - alternatives: []interface{}{ + pos: position{line: 373, col: 5, offset: 10559}, + alternatives: []any{ &actionExpr{ - pos: position{line: 374, col: 5, offset: 10560}, + pos: position{line: 373, col: 5, offset: 10559}, run: (*parser).callonHeadOp2, expr: &seqExpr{ - pos: position{line: 374, col: 5, offset: 10560}, - exprs: []interface{}{ + pos: position{line: 373, col: 5, offset: 10559}, + exprs: []any{ &litMatcher{ - pos: position{line: 374, col: 5, offset: 10560}, + pos: position{line: 373, col: 5, offset: 10559}, val: "head", ignoreCase: false, + want: "\"head\"", }, &ruleRefExpr{ - pos: position{line: 374, col: 12, offset: 10567}, + pos: position{line: 373, col: 12, offset: 10566}, name: "_", }, ¬Expr{ - pos: position{line: 374, col: 14, offset: 10569}, + pos: position{line: 373, col: 14, offset: 10568}, expr: &ruleRefExpr{ - pos: position{line: 374, col: 15, offset: 10570}, + pos: position{line: 373, col: 15, offset: 10569}, name: "EndOfOp", }, }, &labeledExpr{ - pos: position{line: 374, col: 23, offset: 10578}, + pos: position{line: 373, col: 23, offset: 10577}, label: "count", expr: &ruleRefExpr{ - pos: position{line: 374, col: 29, offset: 10584}, + pos: position{line: 373, col: 29, offset: 10583}, name: "Expr", }, }, @@ -2877,12 +2956,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 375, col: 5, offset: 10664}, + pos: position{line: 374, col: 5, offset: 10663}, run: (*parser).callonHeadOp10, expr: &litMatcher{ - pos: position{line: 375, col: 5, offset: 10664}, + pos: position{line: 374, col: 5, offset: 10663}, val: "head", ignoreCase: false, + want: "\"head\"", }, }, }, @@ -2890,37 +2970,38 @@ var g = &grammar{ }, { name: "TailOp", - pos: position{line: 377, col: 1, offset: 10811}, + pos: position{line: 376, col: 1, offset: 10810}, expr: &choiceExpr{ - pos: position{line: 378, col: 5, offset: 10822}, - alternatives: []interface{}{ + pos: position{line: 377, col: 5, offset: 10821}, + alternatives: []any{ &actionExpr{ - pos: position{line: 378, col: 5, offset: 10822}, + pos: position{line: 377, col: 5, offset: 10821}, run: (*parser).callonTailOp2, expr: &seqExpr{ - pos: position{line: 378, col: 5, offset: 10822}, - exprs: []interface{}{ + pos: position{line: 377, col: 5, offset: 10821}, + exprs: []any{ &litMatcher{ - pos: position{line: 378, col: 5, offset: 10822}, + pos: position{line: 377, col: 5, offset: 10821}, val: "tail", ignoreCase: false, + want: "\"tail\"", }, &ruleRefExpr{ - pos: position{line: 378, col: 12, offset: 10829}, + pos: position{line: 377, col: 12, offset: 10828}, name: "_", }, ¬Expr{ - pos: position{line: 378, col: 14, offset: 10831}, + pos: position{line: 377, col: 14, offset: 10830}, expr: &ruleRefExpr{ - pos: position{line: 378, col: 15, offset: 10832}, + pos: position{line: 377, col: 15, offset: 10831}, name: "EndOfOp", }, }, &labeledExpr{ - pos: position{line: 378, col: 23, offset: 10840}, + pos: position{line: 377, col: 23, offset: 10839}, label: "count", expr: &ruleRefExpr{ - pos: position{line: 378, col: 29, offset: 10846}, + pos: position{line: 377, col: 29, offset: 10845}, name: "Expr", }, }, @@ -2928,12 +3009,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 379, col: 5, offset: 10926}, + pos: position{line: 378, col: 5, offset: 10925}, run: (*parser).callonTailOp10, expr: &litMatcher{ - pos: position{line: 379, col: 5, offset: 10926}, + pos: position{line: 378, col: 5, offset: 10925}, val: "tail", ignoreCase: false, + want: "\"tail\"", }, }, }, @@ -2941,27 +3023,28 @@ var g = &grammar{ }, { name: "WhereOp", - pos: position{line: 381, col: 1, offset: 11073}, + pos: position{line: 380, col: 1, offset: 11072}, expr: &actionExpr{ - pos: position{line: 382, col: 5, offset: 11085}, + pos: position{line: 381, col: 5, offset: 11084}, run: (*parser).callonWhereOp1, expr: &seqExpr{ - pos: position{line: 382, col: 5, offset: 11085}, - exprs: []interface{}{ + pos: position{line: 381, col: 5, offset: 11084}, + exprs: []any{ &litMatcher{ - pos: position{line: 382, col: 5, offset: 11085}, + pos: position{line: 381, col: 5, offset: 11084}, val: "where", ignoreCase: false, + want: "\"where\"", }, &ruleRefExpr{ - pos: position{line: 382, col: 13, offset: 11093}, + pos: position{line: 381, col: 13, offset: 11092}, name: "_", }, &labeledExpr{ - pos: position{line: 382, col: 15, offset: 11095}, + pos: position{line: 381, col: 15, offset: 11094}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 382, col: 20, offset: 11100}, + pos: position{line: 381, col: 20, offset: 11099}, name: "Expr", }, }, @@ -2971,40 +3054,43 @@ var g = &grammar{ }, { name: "UniqOp", - pos: position{line: 386, col: 1, offset: 11186}, + pos: position{line: 385, col: 1, offset: 11185}, expr: &choiceExpr{ - pos: position{line: 387, col: 5, offset: 11197}, - alternatives: []interface{}{ + pos: position{line: 386, col: 5, offset: 11196}, + alternatives: []any{ &actionExpr{ - pos: position{line: 387, col: 5, offset: 11197}, + pos: position{line: 386, col: 5, offset: 11196}, run: (*parser).callonUniqOp2, expr: &seqExpr{ - pos: position{line: 387, col: 5, offset: 11197}, - exprs: []interface{}{ + pos: position{line: 386, col: 5, offset: 11196}, + exprs: []any{ &litMatcher{ - pos: position{line: 387, col: 5, offset: 11197}, + pos: position{line: 386, col: 5, offset: 11196}, val: "uniq", ignoreCase: false, + want: "\"uniq\"", }, &ruleRefExpr{ - pos: position{line: 387, col: 12, offset: 11204}, + pos: position{line: 386, col: 12, offset: 11203}, name: "_", }, &litMatcher{ - pos: position{line: 387, col: 14, offset: 11206}, + pos: position{line: 386, col: 14, offset: 11205}, val: "-c", ignoreCase: false, + want: "\"-c\"", }, }, }, }, &actionExpr{ - pos: position{line: 390, col: 5, offset: 11295}, + pos: position{line: 389, col: 5, offset: 11294}, run: (*parser).callonUniqOp7, expr: &litMatcher{ - pos: position{line: 390, col: 5, offset: 11295}, + pos: position{line: 389, col: 5, offset: 11294}, val: "uniq", ignoreCase: false, + want: "\"uniq\"", }, }, }, @@ -3012,27 +3098,28 @@ var g = &grammar{ }, { name: "PutOp", - pos: position{line: 394, col: 1, offset: 11384}, + pos: position{line: 393, col: 1, offset: 11383}, expr: &actionExpr{ - pos: position{line: 395, col: 5, offset: 11394}, + pos: position{line: 394, col: 5, offset: 11393}, run: (*parser).callonPutOp1, expr: &seqExpr{ - pos: position{line: 395, col: 5, offset: 11394}, - exprs: []interface{}{ + pos: position{line: 394, col: 5, offset: 11393}, + exprs: []any{ &litMatcher{ - pos: position{line: 395, col: 5, offset: 11394}, + pos: position{line: 394, col: 5, offset: 11393}, val: "put", ignoreCase: false, + want: "\"put\"", }, &ruleRefExpr{ - pos: position{line: 395, col: 11, offset: 11400}, + pos: position{line: 394, col: 11, offset: 11399}, name: "_", }, &labeledExpr{ - pos: position{line: 395, col: 13, offset: 11402}, + pos: position{line: 394, col: 13, offset: 11401}, label: "args", expr: &ruleRefExpr{ - pos: position{line: 395, col: 18, offset: 11407}, + pos: position{line: 394, col: 18, offset: 11406}, name: "Assignments", }, }, @@ -3042,59 +3129,61 @@ var g = &grammar{ }, { name: "RenameOp", - pos: position{line: 399, col: 1, offset: 11498}, + pos: position{line: 398, col: 1, offset: 11497}, expr: &actionExpr{ - pos: position{line: 400, col: 5, offset: 11511}, + pos: position{line: 399, col: 5, offset: 11510}, run: (*parser).callonRenameOp1, expr: &seqExpr{ - pos: position{line: 400, col: 5, offset: 11511}, - exprs: []interface{}{ + pos: position{line: 399, col: 5, offset: 11510}, + exprs: []any{ &litMatcher{ - pos: position{line: 400, col: 5, offset: 11511}, + pos: position{line: 399, col: 5, offset: 11510}, val: "rename", ignoreCase: false, + want: "\"rename\"", }, &ruleRefExpr{ - pos: position{line: 400, col: 14, offset: 11520}, + pos: position{line: 399, col: 14, offset: 11519}, name: "_", }, &labeledExpr{ - pos: position{line: 400, col: 16, offset: 11522}, + pos: position{line: 399, col: 16, offset: 11521}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 400, col: 22, offset: 11528}, + pos: position{line: 399, col: 22, offset: 11527}, name: "Assignment", }, }, &labeledExpr{ - pos: position{line: 400, col: 33, offset: 11539}, + pos: position{line: 399, col: 33, offset: 11538}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 400, col: 38, offset: 11544}, + pos: position{line: 399, col: 38, offset: 11543}, expr: &actionExpr{ - pos: position{line: 400, col: 39, offset: 11545}, + pos: position{line: 399, col: 39, offset: 11544}, run: (*parser).callonRenameOp9, expr: &seqExpr{ - pos: position{line: 400, col: 39, offset: 11545}, - exprs: []interface{}{ + pos: position{line: 399, col: 39, offset: 11544}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 400, col: 39, offset: 11545}, + pos: position{line: 399, col: 39, offset: 11544}, name: "__", }, &litMatcher{ - pos: position{line: 400, col: 42, offset: 11548}, + pos: position{line: 399, col: 42, offset: 11547}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 400, col: 46, offset: 11552}, + pos: position{line: 399, col: 46, offset: 11551}, name: "__", }, &labeledExpr{ - pos: position{line: 400, col: 49, offset: 11555}, + pos: position{line: 399, col: 49, offset: 11554}, label: "cl", expr: &ruleRefExpr{ - pos: position{line: 400, col: 52, offset: 11558}, + pos: position{line: 399, col: 52, offset: 11557}, name: "Assignment", }, }, @@ -3109,39 +3198,41 @@ var g = &grammar{ }, { name: "FuseOp", - pos: position{line: 408, col: 1, offset: 11965}, + pos: position{line: 407, col: 1, offset: 11964}, expr: &actionExpr{ - pos: position{line: 409, col: 5, offset: 11976}, + pos: position{line: 408, col: 5, offset: 11975}, run: (*parser).callonFuseOp1, expr: &seqExpr{ - pos: position{line: 409, col: 5, offset: 11976}, - exprs: []interface{}{ + pos: position{line: 408, col: 5, offset: 11975}, + exprs: []any{ &litMatcher{ - pos: position{line: 409, col: 5, offset: 11976}, + pos: position{line: 408, col: 5, offset: 11975}, val: "fuse", ignoreCase: false, + want: "\"fuse\"", }, ¬Expr{ - pos: position{line: 409, col: 12, offset: 11983}, + pos: position{line: 408, col: 12, offset: 11982}, expr: &seqExpr{ - pos: position{line: 409, col: 14, offset: 11985}, - exprs: []interface{}{ + pos: position{line: 408, col: 14, offset: 11984}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 409, col: 14, offset: 11985}, + pos: position{line: 408, col: 14, offset: 11984}, name: "__", }, &litMatcher{ - pos: position{line: 409, col: 17, offset: 11988}, + pos: position{line: 408, col: 17, offset: 11987}, val: "(", ignoreCase: false, + want: "\"(\"", }, }, }, }, &andExpr{ - pos: position{line: 409, col: 22, offset: 11993}, + pos: position{line: 408, col: 22, offset: 11992}, expr: &ruleRefExpr{ - pos: position{line: 409, col: 23, offset: 11994}, + pos: position{line: 408, col: 23, offset: 11993}, name: "EOKW", }, }, @@ -3151,39 +3242,41 @@ var g = &grammar{ }, { name: "ShapeOp", - pos: position{line: 413, col: 1, offset: 12065}, + pos: position{line: 412, col: 1, offset: 12064}, expr: &actionExpr{ - pos: position{line: 414, col: 5, offset: 12077}, + pos: position{line: 413, col: 5, offset: 12076}, run: (*parser).callonShapeOp1, expr: &seqExpr{ - pos: position{line: 414, col: 5, offset: 12077}, - exprs: []interface{}{ + pos: position{line: 413, col: 5, offset: 12076}, + exprs: []any{ &litMatcher{ - pos: position{line: 414, col: 5, offset: 12077}, + pos: position{line: 413, col: 5, offset: 12076}, val: "shape", ignoreCase: false, + want: "\"shape\"", }, ¬Expr{ - pos: position{line: 414, col: 13, offset: 12085}, + pos: position{line: 413, col: 13, offset: 12084}, expr: &seqExpr{ - pos: position{line: 414, col: 15, offset: 12087}, - exprs: []interface{}{ + pos: position{line: 413, col: 15, offset: 12086}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 414, col: 15, offset: 12087}, + pos: position{line: 413, col: 15, offset: 12086}, name: "__", }, &litMatcher{ - pos: position{line: 414, col: 18, offset: 12090}, + pos: position{line: 413, col: 18, offset: 12089}, val: "(", ignoreCase: false, + want: "\"(\"", }, }, }, }, &andExpr{ - pos: position{line: 414, col: 23, offset: 12095}, + pos: position{line: 413, col: 23, offset: 12094}, expr: &ruleRefExpr{ - pos: position{line: 414, col: 24, offset: 12096}, + pos: position{line: 413, col: 24, offset: 12095}, name: "EOKW", }, }, @@ -3193,73 +3286,75 @@ var g = &grammar{ }, { name: "JoinOp", - pos: position{line: 418, col: 1, offset: 12168}, + pos: position{line: 417, col: 1, offset: 12167}, expr: &actionExpr{ - pos: position{line: 419, col: 5, offset: 12179}, + pos: position{line: 418, col: 5, offset: 12178}, run: (*parser).callonJoinOp1, expr: &seqExpr{ - pos: position{line: 419, col: 5, offset: 12179}, - exprs: []interface{}{ + pos: position{line: 418, col: 5, offset: 12178}, + exprs: []any{ &labeledExpr{ - pos: position{line: 419, col: 5, offset: 12179}, + pos: position{line: 418, col: 5, offset: 12178}, label: "style", expr: &ruleRefExpr{ - pos: position{line: 419, col: 11, offset: 12185}, + pos: position{line: 418, col: 11, offset: 12184}, name: "JoinStyle", }, }, &litMatcher{ - pos: position{line: 419, col: 21, offset: 12195}, + pos: position{line: 418, col: 21, offset: 12194}, val: "join", ignoreCase: false, + want: "\"join\"", }, &labeledExpr{ - pos: position{line: 419, col: 28, offset: 12202}, + pos: position{line: 418, col: 28, offset: 12201}, label: "rightInput", expr: &ruleRefExpr{ - pos: position{line: 419, col: 39, offset: 12213}, + pos: position{line: 418, col: 39, offset: 12212}, name: "JoinRightInput", }, }, &ruleRefExpr{ - pos: position{line: 419, col: 54, offset: 12228}, + pos: position{line: 418, col: 54, offset: 12227}, name: "ON", }, &ruleRefExpr{ - pos: position{line: 419, col: 57, offset: 12231}, + pos: position{line: 418, col: 57, offset: 12230}, name: "_", }, &labeledExpr{ - pos: position{line: 419, col: 59, offset: 12233}, + pos: position{line: 418, col: 59, offset: 12232}, label: "key", expr: &ruleRefExpr{ - pos: position{line: 419, col: 63, offset: 12237}, + pos: position{line: 418, col: 63, offset: 12236}, name: "JoinKey", }, }, &labeledExpr{ - pos: position{line: 419, col: 71, offset: 12245}, + pos: position{line: 418, col: 71, offset: 12244}, label: "optKey", expr: &zeroOrOneExpr{ - pos: position{line: 419, col: 78, offset: 12252}, + pos: position{line: 418, col: 78, offset: 12251}, expr: &seqExpr{ - pos: position{line: 419, col: 79, offset: 12253}, - exprs: []interface{}{ + pos: position{line: 418, col: 79, offset: 12252}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 419, col: 79, offset: 12253}, + pos: position{line: 418, col: 79, offset: 12252}, name: "__", }, &litMatcher{ - pos: position{line: 419, col: 82, offset: 12256}, + pos: position{line: 418, col: 82, offset: 12255}, val: "=", ignoreCase: false, + want: "\"=\"", }, &ruleRefExpr{ - pos: position{line: 419, col: 86, offset: 12260}, + pos: position{line: 418, col: 86, offset: 12259}, name: "__", }, &ruleRefExpr{ - pos: position{line: 419, col: 89, offset: 12263}, + pos: position{line: 418, col: 89, offset: 12262}, name: "JoinKey", }, }, @@ -3267,19 +3362,19 @@ var g = &grammar{ }, }, &labeledExpr{ - pos: position{line: 419, col: 99, offset: 12273}, + pos: position{line: 418, col: 99, offset: 12272}, label: "optArgs", expr: &zeroOrOneExpr{ - pos: position{line: 419, col: 107, offset: 12281}, + pos: position{line: 418, col: 107, offset: 12280}, expr: &seqExpr{ - pos: position{line: 419, col: 108, offset: 12282}, - exprs: []interface{}{ + pos: position{line: 418, col: 108, offset: 12281}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 419, col: 108, offset: 12282}, + pos: position{line: 418, col: 108, offset: 12281}, name: "_", }, &ruleRefExpr{ - pos: position{line: 419, col: 110, offset: 12284}, + pos: position{line: 418, col: 110, offset: 12283}, name: "FlexAssignments", }, }, @@ -3292,89 +3387,94 @@ var g = &grammar{ }, { name: "JoinStyle", - pos: position{line: 430, col: 1, offset: 12640}, + pos: position{line: 429, col: 1, offset: 12639}, expr: &choiceExpr{ - pos: position{line: 431, col: 5, offset: 12654}, - alternatives: []interface{}{ + pos: position{line: 430, col: 5, offset: 12653}, + alternatives: []any{ &actionExpr{ - pos: position{line: 431, col: 5, offset: 12654}, + pos: position{line: 430, col: 5, offset: 12653}, run: (*parser).callonJoinStyle2, expr: &seqExpr{ - pos: position{line: 431, col: 5, offset: 12654}, - exprs: []interface{}{ + pos: position{line: 430, col: 5, offset: 12653}, + exprs: []any{ &litMatcher{ - pos: position{line: 431, col: 5, offset: 12654}, + pos: position{line: 430, col: 5, offset: 12653}, val: "anti", ignoreCase: false, + want: "\"anti\"", }, &ruleRefExpr{ - pos: position{line: 431, col: 12, offset: 12661}, + pos: position{line: 430, col: 12, offset: 12660}, name: "_", }, }, }, }, &actionExpr{ - pos: position{line: 432, col: 5, offset: 12691}, + pos: position{line: 431, col: 5, offset: 12690}, run: (*parser).callonJoinStyle6, expr: &seqExpr{ - pos: position{line: 432, col: 5, offset: 12691}, - exprs: []interface{}{ + pos: position{line: 431, col: 5, offset: 12690}, + exprs: []any{ &litMatcher{ - pos: position{line: 432, col: 5, offset: 12691}, + pos: position{line: 431, col: 5, offset: 12690}, val: "inner", ignoreCase: false, + want: "\"inner\"", }, &ruleRefExpr{ - pos: position{line: 432, col: 13, offset: 12699}, + pos: position{line: 431, col: 13, offset: 12698}, name: "_", }, }, }, }, &actionExpr{ - pos: position{line: 433, col: 5, offset: 12729}, + pos: position{line: 432, col: 5, offset: 12728}, run: (*parser).callonJoinStyle10, expr: &seqExpr{ - pos: position{line: 433, col: 5, offset: 12729}, - exprs: []interface{}{ + pos: position{line: 432, col: 5, offset: 12728}, + exprs: []any{ &litMatcher{ - pos: position{line: 433, col: 5, offset: 12729}, + pos: position{line: 432, col: 5, offset: 12728}, val: "left", ignoreCase: false, + want: "\"left\"", }, &ruleRefExpr{ - pos: position{line: 433, col: 13, offset: 12737}, + pos: position{line: 432, col: 13, offset: 12736}, name: "_", }, }, }, }, &actionExpr{ - pos: position{line: 434, col: 5, offset: 12766}, + pos: position{line: 433, col: 5, offset: 12765}, run: (*parser).callonJoinStyle14, expr: &seqExpr{ - pos: position{line: 434, col: 5, offset: 12766}, - exprs: []interface{}{ + pos: position{line: 433, col: 5, offset: 12765}, + exprs: []any{ &litMatcher{ - pos: position{line: 434, col: 5, offset: 12766}, + pos: position{line: 433, col: 5, offset: 12765}, val: "right", ignoreCase: false, + want: "\"right\"", }, &ruleRefExpr{ - pos: position{line: 434, col: 13, offset: 12774}, + pos: position{line: 433, col: 13, offset: 12773}, name: "_", }, }, }, }, &actionExpr{ - pos: position{line: 435, col: 5, offset: 12804}, + pos: position{line: 434, col: 5, offset: 12803}, run: (*parser).callonJoinStyle18, expr: &litMatcher{ - pos: position{line: 435, col: 5, offset: 12804}, + pos: position{line: 434, col: 5, offset: 12803}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -3382,58 +3482,60 @@ var g = &grammar{ }, { name: "JoinRightInput", - pos: position{line: 437, col: 1, offset: 12839}, + pos: position{line: 436, col: 1, offset: 12838}, expr: &choiceExpr{ - pos: position{line: 438, col: 5, offset: 12858}, - alternatives: []interface{}{ + pos: position{line: 437, col: 5, offset: 12857}, + alternatives: []any{ &actionExpr{ - pos: position{line: 438, col: 5, offset: 12858}, + pos: position{line: 437, col: 5, offset: 12857}, run: (*parser).callonJoinRightInput2, expr: &seqExpr{ - pos: position{line: 438, col: 5, offset: 12858}, - exprs: []interface{}{ + pos: position{line: 437, col: 5, offset: 12857}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 438, col: 5, offset: 12858}, + pos: position{line: 437, col: 5, offset: 12857}, name: "__", }, &litMatcher{ - pos: position{line: 438, col: 8, offset: 12861}, + pos: position{line: 437, col: 8, offset: 12860}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 438, col: 12, offset: 12865}, + pos: position{line: 437, col: 12, offset: 12864}, name: "__", }, &labeledExpr{ - pos: position{line: 438, col: 15, offset: 12868}, + pos: position{line: 437, col: 15, offset: 12867}, label: "s", expr: &ruleRefExpr{ - pos: position{line: 438, col: 17, offset: 12870}, + pos: position{line: 437, col: 17, offset: 12869}, name: "Seq", }, }, &ruleRefExpr{ - pos: position{line: 438, col: 21, offset: 12874}, + pos: position{line: 437, col: 21, offset: 12873}, name: "__", }, &litMatcher{ - pos: position{line: 438, col: 24, offset: 12877}, + pos: position{line: 437, col: 24, offset: 12876}, val: ")", ignoreCase: false, + want: "\")\"", }, &ruleRefExpr{ - pos: position{line: 438, col: 28, offset: 12881}, + pos: position{line: 437, col: 28, offset: 12880}, name: "__", }, }, }, }, &actionExpr{ - pos: position{line: 439, col: 5, offset: 12906}, + pos: position{line: 438, col: 5, offset: 12905}, run: (*parser).callonJoinRightInput12, expr: &ruleRefExpr{ - pos: position{line: 439, col: 5, offset: 12906}, + pos: position{line: 438, col: 5, offset: 12905}, name: "_", }, }, @@ -3442,37 +3544,39 @@ var g = &grammar{ }, { name: "JoinKey", - pos: position{line: 441, col: 1, offset: 12929}, + pos: position{line: 440, col: 1, offset: 12928}, expr: &choiceExpr{ - pos: position{line: 442, col: 5, offset: 12941}, - alternatives: []interface{}{ + pos: position{line: 441, col: 5, offset: 12940}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 442, col: 5, offset: 12941}, + pos: position{line: 441, col: 5, offset: 12940}, name: "Lval", }, &actionExpr{ - pos: position{line: 443, col: 5, offset: 12950}, + pos: position{line: 442, col: 5, offset: 12949}, run: (*parser).callonJoinKey3, expr: &seqExpr{ - pos: position{line: 443, col: 5, offset: 12950}, - exprs: []interface{}{ + pos: position{line: 442, col: 5, offset: 12949}, + exprs: []any{ &litMatcher{ - pos: position{line: 443, col: 5, offset: 12950}, + pos: position{line: 442, col: 5, offset: 12949}, val: "(", ignoreCase: false, + want: "\"(\"", }, &labeledExpr{ - pos: position{line: 443, col: 9, offset: 12954}, + pos: position{line: 442, col: 9, offset: 12953}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 443, col: 14, offset: 12959}, + pos: position{line: 442, col: 14, offset: 12958}, name: "Expr", }, }, &litMatcher{ - pos: position{line: 443, col: 19, offset: 12964}, + pos: position{line: 442, col: 19, offset: 12963}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -3482,30 +3586,31 @@ var g = &grammar{ }, { name: "SampleOp", - pos: position{line: 445, col: 1, offset: 12990}, + pos: position{line: 444, col: 1, offset: 12989}, expr: &actionExpr{ - pos: position{line: 446, col: 5, offset: 13003}, + pos: position{line: 445, col: 5, offset: 13002}, run: (*parser).callonSampleOp1, expr: &seqExpr{ - pos: position{line: 446, col: 5, offset: 13003}, - exprs: []interface{}{ + pos: position{line: 445, col: 5, offset: 13002}, + exprs: []any{ &litMatcher{ - pos: position{line: 446, col: 5, offset: 13003}, + pos: position{line: 445, col: 5, offset: 13002}, val: "sample", ignoreCase: false, + want: "\"sample\"", }, &andExpr{ - pos: position{line: 446, col: 14, offset: 13012}, + pos: position{line: 445, col: 14, offset: 13011}, expr: &ruleRefExpr{ - pos: position{line: 446, col: 15, offset: 13013}, + pos: position{line: 445, col: 15, offset: 13012}, name: "EOKW", }, }, &labeledExpr{ - pos: position{line: 446, col: 20, offset: 13018}, + pos: position{line: 445, col: 20, offset: 13017}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 446, col: 22, offset: 13020}, + pos: position{line: 445, col: 22, offset: 13019}, name: "SampleExpr", }, }, @@ -3515,15 +3620,15 @@ var g = &grammar{ }, { name: "OpAssignment", - pos: position{line: 453, col: 1, offset: 13368}, + pos: position{line: 452, col: 1, offset: 13367}, expr: &actionExpr{ - pos: position{line: 454, col: 5, offset: 13385}, + pos: position{line: 453, col: 5, offset: 13384}, run: (*parser).callonOpAssignment1, expr: &labeledExpr{ - pos: position{line: 454, col: 5, offset: 13385}, + pos: position{line: 453, col: 5, offset: 13384}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 454, col: 7, offset: 13387}, + pos: position{line: 453, col: 7, offset: 13386}, name: "Assignments", }, }, @@ -3531,25 +3636,25 @@ var g = &grammar{ }, { name: "SampleExpr", - pos: position{line: 458, col: 1, offset: 13487}, + pos: position{line: 457, col: 1, offset: 13486}, expr: &choiceExpr{ - pos: position{line: 459, col: 5, offset: 13502}, - alternatives: []interface{}{ + pos: position{line: 458, col: 5, offset: 13501}, + alternatives: []any{ &actionExpr{ - pos: position{line: 459, col: 5, offset: 13502}, + pos: position{line: 458, col: 5, offset: 13501}, run: (*parser).callonSampleExpr2, expr: &seqExpr{ - pos: position{line: 459, col: 5, offset: 13502}, - exprs: []interface{}{ + pos: position{line: 458, col: 5, offset: 13501}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 459, col: 5, offset: 13502}, + pos: position{line: 458, col: 5, offset: 13501}, name: "_", }, &labeledExpr{ - pos: position{line: 459, col: 7, offset: 13504}, + pos: position{line: 458, col: 7, offset: 13503}, label: "lval", expr: &ruleRefExpr{ - pos: position{line: 459, col: 12, offset: 13509}, + pos: position{line: 458, col: 12, offset: 13508}, name: "Lval", }, }, @@ -3557,12 +3662,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 460, col: 5, offset: 13539}, + pos: position{line: 459, col: 5, offset: 13538}, run: (*parser).callonSampleExpr7, expr: &litMatcher{ - pos: position{line: 460, col: 5, offset: 13539}, + pos: position{line: 459, col: 5, offset: 13538}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -3570,70 +3676,71 @@ var g = &grammar{ }, { name: "LoadOp", - pos: position{line: 462, col: 1, offset: 13612}, + pos: position{line: 461, col: 1, offset: 13611}, expr: &actionExpr{ - pos: position{line: 463, col: 5, offset: 13623}, + pos: position{line: 462, col: 5, offset: 13622}, run: (*parser).callonLoadOp1, expr: &seqExpr{ - pos: position{line: 463, col: 5, offset: 13623}, - exprs: []interface{}{ + pos: position{line: 462, col: 5, offset: 13622}, + exprs: []any{ &litMatcher{ - pos: position{line: 463, col: 5, offset: 13623}, + pos: position{line: 462, col: 5, offset: 13622}, val: "load", ignoreCase: false, + want: "\"load\"", }, &ruleRefExpr{ - pos: position{line: 463, col: 12, offset: 13630}, + pos: position{line: 462, col: 12, offset: 13629}, name: "_", }, &labeledExpr{ - pos: position{line: 463, col: 14, offset: 13632}, + pos: position{line: 462, col: 14, offset: 13631}, label: "pool", expr: &ruleRefExpr{ - pos: position{line: 463, col: 19, offset: 13637}, + pos: position{line: 462, col: 19, offset: 13636}, name: "PoolNameString", }, }, &labeledExpr{ - pos: position{line: 463, col: 34, offset: 13652}, + pos: position{line: 462, col: 34, offset: 13651}, label: "branch", expr: &zeroOrOneExpr{ - pos: position{line: 463, col: 41, offset: 13659}, + pos: position{line: 462, col: 41, offset: 13658}, expr: &ruleRefExpr{ - pos: position{line: 463, col: 41, offset: 13659}, + pos: position{line: 462, col: 41, offset: 13658}, name: "PoolBranch", }, }, }, &labeledExpr{ - pos: position{line: 463, col: 53, offset: 13671}, + pos: position{line: 462, col: 53, offset: 13670}, label: "author", expr: &zeroOrOneExpr{ - pos: position{line: 463, col: 60, offset: 13678}, + pos: position{line: 462, col: 60, offset: 13677}, expr: &ruleRefExpr{ - pos: position{line: 463, col: 60, offset: 13678}, + pos: position{line: 462, col: 60, offset: 13677}, name: "AuthorArg", }, }, }, &labeledExpr{ - pos: position{line: 463, col: 71, offset: 13689}, + pos: position{line: 462, col: 71, offset: 13688}, label: "message", expr: &zeroOrOneExpr{ - pos: position{line: 463, col: 79, offset: 13697}, + pos: position{line: 462, col: 79, offset: 13696}, expr: &ruleRefExpr{ - pos: position{line: 463, col: 79, offset: 13697}, + pos: position{line: 462, col: 79, offset: 13696}, name: "MessageArg", }, }, }, &labeledExpr{ - pos: position{line: 463, col: 91, offset: 13709}, + pos: position{line: 462, col: 91, offset: 13708}, label: "meta", expr: &zeroOrOneExpr{ - pos: position{line: 463, col: 96, offset: 13714}, + pos: position{line: 462, col: 96, offset: 13713}, expr: &ruleRefExpr{ - pos: position{line: 463, col: 96, offset: 13714}, + pos: position{line: 462, col: 96, offset: 13713}, name: "MetaArg", }, }, @@ -3644,31 +3751,32 @@ var g = &grammar{ }, { name: "AuthorArg", - pos: position{line: 467, col: 1, offset: 13873}, + pos: position{line: 466, col: 1, offset: 13872}, expr: &actionExpr{ - pos: position{line: 468, col: 5, offset: 13887}, + pos: position{line: 467, col: 5, offset: 13886}, run: (*parser).callonAuthorArg1, expr: &seqExpr{ - pos: position{line: 468, col: 5, offset: 13887}, - exprs: []interface{}{ + pos: position{line: 467, col: 5, offset: 13886}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 468, col: 5, offset: 13887}, + pos: position{line: 467, col: 5, offset: 13886}, name: "_", }, &litMatcher{ - pos: position{line: 468, col: 7, offset: 13889}, + pos: position{line: 467, col: 7, offset: 13888}, val: "author", ignoreCase: false, + want: "\"author\"", }, &ruleRefExpr{ - pos: position{line: 468, col: 16, offset: 13898}, + pos: position{line: 467, col: 16, offset: 13897}, name: "_", }, &labeledExpr{ - pos: position{line: 468, col: 18, offset: 13900}, + pos: position{line: 467, col: 18, offset: 13899}, label: "val", expr: &ruleRefExpr{ - pos: position{line: 468, col: 22, offset: 13904}, + pos: position{line: 467, col: 22, offset: 13903}, name: "QuotedString", }, }, @@ -3678,31 +3786,32 @@ var g = &grammar{ }, { name: "MessageArg", - pos: position{line: 470, col: 1, offset: 13938}, + pos: position{line: 469, col: 1, offset: 13937}, expr: &actionExpr{ - pos: position{line: 471, col: 5, offset: 13953}, + pos: position{line: 470, col: 5, offset: 13952}, run: (*parser).callonMessageArg1, expr: &seqExpr{ - pos: position{line: 471, col: 5, offset: 13953}, - exprs: []interface{}{ + pos: position{line: 470, col: 5, offset: 13952}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 471, col: 5, offset: 13953}, + pos: position{line: 470, col: 5, offset: 13952}, name: "_", }, &litMatcher{ - pos: position{line: 471, col: 7, offset: 13955}, + pos: position{line: 470, col: 7, offset: 13954}, val: "message", ignoreCase: false, + want: "\"message\"", }, &ruleRefExpr{ - pos: position{line: 471, col: 17, offset: 13965}, + pos: position{line: 470, col: 17, offset: 13964}, name: "_", }, &labeledExpr{ - pos: position{line: 471, col: 19, offset: 13967}, + pos: position{line: 470, col: 19, offset: 13966}, label: "val", expr: &ruleRefExpr{ - pos: position{line: 471, col: 23, offset: 13971}, + pos: position{line: 470, col: 23, offset: 13970}, name: "QuotedString", }, }, @@ -3712,31 +3821,32 @@ var g = &grammar{ }, { name: "MetaArg", - pos: position{line: 473, col: 1, offset: 14005}, + pos: position{line: 472, col: 1, offset: 14004}, expr: &actionExpr{ - pos: position{line: 474, col: 5, offset: 14017}, + pos: position{line: 473, col: 5, offset: 14016}, run: (*parser).callonMetaArg1, expr: &seqExpr{ - pos: position{line: 474, col: 5, offset: 14017}, - exprs: []interface{}{ + pos: position{line: 473, col: 5, offset: 14016}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 474, col: 5, offset: 14017}, + pos: position{line: 473, col: 5, offset: 14016}, name: "_", }, &litMatcher{ - pos: position{line: 474, col: 7, offset: 14019}, + pos: position{line: 473, col: 7, offset: 14018}, val: "meta", ignoreCase: false, + want: "\"meta\"", }, &ruleRefExpr{ - pos: position{line: 474, col: 14, offset: 14026}, + pos: position{line: 473, col: 14, offset: 14025}, name: "_", }, &labeledExpr{ - pos: position{line: 474, col: 16, offset: 14028}, + pos: position{line: 473, col: 16, offset: 14027}, label: "val", expr: &ruleRefExpr{ - pos: position{line: 474, col: 20, offset: 14032}, + pos: position{line: 473, col: 20, offset: 14031}, name: "QuotedString", }, }, @@ -3746,30 +3856,31 @@ var g = &grammar{ }, { name: "PoolBranch", - pos: position{line: 476, col: 1, offset: 14066}, + pos: position{line: 475, col: 1, offset: 14065}, expr: &actionExpr{ - pos: position{line: 477, col: 5, offset: 14081}, + pos: position{line: 476, col: 5, offset: 14080}, run: (*parser).callonPoolBranch1, expr: &seqExpr{ - pos: position{line: 477, col: 5, offset: 14081}, - exprs: []interface{}{ + pos: position{line: 476, col: 5, offset: 14080}, + exprs: []any{ &litMatcher{ - pos: position{line: 477, col: 5, offset: 14081}, + pos: position{line: 476, col: 5, offset: 14080}, val: "@", ignoreCase: false, + want: "\"@\"", }, &labeledExpr{ - pos: position{line: 477, col: 9, offset: 14085}, + pos: position{line: 476, col: 9, offset: 14084}, label: "branch", expr: &choiceExpr{ - pos: position{line: 477, col: 17, offset: 14093}, - alternatives: []interface{}{ + pos: position{line: 476, col: 17, offset: 14092}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 477, col: 17, offset: 14093}, + pos: position{line: 476, col: 17, offset: 14092}, name: "PoolIdentifier", }, &ruleRefExpr{ - pos: position{line: 477, col: 34, offset: 14110}, + pos: position{line: 476, col: 34, offset: 14109}, name: "QuotedString", }, }, @@ -3781,15 +3892,15 @@ var g = &grammar{ }, { name: "FromOp", - pos: position{line: 479, col: 1, offset: 14148}, + pos: position{line: 478, col: 1, offset: 14147}, expr: &actionExpr{ - pos: position{line: 480, col: 5, offset: 14159}, + pos: position{line: 479, col: 5, offset: 14158}, run: (*parser).callonFromOp1, expr: &labeledExpr{ - pos: position{line: 480, col: 5, offset: 14159}, + pos: position{line: 479, col: 5, offset: 14158}, label: "source", expr: &ruleRefExpr{ - pos: position{line: 480, col: 12, offset: 14166}, + pos: position{line: 479, col: 12, offset: 14165}, name: "FromAny", }, }, @@ -3797,20 +3908,20 @@ var g = &grammar{ }, { name: "FromAny", - pos: position{line: 484, col: 1, offset: 14324}, + pos: position{line: 483, col: 1, offset: 14323}, expr: &choiceExpr{ - pos: position{line: 485, col: 5, offset: 14336}, - alternatives: []interface{}{ + pos: position{line: 484, col: 5, offset: 14335}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 485, col: 5, offset: 14336}, + pos: position{line: 484, col: 5, offset: 14335}, name: "File", }, &ruleRefExpr{ - pos: position{line: 486, col: 5, offset: 14345}, + pos: position{line: 485, col: 5, offset: 14344}, name: "Get", }, &ruleRefExpr{ - pos: position{line: 487, col: 5, offset: 14353}, + pos: position{line: 486, col: 5, offset: 14352}, name: "From", }, }, @@ -3818,48 +3929,49 @@ var g = &grammar{ }, { name: "File", - pos: position{line: 489, col: 1, offset: 14359}, + pos: position{line: 488, col: 1, offset: 14358}, expr: &actionExpr{ - pos: position{line: 490, col: 5, offset: 14368}, + pos: position{line: 489, col: 5, offset: 14367}, run: (*parser).callonFile1, expr: &seqExpr{ - pos: position{line: 490, col: 5, offset: 14368}, - exprs: []interface{}{ + pos: position{line: 489, col: 5, offset: 14367}, + exprs: []any{ &litMatcher{ - pos: position{line: 490, col: 5, offset: 14368}, + pos: position{line: 489, col: 5, offset: 14367}, val: "file", ignoreCase: false, + want: "\"file\"", }, &ruleRefExpr{ - pos: position{line: 490, col: 12, offset: 14375}, + pos: position{line: 489, col: 12, offset: 14374}, name: "_", }, &labeledExpr{ - pos: position{line: 490, col: 14, offset: 14377}, + pos: position{line: 489, col: 14, offset: 14376}, label: "path", expr: &ruleRefExpr{ - pos: position{line: 490, col: 19, offset: 14382}, + pos: position{line: 489, col: 19, offset: 14381}, name: "Path", }, }, &labeledExpr{ - pos: position{line: 490, col: 24, offset: 14387}, + pos: position{line: 489, col: 24, offset: 14386}, label: "format", expr: &zeroOrOneExpr{ - pos: position{line: 490, col: 31, offset: 14394}, + pos: position{line: 489, col: 31, offset: 14393}, expr: &ruleRefExpr{ - pos: position{line: 490, col: 31, offset: 14394}, + pos: position{line: 489, col: 31, offset: 14393}, name: "FormatArg", }, }, }, &labeledExpr{ - pos: position{line: 490, col: 42, offset: 14405}, + pos: position{line: 489, col: 42, offset: 14404}, label: "sort_key", expr: &zeroOrOneExpr{ - pos: position{line: 490, col: 51, offset: 14414}, + pos: position{line: 489, col: 51, offset: 14413}, expr: &ruleRefExpr{ - pos: position{line: 490, col: 51, offset: 14414}, + pos: position{line: 489, col: 51, offset: 14413}, name: "SortKeyArg", }, }, @@ -3870,27 +3982,28 @@ var g = &grammar{ }, { name: "From", - pos: position{line: 494, col: 1, offset: 14546}, + pos: position{line: 493, col: 1, offset: 14545}, expr: &actionExpr{ - pos: position{line: 495, col: 5, offset: 14555}, + pos: position{line: 494, col: 5, offset: 14554}, run: (*parser).callonFrom1, expr: &seqExpr{ - pos: position{line: 495, col: 5, offset: 14555}, - exprs: []interface{}{ + pos: position{line: 494, col: 5, offset: 14554}, + exprs: []any{ &litMatcher{ - pos: position{line: 495, col: 5, offset: 14555}, + pos: position{line: 494, col: 5, offset: 14554}, val: "from", ignoreCase: false, + want: "\"from\"", }, &ruleRefExpr{ - pos: position{line: 495, col: 12, offset: 14562}, + pos: position{line: 494, col: 12, offset: 14561}, name: "_", }, &labeledExpr{ - pos: position{line: 495, col: 14, offset: 14564}, + pos: position{line: 494, col: 14, offset: 14563}, label: "body", expr: &ruleRefExpr{ - pos: position{line: 495, col: 19, offset: 14569}, + pos: position{line: 494, col: 19, offset: 14568}, name: "PoolBody", }, }, @@ -3900,27 +4013,28 @@ var g = &grammar{ }, { name: "Pool", - pos: position{line: 497, col: 1, offset: 14600}, + pos: position{line: 496, col: 1, offset: 14599}, expr: &actionExpr{ - pos: position{line: 498, col: 5, offset: 14609}, + pos: position{line: 497, col: 5, offset: 14608}, run: (*parser).callonPool1, expr: &seqExpr{ - pos: position{line: 498, col: 5, offset: 14609}, - exprs: []interface{}{ + pos: position{line: 497, col: 5, offset: 14608}, + exprs: []any{ &litMatcher{ - pos: position{line: 498, col: 5, offset: 14609}, + pos: position{line: 497, col: 5, offset: 14608}, val: "pool", ignoreCase: false, + want: "\"pool\"", }, &ruleRefExpr{ - pos: position{line: 498, col: 12, offset: 14616}, + pos: position{line: 497, col: 12, offset: 14615}, name: "_", }, &labeledExpr{ - pos: position{line: 498, col: 14, offset: 14618}, + pos: position{line: 497, col: 14, offset: 14617}, label: "body", expr: &ruleRefExpr{ - pos: position{line: 498, col: 19, offset: 14623}, + pos: position{line: 497, col: 19, offset: 14622}, name: "PoolBody", }, }, @@ -3930,28 +4044,28 @@ var g = &grammar{ }, { name: "PoolBody", - pos: position{line: 500, col: 1, offset: 14654}, + pos: position{line: 499, col: 1, offset: 14653}, expr: &actionExpr{ - pos: position{line: 501, col: 5, offset: 14667}, + pos: position{line: 500, col: 5, offset: 14666}, run: (*parser).callonPoolBody1, expr: &seqExpr{ - pos: position{line: 501, col: 5, offset: 14667}, - exprs: []interface{}{ + pos: position{line: 500, col: 5, offset: 14666}, + exprs: []any{ &labeledExpr{ - pos: position{line: 501, col: 5, offset: 14667}, + pos: position{line: 500, col: 5, offset: 14666}, label: "spec", expr: &ruleRefExpr{ - pos: position{line: 501, col: 10, offset: 14672}, + pos: position{line: 500, col: 10, offset: 14671}, name: "PoolSpec", }, }, &labeledExpr{ - pos: position{line: 501, col: 19, offset: 14681}, + pos: position{line: 500, col: 19, offset: 14680}, label: "at", expr: &zeroOrOneExpr{ - pos: position{line: 501, col: 22, offset: 14684}, + pos: position{line: 500, col: 22, offset: 14683}, expr: &ruleRefExpr{ - pos: position{line: 501, col: 22, offset: 14684}, + pos: position{line: 500, col: 22, offset: 14683}, name: "PoolAt", }, }, @@ -3962,81 +4076,82 @@ var g = &grammar{ }, { name: "Get", - pos: position{line: 505, col: 1, offset: 14782}, + pos: position{line: 504, col: 1, offset: 14781}, expr: &actionExpr{ - pos: position{line: 506, col: 5, offset: 14790}, + pos: position{line: 505, col: 5, offset: 14789}, run: (*parser).callonGet1, expr: &seqExpr{ - pos: position{line: 506, col: 5, offset: 14790}, - exprs: []interface{}{ + pos: position{line: 505, col: 5, offset: 14789}, + exprs: []any{ &litMatcher{ - pos: position{line: 506, col: 5, offset: 14790}, + pos: position{line: 505, col: 5, offset: 14789}, val: "get", ignoreCase: false, + want: "\"get\"", }, &ruleRefExpr{ - pos: position{line: 506, col: 11, offset: 14796}, + pos: position{line: 505, col: 11, offset: 14795}, name: "_", }, &labeledExpr{ - pos: position{line: 506, col: 13, offset: 14798}, + pos: position{line: 505, col: 13, offset: 14797}, label: "url", expr: &ruleRefExpr{ - pos: position{line: 506, col: 17, offset: 14802}, + pos: position{line: 505, col: 17, offset: 14801}, name: "Path", }, }, &labeledExpr{ - pos: position{line: 506, col: 22, offset: 14807}, + pos: position{line: 505, col: 22, offset: 14806}, label: "format", expr: &zeroOrOneExpr{ - pos: position{line: 506, col: 29, offset: 14814}, + pos: position{line: 505, col: 29, offset: 14813}, expr: &ruleRefExpr{ - pos: position{line: 506, col: 29, offset: 14814}, + pos: position{line: 505, col: 29, offset: 14813}, name: "FormatArg", }, }, }, &labeledExpr{ - pos: position{line: 506, col: 40, offset: 14825}, + pos: position{line: 505, col: 40, offset: 14824}, label: "sort_key", expr: &zeroOrOneExpr{ - pos: position{line: 506, col: 49, offset: 14834}, + pos: position{line: 505, col: 49, offset: 14833}, expr: &ruleRefExpr{ - pos: position{line: 506, col: 49, offset: 14834}, + pos: position{line: 505, col: 49, offset: 14833}, name: "SortKeyArg", }, }, }, &labeledExpr{ - pos: position{line: 506, col: 61, offset: 14846}, + pos: position{line: 505, col: 61, offset: 14845}, label: "method", expr: &zeroOrOneExpr{ - pos: position{line: 506, col: 68, offset: 14853}, + pos: position{line: 505, col: 68, offset: 14852}, expr: &ruleRefExpr{ - pos: position{line: 506, col: 68, offset: 14853}, + pos: position{line: 505, col: 68, offset: 14852}, name: "MethodArg", }, }, }, &labeledExpr{ - pos: position{line: 506, col: 79, offset: 14864}, + pos: position{line: 505, col: 79, offset: 14863}, label: "headers", expr: &zeroOrOneExpr{ - pos: position{line: 506, col: 87, offset: 14872}, + pos: position{line: 505, col: 87, offset: 14871}, expr: &ruleRefExpr{ - pos: position{line: 506, col: 87, offset: 14872}, + pos: position{line: 505, col: 87, offset: 14871}, name: "HeadersArg", }, }, }, &labeledExpr{ - pos: position{line: 506, col: 99, offset: 14884}, + pos: position{line: 505, col: 99, offset: 14883}, label: "body", expr: &zeroOrOneExpr{ - pos: position{line: 506, col: 104, offset: 14889}, + pos: position{line: 505, col: 104, offset: 14888}, expr: &ruleRefExpr{ - pos: position{line: 506, col: 104, offset: 14889}, + pos: position{line: 505, col: 104, offset: 14888}, name: "BodyArg", }, }, @@ -4047,38 +4162,39 @@ var g = &grammar{ }, { name: "MethodArg", - pos: position{line: 525, col: 1, offset: 15179}, + pos: position{line: 524, col: 1, offset: 15178}, expr: &actionExpr{ - pos: position{line: 525, col: 13, offset: 15191}, + pos: position{line: 524, col: 13, offset: 15190}, run: (*parser).callonMethodArg1, expr: &seqExpr{ - pos: position{line: 525, col: 13, offset: 15191}, - exprs: []interface{}{ + pos: position{line: 524, col: 13, offset: 15190}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 525, col: 13, offset: 15191}, + pos: position{line: 524, col: 13, offset: 15190}, name: "_", }, &litMatcher{ - pos: position{line: 525, col: 15, offset: 15193}, + pos: position{line: 524, col: 15, offset: 15192}, val: "method", ignoreCase: false, + want: "\"method\"", }, &ruleRefExpr{ - pos: position{line: 525, col: 24, offset: 15202}, + pos: position{line: 524, col: 24, offset: 15201}, name: "_", }, &labeledExpr{ - pos: position{line: 525, col: 26, offset: 15204}, + pos: position{line: 524, col: 26, offset: 15203}, label: "v", expr: &choiceExpr{ - pos: position{line: 525, col: 29, offset: 15207}, - alternatives: []interface{}{ + pos: position{line: 524, col: 29, offset: 15206}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 525, col: 29, offset: 15207}, + pos: position{line: 524, col: 29, offset: 15206}, name: "IdentifierName", }, &ruleRefExpr{ - pos: position{line: 525, col: 46, offset: 15224}, + pos: position{line: 524, col: 46, offset: 15223}, name: "QuotedString", }, }, @@ -4090,31 +4206,32 @@ var g = &grammar{ }, { name: "HeadersArg", - pos: position{line: 527, col: 1, offset: 15257}, + pos: position{line: 526, col: 1, offset: 15256}, expr: &actionExpr{ - pos: position{line: 527, col: 14, offset: 15270}, + pos: position{line: 526, col: 14, offset: 15269}, run: (*parser).callonHeadersArg1, expr: &seqExpr{ - pos: position{line: 527, col: 14, offset: 15270}, - exprs: []interface{}{ + pos: position{line: 526, col: 14, offset: 15269}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 527, col: 14, offset: 15270}, + pos: position{line: 526, col: 14, offset: 15269}, name: "_", }, &litMatcher{ - pos: position{line: 527, col: 16, offset: 15272}, + pos: position{line: 526, col: 16, offset: 15271}, val: "headers", ignoreCase: false, + want: "\"headers\"", }, &ruleRefExpr{ - pos: position{line: 527, col: 26, offset: 15282}, + pos: position{line: 526, col: 26, offset: 15281}, name: "_", }, &labeledExpr{ - pos: position{line: 527, col: 28, offset: 15284}, + pos: position{line: 526, col: 28, offset: 15283}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 527, col: 30, offset: 15286}, + pos: position{line: 526, col: 30, offset: 15285}, name: "Record", }, }, @@ -4124,38 +4241,39 @@ var g = &grammar{ }, { name: "BodyArg", - pos: position{line: 529, col: 1, offset: 15312}, + pos: position{line: 528, col: 1, offset: 15311}, expr: &actionExpr{ - pos: position{line: 529, col: 11, offset: 15322}, + pos: position{line: 528, col: 11, offset: 15321}, run: (*parser).callonBodyArg1, expr: &seqExpr{ - pos: position{line: 529, col: 11, offset: 15322}, - exprs: []interface{}{ + pos: position{line: 528, col: 11, offset: 15321}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 529, col: 11, offset: 15322}, + pos: position{line: 528, col: 11, offset: 15321}, name: "_", }, &litMatcher{ - pos: position{line: 529, col: 13, offset: 15324}, + pos: position{line: 528, col: 13, offset: 15323}, val: "body", ignoreCase: false, + want: "\"body\"", }, &ruleRefExpr{ - pos: position{line: 529, col: 20, offset: 15331}, + pos: position{line: 528, col: 20, offset: 15330}, name: "_", }, &labeledExpr{ - pos: position{line: 529, col: 22, offset: 15333}, + pos: position{line: 528, col: 22, offset: 15332}, label: "v", expr: &choiceExpr{ - pos: position{line: 529, col: 25, offset: 15336}, - alternatives: []interface{}{ + pos: position{line: 528, col: 25, offset: 15335}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 529, col: 25, offset: 15336}, + pos: position{line: 528, col: 25, offset: 15335}, name: "IdentifierName", }, &ruleRefExpr{ - pos: position{line: 529, col: 42, offset: 15353}, + pos: position{line: 528, col: 42, offset: 15352}, name: "QuotedString", }, }, @@ -4167,29 +4285,29 @@ var g = &grammar{ }, { name: "Path", - pos: position{line: 531, col: 1, offset: 15386}, + pos: position{line: 530, col: 1, offset: 15385}, expr: &choiceExpr{ - pos: position{line: 532, col: 5, offset: 15395}, - alternatives: []interface{}{ + pos: position{line: 531, col: 5, offset: 15394}, + alternatives: []any{ &actionExpr{ - pos: position{line: 532, col: 5, offset: 15395}, + pos: position{line: 531, col: 5, offset: 15394}, run: (*parser).callonPath2, expr: &labeledExpr{ - pos: position{line: 532, col: 5, offset: 15395}, + pos: position{line: 531, col: 5, offset: 15394}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 532, col: 7, offset: 15397}, + pos: position{line: 531, col: 7, offset: 15396}, name: "QuotedString", }, }, }, &actionExpr{ - pos: position{line: 533, col: 5, offset: 15488}, + pos: position{line: 532, col: 5, offset: 15487}, run: (*parser).callonPath5, expr: &oneOrMoreExpr{ - pos: position{line: 533, col: 5, offset: 15488}, + pos: position{line: 532, col: 5, offset: 15487}, expr: &charClassMatcher{ - pos: position{line: 533, col: 5, offset: 15488}, + pos: position{line: 532, col: 5, offset: 15487}, val: "[0-9a-zA-Z!@$%^&*_=<>,./?:[\\]{}~+-]", chars: []rune{'!', '@', '$', '%', '^', '&', '*', '_', '=', '<', '>', ',', '.', '/', '?', ':', '[', ']', '{', '}', '~', '+', '-'}, ranges: []rune{'0', '9', 'a', 'z', 'A', 'Z'}, @@ -4203,31 +4321,32 @@ var g = &grammar{ }, { name: "PoolAt", - pos: position{line: 536, col: 1, offset: 15640}, + pos: position{line: 535, col: 1, offset: 15639}, expr: &actionExpr{ - pos: position{line: 537, col: 5, offset: 15651}, + pos: position{line: 536, col: 5, offset: 15650}, run: (*parser).callonPoolAt1, expr: &seqExpr{ - pos: position{line: 537, col: 5, offset: 15651}, - exprs: []interface{}{ + pos: position{line: 536, col: 5, offset: 15650}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 537, col: 5, offset: 15651}, + pos: position{line: 536, col: 5, offset: 15650}, name: "_", }, &litMatcher{ - pos: position{line: 537, col: 7, offset: 15653}, + pos: position{line: 536, col: 7, offset: 15652}, val: "at", ignoreCase: false, + want: "\"at\"", }, &ruleRefExpr{ - pos: position{line: 537, col: 12, offset: 15658}, + pos: position{line: 536, col: 12, offset: 15657}, name: "_", }, &labeledExpr{ - pos: position{line: 537, col: 14, offset: 15660}, + pos: position{line: 536, col: 14, offset: 15659}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 537, col: 17, offset: 15663}, + pos: position{line: 536, col: 17, offset: 15662}, name: "KSUID", }, }, @@ -4237,14 +4356,14 @@ var g = &grammar{ }, { name: "KSUID", - pos: position{line: 540, col: 1, offset: 15729}, + pos: position{line: 539, col: 1, offset: 15728}, expr: &actionExpr{ - pos: position{line: 540, col: 9, offset: 15737}, + pos: position{line: 539, col: 9, offset: 15736}, run: (*parser).callonKSUID1, expr: &oneOrMoreExpr{ - pos: position{line: 540, col: 9, offset: 15737}, + pos: position{line: 539, col: 9, offset: 15736}, expr: &charClassMatcher{ - pos: position{line: 540, col: 10, offset: 15738}, + pos: position{line: 539, col: 10, offset: 15737}, val: "[0-9a-zA-Z]", ranges: []rune{'0', '9', 'a', 'z', 'A', 'Z'}, ignoreCase: false, @@ -4255,51 +4374,51 @@ var g = &grammar{ }, { name: "PoolSpec", - pos: position{line: 542, col: 1, offset: 15784}, + pos: position{line: 541, col: 1, offset: 15783}, expr: &choiceExpr{ - pos: position{line: 543, col: 5, offset: 15797}, - alternatives: []interface{}{ + pos: position{line: 542, col: 5, offset: 15796}, + alternatives: []any{ &actionExpr{ - pos: position{line: 543, col: 5, offset: 15797}, + pos: position{line: 542, col: 5, offset: 15796}, run: (*parser).callonPoolSpec2, expr: &seqExpr{ - pos: position{line: 543, col: 5, offset: 15797}, - exprs: []interface{}{ + pos: position{line: 542, col: 5, offset: 15796}, + exprs: []any{ &labeledExpr{ - pos: position{line: 543, col: 5, offset: 15797}, + pos: position{line: 542, col: 5, offset: 15796}, label: "pool", expr: &ruleRefExpr{ - pos: position{line: 543, col: 10, offset: 15802}, + pos: position{line: 542, col: 10, offset: 15801}, name: "PoolName", }, }, &labeledExpr{ - pos: position{line: 543, col: 19, offset: 15811}, + pos: position{line: 542, col: 19, offset: 15810}, label: "commit", expr: &zeroOrOneExpr{ - pos: position{line: 543, col: 26, offset: 15818}, + pos: position{line: 542, col: 26, offset: 15817}, expr: &ruleRefExpr{ - pos: position{line: 543, col: 26, offset: 15818}, + pos: position{line: 542, col: 26, offset: 15817}, name: "PoolCommit", }, }, }, &labeledExpr{ - pos: position{line: 543, col: 38, offset: 15830}, + pos: position{line: 542, col: 38, offset: 15829}, label: "meta", expr: &zeroOrOneExpr{ - pos: position{line: 543, col: 43, offset: 15835}, + pos: position{line: 542, col: 43, offset: 15834}, expr: &ruleRefExpr{ - pos: position{line: 543, col: 43, offset: 15835}, + pos: position{line: 542, col: 43, offset: 15834}, name: "PoolMeta", }, }, }, &labeledExpr{ - pos: position{line: 543, col: 53, offset: 15845}, + pos: position{line: 542, col: 53, offset: 15844}, label: "tap", expr: &ruleRefExpr{ - pos: position{line: 543, col: 57, offset: 15849}, + pos: position{line: 542, col: 57, offset: 15848}, name: "TapArg", }, }, @@ -4307,13 +4426,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 546, col: 5, offset: 15967}, + pos: position{line: 545, col: 5, offset: 15966}, run: (*parser).callonPoolSpec14, expr: &labeledExpr{ - pos: position{line: 546, col: 5, offset: 15967}, + pos: position{line: 545, col: 5, offset: 15966}, label: "meta", expr: &ruleRefExpr{ - pos: position{line: 546, col: 10, offset: 15972}, + pos: position{line: 545, col: 10, offset: 15971}, name: "PoolMeta", }, }, @@ -4323,23 +4442,24 @@ var g = &grammar{ }, { name: "PoolCommit", - pos: position{line: 550, col: 1, offset: 16073}, + pos: position{line: 549, col: 1, offset: 16072}, expr: &actionExpr{ - pos: position{line: 551, col: 5, offset: 16088}, + pos: position{line: 550, col: 5, offset: 16087}, run: (*parser).callonPoolCommit1, expr: &seqExpr{ - pos: position{line: 551, col: 5, offset: 16088}, - exprs: []interface{}{ + pos: position{line: 550, col: 5, offset: 16087}, + exprs: []any{ &litMatcher{ - pos: position{line: 551, col: 5, offset: 16088}, + pos: position{line: 550, col: 5, offset: 16087}, val: "@", ignoreCase: false, + want: "\"@\"", }, &labeledExpr{ - pos: position{line: 551, col: 9, offset: 16092}, + pos: position{line: 550, col: 9, offset: 16091}, label: "commit", expr: &ruleRefExpr{ - pos: position{line: 551, col: 16, offset: 16099}, + pos: position{line: 550, col: 16, offset: 16098}, name: "PoolNameString", }, }, @@ -4349,23 +4469,24 @@ var g = &grammar{ }, { name: "PoolMeta", - pos: position{line: 553, col: 1, offset: 16138}, + pos: position{line: 552, col: 1, offset: 16137}, expr: &actionExpr{ - pos: position{line: 554, col: 5, offset: 16151}, + pos: position{line: 553, col: 5, offset: 16150}, run: (*parser).callonPoolMeta1, expr: &seqExpr{ - pos: position{line: 554, col: 5, offset: 16151}, - exprs: []interface{}{ + pos: position{line: 553, col: 5, offset: 16150}, + exprs: []any{ &litMatcher{ - pos: position{line: 554, col: 5, offset: 16151}, + pos: position{line: 553, col: 5, offset: 16150}, val: ":", ignoreCase: false, + want: "\":\"", }, &labeledExpr{ - pos: position{line: 554, col: 9, offset: 16155}, + pos: position{line: 553, col: 9, offset: 16154}, label: "meta", expr: &ruleRefExpr{ - pos: position{line: 554, col: 14, offset: 16160}, + pos: position{line: 553, col: 14, offset: 16159}, name: "PoolIdentifier", }, }, @@ -4375,33 +4496,34 @@ var g = &grammar{ }, { name: "PoolName", - pos: position{line: 556, col: 1, offset: 16197}, + pos: position{line: 555, col: 1, offset: 16196}, expr: &choiceExpr{ - pos: position{line: 557, col: 5, offset: 16210}, - alternatives: []interface{}{ + pos: position{line: 556, col: 5, offset: 16209}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 557, col: 5, offset: 16210}, + pos: position{line: 556, col: 5, offset: 16209}, name: "Regexp", }, &ruleRefExpr{ - pos: position{line: 558, col: 5, offset: 16221}, + pos: position{line: 557, col: 5, offset: 16220}, name: "Glob", }, &actionExpr{ - pos: position{line: 559, col: 5, offset: 16230}, + pos: position{line: 558, col: 5, offset: 16229}, run: (*parser).callonPoolName4, expr: &seqExpr{ - pos: position{line: 559, col: 5, offset: 16230}, - exprs: []interface{}{ + pos: position{line: 558, col: 5, offset: 16229}, + exprs: []any{ &litMatcher{ - pos: position{line: 559, col: 5, offset: 16230}, + pos: position{line: 558, col: 5, offset: 16229}, val: "*", ignoreCase: false, + want: "\"*\"", }, ¬Expr{ - pos: position{line: 559, col: 9, offset: 16234}, + pos: position{line: 558, col: 9, offset: 16233}, expr: &ruleRefExpr{ - pos: position{line: 559, col: 10, offset: 16235}, + pos: position{line: 558, col: 10, offset: 16234}, name: "ExprGuard", }, }, @@ -4409,25 +4531,25 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 560, col: 5, offset: 16320}, + pos: position{line: 559, col: 5, offset: 16319}, run: (*parser).callonPoolName9, expr: &labeledExpr{ - pos: position{line: 560, col: 5, offset: 16320}, + pos: position{line: 559, col: 5, offset: 16319}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 560, col: 10, offset: 16325}, + pos: position{line: 559, col: 10, offset: 16324}, name: "QuotedString", }, }, }, &actionExpr{ - pos: position{line: 561, col: 5, offset: 16419}, + pos: position{line: 560, col: 5, offset: 16418}, run: (*parser).callonPoolName12, expr: &labeledExpr{ - pos: position{line: 561, col: 5, offset: 16419}, + pos: position{line: 560, col: 5, offset: 16418}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 561, col: 10, offset: 16424}, + pos: position{line: 560, col: 10, offset: 16423}, name: "PoolNameString", }, }, @@ -4437,20 +4559,20 @@ var g = &grammar{ }, { name: "PoolNameString", - pos: position{line: 563, col: 1, offset: 16511}, + pos: position{line: 562, col: 1, offset: 16510}, expr: &choiceExpr{ - pos: position{line: 564, col: 5, offset: 16530}, - alternatives: []interface{}{ + pos: position{line: 563, col: 5, offset: 16529}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 564, col: 5, offset: 16530}, + pos: position{line: 563, col: 5, offset: 16529}, name: "PoolIdentifier", }, &ruleRefExpr{ - pos: position{line: 565, col: 5, offset: 16549}, + pos: position{line: 564, col: 5, offset: 16548}, name: "KSUID", }, &ruleRefExpr{ - pos: position{line: 566, col: 5, offset: 16559}, + pos: position{line: 565, col: 5, offset: 16558}, name: "QuotedString", }, }, @@ -4458,40 +4580,42 @@ var g = &grammar{ }, { name: "PoolIdentifier", - pos: position{line: 568, col: 1, offset: 16573}, + pos: position{line: 567, col: 1, offset: 16572}, expr: &actionExpr{ - pos: position{line: 569, col: 5, offset: 16592}, + pos: position{line: 568, col: 5, offset: 16591}, run: (*parser).callonPoolIdentifier1, expr: &seqExpr{ - pos: position{line: 569, col: 5, offset: 16592}, - exprs: []interface{}{ + pos: position{line: 568, col: 5, offset: 16591}, + exprs: []any{ &choiceExpr{ - pos: position{line: 569, col: 6, offset: 16593}, - alternatives: []interface{}{ + pos: position{line: 568, col: 6, offset: 16592}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 569, col: 6, offset: 16593}, + pos: position{line: 568, col: 6, offset: 16592}, name: "IdentifierStart", }, &litMatcher{ - pos: position{line: 569, col: 24, offset: 16611}, + pos: position{line: 568, col: 24, offset: 16610}, val: ".", ignoreCase: false, + want: "\".\"", }, }, }, &zeroOrMoreExpr{ - pos: position{line: 569, col: 29, offset: 16616}, + pos: position{line: 568, col: 29, offset: 16615}, expr: &choiceExpr{ - pos: position{line: 569, col: 30, offset: 16617}, - alternatives: []interface{}{ + pos: position{line: 568, col: 30, offset: 16616}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 569, col: 30, offset: 16617}, + pos: position{line: 568, col: 30, offset: 16616}, name: "IdentifierRest", }, &litMatcher{ - pos: position{line: 569, col: 47, offset: 16634}, + pos: position{line: 568, col: 47, offset: 16633}, val: ".", ignoreCase: false, + want: "\".\"", }, }, }, @@ -4502,39 +4626,40 @@ var g = &grammar{ }, { name: "SortKeyArg", - pos: position{line: 571, col: 1, offset: 16672}, + pos: position{line: 570, col: 1, offset: 16671}, expr: &actionExpr{ - pos: position{line: 572, col: 5, offset: 16687}, + pos: position{line: 571, col: 5, offset: 16686}, run: (*parser).callonSortKeyArg1, expr: &seqExpr{ - pos: position{line: 572, col: 5, offset: 16687}, - exprs: []interface{}{ + pos: position{line: 571, col: 5, offset: 16686}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 572, col: 5, offset: 16687}, + pos: position{line: 571, col: 5, offset: 16686}, name: "_", }, &litMatcher{ - pos: position{line: 572, col: 7, offset: 16689}, + pos: position{line: 571, col: 7, offset: 16688}, val: "order", ignoreCase: false, + want: "\"order\"", }, &ruleRefExpr{ - pos: position{line: 572, col: 15, offset: 16697}, + pos: position{line: 571, col: 15, offset: 16696}, name: "_", }, &labeledExpr{ - pos: position{line: 572, col: 17, offset: 16699}, + pos: position{line: 571, col: 17, offset: 16698}, label: "keys", expr: &ruleRefExpr{ - pos: position{line: 572, col: 22, offset: 16704}, + pos: position{line: 571, col: 22, offset: 16703}, name: "FieldExprs", }, }, &labeledExpr{ - pos: position{line: 572, col: 33, offset: 16715}, + pos: position{line: 571, col: 33, offset: 16714}, label: "order", expr: &ruleRefExpr{ - pos: position{line: 572, col: 39, offset: 16721}, + pos: position{line: 571, col: 39, offset: 16720}, name: "OrderSuffix", }, }, @@ -4544,35 +4669,37 @@ var g = &grammar{ }, { name: "TapArg", - pos: position{line: 576, col: 1, offset: 16832}, + pos: position{line: 575, col: 1, offset: 16831}, expr: &choiceExpr{ - pos: position{line: 577, col: 5, offset: 16843}, - alternatives: []interface{}{ + pos: position{line: 576, col: 5, offset: 16842}, + alternatives: []any{ &actionExpr{ - pos: position{line: 577, col: 5, offset: 16843}, + pos: position{line: 576, col: 5, offset: 16842}, run: (*parser).callonTapArg2, expr: &seqExpr{ - pos: position{line: 577, col: 5, offset: 16843}, - exprs: []interface{}{ + pos: position{line: 576, col: 5, offset: 16842}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 577, col: 5, offset: 16843}, + pos: position{line: 576, col: 5, offset: 16842}, name: "_", }, &litMatcher{ - pos: position{line: 577, col: 7, offset: 16845}, + pos: position{line: 576, col: 7, offset: 16844}, val: "tap", ignoreCase: false, + want: "\"tap\"", }, }, }, }, &actionExpr{ - pos: position{line: 578, col: 5, offset: 16876}, + pos: position{line: 577, col: 5, offset: 16875}, run: (*parser).callonTapArg6, expr: &litMatcher{ - pos: position{line: 578, col: 5, offset: 16876}, + pos: position{line: 577, col: 5, offset: 16875}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -4580,31 +4707,32 @@ var g = &grammar{ }, { name: "FormatArg", - pos: position{line: 580, col: 1, offset: 16902}, + pos: position{line: 579, col: 1, offset: 16901}, expr: &actionExpr{ - pos: position{line: 581, col: 5, offset: 16916}, + pos: position{line: 580, col: 5, offset: 16915}, run: (*parser).callonFormatArg1, expr: &seqExpr{ - pos: position{line: 581, col: 5, offset: 16916}, - exprs: []interface{}{ + pos: position{line: 580, col: 5, offset: 16915}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 581, col: 5, offset: 16916}, + pos: position{line: 580, col: 5, offset: 16915}, name: "_", }, &litMatcher{ - pos: position{line: 581, col: 7, offset: 16918}, + pos: position{line: 580, col: 7, offset: 16917}, val: "format", ignoreCase: false, + want: "\"format\"", }, &ruleRefExpr{ - pos: position{line: 581, col: 16, offset: 16927}, + pos: position{line: 580, col: 16, offset: 16926}, name: "_", }, &labeledExpr{ - pos: position{line: 581, col: 18, offset: 16929}, + pos: position{line: 580, col: 18, offset: 16928}, label: "val", expr: &ruleRefExpr{ - pos: position{line: 581, col: 22, offset: 16933}, + pos: position{line: 580, col: 22, offset: 16932}, name: "IdentifierName", }, }, @@ -4614,35 +4742,38 @@ var g = &grammar{ }, { name: "OrderSuffix", - pos: position{line: 583, col: 1, offset: 16969}, + pos: position{line: 582, col: 1, offset: 16968}, expr: &choiceExpr{ - pos: position{line: 584, col: 5, offset: 16985}, - alternatives: []interface{}{ + pos: position{line: 583, col: 5, offset: 16984}, + alternatives: []any{ &actionExpr{ - pos: position{line: 584, col: 5, offset: 16985}, + pos: position{line: 583, col: 5, offset: 16984}, run: (*parser).callonOrderSuffix2, expr: &litMatcher{ - pos: position{line: 584, col: 5, offset: 16985}, + pos: position{line: 583, col: 5, offset: 16984}, val: ":asc", ignoreCase: false, + want: "\":asc\"", }, }, &actionExpr{ - pos: position{line: 585, col: 5, offset: 17019}, + pos: position{line: 584, col: 5, offset: 17018}, run: (*parser).callonOrderSuffix4, expr: &litMatcher{ - pos: position{line: 585, col: 5, offset: 17019}, + pos: position{line: 584, col: 5, offset: 17018}, val: ":desc", ignoreCase: false, + want: "\":desc\"", }, }, &actionExpr{ - pos: position{line: 586, col: 5, offset: 17054}, + pos: position{line: 585, col: 5, offset: 17053}, run: (*parser).callonOrderSuffix6, expr: &litMatcher{ - pos: position{line: 586, col: 5, offset: 17054}, + pos: position{line: 585, col: 5, offset: 17053}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -4650,22 +4781,23 @@ var g = &grammar{ }, { name: "PassOp", - pos: position{line: 588, col: 1, offset: 17085}, + pos: position{line: 587, col: 1, offset: 17084}, expr: &actionExpr{ - pos: position{line: 589, col: 5, offset: 17096}, + pos: position{line: 588, col: 5, offset: 17095}, run: (*parser).callonPassOp1, expr: &seqExpr{ - pos: position{line: 589, col: 5, offset: 17096}, - exprs: []interface{}{ + pos: position{line: 588, col: 5, offset: 17095}, + exprs: []any{ &litMatcher{ - pos: position{line: 589, col: 5, offset: 17096}, + pos: position{line: 588, col: 5, offset: 17095}, val: "pass", ignoreCase: false, + want: "\"pass\"", }, &andExpr{ - pos: position{line: 589, col: 12, offset: 17103}, + pos: position{line: 588, col: 12, offset: 17102}, expr: &ruleRefExpr{ - pos: position{line: 589, col: 13, offset: 17104}, + pos: position{line: 588, col: 13, offset: 17103}, name: "EOKW", }, }, @@ -4675,45 +4807,46 @@ var g = &grammar{ }, { name: "ExplodeOp", - pos: position{line: 595, col: 1, offset: 17297}, + pos: position{line: 594, col: 1, offset: 17296}, expr: &actionExpr{ - pos: position{line: 596, col: 5, offset: 17311}, + pos: position{line: 595, col: 5, offset: 17310}, run: (*parser).callonExplodeOp1, expr: &seqExpr{ - pos: position{line: 596, col: 5, offset: 17311}, - exprs: []interface{}{ + pos: position{line: 595, col: 5, offset: 17310}, + exprs: []any{ &litMatcher{ - pos: position{line: 596, col: 5, offset: 17311}, + pos: position{line: 595, col: 5, offset: 17310}, val: "explode", ignoreCase: false, + want: "\"explode\"", }, &ruleRefExpr{ - pos: position{line: 596, col: 15, offset: 17321}, + pos: position{line: 595, col: 15, offset: 17320}, name: "_", }, &labeledExpr{ - pos: position{line: 596, col: 17, offset: 17323}, + pos: position{line: 595, col: 17, offset: 17322}, label: "args", expr: &ruleRefExpr{ - pos: position{line: 596, col: 22, offset: 17328}, + pos: position{line: 595, col: 22, offset: 17327}, name: "Exprs", }, }, &labeledExpr{ - pos: position{line: 596, col: 28, offset: 17334}, + pos: position{line: 595, col: 28, offset: 17333}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 596, col: 32, offset: 17338}, + pos: position{line: 595, col: 32, offset: 17337}, name: "TypeArg", }, }, &labeledExpr{ - pos: position{line: 596, col: 40, offset: 17346}, + pos: position{line: 595, col: 40, offset: 17345}, label: "as", expr: &zeroOrOneExpr{ - pos: position{line: 596, col: 43, offset: 17349}, + pos: position{line: 595, col: 43, offset: 17348}, expr: &ruleRefExpr{ - pos: position{line: 596, col: 43, offset: 17349}, + pos: position{line: 595, col: 43, offset: 17348}, name: "AsArg", }, }, @@ -4724,27 +4857,28 @@ var g = &grammar{ }, { name: "MergeOp", - pos: position{line: 600, col: 1, offset: 17462}, + pos: position{line: 599, col: 1, offset: 17461}, expr: &actionExpr{ - pos: position{line: 601, col: 5, offset: 17474}, + pos: position{line: 600, col: 5, offset: 17473}, run: (*parser).callonMergeOp1, expr: &seqExpr{ - pos: position{line: 601, col: 5, offset: 17474}, - exprs: []interface{}{ + pos: position{line: 600, col: 5, offset: 17473}, + exprs: []any{ &litMatcher{ - pos: position{line: 601, col: 5, offset: 17474}, + pos: position{line: 600, col: 5, offset: 17473}, val: "merge", ignoreCase: false, + want: "\"merge\"", }, &ruleRefExpr{ - pos: position{line: 601, col: 13, offset: 17482}, + pos: position{line: 600, col: 13, offset: 17481}, name: "_", }, &labeledExpr{ - pos: position{line: 601, col: 15, offset: 17484}, + pos: position{line: 600, col: 15, offset: 17483}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 601, col: 20, offset: 17489}, + pos: position{line: 600, col: 20, offset: 17488}, name: "Expr", }, }, @@ -4754,48 +4888,49 @@ var g = &grammar{ }, { name: "OverOp", - pos: position{line: 605, col: 1, offset: 17575}, + pos: position{line: 604, col: 1, offset: 17574}, expr: &actionExpr{ - pos: position{line: 606, col: 5, offset: 17586}, + pos: position{line: 605, col: 5, offset: 17585}, run: (*parser).callonOverOp1, expr: &seqExpr{ - pos: position{line: 606, col: 5, offset: 17586}, - exprs: []interface{}{ + pos: position{line: 605, col: 5, offset: 17585}, + exprs: []any{ &litMatcher{ - pos: position{line: 606, col: 5, offset: 17586}, + pos: position{line: 605, col: 5, offset: 17585}, val: "over", ignoreCase: false, + want: "\"over\"", }, &ruleRefExpr{ - pos: position{line: 606, col: 12, offset: 17593}, + pos: position{line: 605, col: 12, offset: 17592}, name: "_", }, &labeledExpr{ - pos: position{line: 606, col: 14, offset: 17595}, + pos: position{line: 605, col: 14, offset: 17594}, label: "exprs", expr: &ruleRefExpr{ - pos: position{line: 606, col: 20, offset: 17601}, + pos: position{line: 605, col: 20, offset: 17600}, name: "Exprs", }, }, &labeledExpr{ - pos: position{line: 606, col: 26, offset: 17607}, + pos: position{line: 605, col: 26, offset: 17606}, label: "locals", expr: &zeroOrOneExpr{ - pos: position{line: 606, col: 33, offset: 17614}, + pos: position{line: 605, col: 33, offset: 17613}, expr: &ruleRefExpr{ - pos: position{line: 606, col: 33, offset: 17614}, + pos: position{line: 605, col: 33, offset: 17613}, name: "Locals", }, }, }, &labeledExpr{ - pos: position{line: 606, col: 41, offset: 17622}, + pos: position{line: 605, col: 41, offset: 17621}, label: "body", expr: &zeroOrOneExpr{ - pos: position{line: 606, col: 46, offset: 17627}, + pos: position{line: 605, col: 46, offset: 17626}, expr: &ruleRefExpr{ - pos: position{line: 606, col: 46, offset: 17627}, + pos: position{line: 605, col: 46, offset: 17626}, name: "Lateral", }, }, @@ -4806,102 +4941,108 @@ var g = &grammar{ }, { name: "Lateral", - pos: position{line: 610, col: 1, offset: 17750}, + pos: position{line: 609, col: 1, offset: 17749}, expr: &choiceExpr{ - pos: position{line: 611, col: 5, offset: 17762}, - alternatives: []interface{}{ + pos: position{line: 610, col: 5, offset: 17761}, + alternatives: []any{ &actionExpr{ - pos: position{line: 611, col: 5, offset: 17762}, + pos: position{line: 610, col: 5, offset: 17761}, run: (*parser).callonLateral2, expr: &seqExpr{ - pos: position{line: 611, col: 5, offset: 17762}, - exprs: []interface{}{ + pos: position{line: 610, col: 5, offset: 17761}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 611, col: 5, offset: 17762}, + pos: position{line: 610, col: 5, offset: 17761}, name: "__", }, &litMatcher{ - pos: position{line: 611, col: 8, offset: 17765}, + pos: position{line: 610, col: 8, offset: 17764}, val: "=>", ignoreCase: false, + want: "\"=>\"", }, &ruleRefExpr{ - pos: position{line: 611, col: 13, offset: 17770}, + pos: position{line: 610, col: 13, offset: 17769}, name: "__", }, &litMatcher{ - pos: position{line: 611, col: 16, offset: 17773}, + pos: position{line: 610, col: 16, offset: 17772}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 611, col: 20, offset: 17777}, + pos: position{line: 610, col: 20, offset: 17776}, name: "__", }, &labeledExpr{ - pos: position{line: 611, col: 23, offset: 17780}, + pos: position{line: 610, col: 23, offset: 17779}, label: "scope", expr: &ruleRefExpr{ - pos: position{line: 611, col: 29, offset: 17786}, + pos: position{line: 610, col: 29, offset: 17785}, name: "Scope", }, }, &ruleRefExpr{ - pos: position{line: 611, col: 35, offset: 17792}, + pos: position{line: 610, col: 35, offset: 17791}, name: "__", }, &litMatcher{ - pos: position{line: 611, col: 38, offset: 17795}, + pos: position{line: 610, col: 38, offset: 17794}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &actionExpr{ - pos: position{line: 612, col: 5, offset: 17840}, + pos: position{line: 611, col: 5, offset: 17839}, run: (*parser).callonLateral13, expr: &seqExpr{ - pos: position{line: 612, col: 5, offset: 17840}, - exprs: []interface{}{ + pos: position{line: 611, col: 5, offset: 17839}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 612, col: 5, offset: 17840}, + pos: position{line: 611, col: 5, offset: 17839}, name: "__", }, &litMatcher{ - pos: position{line: 612, col: 8, offset: 17843}, + pos: position{line: 611, col: 8, offset: 17842}, val: "=>", ignoreCase: false, + want: "\"=>\"", }, &ruleRefExpr{ - pos: position{line: 612, col: 13, offset: 17848}, + pos: position{line: 611, col: 13, offset: 17847}, name: "__", }, &litMatcher{ - pos: position{line: 612, col: 16, offset: 17851}, + pos: position{line: 611, col: 16, offset: 17850}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 612, col: 20, offset: 17855}, + pos: position{line: 611, col: 20, offset: 17854}, name: "__", }, &labeledExpr{ - pos: position{line: 612, col: 23, offset: 17858}, + pos: position{line: 611, col: 23, offset: 17857}, label: "seq", expr: &ruleRefExpr{ - pos: position{line: 612, col: 27, offset: 17862}, + pos: position{line: 611, col: 27, offset: 17861}, name: "Seq", }, }, &ruleRefExpr{ - pos: position{line: 612, col: 31, offset: 17866}, + pos: position{line: 611, col: 31, offset: 17865}, name: "__", }, &litMatcher{ - pos: position{line: 612, col: 34, offset: 17869}, + pos: position{line: 611, col: 34, offset: 17868}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -4911,63 +5052,65 @@ var g = &grammar{ }, { name: "Locals", - pos: position{line: 614, col: 1, offset: 17894}, + pos: position{line: 613, col: 1, offset: 17893}, expr: &actionExpr{ - pos: position{line: 615, col: 5, offset: 17905}, + pos: position{line: 614, col: 5, offset: 17904}, run: (*parser).callonLocals1, expr: &seqExpr{ - pos: position{line: 615, col: 5, offset: 17905}, - exprs: []interface{}{ + pos: position{line: 614, col: 5, offset: 17904}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 615, col: 5, offset: 17905}, + pos: position{line: 614, col: 5, offset: 17904}, name: "_", }, &litMatcher{ - pos: position{line: 615, col: 7, offset: 17907}, + pos: position{line: 614, col: 7, offset: 17906}, val: "with", ignoreCase: false, + want: "\"with\"", }, &ruleRefExpr{ - pos: position{line: 615, col: 14, offset: 17914}, + pos: position{line: 614, col: 14, offset: 17913}, name: "_", }, &labeledExpr{ - pos: position{line: 615, col: 16, offset: 17916}, + pos: position{line: 614, col: 16, offset: 17915}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 615, col: 22, offset: 17922}, + pos: position{line: 614, col: 22, offset: 17921}, name: "LocalsAssignment", }, }, &labeledExpr{ - pos: position{line: 615, col: 39, offset: 17939}, + pos: position{line: 614, col: 39, offset: 17938}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 615, col: 44, offset: 17944}, + pos: position{line: 614, col: 44, offset: 17943}, expr: &actionExpr{ - pos: position{line: 615, col: 45, offset: 17945}, + pos: position{line: 614, col: 45, offset: 17944}, run: (*parser).callonLocals10, expr: &seqExpr{ - pos: position{line: 615, col: 45, offset: 17945}, - exprs: []interface{}{ + pos: position{line: 614, col: 45, offset: 17944}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 615, col: 45, offset: 17945}, + pos: position{line: 614, col: 45, offset: 17944}, name: "__", }, &litMatcher{ - pos: position{line: 615, col: 48, offset: 17948}, + pos: position{line: 614, col: 48, offset: 17947}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 615, col: 52, offset: 17952}, + pos: position{line: 614, col: 52, offset: 17951}, name: "__", }, &labeledExpr{ - pos: position{line: 615, col: 55, offset: 17955}, + pos: position{line: 614, col: 55, offset: 17954}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 615, col: 57, offset: 17957}, + pos: position{line: 614, col: 57, offset: 17956}, name: "LocalsAssignment", }, }, @@ -4982,44 +5125,45 @@ var g = &grammar{ }, { name: "LocalsAssignment", - pos: position{line: 619, col: 1, offset: 18078}, + pos: position{line: 618, col: 1, offset: 18077}, expr: &actionExpr{ - pos: position{line: 620, col: 5, offset: 18099}, + pos: position{line: 619, col: 5, offset: 18098}, run: (*parser).callonLocalsAssignment1, expr: &seqExpr{ - pos: position{line: 620, col: 5, offset: 18099}, - exprs: []interface{}{ + pos: position{line: 619, col: 5, offset: 18098}, + exprs: []any{ &labeledExpr{ - pos: position{line: 620, col: 5, offset: 18099}, + pos: position{line: 619, col: 5, offset: 18098}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 620, col: 10, offset: 18104}, + pos: position{line: 619, col: 10, offset: 18103}, name: "IdentifierName", }, }, &labeledExpr{ - pos: position{line: 620, col: 25, offset: 18119}, + pos: position{line: 619, col: 25, offset: 18118}, label: "opt", expr: &zeroOrOneExpr{ - pos: position{line: 620, col: 29, offset: 18123}, + pos: position{line: 619, col: 29, offset: 18122}, expr: &seqExpr{ - pos: position{line: 620, col: 30, offset: 18124}, - exprs: []interface{}{ + pos: position{line: 619, col: 30, offset: 18123}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 620, col: 30, offset: 18124}, + pos: position{line: 619, col: 30, offset: 18123}, name: "__", }, &litMatcher{ - pos: position{line: 620, col: 33, offset: 18127}, + pos: position{line: 619, col: 33, offset: 18126}, val: "=", ignoreCase: false, + want: "\"=\"", }, &ruleRefExpr{ - pos: position{line: 620, col: 37, offset: 18131}, + pos: position{line: 619, col: 37, offset: 18130}, name: "__", }, &ruleRefExpr{ - pos: position{line: 620, col: 40, offset: 18134}, + pos: position{line: 619, col: 40, offset: 18133}, name: "Expr", }, }, @@ -5032,27 +5176,28 @@ var g = &grammar{ }, { name: "YieldOp", - pos: position{line: 628, col: 1, offset: 18355}, + pos: position{line: 627, col: 1, offset: 18354}, expr: &actionExpr{ - pos: position{line: 629, col: 5, offset: 18367}, + pos: position{line: 628, col: 5, offset: 18366}, run: (*parser).callonYieldOp1, expr: &seqExpr{ - pos: position{line: 629, col: 5, offset: 18367}, - exprs: []interface{}{ + pos: position{line: 628, col: 5, offset: 18366}, + exprs: []any{ &litMatcher{ - pos: position{line: 629, col: 5, offset: 18367}, + pos: position{line: 628, col: 5, offset: 18366}, val: "yield", ignoreCase: false, + want: "\"yield\"", }, &ruleRefExpr{ - pos: position{line: 629, col: 13, offset: 18375}, + pos: position{line: 628, col: 13, offset: 18374}, name: "_", }, &labeledExpr{ - pos: position{line: 629, col: 15, offset: 18377}, + pos: position{line: 628, col: 15, offset: 18376}, label: "exprs", expr: &ruleRefExpr{ - pos: position{line: 629, col: 21, offset: 18383}, + pos: position{line: 628, col: 21, offset: 18382}, name: "Exprs", }, }, @@ -5062,30 +5207,30 @@ var g = &grammar{ }, { name: "TypeArg", - pos: position{line: 633, col: 1, offset: 18472}, + pos: position{line: 632, col: 1, offset: 18471}, expr: &actionExpr{ - pos: position{line: 634, col: 5, offset: 18484}, + pos: position{line: 633, col: 5, offset: 18483}, run: (*parser).callonTypeArg1, expr: &seqExpr{ - pos: position{line: 634, col: 5, offset: 18484}, - exprs: []interface{}{ + pos: position{line: 633, col: 5, offset: 18483}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 634, col: 5, offset: 18484}, + pos: position{line: 633, col: 5, offset: 18483}, name: "_", }, &ruleRefExpr{ - pos: position{line: 634, col: 7, offset: 18486}, + pos: position{line: 633, col: 7, offset: 18485}, name: "BY", }, &ruleRefExpr{ - pos: position{line: 634, col: 10, offset: 18489}, + pos: position{line: 633, col: 10, offset: 18488}, name: "_", }, &labeledExpr{ - pos: position{line: 634, col: 12, offset: 18491}, + pos: position{line: 633, col: 12, offset: 18490}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 634, col: 16, offset: 18495}, + pos: position{line: 633, col: 16, offset: 18494}, name: "Type", }, }, @@ -5095,30 +5240,30 @@ var g = &grammar{ }, { name: "AsArg", - pos: position{line: 636, col: 1, offset: 18521}, + pos: position{line: 635, col: 1, offset: 18520}, expr: &actionExpr{ - pos: position{line: 637, col: 5, offset: 18531}, + pos: position{line: 636, col: 5, offset: 18530}, run: (*parser).callonAsArg1, expr: &seqExpr{ - pos: position{line: 637, col: 5, offset: 18531}, - exprs: []interface{}{ + pos: position{line: 636, col: 5, offset: 18530}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 637, col: 5, offset: 18531}, + pos: position{line: 636, col: 5, offset: 18530}, name: "_", }, &ruleRefExpr{ - pos: position{line: 637, col: 7, offset: 18533}, + pos: position{line: 636, col: 7, offset: 18532}, name: "AS", }, &ruleRefExpr{ - pos: position{line: 637, col: 10, offset: 18536}, + pos: position{line: 636, col: 10, offset: 18535}, name: "_", }, &labeledExpr{ - pos: position{line: 637, col: 12, offset: 18538}, + pos: position{line: 636, col: 12, offset: 18537}, label: "lhs", expr: &ruleRefExpr{ - pos: position{line: 637, col: 16, offset: 18542}, + pos: position{line: 636, col: 16, offset: 18541}, name: "Lval", }, }, @@ -5128,58 +5273,59 @@ var g = &grammar{ }, { name: "Lval", - pos: position{line: 641, col: 1, offset: 18593}, + pos: position{line: 640, col: 1, offset: 18592}, expr: &ruleRefExpr{ - pos: position{line: 641, col: 8, offset: 18600}, + pos: position{line: 640, col: 8, offset: 18599}, name: "DerefExpr", }, }, { name: "Lvals", - pos: position{line: 643, col: 1, offset: 18611}, + pos: position{line: 642, col: 1, offset: 18610}, expr: &actionExpr{ - pos: position{line: 644, col: 5, offset: 18621}, + pos: position{line: 643, col: 5, offset: 18620}, run: (*parser).callonLvals1, expr: &seqExpr{ - pos: position{line: 644, col: 5, offset: 18621}, - exprs: []interface{}{ + pos: position{line: 643, col: 5, offset: 18620}, + exprs: []any{ &labeledExpr{ - pos: position{line: 644, col: 5, offset: 18621}, + pos: position{line: 643, col: 5, offset: 18620}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 644, col: 11, offset: 18627}, + pos: position{line: 643, col: 11, offset: 18626}, name: "Lval", }, }, &labeledExpr{ - pos: position{line: 644, col: 16, offset: 18632}, + pos: position{line: 643, col: 16, offset: 18631}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 644, col: 21, offset: 18637}, + pos: position{line: 643, col: 21, offset: 18636}, expr: &actionExpr{ - pos: position{line: 644, col: 22, offset: 18638}, + pos: position{line: 643, col: 22, offset: 18637}, run: (*parser).callonLvals7, expr: &seqExpr{ - pos: position{line: 644, col: 22, offset: 18638}, - exprs: []interface{}{ + pos: position{line: 643, col: 22, offset: 18637}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 644, col: 22, offset: 18638}, + pos: position{line: 643, col: 22, offset: 18637}, name: "__", }, &litMatcher{ - pos: position{line: 644, col: 25, offset: 18641}, + pos: position{line: 643, col: 25, offset: 18640}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 644, col: 29, offset: 18645}, + pos: position{line: 643, col: 29, offset: 18644}, name: "__", }, &labeledExpr{ - pos: position{line: 644, col: 32, offset: 18648}, + pos: position{line: 643, col: 32, offset: 18647}, label: "lval", expr: &ruleRefExpr{ - pos: position{line: 644, col: 37, offset: 18653}, + pos: position{line: 643, col: 37, offset: 18652}, name: "Lval", }, }, @@ -5194,52 +5340,53 @@ var g = &grammar{ }, { name: "FieldExpr", - pos: position{line: 648, col: 1, offset: 18765}, + pos: position{line: 647, col: 1, offset: 18764}, expr: &ruleRefExpr{ - pos: position{line: 648, col: 13, offset: 18777}, + pos: position{line: 647, col: 13, offset: 18776}, name: "Lval", }, }, { name: "FieldExprs", - pos: position{line: 650, col: 1, offset: 18783}, + pos: position{line: 649, col: 1, offset: 18782}, expr: &actionExpr{ - pos: position{line: 651, col: 5, offset: 18798}, + pos: position{line: 650, col: 5, offset: 18797}, run: (*parser).callonFieldExprs1, expr: &seqExpr{ - pos: position{line: 651, col: 5, offset: 18798}, - exprs: []interface{}{ + pos: position{line: 650, col: 5, offset: 18797}, + exprs: []any{ &labeledExpr{ - pos: position{line: 651, col: 5, offset: 18798}, + pos: position{line: 650, col: 5, offset: 18797}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 651, col: 11, offset: 18804}, + pos: position{line: 650, col: 11, offset: 18803}, name: "FieldExpr", }, }, &labeledExpr{ - pos: position{line: 651, col: 21, offset: 18814}, + pos: position{line: 650, col: 21, offset: 18813}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 651, col: 26, offset: 18819}, + pos: position{line: 650, col: 26, offset: 18818}, expr: &seqExpr{ - pos: position{line: 651, col: 27, offset: 18820}, - exprs: []interface{}{ + pos: position{line: 650, col: 27, offset: 18819}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 651, col: 27, offset: 18820}, + pos: position{line: 650, col: 27, offset: 18819}, name: "__", }, &litMatcher{ - pos: position{line: 651, col: 30, offset: 18823}, + pos: position{line: 650, col: 30, offset: 18822}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 651, col: 34, offset: 18827}, + pos: position{line: 650, col: 34, offset: 18826}, name: "__", }, &ruleRefExpr{ - pos: position{line: 651, col: 37, offset: 18830}, + pos: position{line: 650, col: 37, offset: 18829}, name: "FieldExpr", }, }, @@ -5252,50 +5399,51 @@ var g = &grammar{ }, { name: "Assignments", - pos: position{line: 661, col: 1, offset: 19029}, + pos: position{line: 660, col: 1, offset: 19028}, expr: &actionExpr{ - pos: position{line: 662, col: 5, offset: 19045}, + pos: position{line: 661, col: 5, offset: 19044}, run: (*parser).callonAssignments1, expr: &seqExpr{ - pos: position{line: 662, col: 5, offset: 19045}, - exprs: []interface{}{ + pos: position{line: 661, col: 5, offset: 19044}, + exprs: []any{ &labeledExpr{ - pos: position{line: 662, col: 5, offset: 19045}, + pos: position{line: 661, col: 5, offset: 19044}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 662, col: 11, offset: 19051}, + pos: position{line: 661, col: 11, offset: 19050}, name: "Assignment", }, }, &labeledExpr{ - pos: position{line: 662, col: 22, offset: 19062}, + pos: position{line: 661, col: 22, offset: 19061}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 662, col: 27, offset: 19067}, + pos: position{line: 661, col: 27, offset: 19066}, expr: &actionExpr{ - pos: position{line: 662, col: 28, offset: 19068}, + pos: position{line: 661, col: 28, offset: 19067}, run: (*parser).callonAssignments7, expr: &seqExpr{ - pos: position{line: 662, col: 28, offset: 19068}, - exprs: []interface{}{ + pos: position{line: 661, col: 28, offset: 19067}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 662, col: 28, offset: 19068}, + pos: position{line: 661, col: 28, offset: 19067}, name: "__", }, &litMatcher{ - pos: position{line: 662, col: 31, offset: 19071}, + pos: position{line: 661, col: 31, offset: 19070}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 662, col: 35, offset: 19075}, + pos: position{line: 661, col: 35, offset: 19074}, name: "__", }, &labeledExpr{ - pos: position{line: 662, col: 38, offset: 19078}, + pos: position{line: 661, col: 38, offset: 19077}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 662, col: 40, offset: 19080}, + pos: position{line: 661, col: 40, offset: 19079}, name: "Assignment", }, }, @@ -5310,39 +5458,40 @@ var g = &grammar{ }, { name: "Assignment", - pos: position{line: 666, col: 1, offset: 19191}, + pos: position{line: 665, col: 1, offset: 19190}, expr: &actionExpr{ - pos: position{line: 667, col: 5, offset: 19206}, + pos: position{line: 666, col: 5, offset: 19205}, run: (*parser).callonAssignment1, expr: &seqExpr{ - pos: position{line: 667, col: 5, offset: 19206}, - exprs: []interface{}{ + pos: position{line: 666, col: 5, offset: 19205}, + exprs: []any{ &labeledExpr{ - pos: position{line: 667, col: 5, offset: 19206}, + pos: position{line: 666, col: 5, offset: 19205}, label: "lhs", expr: &ruleRefExpr{ - pos: position{line: 667, col: 9, offset: 19210}, + pos: position{line: 666, col: 9, offset: 19209}, name: "Lval", }, }, &ruleRefExpr{ - pos: position{line: 667, col: 14, offset: 19215}, + pos: position{line: 666, col: 14, offset: 19214}, name: "__", }, &litMatcher{ - pos: position{line: 667, col: 17, offset: 19218}, + pos: position{line: 666, col: 17, offset: 19217}, val: ":=", ignoreCase: false, + want: "\":=\"", }, &ruleRefExpr{ - pos: position{line: 667, col: 22, offset: 19223}, + pos: position{line: 666, col: 22, offset: 19222}, name: "__", }, &labeledExpr{ - pos: position{line: 667, col: 25, offset: 19226}, + pos: position{line: 666, col: 25, offset: 19225}, label: "rhs", expr: &ruleRefExpr{ - pos: position{line: 667, col: 29, offset: 19230}, + pos: position{line: 666, col: 29, offset: 19229}, name: "Expr", }, }, @@ -5352,69 +5501,71 @@ var g = &grammar{ }, { name: "Expr", - pos: position{line: 669, col: 1, offset: 19321}, + pos: position{line: 668, col: 1, offset: 19320}, expr: &ruleRefExpr{ - pos: position{line: 669, col: 8, offset: 19328}, + pos: position{line: 668, col: 8, offset: 19327}, name: "ConditionalExpr", }, }, { name: "ConditionalExpr", - pos: position{line: 671, col: 1, offset: 19345}, + pos: position{line: 670, col: 1, offset: 19344}, expr: &actionExpr{ - pos: position{line: 672, col: 5, offset: 19365}, + pos: position{line: 671, col: 5, offset: 19364}, run: (*parser).callonConditionalExpr1, expr: &seqExpr{ - pos: position{line: 672, col: 5, offset: 19365}, - exprs: []interface{}{ + pos: position{line: 671, col: 5, offset: 19364}, + exprs: []any{ &labeledExpr{ - pos: position{line: 672, col: 5, offset: 19365}, + pos: position{line: 671, col: 5, offset: 19364}, label: "cond", expr: &ruleRefExpr{ - pos: position{line: 672, col: 10, offset: 19370}, + pos: position{line: 671, col: 10, offset: 19369}, name: "LogicalOrExpr", }, }, &labeledExpr{ - pos: position{line: 672, col: 24, offset: 19384}, + pos: position{line: 671, col: 24, offset: 19383}, label: "opt", expr: &zeroOrOneExpr{ - pos: position{line: 672, col: 28, offset: 19388}, + pos: position{line: 671, col: 28, offset: 19387}, expr: &seqExpr{ - pos: position{line: 672, col: 29, offset: 19389}, - exprs: []interface{}{ + pos: position{line: 671, col: 29, offset: 19388}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 672, col: 29, offset: 19389}, + pos: position{line: 671, col: 29, offset: 19388}, name: "__", }, &litMatcher{ - pos: position{line: 672, col: 32, offset: 19392}, + pos: position{line: 671, col: 32, offset: 19391}, val: "?", ignoreCase: false, + want: "\"?\"", }, &ruleRefExpr{ - pos: position{line: 672, col: 36, offset: 19396}, + pos: position{line: 671, col: 36, offset: 19395}, name: "__", }, &ruleRefExpr{ - pos: position{line: 672, col: 39, offset: 19399}, + pos: position{line: 671, col: 39, offset: 19398}, name: "Expr", }, &ruleRefExpr{ - pos: position{line: 672, col: 44, offset: 19404}, + pos: position{line: 671, col: 44, offset: 19403}, name: "__", }, &litMatcher{ - pos: position{line: 672, col: 47, offset: 19407}, + pos: position{line: 671, col: 47, offset: 19406}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 672, col: 51, offset: 19411}, + pos: position{line: 671, col: 51, offset: 19410}, name: "__", }, &ruleRefExpr{ - pos: position{line: 672, col: 54, offset: 19414}, + pos: position{line: 671, col: 54, offset: 19413}, name: "Expr", }, }, @@ -5427,53 +5578,53 @@ var g = &grammar{ }, { name: "LogicalOrExpr", - pos: position{line: 681, col: 1, offset: 19675}, + pos: position{line: 680, col: 1, offset: 19674}, expr: &actionExpr{ - pos: position{line: 682, col: 5, offset: 19693}, + pos: position{line: 681, col: 5, offset: 19692}, run: (*parser).callonLogicalOrExpr1, expr: &seqExpr{ - pos: position{line: 682, col: 5, offset: 19693}, - exprs: []interface{}{ + pos: position{line: 681, col: 5, offset: 19692}, + exprs: []any{ &labeledExpr{ - pos: position{line: 682, col: 5, offset: 19693}, + pos: position{line: 681, col: 5, offset: 19692}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 682, col: 11, offset: 19699}, + pos: position{line: 681, col: 11, offset: 19698}, name: "LogicalAndExpr", }, }, &labeledExpr{ - pos: position{line: 683, col: 5, offset: 19718}, + pos: position{line: 682, col: 5, offset: 19717}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 683, col: 10, offset: 19723}, + pos: position{line: 682, col: 10, offset: 19722}, expr: &actionExpr{ - pos: position{line: 683, col: 11, offset: 19724}, + pos: position{line: 682, col: 11, offset: 19723}, run: (*parser).callonLogicalOrExpr7, expr: &seqExpr{ - pos: position{line: 683, col: 11, offset: 19724}, - exprs: []interface{}{ + pos: position{line: 682, col: 11, offset: 19723}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 683, col: 11, offset: 19724}, + pos: position{line: 682, col: 11, offset: 19723}, name: "__", }, &labeledExpr{ - pos: position{line: 683, col: 14, offset: 19727}, + pos: position{line: 682, col: 14, offset: 19726}, label: "op", expr: &ruleRefExpr{ - pos: position{line: 683, col: 17, offset: 19730}, + pos: position{line: 682, col: 17, offset: 19729}, name: "OrToken", }, }, &ruleRefExpr{ - pos: position{line: 683, col: 25, offset: 19738}, + pos: position{line: 682, col: 25, offset: 19737}, name: "__", }, &labeledExpr{ - pos: position{line: 683, col: 28, offset: 19741}, + pos: position{line: 682, col: 28, offset: 19740}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 683, col: 33, offset: 19746}, + pos: position{line: 682, col: 33, offset: 19745}, name: "LogicalAndExpr", }, }, @@ -5488,53 +5639,53 @@ var g = &grammar{ }, { name: "LogicalAndExpr", - pos: position{line: 687, col: 1, offset: 19865}, + pos: position{line: 686, col: 1, offset: 19864}, expr: &actionExpr{ - pos: position{line: 688, col: 5, offset: 19884}, + pos: position{line: 687, col: 5, offset: 19883}, run: (*parser).callonLogicalAndExpr1, expr: &seqExpr{ - pos: position{line: 688, col: 5, offset: 19884}, - exprs: []interface{}{ + pos: position{line: 687, col: 5, offset: 19883}, + exprs: []any{ &labeledExpr{ - pos: position{line: 688, col: 5, offset: 19884}, + pos: position{line: 687, col: 5, offset: 19883}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 688, col: 11, offset: 19890}, + pos: position{line: 687, col: 11, offset: 19889}, name: "ComparisonExpr", }, }, &labeledExpr{ - pos: position{line: 689, col: 5, offset: 19909}, + pos: position{line: 688, col: 5, offset: 19908}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 689, col: 10, offset: 19914}, + pos: position{line: 688, col: 10, offset: 19913}, expr: &actionExpr{ - pos: position{line: 689, col: 11, offset: 19915}, + pos: position{line: 688, col: 11, offset: 19914}, run: (*parser).callonLogicalAndExpr7, expr: &seqExpr{ - pos: position{line: 689, col: 11, offset: 19915}, - exprs: []interface{}{ + pos: position{line: 688, col: 11, offset: 19914}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 689, col: 11, offset: 19915}, + pos: position{line: 688, col: 11, offset: 19914}, name: "__", }, &labeledExpr{ - pos: position{line: 689, col: 14, offset: 19918}, + pos: position{line: 688, col: 14, offset: 19917}, label: "op", expr: &ruleRefExpr{ - pos: position{line: 689, col: 17, offset: 19921}, + pos: position{line: 688, col: 17, offset: 19920}, name: "AndToken", }, }, &ruleRefExpr{ - pos: position{line: 689, col: 26, offset: 19930}, + pos: position{line: 688, col: 26, offset: 19929}, name: "__", }, &labeledExpr{ - pos: position{line: 689, col: 29, offset: 19933}, + pos: position{line: 688, col: 29, offset: 19932}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 689, col: 34, offset: 19938}, + pos: position{line: 688, col: 34, offset: 19937}, name: "ComparisonExpr", }, }, @@ -5549,72 +5700,73 @@ var g = &grammar{ }, { name: "ComparisonExpr", - pos: position{line: 693, col: 1, offset: 20057}, + pos: position{line: 692, col: 1, offset: 20056}, expr: &actionExpr{ - pos: position{line: 694, col: 5, offset: 20076}, + pos: position{line: 693, col: 5, offset: 20075}, run: (*parser).callonComparisonExpr1, expr: &seqExpr{ - pos: position{line: 694, col: 5, offset: 20076}, - exprs: []interface{}{ + pos: position{line: 693, col: 5, offset: 20075}, + exprs: []any{ &labeledExpr{ - pos: position{line: 694, col: 5, offset: 20076}, + pos: position{line: 693, col: 5, offset: 20075}, label: "lhs", expr: &ruleRefExpr{ - pos: position{line: 694, col: 9, offset: 20080}, + pos: position{line: 693, col: 9, offset: 20079}, name: "AdditiveExpr", }, }, &labeledExpr{ - pos: position{line: 694, col: 22, offset: 20093}, + pos: position{line: 693, col: 22, offset: 20092}, label: "opAndRHS", expr: &zeroOrOneExpr{ - pos: position{line: 694, col: 31, offset: 20102}, + pos: position{line: 693, col: 31, offset: 20101}, expr: &choiceExpr{ - pos: position{line: 694, col: 32, offset: 20103}, - alternatives: []interface{}{ + pos: position{line: 693, col: 32, offset: 20102}, + alternatives: []any{ &seqExpr{ - pos: position{line: 694, col: 32, offset: 20103}, - exprs: []interface{}{ + pos: position{line: 693, col: 32, offset: 20102}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 694, col: 32, offset: 20103}, + pos: position{line: 693, col: 32, offset: 20102}, name: "__", }, &ruleRefExpr{ - pos: position{line: 694, col: 35, offset: 20106}, + pos: position{line: 693, col: 35, offset: 20105}, name: "Comparator", }, &ruleRefExpr{ - pos: position{line: 694, col: 46, offset: 20117}, + pos: position{line: 693, col: 46, offset: 20116}, name: "__", }, &ruleRefExpr{ - pos: position{line: 694, col: 49, offset: 20120}, + pos: position{line: 693, col: 49, offset: 20119}, name: "AdditiveExpr", }, }, }, &seqExpr{ - pos: position{line: 694, col: 64, offset: 20135}, - exprs: []interface{}{ + pos: position{line: 693, col: 64, offset: 20134}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 694, col: 64, offset: 20135}, + pos: position{line: 693, col: 64, offset: 20134}, name: "__", }, &actionExpr{ - pos: position{line: 694, col: 68, offset: 20139}, + pos: position{line: 693, col: 68, offset: 20138}, run: (*parser).callonComparisonExpr15, expr: &litMatcher{ - pos: position{line: 694, col: 68, offset: 20139}, + pos: position{line: 693, col: 68, offset: 20138}, val: "~", ignoreCase: false, + want: "\"~\"", }, }, &ruleRefExpr{ - pos: position{line: 694, col: 104, offset: 20175}, + pos: position{line: 693, col: 104, offset: 20174}, name: "__", }, &ruleRefExpr{ - pos: position{line: 694, col: 107, offset: 20178}, + pos: position{line: 693, col: 107, offset: 20177}, name: "Regexp", }, }, @@ -5629,53 +5781,53 @@ var g = &grammar{ }, { name: "AdditiveExpr", - pos: position{line: 703, col: 1, offset: 20439}, + pos: position{line: 702, col: 1, offset: 20438}, expr: &actionExpr{ - pos: position{line: 704, col: 5, offset: 20456}, + pos: position{line: 703, col: 5, offset: 20455}, run: (*parser).callonAdditiveExpr1, expr: &seqExpr{ - pos: position{line: 704, col: 5, offset: 20456}, - exprs: []interface{}{ + pos: position{line: 703, col: 5, offset: 20455}, + exprs: []any{ &labeledExpr{ - pos: position{line: 704, col: 5, offset: 20456}, + pos: position{line: 703, col: 5, offset: 20455}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 704, col: 11, offset: 20462}, + pos: position{line: 703, col: 11, offset: 20461}, name: "MultiplicativeExpr", }, }, &labeledExpr{ - pos: position{line: 705, col: 5, offset: 20485}, + pos: position{line: 704, col: 5, offset: 20484}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 705, col: 10, offset: 20490}, + pos: position{line: 704, col: 10, offset: 20489}, expr: &actionExpr{ - pos: position{line: 705, col: 11, offset: 20491}, + pos: position{line: 704, col: 11, offset: 20490}, run: (*parser).callonAdditiveExpr7, expr: &seqExpr{ - pos: position{line: 705, col: 11, offset: 20491}, - exprs: []interface{}{ + pos: position{line: 704, col: 11, offset: 20490}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 705, col: 11, offset: 20491}, + pos: position{line: 704, col: 11, offset: 20490}, name: "__", }, &labeledExpr{ - pos: position{line: 705, col: 14, offset: 20494}, + pos: position{line: 704, col: 14, offset: 20493}, label: "op", expr: &ruleRefExpr{ - pos: position{line: 705, col: 17, offset: 20497}, + pos: position{line: 704, col: 17, offset: 20496}, name: "AdditiveOperator", }, }, &ruleRefExpr{ - pos: position{line: 705, col: 34, offset: 20514}, + pos: position{line: 704, col: 34, offset: 20513}, name: "__", }, &labeledExpr{ - pos: position{line: 705, col: 37, offset: 20517}, + pos: position{line: 704, col: 37, offset: 20516}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 705, col: 42, offset: 20522}, + pos: position{line: 704, col: 42, offset: 20521}, name: "MultiplicativeExpr", }, }, @@ -5690,22 +5842,24 @@ var g = &grammar{ }, { name: "AdditiveOperator", - pos: position{line: 709, col: 1, offset: 20645}, + pos: position{line: 708, col: 1, offset: 20644}, expr: &actionExpr{ - pos: position{line: 709, col: 20, offset: 20664}, + pos: position{line: 708, col: 20, offset: 20663}, run: (*parser).callonAdditiveOperator1, expr: &choiceExpr{ - pos: position{line: 709, col: 21, offset: 20665}, - alternatives: []interface{}{ + pos: position{line: 708, col: 21, offset: 20664}, + alternatives: []any{ &litMatcher{ - pos: position{line: 709, col: 21, offset: 20665}, + pos: position{line: 708, col: 21, offset: 20664}, val: "+", ignoreCase: false, + want: "\"+\"", }, &litMatcher{ - pos: position{line: 709, col: 27, offset: 20671}, + pos: position{line: 708, col: 27, offset: 20670}, val: "-", ignoreCase: false, + want: "\"-\"", }, }, }, @@ -5713,53 +5867,53 @@ var g = &grammar{ }, { name: "MultiplicativeExpr", - pos: position{line: 711, col: 1, offset: 20708}, + pos: position{line: 710, col: 1, offset: 20707}, expr: &actionExpr{ - pos: position{line: 712, col: 5, offset: 20731}, + pos: position{line: 711, col: 5, offset: 20730}, run: (*parser).callonMultiplicativeExpr1, expr: &seqExpr{ - pos: position{line: 712, col: 5, offset: 20731}, - exprs: []interface{}{ + pos: position{line: 711, col: 5, offset: 20730}, + exprs: []any{ &labeledExpr{ - pos: position{line: 712, col: 5, offset: 20731}, + pos: position{line: 711, col: 5, offset: 20730}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 712, col: 11, offset: 20737}, + pos: position{line: 711, col: 11, offset: 20736}, name: "NotExpr", }, }, &labeledExpr{ - pos: position{line: 713, col: 5, offset: 20749}, + pos: position{line: 712, col: 5, offset: 20748}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 713, col: 10, offset: 20754}, + pos: position{line: 712, col: 10, offset: 20753}, expr: &actionExpr{ - pos: position{line: 713, col: 11, offset: 20755}, + pos: position{line: 712, col: 11, offset: 20754}, run: (*parser).callonMultiplicativeExpr7, expr: &seqExpr{ - pos: position{line: 713, col: 11, offset: 20755}, - exprs: []interface{}{ + pos: position{line: 712, col: 11, offset: 20754}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 713, col: 11, offset: 20755}, + pos: position{line: 712, col: 11, offset: 20754}, name: "__", }, &labeledExpr{ - pos: position{line: 713, col: 14, offset: 20758}, + pos: position{line: 712, col: 14, offset: 20757}, label: "op", expr: &ruleRefExpr{ - pos: position{line: 713, col: 17, offset: 20761}, + pos: position{line: 712, col: 17, offset: 20760}, name: "MultiplicativeOperator", }, }, &ruleRefExpr{ - pos: position{line: 713, col: 40, offset: 20784}, + pos: position{line: 712, col: 40, offset: 20783}, name: "__", }, &labeledExpr{ - pos: position{line: 713, col: 43, offset: 20787}, + pos: position{line: 712, col: 43, offset: 20786}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 713, col: 48, offset: 20792}, + pos: position{line: 712, col: 48, offset: 20791}, name: "NotExpr", }, }, @@ -5774,27 +5928,30 @@ var g = &grammar{ }, { name: "MultiplicativeOperator", - pos: position{line: 717, col: 1, offset: 20904}, + pos: position{line: 716, col: 1, offset: 20903}, expr: &actionExpr{ - pos: position{line: 717, col: 26, offset: 20929}, + pos: position{line: 716, col: 26, offset: 20928}, run: (*parser).callonMultiplicativeOperator1, expr: &choiceExpr{ - pos: position{line: 717, col: 27, offset: 20930}, - alternatives: []interface{}{ + pos: position{line: 716, col: 27, offset: 20929}, + alternatives: []any{ &litMatcher{ - pos: position{line: 717, col: 27, offset: 20930}, + pos: position{line: 716, col: 27, offset: 20929}, val: "*", ignoreCase: false, + want: "\"*\"", }, &litMatcher{ - pos: position{line: 717, col: 33, offset: 20936}, + pos: position{line: 716, col: 33, offset: 20935}, val: "/", ignoreCase: false, + want: "\"/\"", }, &litMatcher{ - pos: position{line: 717, col: 39, offset: 20942}, + pos: position{line: 716, col: 39, offset: 20941}, val: "%", ignoreCase: false, + want: "\"%\"", }, }, }, @@ -5802,42 +5959,43 @@ var g = &grammar{ }, { name: "NotExpr", - pos: position{line: 719, col: 1, offset: 20979}, + pos: position{line: 718, col: 1, offset: 20978}, expr: &choiceExpr{ - pos: position{line: 720, col: 5, offset: 20991}, - alternatives: []interface{}{ + pos: position{line: 719, col: 5, offset: 20990}, + alternatives: []any{ &actionExpr{ - pos: position{line: 720, col: 5, offset: 20991}, + pos: position{line: 719, col: 5, offset: 20990}, run: (*parser).callonNotExpr2, expr: &seqExpr{ - pos: position{line: 720, col: 5, offset: 20991}, - exprs: []interface{}{ + pos: position{line: 719, col: 5, offset: 20990}, + exprs: []any{ &choiceExpr{ - pos: position{line: 720, col: 6, offset: 20992}, - alternatives: []interface{}{ + pos: position{line: 719, col: 6, offset: 20991}, + alternatives: []any{ &seqExpr{ - pos: position{line: 720, col: 6, offset: 20992}, - exprs: []interface{}{ + pos: position{line: 719, col: 6, offset: 20991}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 720, col: 6, offset: 20992}, + pos: position{line: 719, col: 6, offset: 20991}, name: "NotToken", }, &ruleRefExpr{ - pos: position{line: 720, col: 15, offset: 21001}, + pos: position{line: 719, col: 15, offset: 21000}, name: "_", }, }, }, &seqExpr{ - pos: position{line: 720, col: 19, offset: 21005}, - exprs: []interface{}{ + pos: position{line: 719, col: 19, offset: 21004}, + exprs: []any{ &litMatcher{ - pos: position{line: 720, col: 19, offset: 21005}, + pos: position{line: 719, col: 19, offset: 21004}, val: "!", ignoreCase: false, + want: "\"!\"", }, &ruleRefExpr{ - pos: position{line: 720, col: 23, offset: 21009}, + pos: position{line: 719, col: 23, offset: 21008}, name: "__", }, }, @@ -5845,10 +6003,10 @@ var g = &grammar{ }, }, &labeledExpr{ - pos: position{line: 720, col: 27, offset: 21013}, + pos: position{line: 719, col: 27, offset: 21012}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 720, col: 29, offset: 21015}, + pos: position{line: 719, col: 29, offset: 21014}, name: "NotExpr", }, }, @@ -5856,7 +6014,7 @@ var g = &grammar{ }, }, &ruleRefExpr{ - pos: position{line: 723, col: 5, offset: 21124}, + pos: position{line: 722, col: 5, offset: 21123}, name: "NegationExpr", }, }, @@ -5864,37 +6022,38 @@ var g = &grammar{ }, { name: "NegationExpr", - pos: position{line: 725, col: 1, offset: 21138}, + pos: position{line: 724, col: 1, offset: 21137}, expr: &choiceExpr{ - pos: position{line: 726, col: 5, offset: 21155}, - alternatives: []interface{}{ + pos: position{line: 725, col: 5, offset: 21154}, + alternatives: []any{ &actionExpr{ - pos: position{line: 726, col: 5, offset: 21155}, + pos: position{line: 725, col: 5, offset: 21154}, run: (*parser).callonNegationExpr2, expr: &seqExpr{ - pos: position{line: 726, col: 5, offset: 21155}, - exprs: []interface{}{ + pos: position{line: 725, col: 5, offset: 21154}, + exprs: []any{ ¬Expr{ - pos: position{line: 726, col: 5, offset: 21155}, + pos: position{line: 725, col: 5, offset: 21154}, expr: &ruleRefExpr{ - pos: position{line: 726, col: 6, offset: 21156}, + pos: position{line: 725, col: 6, offset: 21155}, name: "Literal", }, }, &litMatcher{ - pos: position{line: 726, col: 14, offset: 21164}, + pos: position{line: 725, col: 14, offset: 21163}, val: "-", ignoreCase: false, + want: "\"-\"", }, &ruleRefExpr{ - pos: position{line: 726, col: 18, offset: 21168}, + pos: position{line: 725, col: 18, offset: 21167}, name: "__", }, &labeledExpr{ - pos: position{line: 726, col: 21, offset: 21171}, + pos: position{line: 725, col: 21, offset: 21170}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 726, col: 23, offset: 21173}, + pos: position{line: 725, col: 23, offset: 21172}, name: "FuncExpr", }, }, @@ -5902,7 +6061,7 @@ var g = &grammar{ }, }, &ruleRefExpr{ - pos: position{line: 729, col: 5, offset: 21283}, + pos: position{line: 728, col: 5, offset: 21282}, name: "FuncExpr", }, }, @@ -5910,31 +6069,31 @@ var g = &grammar{ }, { name: "FuncExpr", - pos: position{line: 731, col: 1, offset: 21293}, + pos: position{line: 730, col: 1, offset: 21292}, expr: &choiceExpr{ - pos: position{line: 732, col: 5, offset: 21306}, - alternatives: []interface{}{ + pos: position{line: 731, col: 5, offset: 21305}, + alternatives: []any{ &actionExpr{ - pos: position{line: 732, col: 5, offset: 21306}, + pos: position{line: 731, col: 5, offset: 21305}, run: (*parser).callonFuncExpr2, expr: &seqExpr{ - pos: position{line: 732, col: 5, offset: 21306}, - exprs: []interface{}{ + pos: position{line: 731, col: 5, offset: 21305}, + exprs: []any{ &labeledExpr{ - pos: position{line: 732, col: 5, offset: 21306}, + pos: position{line: 731, col: 5, offset: 21305}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 732, col: 11, offset: 21312}, + pos: position{line: 731, col: 11, offset: 21311}, name: "Cast", }, }, &labeledExpr{ - pos: position{line: 732, col: 16, offset: 21317}, + pos: position{line: 731, col: 16, offset: 21316}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 732, col: 21, offset: 21322}, + pos: position{line: 731, col: 21, offset: 21321}, expr: &ruleRefExpr{ - pos: position{line: 732, col: 22, offset: 21323}, + pos: position{line: 731, col: 22, offset: 21322}, name: "Deref", }, }, @@ -5943,26 +6102,26 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 735, col: 5, offset: 21394}, + pos: position{line: 734, col: 5, offset: 21393}, run: (*parser).callonFuncExpr9, expr: &seqExpr{ - pos: position{line: 735, col: 5, offset: 21394}, - exprs: []interface{}{ + pos: position{line: 734, col: 5, offset: 21393}, + exprs: []any{ &labeledExpr{ - pos: position{line: 735, col: 5, offset: 21394}, + pos: position{line: 734, col: 5, offset: 21393}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 735, col: 11, offset: 21400}, + pos: position{line: 734, col: 11, offset: 21399}, name: "Function", }, }, &labeledExpr{ - pos: position{line: 735, col: 20, offset: 21409}, + pos: position{line: 734, col: 20, offset: 21408}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 735, col: 25, offset: 21414}, + pos: position{line: 734, col: 25, offset: 21413}, expr: &ruleRefExpr{ - pos: position{line: 735, col: 26, offset: 21415}, + pos: position{line: 734, col: 26, offset: 21414}, name: "Deref", }, }, @@ -5971,7 +6130,7 @@ var g = &grammar{ }, }, &ruleRefExpr{ - pos: position{line: 738, col: 5, offset: 21486}, + pos: position{line: 737, col: 5, offset: 21485}, name: "DerefExpr", }, }, @@ -5979,100 +6138,105 @@ var g = &grammar{ }, { name: "FuncGuard", - pos: position{line: 740, col: 1, offset: 21497}, + pos: position{line: 739, col: 1, offset: 21496}, expr: &seqExpr{ - pos: position{line: 740, col: 13, offset: 21509}, - exprs: []interface{}{ + pos: position{line: 739, col: 13, offset: 21508}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 740, col: 13, offset: 21509}, + pos: position{line: 739, col: 13, offset: 21508}, name: "NotFuncs", }, &ruleRefExpr{ - pos: position{line: 740, col: 22, offset: 21518}, + pos: position{line: 739, col: 22, offset: 21517}, name: "__", }, &litMatcher{ - pos: position{line: 740, col: 25, offset: 21521}, + pos: position{line: 739, col: 25, offset: 21520}, val: "(", ignoreCase: false, + want: "\"(\"", }, }, }, }, { name: "NotFuncs", - pos: position{line: 742, col: 1, offset: 21526}, + pos: position{line: 741, col: 1, offset: 21525}, expr: &choiceExpr{ - pos: position{line: 743, col: 5, offset: 21539}, - alternatives: []interface{}{ + pos: position{line: 742, col: 5, offset: 21538}, + alternatives: []any{ &litMatcher{ - pos: position{line: 743, col: 5, offset: 21539}, + pos: position{line: 742, col: 5, offset: 21538}, val: "not", ignoreCase: false, + want: "\"not\"", }, &litMatcher{ - pos: position{line: 744, col: 5, offset: 21549}, + pos: position{line: 743, col: 5, offset: 21548}, val: "select", ignoreCase: false, + want: "\"select\"", }, }, }, }, { name: "Cast", - pos: position{line: 746, col: 1, offset: 21559}, + pos: position{line: 745, col: 1, offset: 21558}, expr: &actionExpr{ - pos: position{line: 747, col: 5, offset: 21568}, + pos: position{line: 746, col: 5, offset: 21567}, run: (*parser).callonCast1, expr: &seqExpr{ - pos: position{line: 747, col: 5, offset: 21568}, - exprs: []interface{}{ + pos: position{line: 746, col: 5, offset: 21567}, + exprs: []any{ &labeledExpr{ - pos: position{line: 747, col: 5, offset: 21568}, + pos: position{line: 746, col: 5, offset: 21567}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 747, col: 9, offset: 21572}, + pos: position{line: 746, col: 9, offset: 21571}, name: "TypeLiteral", }, }, &ruleRefExpr{ - pos: position{line: 747, col: 21, offset: 21584}, + pos: position{line: 746, col: 21, offset: 21583}, name: "__", }, &litMatcher{ - pos: position{line: 747, col: 24, offset: 21587}, + pos: position{line: 746, col: 24, offset: 21586}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 747, col: 28, offset: 21591}, + pos: position{line: 746, col: 28, offset: 21590}, name: "__", }, &labeledExpr{ - pos: position{line: 747, col: 31, offset: 21594}, + pos: position{line: 746, col: 31, offset: 21593}, label: "expr", expr: &choiceExpr{ - pos: position{line: 747, col: 37, offset: 21600}, - alternatives: []interface{}{ + pos: position{line: 746, col: 37, offset: 21599}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 747, col: 37, offset: 21600}, + pos: position{line: 746, col: 37, offset: 21599}, name: "OverExpr", }, &ruleRefExpr{ - pos: position{line: 747, col: 48, offset: 21611}, + pos: position{line: 746, col: 48, offset: 21610}, name: "Expr", }, }, }, }, &ruleRefExpr{ - pos: position{line: 747, col: 54, offset: 21617}, + pos: position{line: 746, col: 54, offset: 21616}, name: "__", }, &litMatcher{ - pos: position{line: 747, col: 57, offset: 21620}, + pos: position{line: 746, col: 57, offset: 21619}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -6080,83 +6244,87 @@ var g = &grammar{ }, { name: "Function", - pos: position{line: 751, col: 1, offset: 21717}, + pos: position{line: 750, col: 1, offset: 21716}, expr: &choiceExpr{ - pos: position{line: 752, col: 5, offset: 21730}, - alternatives: []interface{}{ + pos: position{line: 751, col: 5, offset: 21729}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 752, col: 5, offset: 21730}, + pos: position{line: 751, col: 5, offset: 21729}, name: "Grep", }, &actionExpr{ - pos: position{line: 754, col: 5, offset: 21817}, + pos: position{line: 753, col: 5, offset: 21816}, run: (*parser).callonFunction3, expr: &seqExpr{ - pos: position{line: 754, col: 5, offset: 21817}, - exprs: []interface{}{ + pos: position{line: 753, col: 5, offset: 21816}, + exprs: []any{ &litMatcher{ - pos: position{line: 754, col: 5, offset: 21817}, + pos: position{line: 753, col: 5, offset: 21816}, val: "regexp", ignoreCase: false, + want: "\"regexp\"", }, &ruleRefExpr{ - pos: position{line: 754, col: 14, offset: 21826}, + pos: position{line: 753, col: 14, offset: 21825}, name: "__", }, &litMatcher{ - pos: position{line: 754, col: 17, offset: 21829}, + pos: position{line: 753, col: 17, offset: 21828}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 754, col: 21, offset: 21833}, + pos: position{line: 753, col: 21, offset: 21832}, name: "__", }, &labeledExpr{ - pos: position{line: 754, col: 24, offset: 21836}, + pos: position{line: 753, col: 24, offset: 21835}, label: "arg0Text", expr: &ruleRefExpr{ - pos: position{line: 754, col: 33, offset: 21845}, + pos: position{line: 753, col: 33, offset: 21844}, name: "RegexpPattern", }, }, &ruleRefExpr{ - pos: position{line: 754, col: 47, offset: 21859}, + pos: position{line: 753, col: 47, offset: 21858}, name: "__", }, &litMatcher{ - pos: position{line: 754, col: 50, offset: 21862}, + pos: position{line: 753, col: 50, offset: 21861}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 754, col: 54, offset: 21866}, + pos: position{line: 753, col: 54, offset: 21865}, name: "__", }, &labeledExpr{ - pos: position{line: 754, col: 57, offset: 21869}, + pos: position{line: 753, col: 57, offset: 21868}, label: "arg1", expr: &ruleRefExpr{ - pos: position{line: 754, col: 62, offset: 21874}, + pos: position{line: 753, col: 62, offset: 21873}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 754, col: 67, offset: 21879}, + pos: position{line: 753, col: 67, offset: 21878}, name: "__", }, &litMatcher{ - pos: position{line: 754, col: 70, offset: 21882}, + pos: position{line: 753, col: 70, offset: 21881}, val: ")", ignoreCase: false, + want: "\")\"", }, &labeledExpr{ - pos: position{line: 754, col: 74, offset: 21886}, + pos: position{line: 753, col: 74, offset: 21885}, label: "where", expr: &zeroOrOneExpr{ - pos: position{line: 754, col: 80, offset: 21892}, + pos: position{line: 753, col: 80, offset: 21891}, expr: &ruleRefExpr{ - pos: position{line: 754, col: 80, offset: 21892}, + pos: position{line: 753, col: 80, offset: 21891}, name: "WhereClause", }, }, @@ -6165,95 +6333,100 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 758, col: 5, offset: 22140}, + pos: position{line: 757, col: 5, offset: 22139}, run: (*parser).callonFunction21, expr: &seqExpr{ - pos: position{line: 758, col: 5, offset: 22140}, - exprs: []interface{}{ + pos: position{line: 757, col: 5, offset: 22139}, + exprs: []any{ &litMatcher{ - pos: position{line: 758, col: 5, offset: 22140}, + pos: position{line: 757, col: 5, offset: 22139}, val: "regexp_replace", ignoreCase: false, + want: "\"regexp_replace\"", }, &ruleRefExpr{ - pos: position{line: 758, col: 22, offset: 22157}, + pos: position{line: 757, col: 22, offset: 22156}, name: "__", }, &litMatcher{ - pos: position{line: 758, col: 25, offset: 22160}, + pos: position{line: 757, col: 25, offset: 22159}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 758, col: 29, offset: 22164}, + pos: position{line: 757, col: 29, offset: 22163}, name: "__", }, &labeledExpr{ - pos: position{line: 758, col: 32, offset: 22167}, + pos: position{line: 757, col: 32, offset: 22166}, label: "arg0", expr: &ruleRefExpr{ - pos: position{line: 758, col: 37, offset: 22172}, + pos: position{line: 757, col: 37, offset: 22171}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 758, col: 42, offset: 22177}, + pos: position{line: 757, col: 42, offset: 22176}, name: "__", }, &litMatcher{ - pos: position{line: 758, col: 45, offset: 22180}, + pos: position{line: 757, col: 45, offset: 22179}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 758, col: 49, offset: 22184}, + pos: position{line: 757, col: 49, offset: 22183}, name: "__", }, &labeledExpr{ - pos: position{line: 758, col: 52, offset: 22187}, + pos: position{line: 757, col: 52, offset: 22186}, label: "arg1Text", expr: &ruleRefExpr{ - pos: position{line: 758, col: 61, offset: 22196}, + pos: position{line: 757, col: 61, offset: 22195}, name: "RegexpPattern", }, }, &ruleRefExpr{ - pos: position{line: 758, col: 75, offset: 22210}, + pos: position{line: 757, col: 75, offset: 22209}, name: "__", }, &litMatcher{ - pos: position{line: 758, col: 78, offset: 22213}, + pos: position{line: 757, col: 78, offset: 22212}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 758, col: 82, offset: 22217}, + pos: position{line: 757, col: 82, offset: 22216}, name: "__", }, &labeledExpr{ - pos: position{line: 758, col: 85, offset: 22220}, + pos: position{line: 757, col: 85, offset: 22219}, label: "arg2", expr: &ruleRefExpr{ - pos: position{line: 758, col: 90, offset: 22225}, + pos: position{line: 757, col: 90, offset: 22224}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 758, col: 95, offset: 22230}, + pos: position{line: 757, col: 95, offset: 22229}, name: "__", }, &litMatcher{ - pos: position{line: 758, col: 98, offset: 22233}, + pos: position{line: 757, col: 98, offset: 22232}, val: ")", ignoreCase: false, + want: "\")\"", }, &labeledExpr{ - pos: position{line: 758, col: 102, offset: 22237}, + pos: position{line: 757, col: 102, offset: 22236}, label: "where", expr: &zeroOrOneExpr{ - pos: position{line: 758, col: 108, offset: 22243}, + pos: position{line: 757, col: 108, offset: 22242}, expr: &ruleRefExpr{ - pos: position{line: 758, col: 108, offset: 22243}, + pos: position{line: 757, col: 108, offset: 22242}, name: "WhereClause", }, }, @@ -6262,63 +6435,65 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 762, col: 5, offset: 22505}, + pos: position{line: 761, col: 5, offset: 22504}, run: (*parser).callonFunction44, expr: &seqExpr{ - pos: position{line: 762, col: 5, offset: 22505}, - exprs: []interface{}{ + pos: position{line: 761, col: 5, offset: 22504}, + exprs: []any{ ¬Expr{ - pos: position{line: 762, col: 5, offset: 22505}, + pos: position{line: 761, col: 5, offset: 22504}, expr: &ruleRefExpr{ - pos: position{line: 762, col: 6, offset: 22506}, + pos: position{line: 761, col: 6, offset: 22505}, name: "FuncGuard", }, }, &labeledExpr{ - pos: position{line: 762, col: 16, offset: 22516}, + pos: position{line: 761, col: 16, offset: 22515}, label: "fn", expr: &ruleRefExpr{ - pos: position{line: 762, col: 19, offset: 22519}, + pos: position{line: 761, col: 19, offset: 22518}, name: "IdentifierName", }, }, &ruleRefExpr{ - pos: position{line: 762, col: 34, offset: 22534}, + pos: position{line: 761, col: 34, offset: 22533}, name: "__", }, &litMatcher{ - pos: position{line: 762, col: 37, offset: 22537}, + pos: position{line: 761, col: 37, offset: 22536}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 762, col: 41, offset: 22541}, + pos: position{line: 761, col: 41, offset: 22540}, name: "__", }, &labeledExpr{ - pos: position{line: 762, col: 44, offset: 22544}, + pos: position{line: 761, col: 44, offset: 22543}, label: "args", expr: &ruleRefExpr{ - pos: position{line: 762, col: 49, offset: 22549}, + pos: position{line: 761, col: 49, offset: 22548}, name: "FunctionArgs", }, }, &ruleRefExpr{ - pos: position{line: 762, col: 62, offset: 22562}, + pos: position{line: 761, col: 62, offset: 22561}, name: "__", }, &litMatcher{ - pos: position{line: 762, col: 65, offset: 22565}, + pos: position{line: 761, col: 65, offset: 22564}, val: ")", ignoreCase: false, + want: "\")\"", }, &labeledExpr{ - pos: position{line: 762, col: 69, offset: 22569}, + pos: position{line: 761, col: 69, offset: 22568}, label: "where", expr: &zeroOrOneExpr{ - pos: position{line: 762, col: 75, offset: 22575}, + pos: position{line: 761, col: 75, offset: 22574}, expr: &ruleRefExpr{ - pos: position{line: 762, col: 75, offset: 22575}, + pos: position{line: 761, col: 75, offset: 22574}, name: "WhereClause", }, }, @@ -6331,24 +6506,24 @@ var g = &grammar{ }, { name: "FunctionArgs", - pos: position{line: 766, col: 1, offset: 22696}, + pos: position{line: 765, col: 1, offset: 22695}, expr: &choiceExpr{ - pos: position{line: 767, col: 5, offset: 22713}, - alternatives: []interface{}{ + pos: position{line: 766, col: 5, offset: 22712}, + alternatives: []any{ &actionExpr{ - pos: position{line: 767, col: 5, offset: 22713}, + pos: position{line: 766, col: 5, offset: 22712}, run: (*parser).callonFunctionArgs2, expr: &labeledExpr{ - pos: position{line: 767, col: 5, offset: 22713}, + pos: position{line: 766, col: 5, offset: 22712}, label: "o", expr: &ruleRefExpr{ - pos: position{line: 767, col: 7, offset: 22715}, + pos: position{line: 766, col: 7, offset: 22714}, name: "OverExpr", }, }, }, &ruleRefExpr{ - pos: position{line: 768, col: 5, offset: 22761}, + pos: position{line: 767, col: 5, offset: 22760}, name: "OptionalExprs", }, }, @@ -6356,88 +6531,91 @@ var g = &grammar{ }, { name: "Grep", - pos: position{line: 770, col: 1, offset: 22776}, + pos: position{line: 769, col: 1, offset: 22775}, expr: &actionExpr{ - pos: position{line: 771, col: 5, offset: 22785}, + pos: position{line: 770, col: 5, offset: 22784}, run: (*parser).callonGrep1, expr: &seqExpr{ - pos: position{line: 771, col: 5, offset: 22785}, - exprs: []interface{}{ + pos: position{line: 770, col: 5, offset: 22784}, + exprs: []any{ &litMatcher{ - pos: position{line: 771, col: 5, offset: 22785}, + pos: position{line: 770, col: 5, offset: 22784}, val: "grep", ignoreCase: false, + want: "\"grep\"", }, &ruleRefExpr{ - pos: position{line: 771, col: 12, offset: 22792}, + pos: position{line: 770, col: 12, offset: 22791}, name: "__", }, &litMatcher{ - pos: position{line: 771, col: 15, offset: 22795}, + pos: position{line: 770, col: 15, offset: 22794}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 771, col: 19, offset: 22799}, + pos: position{line: 770, col: 19, offset: 22798}, name: "__", }, &labeledExpr{ - pos: position{line: 771, col: 22, offset: 22802}, + pos: position{line: 770, col: 22, offset: 22801}, label: "pattern", expr: &choiceExpr{ - pos: position{line: 771, col: 31, offset: 22811}, - alternatives: []interface{}{ + pos: position{line: 770, col: 31, offset: 22810}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 771, col: 31, offset: 22811}, + pos: position{line: 770, col: 31, offset: 22810}, name: "Regexp", }, &ruleRefExpr{ - pos: position{line: 771, col: 40, offset: 22820}, + pos: position{line: 770, col: 40, offset: 22819}, name: "Glob", }, &ruleRefExpr{ - pos: position{line: 771, col: 47, offset: 22827}, + pos: position{line: 770, col: 47, offset: 22826}, name: "Expr", }, }, }, }, &ruleRefExpr{ - pos: position{line: 771, col: 53, offset: 22833}, + pos: position{line: 770, col: 53, offset: 22832}, name: "__", }, &labeledExpr{ - pos: position{line: 771, col: 56, offset: 22836}, + pos: position{line: 770, col: 56, offset: 22835}, label: "opt", expr: &zeroOrOneExpr{ - pos: position{line: 771, col: 60, offset: 22840}, + pos: position{line: 770, col: 60, offset: 22839}, expr: &seqExpr{ - pos: position{line: 771, col: 61, offset: 22841}, - exprs: []interface{}{ + pos: position{line: 770, col: 61, offset: 22840}, + exprs: []any{ &litMatcher{ - pos: position{line: 771, col: 61, offset: 22841}, + pos: position{line: 770, col: 61, offset: 22840}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 771, col: 65, offset: 22845}, + pos: position{line: 770, col: 65, offset: 22844}, name: "__", }, &choiceExpr{ - pos: position{line: 771, col: 69, offset: 22849}, - alternatives: []interface{}{ + pos: position{line: 770, col: 69, offset: 22848}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 771, col: 69, offset: 22849}, + pos: position{line: 770, col: 69, offset: 22848}, name: "OverExpr", }, &ruleRefExpr{ - pos: position{line: 771, col: 80, offset: 22860}, + pos: position{line: 770, col: 80, offset: 22859}, name: "Expr", }, }, }, &ruleRefExpr{ - pos: position{line: 771, col: 86, offset: 22866}, + pos: position{line: 770, col: 86, offset: 22865}, name: "__", }, }, @@ -6445,9 +6623,10 @@ var g = &grammar{ }, }, &litMatcher{ - pos: position{line: 771, col: 91, offset: 22871}, + pos: position{line: 770, col: 91, offset: 22870}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -6455,19 +6634,19 @@ var g = &grammar{ }, { name: "OptionalExprs", - pos: position{line: 779, col: 1, offset: 23112}, + pos: position{line: 778, col: 1, offset: 23111}, expr: &choiceExpr{ - pos: position{line: 780, col: 5, offset: 23130}, - alternatives: []interface{}{ + pos: position{line: 779, col: 5, offset: 23129}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 780, col: 5, offset: 23130}, + pos: position{line: 779, col: 5, offset: 23129}, name: "Exprs", }, &actionExpr{ - pos: position{line: 781, col: 5, offset: 23140}, + pos: position{line: 780, col: 5, offset: 23139}, run: (*parser).callonOptionalExprs3, expr: &ruleRefExpr{ - pos: position{line: 781, col: 5, offset: 23140}, + pos: position{line: 780, col: 5, offset: 23139}, name: "__", }, }, @@ -6476,50 +6655,51 @@ var g = &grammar{ }, { name: "Exprs", - pos: position{line: 783, col: 1, offset: 23176}, + pos: position{line: 782, col: 1, offset: 23175}, expr: &actionExpr{ - pos: position{line: 784, col: 5, offset: 23186}, + pos: position{line: 783, col: 5, offset: 23185}, run: (*parser).callonExprs1, expr: &seqExpr{ - pos: position{line: 784, col: 5, offset: 23186}, - exprs: []interface{}{ + pos: position{line: 783, col: 5, offset: 23185}, + exprs: []any{ &labeledExpr{ - pos: position{line: 784, col: 5, offset: 23186}, + pos: position{line: 783, col: 5, offset: 23185}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 784, col: 11, offset: 23192}, + pos: position{line: 783, col: 11, offset: 23191}, name: "Expr", }, }, &labeledExpr{ - pos: position{line: 784, col: 16, offset: 23197}, + pos: position{line: 783, col: 16, offset: 23196}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 784, col: 21, offset: 23202}, + pos: position{line: 783, col: 21, offset: 23201}, expr: &actionExpr{ - pos: position{line: 784, col: 22, offset: 23203}, + pos: position{line: 783, col: 22, offset: 23202}, run: (*parser).callonExprs7, expr: &seqExpr{ - pos: position{line: 784, col: 22, offset: 23203}, - exprs: []interface{}{ + pos: position{line: 783, col: 22, offset: 23202}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 784, col: 22, offset: 23203}, + pos: position{line: 783, col: 22, offset: 23202}, name: "__", }, &litMatcher{ - pos: position{line: 784, col: 25, offset: 23206}, + pos: position{line: 783, col: 25, offset: 23205}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 784, col: 29, offset: 23210}, + pos: position{line: 783, col: 29, offset: 23209}, name: "__", }, &labeledExpr{ - pos: position{line: 784, col: 32, offset: 23213}, + pos: position{line: 783, col: 32, offset: 23212}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 784, col: 34, offset: 23215}, + pos: position{line: 783, col: 34, offset: 23214}, name: "Expr", }, }, @@ -6534,28 +6714,28 @@ var g = &grammar{ }, { name: "DerefExpr", - pos: position{line: 788, col: 1, offset: 23324}, + pos: position{line: 787, col: 1, offset: 23323}, expr: &actionExpr{ - pos: position{line: 789, col: 5, offset: 23338}, + pos: position{line: 788, col: 5, offset: 23337}, run: (*parser).callonDerefExpr1, expr: &seqExpr{ - pos: position{line: 789, col: 5, offset: 23338}, - exprs: []interface{}{ + pos: position{line: 788, col: 5, offset: 23337}, + exprs: []any{ &labeledExpr{ - pos: position{line: 789, col: 5, offset: 23338}, + pos: position{line: 788, col: 5, offset: 23337}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 789, col: 11, offset: 23344}, + pos: position{line: 788, col: 11, offset: 23343}, name: "Primary", }, }, &labeledExpr{ - pos: position{line: 789, col: 19, offset: 23352}, + pos: position{line: 788, col: 19, offset: 23351}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 789, col: 24, offset: 23357}, + pos: position{line: 788, col: 24, offset: 23356}, expr: &ruleRefExpr{ - pos: position{line: 789, col: 25, offset: 23358}, + pos: position{line: 788, col: 25, offset: 23357}, name: "Deref", }, }, @@ -6566,144 +6746,153 @@ var g = &grammar{ }, { name: "Deref", - pos: position{line: 793, col: 1, offset: 23426}, + pos: position{line: 792, col: 1, offset: 23425}, expr: &choiceExpr{ - pos: position{line: 794, col: 5, offset: 23436}, - alternatives: []interface{}{ + pos: position{line: 793, col: 5, offset: 23435}, + alternatives: []any{ &actionExpr{ - pos: position{line: 794, col: 5, offset: 23436}, + pos: position{line: 793, col: 5, offset: 23435}, run: (*parser).callonDeref2, expr: &seqExpr{ - pos: position{line: 794, col: 5, offset: 23436}, - exprs: []interface{}{ + pos: position{line: 793, col: 5, offset: 23435}, + exprs: []any{ &litMatcher{ - pos: position{line: 794, col: 5, offset: 23436}, + pos: position{line: 793, col: 5, offset: 23435}, val: "[", ignoreCase: false, + want: "\"[\"", }, &labeledExpr{ - pos: position{line: 794, col: 9, offset: 23440}, + pos: position{line: 793, col: 9, offset: 23439}, label: "from", expr: &ruleRefExpr{ - pos: position{line: 794, col: 14, offset: 23445}, + pos: position{line: 793, col: 14, offset: 23444}, name: "AdditiveExpr", }, }, &ruleRefExpr{ - pos: position{line: 794, col: 27, offset: 23458}, + pos: position{line: 793, col: 27, offset: 23457}, name: "__", }, &litMatcher{ - pos: position{line: 794, col: 30, offset: 23461}, + pos: position{line: 793, col: 30, offset: 23460}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 794, col: 34, offset: 23465}, + pos: position{line: 793, col: 34, offset: 23464}, name: "__", }, &labeledExpr{ - pos: position{line: 794, col: 37, offset: 23468}, + pos: position{line: 793, col: 37, offset: 23467}, label: "to", expr: &zeroOrOneExpr{ - pos: position{line: 794, col: 40, offset: 23471}, + pos: position{line: 793, col: 40, offset: 23470}, expr: &ruleRefExpr{ - pos: position{line: 794, col: 40, offset: 23471}, + pos: position{line: 793, col: 40, offset: 23470}, name: "AdditiveExpr", }, }, }, &litMatcher{ - pos: position{line: 794, col: 54, offset: 23485}, + pos: position{line: 793, col: 54, offset: 23484}, val: "]", ignoreCase: false, + want: "\"]\"", }, }, }, }, &actionExpr{ - pos: position{line: 800, col: 5, offset: 23659}, + pos: position{line: 799, col: 5, offset: 23658}, run: (*parser).callonDeref14, expr: &seqExpr{ - pos: position{line: 800, col: 5, offset: 23659}, - exprs: []interface{}{ + pos: position{line: 799, col: 5, offset: 23658}, + exprs: []any{ &litMatcher{ - pos: position{line: 800, col: 5, offset: 23659}, + pos: position{line: 799, col: 5, offset: 23658}, val: "[", ignoreCase: false, + want: "\"[\"", }, &ruleRefExpr{ - pos: position{line: 800, col: 9, offset: 23663}, + pos: position{line: 799, col: 9, offset: 23662}, name: "__", }, &litMatcher{ - pos: position{line: 800, col: 12, offset: 23666}, + pos: position{line: 799, col: 12, offset: 23665}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 800, col: 16, offset: 23670}, + pos: position{line: 799, col: 16, offset: 23669}, name: "__", }, &labeledExpr{ - pos: position{line: 800, col: 19, offset: 23673}, + pos: position{line: 799, col: 19, offset: 23672}, label: "to", expr: &ruleRefExpr{ - pos: position{line: 800, col: 22, offset: 23676}, + pos: position{line: 799, col: 22, offset: 23675}, name: "AdditiveExpr", }, }, &litMatcher{ - pos: position{line: 800, col: 35, offset: 23689}, + pos: position{line: 799, col: 35, offset: 23688}, val: "]", ignoreCase: false, + want: "\"]\"", }, }, }, }, &actionExpr{ - pos: position{line: 806, col: 5, offset: 23862}, + pos: position{line: 805, col: 5, offset: 23861}, run: (*parser).callonDeref23, expr: &seqExpr{ - pos: position{line: 806, col: 5, offset: 23862}, - exprs: []interface{}{ + pos: position{line: 805, col: 5, offset: 23861}, + exprs: []any{ &litMatcher{ - pos: position{line: 806, col: 5, offset: 23862}, + pos: position{line: 805, col: 5, offset: 23861}, val: "[", ignoreCase: false, + want: "\"[\"", }, &labeledExpr{ - pos: position{line: 806, col: 9, offset: 23866}, + pos: position{line: 805, col: 9, offset: 23865}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 806, col: 14, offset: 23871}, + pos: position{line: 805, col: 14, offset: 23870}, name: "Expr", }, }, &litMatcher{ - pos: position{line: 806, col: 19, offset: 23876}, + pos: position{line: 805, col: 19, offset: 23875}, val: "]", ignoreCase: false, + want: "\"]\"", }, }, }, }, &actionExpr{ - pos: position{line: 807, col: 5, offset: 23925}, + pos: position{line: 806, col: 5, offset: 23924}, run: (*parser).callonDeref29, expr: &seqExpr{ - pos: position{line: 807, col: 5, offset: 23925}, - exprs: []interface{}{ + pos: position{line: 806, col: 5, offset: 23924}, + exprs: []any{ &litMatcher{ - pos: position{line: 807, col: 5, offset: 23925}, + pos: position{line: 806, col: 5, offset: 23924}, val: ".", ignoreCase: false, + want: "\".\"", }, &labeledExpr{ - pos: position{line: 807, col: 9, offset: 23929}, + pos: position{line: 806, col: 9, offset: 23928}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 807, col: 12, offset: 23932}, + pos: position{line: 806, col: 12, offset: 23931}, name: "Identifier", }, }, @@ -6715,100 +6904,104 @@ var g = &grammar{ }, { name: "Primary", - pos: position{line: 809, col: 1, offset: 23983}, + pos: position{line: 808, col: 1, offset: 23982}, expr: &choiceExpr{ - pos: position{line: 810, col: 5, offset: 23995}, - alternatives: []interface{}{ + pos: position{line: 809, col: 5, offset: 23994}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 810, col: 5, offset: 23995}, + pos: position{line: 809, col: 5, offset: 23994}, name: "Record", }, &ruleRefExpr{ - pos: position{line: 811, col: 5, offset: 24006}, + pos: position{line: 810, col: 5, offset: 24005}, name: "Array", }, &ruleRefExpr{ - pos: position{line: 812, col: 5, offset: 24016}, + pos: position{line: 811, col: 5, offset: 24015}, name: "Set", }, &ruleRefExpr{ - pos: position{line: 813, col: 5, offset: 24024}, + pos: position{line: 812, col: 5, offset: 24023}, name: "Map", }, &ruleRefExpr{ - pos: position{line: 814, col: 5, offset: 24032}, + pos: position{line: 813, col: 5, offset: 24031}, name: "Literal", }, &ruleRefExpr{ - pos: position{line: 815, col: 5, offset: 24044}, + pos: position{line: 814, col: 5, offset: 24043}, name: "Identifier", }, &actionExpr{ - pos: position{line: 816, col: 5, offset: 24059}, + pos: position{line: 815, col: 5, offset: 24058}, run: (*parser).callonPrimary8, expr: &seqExpr{ - pos: position{line: 816, col: 5, offset: 24059}, - exprs: []interface{}{ + pos: position{line: 815, col: 5, offset: 24058}, + exprs: []any{ &litMatcher{ - pos: position{line: 816, col: 5, offset: 24059}, + pos: position{line: 815, col: 5, offset: 24058}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 816, col: 9, offset: 24063}, + pos: position{line: 815, col: 9, offset: 24062}, name: "__", }, &labeledExpr{ - pos: position{line: 816, col: 12, offset: 24066}, + pos: position{line: 815, col: 12, offset: 24065}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 816, col: 17, offset: 24071}, + pos: position{line: 815, col: 17, offset: 24070}, name: "OverExpr", }, }, &ruleRefExpr{ - pos: position{line: 816, col: 26, offset: 24080}, + pos: position{line: 815, col: 26, offset: 24079}, name: "__", }, &litMatcher{ - pos: position{line: 816, col: 29, offset: 24083}, + pos: position{line: 815, col: 29, offset: 24082}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &actionExpr{ - pos: position{line: 817, col: 5, offset: 24112}, + pos: position{line: 816, col: 5, offset: 24111}, run: (*parser).callonPrimary16, expr: &seqExpr{ - pos: position{line: 817, col: 5, offset: 24112}, - exprs: []interface{}{ + pos: position{line: 816, col: 5, offset: 24111}, + exprs: []any{ &litMatcher{ - pos: position{line: 817, col: 5, offset: 24112}, + pos: position{line: 816, col: 5, offset: 24111}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 817, col: 9, offset: 24116}, + pos: position{line: 816, col: 9, offset: 24115}, name: "__", }, &labeledExpr{ - pos: position{line: 817, col: 12, offset: 24119}, + pos: position{line: 816, col: 12, offset: 24118}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 817, col: 17, offset: 24124}, + pos: position{line: 816, col: 17, offset: 24123}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 817, col: 22, offset: 24129}, + pos: position{line: 816, col: 22, offset: 24128}, name: "__", }, &litMatcher{ - pos: position{line: 817, col: 25, offset: 24132}, + pos: position{line: 816, col: 25, offset: 24131}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -6818,59 +7011,61 @@ var g = &grammar{ }, { name: "OverExpr", - pos: position{line: 819, col: 1, offset: 24158}, + pos: position{line: 818, col: 1, offset: 24157}, expr: &actionExpr{ - pos: position{line: 820, col: 5, offset: 24171}, + pos: position{line: 819, col: 5, offset: 24170}, run: (*parser).callonOverExpr1, expr: &seqExpr{ - pos: position{line: 820, col: 5, offset: 24171}, - exprs: []interface{}{ + pos: position{line: 819, col: 5, offset: 24170}, + exprs: []any{ &litMatcher{ - pos: position{line: 820, col: 5, offset: 24171}, + pos: position{line: 819, col: 5, offset: 24170}, val: "over", ignoreCase: false, + want: "\"over\"", }, &ruleRefExpr{ - pos: position{line: 820, col: 12, offset: 24178}, + pos: position{line: 819, col: 12, offset: 24177}, name: "_", }, &labeledExpr{ - pos: position{line: 820, col: 14, offset: 24180}, + pos: position{line: 819, col: 14, offset: 24179}, label: "exprs", expr: &ruleRefExpr{ - pos: position{line: 820, col: 20, offset: 24186}, + pos: position{line: 819, col: 20, offset: 24185}, name: "Exprs", }, }, &labeledExpr{ - pos: position{line: 820, col: 26, offset: 24192}, + pos: position{line: 819, col: 26, offset: 24191}, label: "locals", expr: &zeroOrOneExpr{ - pos: position{line: 820, col: 33, offset: 24199}, + pos: position{line: 819, col: 33, offset: 24198}, expr: &ruleRefExpr{ - pos: position{line: 820, col: 33, offset: 24199}, + pos: position{line: 819, col: 33, offset: 24198}, name: "Locals", }, }, }, &ruleRefExpr{ - pos: position{line: 820, col: 41, offset: 24207}, + pos: position{line: 819, col: 41, offset: 24206}, name: "__", }, &litMatcher{ - pos: position{line: 820, col: 44, offset: 24210}, + pos: position{line: 819, col: 44, offset: 24209}, val: "|", ignoreCase: false, + want: "\"|\"", }, &ruleRefExpr{ - pos: position{line: 820, col: 48, offset: 24214}, + pos: position{line: 819, col: 48, offset: 24213}, name: "__", }, &labeledExpr{ - pos: position{line: 820, col: 51, offset: 24217}, + pos: position{line: 819, col: 51, offset: 24216}, label: "body", expr: &ruleRefExpr{ - pos: position{line: 820, col: 56, offset: 24222}, + pos: position{line: 819, col: 56, offset: 24221}, name: "Seq", }, }, @@ -6880,38 +7075,40 @@ var g = &grammar{ }, { name: "Record", - pos: position{line: 824, col: 1, offset: 24344}, + pos: position{line: 823, col: 1, offset: 24343}, expr: &actionExpr{ - pos: position{line: 825, col: 5, offset: 24355}, + pos: position{line: 824, col: 5, offset: 24354}, run: (*parser).callonRecord1, expr: &seqExpr{ - pos: position{line: 825, col: 5, offset: 24355}, - exprs: []interface{}{ + pos: position{line: 824, col: 5, offset: 24354}, + exprs: []any{ &litMatcher{ - pos: position{line: 825, col: 5, offset: 24355}, + pos: position{line: 824, col: 5, offset: 24354}, val: "{", ignoreCase: false, + want: "\"{\"", }, &ruleRefExpr{ - pos: position{line: 825, col: 9, offset: 24359}, + pos: position{line: 824, col: 9, offset: 24358}, name: "__", }, &labeledExpr{ - pos: position{line: 825, col: 12, offset: 24362}, + pos: position{line: 824, col: 12, offset: 24361}, label: "elems", expr: &ruleRefExpr{ - pos: position{line: 825, col: 18, offset: 24368}, + pos: position{line: 824, col: 18, offset: 24367}, name: "RecordElems", }, }, &ruleRefExpr{ - pos: position{line: 825, col: 30, offset: 24380}, + pos: position{line: 824, col: 30, offset: 24379}, name: "__", }, &litMatcher{ - pos: position{line: 825, col: 33, offset: 24383}, + pos: position{line: 824, col: 33, offset: 24382}, val: "}", ignoreCase: false, + want: "\"}\"", }, }, }, @@ -6919,31 +7116,31 @@ var g = &grammar{ }, { name: "RecordElems", - pos: position{line: 829, col: 1, offset: 24475}, + pos: position{line: 828, col: 1, offset: 24474}, expr: &choiceExpr{ - pos: position{line: 830, col: 5, offset: 24491}, - alternatives: []interface{}{ + pos: position{line: 829, col: 5, offset: 24490}, + alternatives: []any{ &actionExpr{ - pos: position{line: 830, col: 5, offset: 24491}, + pos: position{line: 829, col: 5, offset: 24490}, run: (*parser).callonRecordElems2, expr: &seqExpr{ - pos: position{line: 830, col: 5, offset: 24491}, - exprs: []interface{}{ + pos: position{line: 829, col: 5, offset: 24490}, + exprs: []any{ &labeledExpr{ - pos: position{line: 830, col: 5, offset: 24491}, + pos: position{line: 829, col: 5, offset: 24490}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 830, col: 11, offset: 24497}, + pos: position{line: 829, col: 11, offset: 24496}, name: "RecordElem", }, }, &labeledExpr{ - pos: position{line: 830, col: 22, offset: 24508}, + pos: position{line: 829, col: 22, offset: 24507}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 830, col: 27, offset: 24513}, + pos: position{line: 829, col: 27, offset: 24512}, expr: &ruleRefExpr{ - pos: position{line: 830, col: 27, offset: 24513}, + pos: position{line: 829, col: 27, offset: 24512}, name: "RecordElemTail", }, }, @@ -6952,10 +7149,10 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 833, col: 5, offset: 24612}, + pos: position{line: 832, col: 5, offset: 24611}, run: (*parser).callonRecordElems9, expr: &ruleRefExpr{ - pos: position{line: 833, col: 5, offset: 24612}, + pos: position{line: 832, col: 5, offset: 24611}, name: "__", }, }, @@ -6964,31 +7161,32 @@ var g = &grammar{ }, { name: "RecordElemTail", - pos: position{line: 835, col: 1, offset: 24648}, + pos: position{line: 834, col: 1, offset: 24647}, expr: &actionExpr{ - pos: position{line: 835, col: 18, offset: 24665}, + pos: position{line: 834, col: 18, offset: 24664}, run: (*parser).callonRecordElemTail1, expr: &seqExpr{ - pos: position{line: 835, col: 18, offset: 24665}, - exprs: []interface{}{ + pos: position{line: 834, col: 18, offset: 24664}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 835, col: 18, offset: 24665}, + pos: position{line: 834, col: 18, offset: 24664}, name: "__", }, &litMatcher{ - pos: position{line: 835, col: 21, offset: 24668}, + pos: position{line: 834, col: 21, offset: 24667}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 835, col: 25, offset: 24672}, + pos: position{line: 834, col: 25, offset: 24671}, name: "__", }, &labeledExpr{ - pos: position{line: 835, col: 28, offset: 24675}, + pos: position{line: 834, col: 28, offset: 24674}, label: "elem", expr: &ruleRefExpr{ - pos: position{line: 835, col: 33, offset: 24680}, + pos: position{line: 834, col: 33, offset: 24679}, name: "RecordElem", }, }, @@ -6998,20 +7196,20 @@ var g = &grammar{ }, { name: "RecordElem", - pos: position{line: 837, col: 1, offset: 24713}, + pos: position{line: 836, col: 1, offset: 24712}, expr: &choiceExpr{ - pos: position{line: 838, col: 5, offset: 24728}, - alternatives: []interface{}{ + pos: position{line: 837, col: 5, offset: 24727}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 838, col: 5, offset: 24728}, + pos: position{line: 837, col: 5, offset: 24727}, name: "Spread", }, &ruleRefExpr{ - pos: position{line: 839, col: 5, offset: 24739}, + pos: position{line: 838, col: 5, offset: 24738}, name: "Field", }, &ruleRefExpr{ - pos: position{line: 840, col: 5, offset: 24749}, + pos: position{line: 839, col: 5, offset: 24748}, name: "Identifier", }, }, @@ -7019,27 +7217,28 @@ var g = &grammar{ }, { name: "Spread", - pos: position{line: 842, col: 1, offset: 24761}, + pos: position{line: 841, col: 1, offset: 24760}, expr: &actionExpr{ - pos: position{line: 843, col: 5, offset: 24772}, + pos: position{line: 842, col: 5, offset: 24771}, run: (*parser).callonSpread1, expr: &seqExpr{ - pos: position{line: 843, col: 5, offset: 24772}, - exprs: []interface{}{ + pos: position{line: 842, col: 5, offset: 24771}, + exprs: []any{ &litMatcher{ - pos: position{line: 843, col: 5, offset: 24772}, + pos: position{line: 842, col: 5, offset: 24771}, val: "...", ignoreCase: false, + want: "\"...\"", }, &ruleRefExpr{ - pos: position{line: 843, col: 11, offset: 24778}, + pos: position{line: 842, col: 11, offset: 24777}, name: "__", }, &labeledExpr{ - pos: position{line: 843, col: 14, offset: 24781}, + pos: position{line: 842, col: 14, offset: 24780}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 843, col: 19, offset: 24786}, + pos: position{line: 842, col: 19, offset: 24785}, name: "Expr", }, }, @@ -7049,39 +7248,40 @@ var g = &grammar{ }, { name: "Field", - pos: position{line: 847, col: 1, offset: 24873}, + pos: position{line: 846, col: 1, offset: 24872}, expr: &actionExpr{ - pos: position{line: 848, col: 5, offset: 24883}, + pos: position{line: 847, col: 5, offset: 24882}, run: (*parser).callonField1, expr: &seqExpr{ - pos: position{line: 848, col: 5, offset: 24883}, - exprs: []interface{}{ + pos: position{line: 847, col: 5, offset: 24882}, + exprs: []any{ &labeledExpr{ - pos: position{line: 848, col: 5, offset: 24883}, + pos: position{line: 847, col: 5, offset: 24882}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 848, col: 10, offset: 24888}, + pos: position{line: 847, col: 10, offset: 24887}, name: "FieldName", }, }, &ruleRefExpr{ - pos: position{line: 848, col: 20, offset: 24898}, + pos: position{line: 847, col: 20, offset: 24897}, name: "__", }, &litMatcher{ - pos: position{line: 848, col: 23, offset: 24901}, + pos: position{line: 847, col: 23, offset: 24900}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 848, col: 27, offset: 24905}, + pos: position{line: 847, col: 27, offset: 24904}, name: "__", }, &labeledExpr{ - pos: position{line: 848, col: 30, offset: 24908}, + pos: position{line: 847, col: 30, offset: 24907}, label: "value", expr: &ruleRefExpr{ - pos: position{line: 848, col: 36, offset: 24914}, + pos: position{line: 847, col: 36, offset: 24913}, name: "Expr", }, }, @@ -7091,38 +7291,40 @@ var g = &grammar{ }, { name: "Array", - pos: position{line: 852, col: 1, offset: 25016}, + pos: position{line: 851, col: 1, offset: 25015}, expr: &actionExpr{ - pos: position{line: 853, col: 5, offset: 25026}, + pos: position{line: 852, col: 5, offset: 25025}, run: (*parser).callonArray1, expr: &seqExpr{ - pos: position{line: 853, col: 5, offset: 25026}, - exprs: []interface{}{ + pos: position{line: 852, col: 5, offset: 25025}, + exprs: []any{ &litMatcher{ - pos: position{line: 853, col: 5, offset: 25026}, + pos: position{line: 852, col: 5, offset: 25025}, val: "[", ignoreCase: false, + want: "\"[\"", }, &ruleRefExpr{ - pos: position{line: 853, col: 9, offset: 25030}, + pos: position{line: 852, col: 9, offset: 25029}, name: "__", }, &labeledExpr{ - pos: position{line: 853, col: 12, offset: 25033}, + pos: position{line: 852, col: 12, offset: 25032}, label: "elems", expr: &ruleRefExpr{ - pos: position{line: 853, col: 18, offset: 25039}, + pos: position{line: 852, col: 18, offset: 25038}, name: "VectorElems", }, }, &ruleRefExpr{ - pos: position{line: 853, col: 30, offset: 25051}, + pos: position{line: 852, col: 30, offset: 25050}, name: "__", }, &litMatcher{ - pos: position{line: 853, col: 33, offset: 25054}, + pos: position{line: 852, col: 33, offset: 25053}, val: "]", ignoreCase: false, + want: "\"]\"", }, }, }, @@ -7130,38 +7332,40 @@ var g = &grammar{ }, { name: "Set", - pos: position{line: 857, col: 1, offset: 25145}, + pos: position{line: 856, col: 1, offset: 25144}, expr: &actionExpr{ - pos: position{line: 858, col: 5, offset: 25153}, + pos: position{line: 857, col: 5, offset: 25152}, run: (*parser).callonSet1, expr: &seqExpr{ - pos: position{line: 858, col: 5, offset: 25153}, - exprs: []interface{}{ + pos: position{line: 857, col: 5, offset: 25152}, + exprs: []any{ &litMatcher{ - pos: position{line: 858, col: 5, offset: 25153}, + pos: position{line: 857, col: 5, offset: 25152}, val: "|[", ignoreCase: false, + want: "\"|[\"", }, &ruleRefExpr{ - pos: position{line: 858, col: 10, offset: 25158}, + pos: position{line: 857, col: 10, offset: 25157}, name: "__", }, &labeledExpr{ - pos: position{line: 858, col: 13, offset: 25161}, + pos: position{line: 857, col: 13, offset: 25160}, label: "elems", expr: &ruleRefExpr{ - pos: position{line: 858, col: 19, offset: 25167}, + pos: position{line: 857, col: 19, offset: 25166}, name: "VectorElems", }, }, &ruleRefExpr{ - pos: position{line: 858, col: 31, offset: 25179}, + pos: position{line: 857, col: 31, offset: 25178}, name: "__", }, &litMatcher{ - pos: position{line: 858, col: 34, offset: 25182}, + pos: position{line: 857, col: 34, offset: 25181}, val: "]|", ignoreCase: false, + want: "\"]|\"", }, }, }, @@ -7169,53 +7373,54 @@ var g = &grammar{ }, { name: "VectorElems", - pos: position{line: 862, col: 1, offset: 25272}, + pos: position{line: 861, col: 1, offset: 25271}, expr: &choiceExpr{ - pos: position{line: 863, col: 5, offset: 25288}, - alternatives: []interface{}{ + pos: position{line: 862, col: 5, offset: 25287}, + alternatives: []any{ &actionExpr{ - pos: position{line: 863, col: 5, offset: 25288}, + pos: position{line: 862, col: 5, offset: 25287}, run: (*parser).callonVectorElems2, expr: &seqExpr{ - pos: position{line: 863, col: 5, offset: 25288}, - exprs: []interface{}{ + pos: position{line: 862, col: 5, offset: 25287}, + exprs: []any{ &labeledExpr{ - pos: position{line: 863, col: 5, offset: 25288}, + pos: position{line: 862, col: 5, offset: 25287}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 863, col: 11, offset: 25294}, + pos: position{line: 862, col: 11, offset: 25293}, name: "VectorElem", }, }, &labeledExpr{ - pos: position{line: 863, col: 22, offset: 25305}, + pos: position{line: 862, col: 22, offset: 25304}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 863, col: 27, offset: 25310}, + pos: position{line: 862, col: 27, offset: 25309}, expr: &actionExpr{ - pos: position{line: 863, col: 28, offset: 25311}, + pos: position{line: 862, col: 28, offset: 25310}, run: (*parser).callonVectorElems8, expr: &seqExpr{ - pos: position{line: 863, col: 28, offset: 25311}, - exprs: []interface{}{ + pos: position{line: 862, col: 28, offset: 25310}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 863, col: 28, offset: 25311}, + pos: position{line: 862, col: 28, offset: 25310}, name: "__", }, &litMatcher{ - pos: position{line: 863, col: 31, offset: 25314}, + pos: position{line: 862, col: 31, offset: 25313}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 863, col: 35, offset: 25318}, + pos: position{line: 862, col: 35, offset: 25317}, name: "__", }, &labeledExpr{ - pos: position{line: 863, col: 38, offset: 25321}, + pos: position{line: 862, col: 38, offset: 25320}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 863, col: 40, offset: 25323}, + pos: position{line: 862, col: 40, offset: 25322}, name: "VectorElem", }, }, @@ -7228,10 +7433,10 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 866, col: 5, offset: 25441}, + pos: position{line: 865, col: 5, offset: 25440}, run: (*parser).callonVectorElems15, expr: &ruleRefExpr{ - pos: position{line: 866, col: 5, offset: 25441}, + pos: position{line: 865, col: 5, offset: 25440}, name: "__", }, }, @@ -7240,22 +7445,22 @@ var g = &grammar{ }, { name: "VectorElem", - pos: position{line: 868, col: 1, offset: 25477}, + pos: position{line: 867, col: 1, offset: 25476}, expr: &choiceExpr{ - pos: position{line: 869, col: 5, offset: 25492}, - alternatives: []interface{}{ + pos: position{line: 868, col: 5, offset: 25491}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 869, col: 5, offset: 25492}, + pos: position{line: 868, col: 5, offset: 25491}, name: "Spread", }, &actionExpr{ - pos: position{line: 870, col: 5, offset: 25503}, + pos: position{line: 869, col: 5, offset: 25502}, run: (*parser).callonVectorElem3, expr: &labeledExpr{ - pos: position{line: 870, col: 5, offset: 25503}, + pos: position{line: 869, col: 5, offset: 25502}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 870, col: 7, offset: 25505}, + pos: position{line: 869, col: 7, offset: 25504}, name: "Expr", }, }, @@ -7265,38 +7470,40 @@ var g = &grammar{ }, { name: "Map", - pos: position{line: 872, col: 1, offset: 25584}, + pos: position{line: 871, col: 1, offset: 25583}, expr: &actionExpr{ - pos: position{line: 873, col: 5, offset: 25592}, + pos: position{line: 872, col: 5, offset: 25591}, run: (*parser).callonMap1, expr: &seqExpr{ - pos: position{line: 873, col: 5, offset: 25592}, - exprs: []interface{}{ + pos: position{line: 872, col: 5, offset: 25591}, + exprs: []any{ &litMatcher{ - pos: position{line: 873, col: 5, offset: 25592}, + pos: position{line: 872, col: 5, offset: 25591}, val: "|{", ignoreCase: false, + want: "\"|{\"", }, &ruleRefExpr{ - pos: position{line: 873, col: 10, offset: 25597}, + pos: position{line: 872, col: 10, offset: 25596}, name: "__", }, &labeledExpr{ - pos: position{line: 873, col: 13, offset: 25600}, + pos: position{line: 872, col: 13, offset: 25599}, label: "exprs", expr: &ruleRefExpr{ - pos: position{line: 873, col: 19, offset: 25606}, + pos: position{line: 872, col: 19, offset: 25605}, name: "Entries", }, }, &ruleRefExpr{ - pos: position{line: 873, col: 27, offset: 25614}, + pos: position{line: 872, col: 27, offset: 25613}, name: "__", }, &litMatcher{ - pos: position{line: 873, col: 30, offset: 25617}, + pos: position{line: 872, col: 30, offset: 25616}, val: "}|", ignoreCase: false, + want: "\"}|\"", }, }, }, @@ -7304,31 +7511,31 @@ var g = &grammar{ }, { name: "Entries", - pos: position{line: 877, col: 1, offset: 25709}, + pos: position{line: 876, col: 1, offset: 25708}, expr: &choiceExpr{ - pos: position{line: 878, col: 5, offset: 25721}, - alternatives: []interface{}{ + pos: position{line: 877, col: 5, offset: 25720}, + alternatives: []any{ &actionExpr{ - pos: position{line: 878, col: 5, offset: 25721}, + pos: position{line: 877, col: 5, offset: 25720}, run: (*parser).callonEntries2, expr: &seqExpr{ - pos: position{line: 878, col: 5, offset: 25721}, - exprs: []interface{}{ + pos: position{line: 877, col: 5, offset: 25720}, + exprs: []any{ &labeledExpr{ - pos: position{line: 878, col: 5, offset: 25721}, + pos: position{line: 877, col: 5, offset: 25720}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 878, col: 11, offset: 25727}, + pos: position{line: 877, col: 11, offset: 25726}, name: "Entry", }, }, &labeledExpr{ - pos: position{line: 878, col: 17, offset: 25733}, + pos: position{line: 877, col: 17, offset: 25732}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 878, col: 22, offset: 25738}, + pos: position{line: 877, col: 22, offset: 25737}, expr: &ruleRefExpr{ - pos: position{line: 878, col: 22, offset: 25738}, + pos: position{line: 877, col: 22, offset: 25737}, name: "EntryTail", }, }, @@ -7337,10 +7544,10 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 881, col: 5, offset: 25832}, + pos: position{line: 880, col: 5, offset: 25831}, run: (*parser).callonEntries9, expr: &ruleRefExpr{ - pos: position{line: 881, col: 5, offset: 25832}, + pos: position{line: 880, col: 5, offset: 25831}, name: "__", }, }, @@ -7349,31 +7556,32 @@ var g = &grammar{ }, { name: "EntryTail", - pos: position{line: 884, col: 1, offset: 25869}, + pos: position{line: 883, col: 1, offset: 25868}, expr: &actionExpr{ - pos: position{line: 884, col: 13, offset: 25881}, + pos: position{line: 883, col: 13, offset: 25880}, run: (*parser).callonEntryTail1, expr: &seqExpr{ - pos: position{line: 884, col: 13, offset: 25881}, - exprs: []interface{}{ + pos: position{line: 883, col: 13, offset: 25880}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 884, col: 13, offset: 25881}, + pos: position{line: 883, col: 13, offset: 25880}, name: "__", }, &litMatcher{ - pos: position{line: 884, col: 16, offset: 25884}, + pos: position{line: 883, col: 16, offset: 25883}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 884, col: 20, offset: 25888}, + pos: position{line: 883, col: 20, offset: 25887}, name: "__", }, &labeledExpr{ - pos: position{line: 884, col: 23, offset: 25891}, + pos: position{line: 883, col: 23, offset: 25890}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 884, col: 25, offset: 25893}, + pos: position{line: 883, col: 25, offset: 25892}, name: "Entry", }, }, @@ -7383,39 +7591,40 @@ var g = &grammar{ }, { name: "Entry", - pos: position{line: 886, col: 1, offset: 25918}, + pos: position{line: 885, col: 1, offset: 25917}, expr: &actionExpr{ - pos: position{line: 887, col: 5, offset: 25928}, + pos: position{line: 886, col: 5, offset: 25927}, run: (*parser).callonEntry1, expr: &seqExpr{ - pos: position{line: 887, col: 5, offset: 25928}, - exprs: []interface{}{ + pos: position{line: 886, col: 5, offset: 25927}, + exprs: []any{ &labeledExpr{ - pos: position{line: 887, col: 5, offset: 25928}, + pos: position{line: 886, col: 5, offset: 25927}, label: "key", expr: &ruleRefExpr{ - pos: position{line: 887, col: 9, offset: 25932}, + pos: position{line: 886, col: 9, offset: 25931}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 887, col: 14, offset: 25937}, + pos: position{line: 886, col: 14, offset: 25936}, name: "__", }, &litMatcher{ - pos: position{line: 887, col: 17, offset: 25940}, + pos: position{line: 886, col: 17, offset: 25939}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 887, col: 21, offset: 25944}, + pos: position{line: 886, col: 21, offset: 25943}, name: "__", }, &labeledExpr{ - pos: position{line: 887, col: 24, offset: 25947}, + pos: position{line: 886, col: 24, offset: 25946}, label: "value", expr: &ruleRefExpr{ - pos: position{line: 887, col: 30, offset: 25953}, + pos: position{line: 886, col: 30, offset: 25952}, name: "Expr", }, }, @@ -7425,92 +7634,92 @@ var g = &grammar{ }, { name: "SQLOp", - pos: position{line: 893, col: 1, offset: 26060}, + pos: position{line: 892, col: 1, offset: 26059}, expr: &actionExpr{ - pos: position{line: 894, col: 5, offset: 26070}, + pos: position{line: 893, col: 5, offset: 26069}, run: (*parser).callonSQLOp1, expr: &seqExpr{ - pos: position{line: 894, col: 5, offset: 26070}, - exprs: []interface{}{ + pos: position{line: 893, col: 5, offset: 26069}, + exprs: []any{ &labeledExpr{ - pos: position{line: 894, col: 5, offset: 26070}, + pos: position{line: 893, col: 5, offset: 26069}, label: "selection", expr: &ruleRefExpr{ - pos: position{line: 894, col: 15, offset: 26080}, + pos: position{line: 893, col: 15, offset: 26079}, name: "SQLSelect", }, }, &labeledExpr{ - pos: position{line: 895, col: 5, offset: 26094}, + pos: position{line: 894, col: 5, offset: 26093}, label: "from", expr: &zeroOrOneExpr{ - pos: position{line: 895, col: 10, offset: 26099}, + pos: position{line: 894, col: 10, offset: 26098}, expr: &ruleRefExpr{ - pos: position{line: 895, col: 10, offset: 26099}, + pos: position{line: 894, col: 10, offset: 26098}, name: "SQLFrom", }, }, }, &labeledExpr{ - pos: position{line: 896, col: 5, offset: 26112}, + pos: position{line: 895, col: 5, offset: 26111}, label: "joins", expr: &zeroOrOneExpr{ - pos: position{line: 896, col: 11, offset: 26118}, + pos: position{line: 895, col: 11, offset: 26117}, expr: &ruleRefExpr{ - pos: position{line: 896, col: 11, offset: 26118}, + pos: position{line: 895, col: 11, offset: 26117}, name: "SQLJoins", }, }, }, &labeledExpr{ - pos: position{line: 897, col: 5, offset: 26132}, + pos: position{line: 896, col: 5, offset: 26131}, label: "where", expr: &zeroOrOneExpr{ - pos: position{line: 897, col: 11, offset: 26138}, + pos: position{line: 896, col: 11, offset: 26137}, expr: &ruleRefExpr{ - pos: position{line: 897, col: 11, offset: 26138}, + pos: position{line: 896, col: 11, offset: 26137}, name: "SQLWhere", }, }, }, &labeledExpr{ - pos: position{line: 898, col: 5, offset: 26152}, + pos: position{line: 897, col: 5, offset: 26151}, label: "groupby", expr: &zeroOrOneExpr{ - pos: position{line: 898, col: 13, offset: 26160}, + pos: position{line: 897, col: 13, offset: 26159}, expr: &ruleRefExpr{ - pos: position{line: 898, col: 13, offset: 26160}, + pos: position{line: 897, col: 13, offset: 26159}, name: "SQLGroupBy", }, }, }, &labeledExpr{ - pos: position{line: 899, col: 5, offset: 26176}, + pos: position{line: 898, col: 5, offset: 26175}, label: "having", expr: &zeroOrOneExpr{ - pos: position{line: 899, col: 12, offset: 26183}, + pos: position{line: 898, col: 12, offset: 26182}, expr: &ruleRefExpr{ - pos: position{line: 899, col: 12, offset: 26183}, + pos: position{line: 898, col: 12, offset: 26182}, name: "SQLHaving", }, }, }, &labeledExpr{ - pos: position{line: 900, col: 5, offset: 26198}, + pos: position{line: 899, col: 5, offset: 26197}, label: "orderby", expr: &zeroOrOneExpr{ - pos: position{line: 900, col: 13, offset: 26206}, + pos: position{line: 899, col: 13, offset: 26205}, expr: &ruleRefExpr{ - pos: position{line: 900, col: 13, offset: 26206}, + pos: position{line: 899, col: 13, offset: 26205}, name: "SQLOrderBy", }, }, }, &labeledExpr{ - pos: position{line: 901, col: 5, offset: 26222}, + pos: position{line: 900, col: 5, offset: 26221}, label: "limit", expr: &ruleRefExpr{ - pos: position{line: 901, col: 11, offset: 26228}, + pos: position{line: 900, col: 11, offset: 26227}, name: "SQLLimit", }, }, @@ -7520,51 +7729,52 @@ var g = &grammar{ }, { name: "SQLSelect", - pos: position{line: 925, col: 1, offset: 26594}, + pos: position{line: 924, col: 1, offset: 26593}, expr: &choiceExpr{ - pos: position{line: 926, col: 5, offset: 26608}, - alternatives: []interface{}{ + pos: position{line: 925, col: 5, offset: 26607}, + alternatives: []any{ &actionExpr{ - pos: position{line: 926, col: 5, offset: 26608}, + pos: position{line: 925, col: 5, offset: 26607}, run: (*parser).callonSQLSelect2, expr: &seqExpr{ - pos: position{line: 926, col: 5, offset: 26608}, - exprs: []interface{}{ + pos: position{line: 925, col: 5, offset: 26607}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 926, col: 5, offset: 26608}, + pos: position{line: 925, col: 5, offset: 26607}, name: "SELECT", }, &ruleRefExpr{ - pos: position{line: 926, col: 12, offset: 26615}, + pos: position{line: 925, col: 12, offset: 26614}, name: "_", }, &litMatcher{ - pos: position{line: 926, col: 14, offset: 26617}, + pos: position{line: 925, col: 14, offset: 26616}, val: "*", ignoreCase: false, + want: "\"*\"", }, }, }, }, &actionExpr{ - pos: position{line: 927, col: 5, offset: 26645}, + pos: position{line: 926, col: 5, offset: 26644}, run: (*parser).callonSQLSelect7, expr: &seqExpr{ - pos: position{line: 927, col: 5, offset: 26645}, - exprs: []interface{}{ + pos: position{line: 926, col: 5, offset: 26644}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 927, col: 5, offset: 26645}, + pos: position{line: 926, col: 5, offset: 26644}, name: "SELECT", }, &ruleRefExpr{ - pos: position{line: 927, col: 12, offset: 26652}, + pos: position{line: 926, col: 12, offset: 26651}, name: "_", }, &labeledExpr{ - pos: position{line: 927, col: 14, offset: 26654}, + pos: position{line: 926, col: 14, offset: 26653}, label: "assignments", expr: &ruleRefExpr{ - pos: position{line: 927, col: 26, offset: 26666}, + pos: position{line: 926, col: 26, offset: 26665}, name: "SQLAssignments", }, }, @@ -7576,43 +7786,43 @@ var g = &grammar{ }, { name: "SQLAssignment", - pos: position{line: 929, col: 1, offset: 26710}, + pos: position{line: 928, col: 1, offset: 26709}, expr: &actionExpr{ - pos: position{line: 930, col: 5, offset: 26728}, + pos: position{line: 929, col: 5, offset: 26727}, run: (*parser).callonSQLAssignment1, expr: &seqExpr{ - pos: position{line: 930, col: 5, offset: 26728}, - exprs: []interface{}{ + pos: position{line: 929, col: 5, offset: 26727}, + exprs: []any{ &labeledExpr{ - pos: position{line: 930, col: 5, offset: 26728}, + pos: position{line: 929, col: 5, offset: 26727}, label: "rhs", expr: &ruleRefExpr{ - pos: position{line: 930, col: 9, offset: 26732}, + pos: position{line: 929, col: 9, offset: 26731}, name: "Expr", }, }, &labeledExpr{ - pos: position{line: 930, col: 14, offset: 26737}, + pos: position{line: 929, col: 14, offset: 26736}, label: "opt", expr: &zeroOrOneExpr{ - pos: position{line: 930, col: 18, offset: 26741}, + pos: position{line: 929, col: 18, offset: 26740}, expr: &seqExpr{ - pos: position{line: 930, col: 19, offset: 26742}, - exprs: []interface{}{ + pos: position{line: 929, col: 19, offset: 26741}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 930, col: 19, offset: 26742}, + pos: position{line: 929, col: 19, offset: 26741}, name: "_", }, &ruleRefExpr{ - pos: position{line: 930, col: 21, offset: 26744}, + pos: position{line: 929, col: 21, offset: 26743}, name: "AS", }, &ruleRefExpr{ - pos: position{line: 930, col: 24, offset: 26747}, + pos: position{line: 929, col: 24, offset: 26746}, name: "_", }, &ruleRefExpr{ - pos: position{line: 930, col: 26, offset: 26749}, + pos: position{line: 929, col: 26, offset: 26748}, name: "Lval", }, }, @@ -7625,50 +7835,51 @@ var g = &grammar{ }, { name: "SQLAssignments", - pos: position{line: 938, col: 1, offset: 26940}, + pos: position{line: 937, col: 1, offset: 26939}, expr: &actionExpr{ - pos: position{line: 939, col: 5, offset: 26959}, + pos: position{line: 938, col: 5, offset: 26958}, run: (*parser).callonSQLAssignments1, expr: &seqExpr{ - pos: position{line: 939, col: 5, offset: 26959}, - exprs: []interface{}{ + pos: position{line: 938, col: 5, offset: 26958}, + exprs: []any{ &labeledExpr{ - pos: position{line: 939, col: 5, offset: 26959}, + pos: position{line: 938, col: 5, offset: 26958}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 939, col: 11, offset: 26965}, + pos: position{line: 938, col: 11, offset: 26964}, name: "SQLAssignment", }, }, &labeledExpr{ - pos: position{line: 939, col: 25, offset: 26979}, + pos: position{line: 938, col: 25, offset: 26978}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 939, col: 30, offset: 26984}, + pos: position{line: 938, col: 30, offset: 26983}, expr: &actionExpr{ - pos: position{line: 939, col: 31, offset: 26985}, + pos: position{line: 938, col: 31, offset: 26984}, run: (*parser).callonSQLAssignments7, expr: &seqExpr{ - pos: position{line: 939, col: 31, offset: 26985}, - exprs: []interface{}{ + pos: position{line: 938, col: 31, offset: 26984}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 939, col: 31, offset: 26985}, + pos: position{line: 938, col: 31, offset: 26984}, name: "__", }, &litMatcher{ - pos: position{line: 939, col: 34, offset: 26988}, + pos: position{line: 938, col: 34, offset: 26987}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 939, col: 38, offset: 26992}, + pos: position{line: 938, col: 38, offset: 26991}, name: "__", }, &labeledExpr{ - pos: position{line: 939, col: 41, offset: 26995}, + pos: position{line: 938, col: 41, offset: 26994}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 939, col: 46, offset: 27000}, + pos: position{line: 938, col: 46, offset: 26999}, name: "SQLAssignment", }, }, @@ -7683,43 +7894,43 @@ var g = &grammar{ }, { name: "SQLFrom", - pos: position{line: 943, col: 1, offset: 27121}, + pos: position{line: 942, col: 1, offset: 27120}, expr: &choiceExpr{ - pos: position{line: 944, col: 5, offset: 27133}, - alternatives: []interface{}{ + pos: position{line: 943, col: 5, offset: 27132}, + alternatives: []any{ &actionExpr{ - pos: position{line: 944, col: 5, offset: 27133}, + pos: position{line: 943, col: 5, offset: 27132}, run: (*parser).callonSQLFrom2, expr: &seqExpr{ - pos: position{line: 944, col: 5, offset: 27133}, - exprs: []interface{}{ + pos: position{line: 943, col: 5, offset: 27132}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 944, col: 5, offset: 27133}, + pos: position{line: 943, col: 5, offset: 27132}, name: "_", }, &ruleRefExpr{ - pos: position{line: 944, col: 7, offset: 27135}, + pos: position{line: 943, col: 7, offset: 27134}, name: "FROM", }, &ruleRefExpr{ - pos: position{line: 944, col: 12, offset: 27140}, + pos: position{line: 943, col: 12, offset: 27139}, name: "_", }, &labeledExpr{ - pos: position{line: 944, col: 14, offset: 27142}, + pos: position{line: 943, col: 14, offset: 27141}, label: "table", expr: &ruleRefExpr{ - pos: position{line: 944, col: 20, offset: 27148}, + pos: position{line: 943, col: 20, offset: 27147}, name: "SQLTable", }, }, &labeledExpr{ - pos: position{line: 944, col: 29, offset: 27157}, + pos: position{line: 943, col: 29, offset: 27156}, label: "alias", expr: &zeroOrOneExpr{ - pos: position{line: 944, col: 35, offset: 27163}, + pos: position{line: 943, col: 35, offset: 27162}, expr: &ruleRefExpr{ - pos: position{line: 944, col: 35, offset: 27163}, + pos: position{line: 943, col: 35, offset: 27162}, name: "SQLAlias", }, }, @@ -7728,27 +7939,28 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 947, col: 5, offset: 27258}, + pos: position{line: 946, col: 5, offset: 27257}, run: (*parser).callonSQLFrom12, expr: &seqExpr{ - pos: position{line: 947, col: 5, offset: 27258}, - exprs: []interface{}{ + pos: position{line: 946, col: 5, offset: 27257}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 947, col: 5, offset: 27258}, + pos: position{line: 946, col: 5, offset: 27257}, name: "_", }, &ruleRefExpr{ - pos: position{line: 947, col: 7, offset: 27260}, + pos: position{line: 946, col: 7, offset: 27259}, name: "FROM", }, &ruleRefExpr{ - pos: position{line: 947, col: 12, offset: 27265}, + pos: position{line: 946, col: 12, offset: 27264}, name: "_", }, &litMatcher{ - pos: position{line: 947, col: 14, offset: 27267}, + pos: position{line: 946, col: 14, offset: 27266}, val: "*", ignoreCase: false, + want: "\"*\"", }, }, }, @@ -7758,33 +7970,33 @@ var g = &grammar{ }, { name: "SQLAlias", - pos: position{line: 949, col: 1, offset: 27292}, + pos: position{line: 948, col: 1, offset: 27291}, expr: &choiceExpr{ - pos: position{line: 950, col: 5, offset: 27305}, - alternatives: []interface{}{ + pos: position{line: 949, col: 5, offset: 27304}, + alternatives: []any{ &actionExpr{ - pos: position{line: 950, col: 5, offset: 27305}, + pos: position{line: 949, col: 5, offset: 27304}, run: (*parser).callonSQLAlias2, expr: &seqExpr{ - pos: position{line: 950, col: 5, offset: 27305}, - exprs: []interface{}{ + pos: position{line: 949, col: 5, offset: 27304}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 950, col: 5, offset: 27305}, + pos: position{line: 949, col: 5, offset: 27304}, name: "_", }, &ruleRefExpr{ - pos: position{line: 950, col: 7, offset: 27307}, + pos: position{line: 949, col: 7, offset: 27306}, name: "AS", }, &ruleRefExpr{ - pos: position{line: 950, col: 10, offset: 27310}, + pos: position{line: 949, col: 10, offset: 27309}, name: "_", }, &labeledExpr{ - pos: position{line: 950, col: 12, offset: 27312}, + pos: position{line: 949, col: 12, offset: 27311}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 950, col: 15, offset: 27315}, + pos: position{line: 949, col: 15, offset: 27314}, name: "Lval", }, }, @@ -7792,36 +8004,36 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 951, col: 5, offset: 27343}, + pos: position{line: 950, col: 5, offset: 27342}, run: (*parser).callonSQLAlias9, expr: &seqExpr{ - pos: position{line: 951, col: 5, offset: 27343}, - exprs: []interface{}{ + pos: position{line: 950, col: 5, offset: 27342}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 951, col: 5, offset: 27343}, + pos: position{line: 950, col: 5, offset: 27342}, name: "_", }, ¬Expr{ - pos: position{line: 951, col: 7, offset: 27345}, + pos: position{line: 950, col: 7, offset: 27344}, expr: &seqExpr{ - pos: position{line: 951, col: 9, offset: 27347}, - exprs: []interface{}{ + pos: position{line: 950, col: 9, offset: 27346}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 951, col: 9, offset: 27347}, + pos: position{line: 950, col: 9, offset: 27346}, name: "SQLTokenSentinels", }, &ruleRefExpr{ - pos: position{line: 951, col: 27, offset: 27365}, + pos: position{line: 950, col: 27, offset: 27364}, name: "_", }, }, }, }, &labeledExpr{ - pos: position{line: 951, col: 30, offset: 27368}, + pos: position{line: 950, col: 30, offset: 27367}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 951, col: 33, offset: 27371}, + pos: position{line: 950, col: 33, offset: 27370}, name: "Lval", }, }, @@ -7833,42 +8045,42 @@ var g = &grammar{ }, { name: "SQLTable", - pos: position{line: 953, col: 1, offset: 27396}, + pos: position{line: 952, col: 1, offset: 27395}, expr: &ruleRefExpr{ - pos: position{line: 954, col: 5, offset: 27409}, + pos: position{line: 953, col: 5, offset: 27408}, name: "Expr", }, }, { name: "SQLJoins", - pos: position{line: 956, col: 1, offset: 27415}, + pos: position{line: 955, col: 1, offset: 27414}, expr: &actionExpr{ - pos: position{line: 957, col: 5, offset: 27428}, + pos: position{line: 956, col: 5, offset: 27427}, run: (*parser).callonSQLJoins1, expr: &seqExpr{ - pos: position{line: 957, col: 5, offset: 27428}, - exprs: []interface{}{ + pos: position{line: 956, col: 5, offset: 27427}, + exprs: []any{ &labeledExpr{ - pos: position{line: 957, col: 5, offset: 27428}, + pos: position{line: 956, col: 5, offset: 27427}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 957, col: 11, offset: 27434}, + pos: position{line: 956, col: 11, offset: 27433}, name: "SQLJoin", }, }, &labeledExpr{ - pos: position{line: 957, col: 19, offset: 27442}, + pos: position{line: 956, col: 19, offset: 27441}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 957, col: 24, offset: 27447}, + pos: position{line: 956, col: 24, offset: 27446}, expr: &actionExpr{ - pos: position{line: 957, col: 25, offset: 27448}, + pos: position{line: 956, col: 25, offset: 27447}, run: (*parser).callonSQLJoins7, expr: &labeledExpr{ - pos: position{line: 957, col: 25, offset: 27448}, + pos: position{line: 956, col: 25, offset: 27447}, label: "join", expr: &ruleRefExpr{ - pos: position{line: 957, col: 30, offset: 27453}, + pos: position{line: 956, col: 30, offset: 27452}, name: "SQLJoin", }, }, @@ -7881,90 +8093,91 @@ var g = &grammar{ }, { name: "SQLJoin", - pos: position{line: 961, col: 1, offset: 27568}, + pos: position{line: 960, col: 1, offset: 27567}, expr: &actionExpr{ - pos: position{line: 962, col: 5, offset: 27580}, + pos: position{line: 961, col: 5, offset: 27579}, run: (*parser).callonSQLJoin1, expr: &seqExpr{ - pos: position{line: 962, col: 5, offset: 27580}, - exprs: []interface{}{ + pos: position{line: 961, col: 5, offset: 27579}, + exprs: []any{ &labeledExpr{ - pos: position{line: 962, col: 5, offset: 27580}, + pos: position{line: 961, col: 5, offset: 27579}, label: "style", expr: &ruleRefExpr{ - pos: position{line: 962, col: 11, offset: 27586}, + pos: position{line: 961, col: 11, offset: 27585}, name: "SQLJoinStyle", }, }, &ruleRefExpr{ - pos: position{line: 962, col: 24, offset: 27599}, + pos: position{line: 961, col: 24, offset: 27598}, name: "_", }, &ruleRefExpr{ - pos: position{line: 962, col: 26, offset: 27601}, + pos: position{line: 961, col: 26, offset: 27600}, name: "JOIN", }, &ruleRefExpr{ - pos: position{line: 962, col: 31, offset: 27606}, + pos: position{line: 961, col: 31, offset: 27605}, name: "_", }, &labeledExpr{ - pos: position{line: 962, col: 33, offset: 27608}, + pos: position{line: 961, col: 33, offset: 27607}, label: "table", expr: &ruleRefExpr{ - pos: position{line: 962, col: 39, offset: 27614}, + pos: position{line: 961, col: 39, offset: 27613}, name: "SQLTable", }, }, &labeledExpr{ - pos: position{line: 962, col: 48, offset: 27623}, + pos: position{line: 961, col: 48, offset: 27622}, label: "alias", expr: &zeroOrOneExpr{ - pos: position{line: 962, col: 54, offset: 27629}, + pos: position{line: 961, col: 54, offset: 27628}, expr: &ruleRefExpr{ - pos: position{line: 962, col: 54, offset: 27629}, + pos: position{line: 961, col: 54, offset: 27628}, name: "SQLAlias", }, }, }, &ruleRefExpr{ - pos: position{line: 962, col: 64, offset: 27639}, + pos: position{line: 961, col: 64, offset: 27638}, name: "_", }, &ruleRefExpr{ - pos: position{line: 962, col: 66, offset: 27641}, + pos: position{line: 961, col: 66, offset: 27640}, name: "ON", }, &ruleRefExpr{ - pos: position{line: 962, col: 69, offset: 27644}, + pos: position{line: 961, col: 69, offset: 27643}, name: "_", }, &labeledExpr{ - pos: position{line: 962, col: 71, offset: 27646}, + pos: position{line: 961, col: 71, offset: 27645}, label: "leftKey", expr: &ruleRefExpr{ - pos: position{line: 962, col: 79, offset: 27654}, + pos: position{line: 961, col: 79, offset: 27653}, name: "JoinKey", }, }, &ruleRefExpr{ - pos: position{line: 962, col: 87, offset: 27662}, + pos: position{line: 961, col: 87, offset: 27661}, name: "__", }, &litMatcher{ - pos: position{line: 962, col: 90, offset: 27665}, + pos: position{line: 961, col: 90, offset: 27664}, val: "=", ignoreCase: false, + want: "\"=\"", }, &ruleRefExpr{ - pos: position{line: 962, col: 94, offset: 27669}, + pos: position{line: 961, col: 94, offset: 27668}, name: "__", }, &labeledExpr{ - pos: position{line: 962, col: 97, offset: 27672}, + pos: position{line: 961, col: 97, offset: 27671}, label: "rightKey", expr: &ruleRefExpr{ - pos: position{line: 962, col: 106, offset: 27681}, + pos: position{line: 961, col: 106, offset: 27680}, name: "JoinKey", }, }, @@ -7974,40 +8187,40 @@ var g = &grammar{ }, { name: "SQLJoinStyle", - pos: position{line: 977, col: 1, offset: 27912}, + pos: position{line: 976, col: 1, offset: 27911}, expr: &choiceExpr{ - pos: position{line: 978, col: 5, offset: 27929}, - alternatives: []interface{}{ + pos: position{line: 977, col: 5, offset: 27928}, + alternatives: []any{ &actionExpr{ - pos: position{line: 978, col: 5, offset: 27929}, + pos: position{line: 977, col: 5, offset: 27928}, run: (*parser).callonSQLJoinStyle2, expr: &seqExpr{ - pos: position{line: 978, col: 5, offset: 27929}, - exprs: []interface{}{ + pos: position{line: 977, col: 5, offset: 27928}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 978, col: 5, offset: 27929}, + pos: position{line: 977, col: 5, offset: 27928}, name: "_", }, &labeledExpr{ - pos: position{line: 978, col: 7, offset: 27931}, + pos: position{line: 977, col: 7, offset: 27930}, label: "style", expr: &choiceExpr{ - pos: position{line: 978, col: 14, offset: 27938}, - alternatives: []interface{}{ + pos: position{line: 977, col: 14, offset: 27937}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 978, col: 14, offset: 27938}, + pos: position{line: 977, col: 14, offset: 27937}, name: "ANTI", }, &ruleRefExpr{ - pos: position{line: 978, col: 21, offset: 27945}, + pos: position{line: 977, col: 21, offset: 27944}, name: "INNER", }, &ruleRefExpr{ - pos: position{line: 978, col: 29, offset: 27953}, + pos: position{line: 977, col: 29, offset: 27952}, name: "LEFT", }, &ruleRefExpr{ - pos: position{line: 978, col: 36, offset: 27960}, + pos: position{line: 977, col: 36, offset: 27959}, name: "RIGHT", }, }, @@ -8017,12 +8230,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 979, col: 5, offset: 27993}, + pos: position{line: 978, col: 5, offset: 27992}, run: (*parser).callonSQLJoinStyle11, expr: &litMatcher{ - pos: position{line: 979, col: 5, offset: 27993}, + pos: position{line: 978, col: 5, offset: 27992}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -8030,30 +8244,30 @@ var g = &grammar{ }, { name: "SQLWhere", - pos: position{line: 981, col: 1, offset: 28021}, + pos: position{line: 980, col: 1, offset: 28020}, expr: &actionExpr{ - pos: position{line: 982, col: 5, offset: 28034}, + pos: position{line: 981, col: 5, offset: 28033}, run: (*parser).callonSQLWhere1, expr: &seqExpr{ - pos: position{line: 982, col: 5, offset: 28034}, - exprs: []interface{}{ + pos: position{line: 981, col: 5, offset: 28033}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 982, col: 5, offset: 28034}, + pos: position{line: 981, col: 5, offset: 28033}, name: "_", }, &ruleRefExpr{ - pos: position{line: 982, col: 7, offset: 28036}, + pos: position{line: 981, col: 7, offset: 28035}, name: "WHERE", }, &ruleRefExpr{ - pos: position{line: 982, col: 13, offset: 28042}, + pos: position{line: 981, col: 13, offset: 28041}, name: "_", }, &labeledExpr{ - pos: position{line: 982, col: 15, offset: 28044}, + pos: position{line: 981, col: 15, offset: 28043}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 982, col: 20, offset: 28049}, + pos: position{line: 981, col: 20, offset: 28048}, name: "LogicalOrExpr", }, }, @@ -8063,38 +8277,38 @@ var g = &grammar{ }, { name: "SQLGroupBy", - pos: position{line: 984, col: 1, offset: 28085}, + pos: position{line: 983, col: 1, offset: 28084}, expr: &actionExpr{ - pos: position{line: 985, col: 5, offset: 28100}, + pos: position{line: 984, col: 5, offset: 28099}, run: (*parser).callonSQLGroupBy1, expr: &seqExpr{ - pos: position{line: 985, col: 5, offset: 28100}, - exprs: []interface{}{ + pos: position{line: 984, col: 5, offset: 28099}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 985, col: 5, offset: 28100}, + pos: position{line: 984, col: 5, offset: 28099}, name: "_", }, &ruleRefExpr{ - pos: position{line: 985, col: 7, offset: 28102}, + pos: position{line: 984, col: 7, offset: 28101}, name: "GROUP", }, &ruleRefExpr{ - pos: position{line: 985, col: 13, offset: 28108}, + pos: position{line: 984, col: 13, offset: 28107}, name: "_", }, &ruleRefExpr{ - pos: position{line: 985, col: 15, offset: 28110}, + pos: position{line: 984, col: 15, offset: 28109}, name: "BY", }, &ruleRefExpr{ - pos: position{line: 985, col: 18, offset: 28113}, + pos: position{line: 984, col: 18, offset: 28112}, name: "_", }, &labeledExpr{ - pos: position{line: 985, col: 20, offset: 28115}, + pos: position{line: 984, col: 20, offset: 28114}, label: "columns", expr: &ruleRefExpr{ - pos: position{line: 985, col: 28, offset: 28123}, + pos: position{line: 984, col: 28, offset: 28122}, name: "FieldExprs", }, }, @@ -8104,30 +8318,30 @@ var g = &grammar{ }, { name: "SQLHaving", - pos: position{line: 987, col: 1, offset: 28159}, + pos: position{line: 986, col: 1, offset: 28158}, expr: &actionExpr{ - pos: position{line: 988, col: 5, offset: 28173}, + pos: position{line: 987, col: 5, offset: 28172}, run: (*parser).callonSQLHaving1, expr: &seqExpr{ - pos: position{line: 988, col: 5, offset: 28173}, - exprs: []interface{}{ + pos: position{line: 987, col: 5, offset: 28172}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 988, col: 5, offset: 28173}, + pos: position{line: 987, col: 5, offset: 28172}, name: "_", }, &ruleRefExpr{ - pos: position{line: 988, col: 7, offset: 28175}, + pos: position{line: 987, col: 7, offset: 28174}, name: "HAVING", }, &ruleRefExpr{ - pos: position{line: 988, col: 14, offset: 28182}, + pos: position{line: 987, col: 14, offset: 28181}, name: "_", }, &labeledExpr{ - pos: position{line: 988, col: 16, offset: 28184}, + pos: position{line: 987, col: 16, offset: 28183}, label: "expr", expr: &ruleRefExpr{ - pos: position{line: 988, col: 21, offset: 28189}, + pos: position{line: 987, col: 21, offset: 28188}, name: "LogicalOrExpr", }, }, @@ -8137,46 +8351,46 @@ var g = &grammar{ }, { name: "SQLOrderBy", - pos: position{line: 990, col: 1, offset: 28225}, + pos: position{line: 989, col: 1, offset: 28224}, expr: &actionExpr{ - pos: position{line: 991, col: 5, offset: 28240}, + pos: position{line: 990, col: 5, offset: 28239}, run: (*parser).callonSQLOrderBy1, expr: &seqExpr{ - pos: position{line: 991, col: 5, offset: 28240}, - exprs: []interface{}{ + pos: position{line: 990, col: 5, offset: 28239}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 991, col: 5, offset: 28240}, + pos: position{line: 990, col: 5, offset: 28239}, name: "_", }, &ruleRefExpr{ - pos: position{line: 991, col: 7, offset: 28242}, + pos: position{line: 990, col: 7, offset: 28241}, name: "ORDER", }, &ruleRefExpr{ - pos: position{line: 991, col: 13, offset: 28248}, + pos: position{line: 990, col: 13, offset: 28247}, name: "_", }, &ruleRefExpr{ - pos: position{line: 991, col: 15, offset: 28250}, + pos: position{line: 990, col: 15, offset: 28249}, name: "BY", }, &ruleRefExpr{ - pos: position{line: 991, col: 18, offset: 28253}, + pos: position{line: 990, col: 18, offset: 28252}, name: "_", }, &labeledExpr{ - pos: position{line: 991, col: 20, offset: 28255}, + pos: position{line: 990, col: 20, offset: 28254}, label: "keys", expr: &ruleRefExpr{ - pos: position{line: 991, col: 25, offset: 28260}, + pos: position{line: 990, col: 25, offset: 28259}, name: "Exprs", }, }, &labeledExpr{ - pos: position{line: 991, col: 31, offset: 28266}, + pos: position{line: 990, col: 31, offset: 28265}, label: "order", expr: &ruleRefExpr{ - pos: position{line: 991, col: 37, offset: 28272}, + pos: position{line: 990, col: 37, offset: 28271}, name: "SQLOrder", }, }, @@ -8186,32 +8400,32 @@ var g = &grammar{ }, { name: "SQLOrder", - pos: position{line: 995, col: 1, offset: 28383}, + pos: position{line: 994, col: 1, offset: 28382}, expr: &choiceExpr{ - pos: position{line: 996, col: 5, offset: 28396}, - alternatives: []interface{}{ + pos: position{line: 995, col: 5, offset: 28395}, + alternatives: []any{ &actionExpr{ - pos: position{line: 996, col: 5, offset: 28396}, + pos: position{line: 995, col: 5, offset: 28395}, run: (*parser).callonSQLOrder2, expr: &seqExpr{ - pos: position{line: 996, col: 5, offset: 28396}, - exprs: []interface{}{ + pos: position{line: 995, col: 5, offset: 28395}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 996, col: 5, offset: 28396}, + pos: position{line: 995, col: 5, offset: 28395}, name: "_", }, &labeledExpr{ - pos: position{line: 996, col: 7, offset: 28398}, + pos: position{line: 995, col: 7, offset: 28397}, label: "dir", expr: &choiceExpr{ - pos: position{line: 996, col: 12, offset: 28403}, - alternatives: []interface{}{ + pos: position{line: 995, col: 12, offset: 28402}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 996, col: 12, offset: 28403}, + pos: position{line: 995, col: 12, offset: 28402}, name: "ASC", }, &ruleRefExpr{ - pos: position{line: 996, col: 18, offset: 28409}, + pos: position{line: 995, col: 18, offset: 28408}, name: "DESC", }, }, @@ -8221,12 +8435,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 997, col: 5, offset: 28439}, + pos: position{line: 996, col: 5, offset: 28438}, run: (*parser).callonSQLOrder9, expr: &litMatcher{ - pos: position{line: 997, col: 5, offset: 28439}, + pos: position{line: 996, col: 5, offset: 28438}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -8234,33 +8449,33 @@ var g = &grammar{ }, { name: "SQLLimit", - pos: position{line: 999, col: 1, offset: 28465}, + pos: position{line: 998, col: 1, offset: 28464}, expr: &choiceExpr{ - pos: position{line: 1000, col: 5, offset: 28478}, - alternatives: []interface{}{ + pos: position{line: 999, col: 5, offset: 28477}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1000, col: 5, offset: 28478}, + pos: position{line: 999, col: 5, offset: 28477}, run: (*parser).callonSQLLimit2, expr: &seqExpr{ - pos: position{line: 1000, col: 5, offset: 28478}, - exprs: []interface{}{ + pos: position{line: 999, col: 5, offset: 28477}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1000, col: 5, offset: 28478}, + pos: position{line: 999, col: 5, offset: 28477}, name: "_", }, &ruleRefExpr{ - pos: position{line: 1000, col: 7, offset: 28480}, + pos: position{line: 999, col: 7, offset: 28479}, name: "LIMIT", }, &ruleRefExpr{ - pos: position{line: 1000, col: 13, offset: 28486}, + pos: position{line: 999, col: 13, offset: 28485}, name: "_", }, &labeledExpr{ - pos: position{line: 1000, col: 15, offset: 28488}, + pos: position{line: 999, col: 15, offset: 28487}, label: "count", expr: &ruleRefExpr{ - pos: position{line: 1000, col: 21, offset: 28494}, + pos: position{line: 999, col: 21, offset: 28493}, name: "UInt", }, }, @@ -8268,12 +8483,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1001, col: 5, offset: 28525}, + pos: position{line: 1000, col: 5, offset: 28524}, run: (*parser).callonSQLLimit9, expr: &litMatcher{ - pos: position{line: 1001, col: 5, offset: 28525}, + pos: position{line: 1000, col: 5, offset: 28524}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -8281,269 +8497,286 @@ var g = &grammar{ }, { name: "SELECT", - pos: position{line: 1003, col: 1, offset: 28547}, + pos: position{line: 1002, col: 1, offset: 28546}, expr: &actionExpr{ - pos: position{line: 1003, col: 10, offset: 28556}, + pos: position{line: 1002, col: 10, offset: 28555}, run: (*parser).callonSELECT1, expr: &litMatcher{ - pos: position{line: 1003, col: 10, offset: 28556}, + pos: position{line: 1002, col: 10, offset: 28555}, val: "select", ignoreCase: true, + want: "\"select\"i", }, }, }, { name: "AS", - pos: position{line: 1004, col: 1, offset: 28591}, + pos: position{line: 1003, col: 1, offset: 28590}, expr: &actionExpr{ - pos: position{line: 1004, col: 6, offset: 28596}, + pos: position{line: 1003, col: 6, offset: 28595}, run: (*parser).callonAS1, expr: &litMatcher{ - pos: position{line: 1004, col: 6, offset: 28596}, + pos: position{line: 1003, col: 6, offset: 28595}, val: "as", ignoreCase: true, + want: "\"as\"i", }, }, }, { name: "FROM", - pos: position{line: 1005, col: 1, offset: 28623}, + pos: position{line: 1004, col: 1, offset: 28622}, expr: &actionExpr{ - pos: position{line: 1005, col: 8, offset: 28630}, + pos: position{line: 1004, col: 8, offset: 28629}, run: (*parser).callonFROM1, expr: &litMatcher{ - pos: position{line: 1005, col: 8, offset: 28630}, + pos: position{line: 1004, col: 8, offset: 28629}, val: "from", ignoreCase: true, + want: "\"from\"i", }, }, }, { name: "JOIN", - pos: position{line: 1006, col: 1, offset: 28661}, + pos: position{line: 1005, col: 1, offset: 28660}, expr: &actionExpr{ - pos: position{line: 1006, col: 8, offset: 28668}, + pos: position{line: 1005, col: 8, offset: 28667}, run: (*parser).callonJOIN1, expr: &litMatcher{ - pos: position{line: 1006, col: 8, offset: 28668}, + pos: position{line: 1005, col: 8, offset: 28667}, val: "join", ignoreCase: true, + want: "\"join\"i", }, }, }, { name: "WHERE", - pos: position{line: 1007, col: 1, offset: 28699}, + pos: position{line: 1006, col: 1, offset: 28698}, expr: &actionExpr{ - pos: position{line: 1007, col: 9, offset: 28707}, + pos: position{line: 1006, col: 9, offset: 28706}, run: (*parser).callonWHERE1, expr: &litMatcher{ - pos: position{line: 1007, col: 9, offset: 28707}, + pos: position{line: 1006, col: 9, offset: 28706}, val: "where", ignoreCase: true, + want: "\"where\"i", }, }, }, { name: "GROUP", - pos: position{line: 1008, col: 1, offset: 28740}, + pos: position{line: 1007, col: 1, offset: 28739}, expr: &actionExpr{ - pos: position{line: 1008, col: 9, offset: 28748}, + pos: position{line: 1007, col: 9, offset: 28747}, run: (*parser).callonGROUP1, expr: &litMatcher{ - pos: position{line: 1008, col: 9, offset: 28748}, + pos: position{line: 1007, col: 9, offset: 28747}, val: "group", ignoreCase: true, + want: "\"group\"i", }, }, }, { name: "BY", - pos: position{line: 1009, col: 1, offset: 28781}, + pos: position{line: 1008, col: 1, offset: 28780}, expr: &actionExpr{ - pos: position{line: 1009, col: 6, offset: 28786}, + pos: position{line: 1008, col: 6, offset: 28785}, run: (*parser).callonBY1, expr: &litMatcher{ - pos: position{line: 1009, col: 6, offset: 28786}, + pos: position{line: 1008, col: 6, offset: 28785}, val: "by", ignoreCase: true, + want: "\"by\"i", }, }, }, { name: "HAVING", - pos: position{line: 1010, col: 1, offset: 28813}, + pos: position{line: 1009, col: 1, offset: 28812}, expr: &actionExpr{ - pos: position{line: 1010, col: 10, offset: 28822}, + pos: position{line: 1009, col: 10, offset: 28821}, run: (*parser).callonHAVING1, expr: &litMatcher{ - pos: position{line: 1010, col: 10, offset: 28822}, + pos: position{line: 1009, col: 10, offset: 28821}, val: "having", ignoreCase: true, + want: "\"having\"i", }, }, }, { name: "ORDER", - pos: position{line: 1011, col: 1, offset: 28857}, + pos: position{line: 1010, col: 1, offset: 28856}, expr: &actionExpr{ - pos: position{line: 1011, col: 9, offset: 28865}, + pos: position{line: 1010, col: 9, offset: 28864}, run: (*parser).callonORDER1, expr: &litMatcher{ - pos: position{line: 1011, col: 9, offset: 28865}, + pos: position{line: 1010, col: 9, offset: 28864}, val: "order", ignoreCase: true, + want: "\"order\"i", }, }, }, { name: "ON", - pos: position{line: 1012, col: 1, offset: 28898}, + pos: position{line: 1011, col: 1, offset: 28897}, expr: &actionExpr{ - pos: position{line: 1012, col: 6, offset: 28903}, + pos: position{line: 1011, col: 6, offset: 28902}, run: (*parser).callonON1, expr: &litMatcher{ - pos: position{line: 1012, col: 6, offset: 28903}, + pos: position{line: 1011, col: 6, offset: 28902}, val: "on", ignoreCase: true, + want: "\"on\"i", }, }, }, { name: "LIMIT", - pos: position{line: 1013, col: 1, offset: 28930}, + pos: position{line: 1012, col: 1, offset: 28929}, expr: &actionExpr{ - pos: position{line: 1013, col: 9, offset: 28938}, + pos: position{line: 1012, col: 9, offset: 28937}, run: (*parser).callonLIMIT1, expr: &litMatcher{ - pos: position{line: 1013, col: 9, offset: 28938}, + pos: position{line: 1012, col: 9, offset: 28937}, val: "limit", ignoreCase: true, + want: "\"limit\"i", }, }, }, { name: "ASC", - pos: position{line: 1014, col: 1, offset: 28971}, + pos: position{line: 1013, col: 1, offset: 28970}, expr: &actionExpr{ - pos: position{line: 1014, col: 7, offset: 28977}, + pos: position{line: 1013, col: 7, offset: 28976}, run: (*parser).callonASC1, expr: &litMatcher{ - pos: position{line: 1014, col: 7, offset: 28977}, + pos: position{line: 1013, col: 7, offset: 28976}, val: "asc", ignoreCase: true, + want: "\"asc\"i", }, }, }, { name: "DESC", - pos: position{line: 1015, col: 1, offset: 29006}, + pos: position{line: 1014, col: 1, offset: 29005}, expr: &actionExpr{ - pos: position{line: 1015, col: 8, offset: 29013}, + pos: position{line: 1014, col: 8, offset: 29012}, run: (*parser).callonDESC1, expr: &litMatcher{ - pos: position{line: 1015, col: 8, offset: 29013}, + pos: position{line: 1014, col: 8, offset: 29012}, val: "desc", ignoreCase: true, + want: "\"desc\"i", }, }, }, { name: "ANTI", - pos: position{line: 1016, col: 1, offset: 29044}, + pos: position{line: 1015, col: 1, offset: 29043}, expr: &actionExpr{ - pos: position{line: 1016, col: 8, offset: 29051}, + pos: position{line: 1015, col: 8, offset: 29050}, run: (*parser).callonANTI1, expr: &litMatcher{ - pos: position{line: 1016, col: 8, offset: 29051}, + pos: position{line: 1015, col: 8, offset: 29050}, val: "anti", ignoreCase: true, + want: "\"anti\"i", }, }, }, { name: "LEFT", - pos: position{line: 1017, col: 1, offset: 29082}, + pos: position{line: 1016, col: 1, offset: 29081}, expr: &actionExpr{ - pos: position{line: 1017, col: 8, offset: 29089}, + pos: position{line: 1016, col: 8, offset: 29088}, run: (*parser).callonLEFT1, expr: &litMatcher{ - pos: position{line: 1017, col: 8, offset: 29089}, + pos: position{line: 1016, col: 8, offset: 29088}, val: "left", ignoreCase: true, + want: "\"left\"i", }, }, }, { name: "RIGHT", - pos: position{line: 1018, col: 1, offset: 29120}, + pos: position{line: 1017, col: 1, offset: 29119}, expr: &actionExpr{ - pos: position{line: 1018, col: 9, offset: 29128}, + pos: position{line: 1017, col: 9, offset: 29127}, run: (*parser).callonRIGHT1, expr: &litMatcher{ - pos: position{line: 1018, col: 9, offset: 29128}, + pos: position{line: 1017, col: 9, offset: 29127}, val: "right", ignoreCase: true, + want: "\"right\"i", }, }, }, { name: "INNER", - pos: position{line: 1019, col: 1, offset: 29161}, + pos: position{line: 1018, col: 1, offset: 29160}, expr: &actionExpr{ - pos: position{line: 1019, col: 9, offset: 29169}, + pos: position{line: 1018, col: 9, offset: 29168}, run: (*parser).callonINNER1, expr: &litMatcher{ - pos: position{line: 1019, col: 9, offset: 29169}, + pos: position{line: 1018, col: 9, offset: 29168}, val: "inner", ignoreCase: true, + want: "\"inner\"i", }, }, }, { name: "SQLTokenSentinels", - pos: position{line: 1021, col: 1, offset: 29203}, + pos: position{line: 1020, col: 1, offset: 29202}, expr: &choiceExpr{ - pos: position{line: 1022, col: 5, offset: 29225}, - alternatives: []interface{}{ + pos: position{line: 1021, col: 5, offset: 29224}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1022, col: 5, offset: 29225}, + pos: position{line: 1021, col: 5, offset: 29224}, name: "SELECT", }, &ruleRefExpr{ - pos: position{line: 1022, col: 14, offset: 29234}, + pos: position{line: 1021, col: 14, offset: 29233}, name: "AS", }, &ruleRefExpr{ - pos: position{line: 1022, col: 19, offset: 29239}, + pos: position{line: 1021, col: 19, offset: 29238}, name: "FROM", }, &ruleRefExpr{ - pos: position{line: 1022, col: 26, offset: 29246}, + pos: position{line: 1021, col: 26, offset: 29245}, name: "JOIN", }, &ruleRefExpr{ - pos: position{line: 1022, col: 33, offset: 29253}, + pos: position{line: 1021, col: 33, offset: 29252}, name: "WHERE", }, &ruleRefExpr{ - pos: position{line: 1022, col: 41, offset: 29261}, + pos: position{line: 1021, col: 41, offset: 29260}, name: "GROUP", }, &ruleRefExpr{ - pos: position{line: 1022, col: 49, offset: 29269}, + pos: position{line: 1021, col: 49, offset: 29268}, name: "HAVING", }, &ruleRefExpr{ - pos: position{line: 1022, col: 58, offset: 29278}, + pos: position{line: 1021, col: 58, offset: 29277}, name: "ORDER", }, &ruleRefExpr{ - pos: position{line: 1022, col: 66, offset: 29286}, + pos: position{line: 1021, col: 66, offset: 29285}, name: "LIMIT", }, &ruleRefExpr{ - pos: position{line: 1022, col: 74, offset: 29294}, + pos: position{line: 1021, col: 74, offset: 29293}, name: "ON", }, }, @@ -8551,52 +8784,52 @@ var g = &grammar{ }, { name: "Literal", - pos: position{line: 1026, col: 1, offset: 29320}, + pos: position{line: 1025, col: 1, offset: 29319}, expr: &choiceExpr{ - pos: position{line: 1027, col: 5, offset: 29332}, - alternatives: []interface{}{ + pos: position{line: 1026, col: 5, offset: 29331}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1027, col: 5, offset: 29332}, + pos: position{line: 1026, col: 5, offset: 29331}, name: "TypeLiteral", }, &ruleRefExpr{ - pos: position{line: 1028, col: 5, offset: 29348}, + pos: position{line: 1027, col: 5, offset: 29347}, name: "TemplateLiteral", }, &ruleRefExpr{ - pos: position{line: 1029, col: 5, offset: 29368}, + pos: position{line: 1028, col: 5, offset: 29367}, name: "SubnetLiteral", }, &ruleRefExpr{ - pos: position{line: 1030, col: 5, offset: 29386}, + pos: position{line: 1029, col: 5, offset: 29385}, name: "AddressLiteral", }, &ruleRefExpr{ - pos: position{line: 1031, col: 5, offset: 29405}, + pos: position{line: 1030, col: 5, offset: 29404}, name: "BytesLiteral", }, &ruleRefExpr{ - pos: position{line: 1032, col: 5, offset: 29422}, + pos: position{line: 1031, col: 5, offset: 29421}, name: "Duration", }, &ruleRefExpr{ - pos: position{line: 1033, col: 5, offset: 29435}, + pos: position{line: 1032, col: 5, offset: 29434}, name: "Time", }, &ruleRefExpr{ - pos: position{line: 1034, col: 5, offset: 29444}, + pos: position{line: 1033, col: 5, offset: 29443}, name: "FloatLiteral", }, &ruleRefExpr{ - pos: position{line: 1035, col: 5, offset: 29461}, + pos: position{line: 1034, col: 5, offset: 29460}, name: "IntegerLiteral", }, &ruleRefExpr{ - pos: position{line: 1036, col: 5, offset: 29480}, + pos: position{line: 1035, col: 5, offset: 29479}, name: "BooleanLiteral", }, &ruleRefExpr{ - pos: position{line: 1037, col: 5, offset: 29499}, + pos: position{line: 1036, col: 5, offset: 29498}, name: "NullLiteral", }, }, @@ -8604,28 +8837,28 @@ var g = &grammar{ }, { name: "SubnetLiteral", - pos: position{line: 1039, col: 1, offset: 29512}, + pos: position{line: 1038, col: 1, offset: 29511}, expr: &choiceExpr{ - pos: position{line: 1040, col: 5, offset: 29530}, - alternatives: []interface{}{ + pos: position{line: 1039, col: 5, offset: 29529}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1040, col: 5, offset: 29530}, + pos: position{line: 1039, col: 5, offset: 29529}, run: (*parser).callonSubnetLiteral2, expr: &seqExpr{ - pos: position{line: 1040, col: 5, offset: 29530}, - exprs: []interface{}{ + pos: position{line: 1039, col: 5, offset: 29529}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1040, col: 5, offset: 29530}, + pos: position{line: 1039, col: 5, offset: 29529}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1040, col: 7, offset: 29532}, + pos: position{line: 1039, col: 7, offset: 29531}, name: "IP6Net", }, }, ¬Expr{ - pos: position{line: 1040, col: 14, offset: 29539}, + pos: position{line: 1039, col: 14, offset: 29538}, expr: &ruleRefExpr{ - pos: position{line: 1040, col: 15, offset: 29540}, + pos: position{line: 1039, col: 15, offset: 29539}, name: "IdentifierRest", }, }, @@ -8633,13 +8866,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1043, col: 5, offset: 29655}, + pos: position{line: 1042, col: 5, offset: 29654}, run: (*parser).callonSubnetLiteral8, expr: &labeledExpr{ - pos: position{line: 1043, col: 5, offset: 29655}, + pos: position{line: 1042, col: 5, offset: 29654}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1043, col: 7, offset: 29657}, + pos: position{line: 1042, col: 7, offset: 29656}, name: "IP4Net", }, }, @@ -8649,28 +8882,28 @@ var g = &grammar{ }, { name: "AddressLiteral", - pos: position{line: 1047, col: 1, offset: 29761}, + pos: position{line: 1046, col: 1, offset: 29760}, expr: &choiceExpr{ - pos: position{line: 1048, col: 5, offset: 29780}, - alternatives: []interface{}{ + pos: position{line: 1047, col: 5, offset: 29779}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1048, col: 5, offset: 29780}, + pos: position{line: 1047, col: 5, offset: 29779}, run: (*parser).callonAddressLiteral2, expr: &seqExpr{ - pos: position{line: 1048, col: 5, offset: 29780}, - exprs: []interface{}{ + pos: position{line: 1047, col: 5, offset: 29779}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1048, col: 5, offset: 29780}, + pos: position{line: 1047, col: 5, offset: 29779}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1048, col: 7, offset: 29782}, + pos: position{line: 1047, col: 7, offset: 29781}, name: "IP6", }, }, ¬Expr{ - pos: position{line: 1048, col: 11, offset: 29786}, + pos: position{line: 1047, col: 11, offset: 29785}, expr: &ruleRefExpr{ - pos: position{line: 1048, col: 12, offset: 29787}, + pos: position{line: 1047, col: 12, offset: 29786}, name: "IdentifierRest", }, }, @@ -8678,13 +8911,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1051, col: 5, offset: 29901}, + pos: position{line: 1050, col: 5, offset: 29900}, run: (*parser).callonAddressLiteral8, expr: &labeledExpr{ - pos: position{line: 1051, col: 5, offset: 29901}, + pos: position{line: 1050, col: 5, offset: 29900}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1051, col: 7, offset: 29903}, + pos: position{line: 1050, col: 7, offset: 29902}, name: "IP", }, }, @@ -8694,15 +8927,15 @@ var g = &grammar{ }, { name: "FloatLiteral", - pos: position{line: 1055, col: 1, offset: 30002}, + pos: position{line: 1054, col: 1, offset: 30001}, expr: &actionExpr{ - pos: position{line: 1056, col: 5, offset: 30019}, + pos: position{line: 1055, col: 5, offset: 30018}, run: (*parser).callonFloatLiteral1, expr: &labeledExpr{ - pos: position{line: 1056, col: 5, offset: 30019}, + pos: position{line: 1055, col: 5, offset: 30018}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1056, col: 7, offset: 30021}, + pos: position{line: 1055, col: 7, offset: 30020}, name: "FloatString", }, }, @@ -8710,15 +8943,15 @@ var g = &grammar{ }, { name: "IntegerLiteral", - pos: position{line: 1060, col: 1, offset: 30134}, + pos: position{line: 1059, col: 1, offset: 30133}, expr: &actionExpr{ - pos: position{line: 1061, col: 5, offset: 30153}, + pos: position{line: 1060, col: 5, offset: 30152}, run: (*parser).callonIntegerLiteral1, expr: &labeledExpr{ - pos: position{line: 1061, col: 5, offset: 30153}, + pos: position{line: 1060, col: 5, offset: 30152}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1061, col: 7, offset: 30155}, + pos: position{line: 1060, col: 7, offset: 30154}, name: "IntString", }, }, @@ -8726,23 +8959,23 @@ var g = &grammar{ }, { name: "BooleanLiteral", - pos: position{line: 1065, col: 1, offset: 30264}, + pos: position{line: 1064, col: 1, offset: 30263}, expr: &choiceExpr{ - pos: position{line: 1066, col: 5, offset: 30283}, - alternatives: []interface{}{ + pos: position{line: 1065, col: 5, offset: 30282}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1066, col: 5, offset: 30283}, + pos: position{line: 1065, col: 5, offset: 30282}, run: (*parser).callonBooleanLiteral2, expr: &ruleRefExpr{ - pos: position{line: 1066, col: 5, offset: 30283}, + pos: position{line: 1065, col: 5, offset: 30282}, name: "TrueToken", }, }, &actionExpr{ - pos: position{line: 1067, col: 5, offset: 30390}, + pos: position{line: 1066, col: 5, offset: 30389}, run: (*parser).callonBooleanLiteral4, expr: &ruleRefExpr{ - pos: position{line: 1067, col: 5, offset: 30390}, + pos: position{line: 1066, col: 5, offset: 30389}, name: "FalseToken", }, }, @@ -8751,34 +8984,35 @@ var g = &grammar{ }, { name: "NullLiteral", - pos: position{line: 1069, col: 1, offset: 30495}, + pos: position{line: 1068, col: 1, offset: 30494}, expr: &actionExpr{ - pos: position{line: 1070, col: 5, offset: 30511}, + pos: position{line: 1069, col: 5, offset: 30510}, run: (*parser).callonNullLiteral1, expr: &ruleRefExpr{ - pos: position{line: 1070, col: 5, offset: 30511}, + pos: position{line: 1069, col: 5, offset: 30510}, name: "NullToken", }, }, }, { name: "BytesLiteral", - pos: position{line: 1072, col: 1, offset: 30610}, + pos: position{line: 1071, col: 1, offset: 30609}, expr: &actionExpr{ - pos: position{line: 1073, col: 5, offset: 30627}, + pos: position{line: 1072, col: 5, offset: 30626}, run: (*parser).callonBytesLiteral1, expr: &seqExpr{ - pos: position{line: 1073, col: 5, offset: 30627}, - exprs: []interface{}{ + pos: position{line: 1072, col: 5, offset: 30626}, + exprs: []any{ &litMatcher{ - pos: position{line: 1073, col: 5, offset: 30627}, + pos: position{line: 1072, col: 5, offset: 30626}, val: "0x", ignoreCase: false, + want: "\"0x\"", }, &zeroOrMoreExpr{ - pos: position{line: 1073, col: 10, offset: 30632}, + pos: position{line: 1072, col: 10, offset: 30631}, expr: &ruleRefExpr{ - pos: position{line: 1073, col: 10, offset: 30632}, + pos: position{line: 1072, col: 10, offset: 30631}, name: "HexDigit", }, }, @@ -8788,30 +9022,32 @@ var g = &grammar{ }, { name: "TypeLiteral", - pos: position{line: 1077, col: 1, offset: 30747}, + pos: position{line: 1076, col: 1, offset: 30746}, expr: &actionExpr{ - pos: position{line: 1078, col: 5, offset: 30763}, + pos: position{line: 1077, col: 5, offset: 30762}, run: (*parser).callonTypeLiteral1, expr: &seqExpr{ - pos: position{line: 1078, col: 5, offset: 30763}, - exprs: []interface{}{ + pos: position{line: 1077, col: 5, offset: 30762}, + exprs: []any{ &litMatcher{ - pos: position{line: 1078, col: 5, offset: 30763}, + pos: position{line: 1077, col: 5, offset: 30762}, val: "<", ignoreCase: false, + want: "\"<\"", }, &labeledExpr{ - pos: position{line: 1078, col: 9, offset: 30767}, + pos: position{line: 1077, col: 9, offset: 30766}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 1078, col: 13, offset: 30771}, + pos: position{line: 1077, col: 13, offset: 30770}, name: "Type", }, }, &litMatcher{ - pos: position{line: 1078, col: 18, offset: 30776}, + pos: position{line: 1077, col: 18, offset: 30775}, val: ">", ignoreCase: false, + want: "\">\"", }, }, }, @@ -8819,16 +9055,16 @@ var g = &grammar{ }, { name: "Type", - pos: position{line: 1082, col: 1, offset: 30865}, + pos: position{line: 1081, col: 1, offset: 30864}, expr: &choiceExpr{ - pos: position{line: 1083, col: 5, offset: 30874}, - alternatives: []interface{}{ + pos: position{line: 1082, col: 5, offset: 30873}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1083, col: 5, offset: 30874}, + pos: position{line: 1082, col: 5, offset: 30873}, name: "AmbiguousType", }, &ruleRefExpr{ - pos: position{line: 1084, col: 5, offset: 30892}, + pos: position{line: 1083, col: 5, offset: 30891}, name: "ComplexType", }, }, @@ -8836,28 +9072,28 @@ var g = &grammar{ }, { name: "AmbiguousType", - pos: position{line: 1086, col: 1, offset: 30905}, + pos: position{line: 1085, col: 1, offset: 30904}, expr: &choiceExpr{ - pos: position{line: 1087, col: 5, offset: 30923}, - alternatives: []interface{}{ + pos: position{line: 1086, col: 5, offset: 30922}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1087, col: 5, offset: 30923}, + pos: position{line: 1086, col: 5, offset: 30922}, run: (*parser).callonAmbiguousType2, expr: &seqExpr{ - pos: position{line: 1087, col: 5, offset: 30923}, - exprs: []interface{}{ + pos: position{line: 1086, col: 5, offset: 30922}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1087, col: 5, offset: 30923}, + pos: position{line: 1086, col: 5, offset: 30922}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 1087, col: 10, offset: 30928}, + pos: position{line: 1086, col: 10, offset: 30927}, name: "PrimitiveType", }, }, ¬Expr{ - pos: position{line: 1087, col: 24, offset: 30942}, + pos: position{line: 1086, col: 24, offset: 30941}, expr: &ruleRefExpr{ - pos: position{line: 1087, col: 25, offset: 30943}, + pos: position{line: 1086, col: 25, offset: 30942}, name: "IdentifierRest", }, }, @@ -8865,86 +9101,90 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1088, col: 5, offset: 30983}, + pos: position{line: 1087, col: 5, offset: 30982}, run: (*parser).callonAmbiguousType8, expr: &seqExpr{ - pos: position{line: 1088, col: 5, offset: 30983}, - exprs: []interface{}{ + pos: position{line: 1087, col: 5, offset: 30982}, + exprs: []any{ &litMatcher{ - pos: position{line: 1088, col: 5, offset: 30983}, + pos: position{line: 1087, col: 5, offset: 30982}, val: "error", ignoreCase: false, + want: "\"error\"", }, &ruleRefExpr{ - pos: position{line: 1088, col: 13, offset: 30991}, + pos: position{line: 1087, col: 13, offset: 30990}, name: "__", }, &litMatcher{ - pos: position{line: 1088, col: 16, offset: 30994}, + pos: position{line: 1087, col: 16, offset: 30993}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 1088, col: 20, offset: 30998}, + pos: position{line: 1087, col: 20, offset: 30997}, name: "__", }, &labeledExpr{ - pos: position{line: 1088, col: 23, offset: 31001}, + pos: position{line: 1087, col: 23, offset: 31000}, label: "t", expr: &ruleRefExpr{ - pos: position{line: 1088, col: 25, offset: 31003}, + pos: position{line: 1087, col: 25, offset: 31002}, name: "Type", }, }, &ruleRefExpr{ - pos: position{line: 1088, col: 30, offset: 31008}, + pos: position{line: 1087, col: 30, offset: 31007}, name: "__", }, &litMatcher{ - pos: position{line: 1088, col: 33, offset: 31011}, + pos: position{line: 1087, col: 33, offset: 31010}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, }, &actionExpr{ - pos: position{line: 1091, col: 5, offset: 31100}, + pos: position{line: 1090, col: 5, offset: 31099}, run: (*parser).callonAmbiguousType18, expr: &seqExpr{ - pos: position{line: 1091, col: 5, offset: 31100}, - exprs: []interface{}{ + pos: position{line: 1090, col: 5, offset: 31099}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1091, col: 5, offset: 31100}, + pos: position{line: 1090, col: 5, offset: 31099}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 1091, col: 10, offset: 31105}, + pos: position{line: 1090, col: 10, offset: 31104}, name: "IdentifierName", }, }, &labeledExpr{ - pos: position{line: 1091, col: 25, offset: 31120}, + pos: position{line: 1090, col: 25, offset: 31119}, label: "opt", expr: &zeroOrOneExpr{ - pos: position{line: 1091, col: 29, offset: 31124}, + pos: position{line: 1090, col: 29, offset: 31123}, expr: &seqExpr{ - pos: position{line: 1091, col: 30, offset: 31125}, - exprs: []interface{}{ + pos: position{line: 1090, col: 30, offset: 31124}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1091, col: 30, offset: 31125}, + pos: position{line: 1090, col: 30, offset: 31124}, name: "__", }, &litMatcher{ - pos: position{line: 1091, col: 33, offset: 31128}, + pos: position{line: 1090, col: 33, offset: 31127}, val: "=", ignoreCase: false, + want: "\"=\"", }, &ruleRefExpr{ - pos: position{line: 1091, col: 37, offset: 31132}, + pos: position{line: 1090, col: 37, offset: 31131}, name: "__", }, &ruleRefExpr{ - pos: position{line: 1091, col: 40, offset: 31135}, + pos: position{line: 1090, col: 40, offset: 31134}, name: "Type", }, }, @@ -8955,44 +9195,46 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1097, col: 5, offset: 31367}, + pos: position{line: 1096, col: 5, offset: 31366}, run: (*parser).callonAmbiguousType29, expr: &labeledExpr{ - pos: position{line: 1097, col: 5, offset: 31367}, + pos: position{line: 1096, col: 5, offset: 31366}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 1097, col: 10, offset: 31372}, + pos: position{line: 1096, col: 10, offset: 31371}, name: "QuotedString", }, }, }, &actionExpr{ - pos: position{line: 1100, col: 5, offset: 31472}, + pos: position{line: 1099, col: 5, offset: 31471}, run: (*parser).callonAmbiguousType32, expr: &seqExpr{ - pos: position{line: 1100, col: 5, offset: 31472}, - exprs: []interface{}{ + pos: position{line: 1099, col: 5, offset: 31471}, + exprs: []any{ &litMatcher{ - pos: position{line: 1100, col: 5, offset: 31472}, + pos: position{line: 1099, col: 5, offset: 31471}, val: "(", ignoreCase: false, + want: "\"(\"", }, &ruleRefExpr{ - pos: position{line: 1100, col: 9, offset: 31476}, + pos: position{line: 1099, col: 9, offset: 31475}, name: "__", }, &labeledExpr{ - pos: position{line: 1100, col: 12, offset: 31479}, + pos: position{line: 1099, col: 12, offset: 31478}, label: "u", expr: &ruleRefExpr{ - pos: position{line: 1100, col: 14, offset: 31481}, + pos: position{line: 1099, col: 14, offset: 31480}, name: "TypeUnion", }, }, &litMatcher{ - pos: position{line: 1100, col: 24, offset: 31491}, + pos: position{line: 1099, col: 24, offset: 31490}, val: ")", ignoreCase: false, + want: "\")\"", }, }, }, @@ -9002,15 +9244,15 @@ var g = &grammar{ }, { name: "TypeUnion", - pos: position{line: 1102, col: 1, offset: 31514}, + pos: position{line: 1101, col: 1, offset: 31513}, expr: &actionExpr{ - pos: position{line: 1103, col: 5, offset: 31528}, + pos: position{line: 1102, col: 5, offset: 31527}, run: (*parser).callonTypeUnion1, expr: &labeledExpr{ - pos: position{line: 1103, col: 5, offset: 31528}, + pos: position{line: 1102, col: 5, offset: 31527}, label: "types", expr: &ruleRefExpr{ - pos: position{line: 1103, col: 11, offset: 31534}, + pos: position{line: 1102, col: 11, offset: 31533}, name: "TypeList", }, }, @@ -9018,28 +9260,28 @@ var g = &grammar{ }, { name: "TypeList", - pos: position{line: 1107, col: 1, offset: 31630}, + pos: position{line: 1106, col: 1, offset: 31629}, expr: &actionExpr{ - pos: position{line: 1108, col: 5, offset: 31643}, + pos: position{line: 1107, col: 5, offset: 31642}, run: (*parser).callonTypeList1, expr: &seqExpr{ - pos: position{line: 1108, col: 5, offset: 31643}, - exprs: []interface{}{ + pos: position{line: 1107, col: 5, offset: 31642}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1108, col: 5, offset: 31643}, + pos: position{line: 1107, col: 5, offset: 31642}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 1108, col: 11, offset: 31649}, + pos: position{line: 1107, col: 11, offset: 31648}, name: "Type", }, }, &labeledExpr{ - pos: position{line: 1108, col: 16, offset: 31654}, + pos: position{line: 1107, col: 16, offset: 31653}, label: "rest", expr: &oneOrMoreExpr{ - pos: position{line: 1108, col: 21, offset: 31659}, + pos: position{line: 1107, col: 21, offset: 31658}, expr: &ruleRefExpr{ - pos: position{line: 1108, col: 21, offset: 31659}, + pos: position{line: 1107, col: 21, offset: 31658}, name: "TypeListTail", }, }, @@ -9050,31 +9292,32 @@ var g = &grammar{ }, { name: "TypeListTail", - pos: position{line: 1112, col: 1, offset: 31753}, + pos: position{line: 1111, col: 1, offset: 31752}, expr: &actionExpr{ - pos: position{line: 1112, col: 16, offset: 31768}, + pos: position{line: 1111, col: 16, offset: 31767}, run: (*parser).callonTypeListTail1, expr: &seqExpr{ - pos: position{line: 1112, col: 16, offset: 31768}, - exprs: []interface{}{ + pos: position{line: 1111, col: 16, offset: 31767}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1112, col: 16, offset: 31768}, + pos: position{line: 1111, col: 16, offset: 31767}, name: "__", }, &litMatcher{ - pos: position{line: 1112, col: 19, offset: 31771}, + pos: position{line: 1111, col: 19, offset: 31770}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 1112, col: 23, offset: 31775}, + pos: position{line: 1111, col: 23, offset: 31774}, name: "__", }, &labeledExpr{ - pos: position{line: 1112, col: 26, offset: 31778}, + pos: position{line: 1111, col: 26, offset: 31777}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 1112, col: 30, offset: 31782}, + pos: position{line: 1111, col: 30, offset: 31781}, name: "Type", }, }, @@ -9084,167 +9327,176 @@ var g = &grammar{ }, { name: "ComplexType", - pos: position{line: 1114, col: 1, offset: 31808}, + pos: position{line: 1113, col: 1, offset: 31807}, expr: &choiceExpr{ - pos: position{line: 1115, col: 5, offset: 31824}, - alternatives: []interface{}{ + pos: position{line: 1114, col: 5, offset: 31823}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1115, col: 5, offset: 31824}, + pos: position{line: 1114, col: 5, offset: 31823}, run: (*parser).callonComplexType2, expr: &seqExpr{ - pos: position{line: 1115, col: 5, offset: 31824}, - exprs: []interface{}{ + pos: position{line: 1114, col: 5, offset: 31823}, + exprs: []any{ &litMatcher{ - pos: position{line: 1115, col: 5, offset: 31824}, + pos: position{line: 1114, col: 5, offset: 31823}, val: "{", ignoreCase: false, + want: "\"{\"", }, &ruleRefExpr{ - pos: position{line: 1115, col: 9, offset: 31828}, + pos: position{line: 1114, col: 9, offset: 31827}, name: "__", }, &labeledExpr{ - pos: position{line: 1115, col: 12, offset: 31831}, + pos: position{line: 1114, col: 12, offset: 31830}, label: "fields", expr: &ruleRefExpr{ - pos: position{line: 1115, col: 19, offset: 31838}, + pos: position{line: 1114, col: 19, offset: 31837}, name: "TypeFieldList", }, }, &ruleRefExpr{ - pos: position{line: 1115, col: 33, offset: 31852}, + pos: position{line: 1114, col: 33, offset: 31851}, name: "__", }, &litMatcher{ - pos: position{line: 1115, col: 36, offset: 31855}, + pos: position{line: 1114, col: 36, offset: 31854}, val: "}", ignoreCase: false, + want: "\"}\"", }, }, }, }, &actionExpr{ - pos: position{line: 1118, col: 5, offset: 31952}, + pos: position{line: 1117, col: 5, offset: 31951}, run: (*parser).callonComplexType10, expr: &seqExpr{ - pos: position{line: 1118, col: 5, offset: 31952}, - exprs: []interface{}{ + pos: position{line: 1117, col: 5, offset: 31951}, + exprs: []any{ &litMatcher{ - pos: position{line: 1118, col: 5, offset: 31952}, + pos: position{line: 1117, col: 5, offset: 31951}, val: "[", ignoreCase: false, + want: "\"[\"", }, &ruleRefExpr{ - pos: position{line: 1118, col: 9, offset: 31956}, + pos: position{line: 1117, col: 9, offset: 31955}, name: "__", }, &labeledExpr{ - pos: position{line: 1118, col: 12, offset: 31959}, + pos: position{line: 1117, col: 12, offset: 31958}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 1118, col: 16, offset: 31963}, + pos: position{line: 1117, col: 16, offset: 31962}, name: "Type", }, }, &ruleRefExpr{ - pos: position{line: 1118, col: 21, offset: 31968}, + pos: position{line: 1117, col: 21, offset: 31967}, name: "__", }, &litMatcher{ - pos: position{line: 1118, col: 24, offset: 31971}, + pos: position{line: 1117, col: 24, offset: 31970}, val: "]", ignoreCase: false, + want: "\"]\"", }, }, }, }, &actionExpr{ - pos: position{line: 1121, col: 5, offset: 32062}, + pos: position{line: 1120, col: 5, offset: 32061}, run: (*parser).callonComplexType18, expr: &seqExpr{ - pos: position{line: 1121, col: 5, offset: 32062}, - exprs: []interface{}{ + pos: position{line: 1120, col: 5, offset: 32061}, + exprs: []any{ &litMatcher{ - pos: position{line: 1121, col: 5, offset: 32062}, + pos: position{line: 1120, col: 5, offset: 32061}, val: "|[", ignoreCase: false, + want: "\"|[\"", }, &ruleRefExpr{ - pos: position{line: 1121, col: 10, offset: 32067}, + pos: position{line: 1120, col: 10, offset: 32066}, name: "__", }, &labeledExpr{ - pos: position{line: 1121, col: 13, offset: 32070}, + pos: position{line: 1120, col: 13, offset: 32069}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 1121, col: 17, offset: 32074}, + pos: position{line: 1120, col: 17, offset: 32073}, name: "Type", }, }, &ruleRefExpr{ - pos: position{line: 1121, col: 22, offset: 32079}, + pos: position{line: 1120, col: 22, offset: 32078}, name: "__", }, &litMatcher{ - pos: position{line: 1121, col: 25, offset: 32082}, + pos: position{line: 1120, col: 25, offset: 32081}, val: "]|", ignoreCase: false, + want: "\"]|\"", }, }, }, }, &actionExpr{ - pos: position{line: 1124, col: 5, offset: 32172}, + pos: position{line: 1123, col: 5, offset: 32171}, run: (*parser).callonComplexType26, expr: &seqExpr{ - pos: position{line: 1124, col: 5, offset: 32172}, - exprs: []interface{}{ + pos: position{line: 1123, col: 5, offset: 32171}, + exprs: []any{ &litMatcher{ - pos: position{line: 1124, col: 5, offset: 32172}, + pos: position{line: 1123, col: 5, offset: 32171}, val: "|{", ignoreCase: false, + want: "\"|{\"", }, &ruleRefExpr{ - pos: position{line: 1124, col: 10, offset: 32177}, + pos: position{line: 1123, col: 10, offset: 32176}, name: "__", }, &labeledExpr{ - pos: position{line: 1124, col: 13, offset: 32180}, + pos: position{line: 1123, col: 13, offset: 32179}, label: "keyType", expr: &ruleRefExpr{ - pos: position{line: 1124, col: 21, offset: 32188}, + pos: position{line: 1123, col: 21, offset: 32187}, name: "Type", }, }, &ruleRefExpr{ - pos: position{line: 1124, col: 26, offset: 32193}, + pos: position{line: 1123, col: 26, offset: 32192}, name: "__", }, &litMatcher{ - pos: position{line: 1124, col: 29, offset: 32196}, + pos: position{line: 1123, col: 29, offset: 32195}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 1124, col: 33, offset: 32200}, + pos: position{line: 1123, col: 33, offset: 32199}, name: "__", }, &labeledExpr{ - pos: position{line: 1124, col: 36, offset: 32203}, + pos: position{line: 1123, col: 36, offset: 32202}, label: "valType", expr: &ruleRefExpr{ - pos: position{line: 1124, col: 44, offset: 32211}, + pos: position{line: 1123, col: 44, offset: 32210}, name: "Type", }, }, &ruleRefExpr{ - pos: position{line: 1124, col: 49, offset: 32216}, + pos: position{line: 1123, col: 49, offset: 32215}, name: "__", }, &litMatcher{ - pos: position{line: 1124, col: 52, offset: 32219}, + pos: position{line: 1123, col: 52, offset: 32218}, val: "}|", ignoreCase: false, + want: "\"}|\"", }, }, }, @@ -9254,15 +9506,15 @@ var g = &grammar{ }, { name: "TemplateLiteral", - pos: position{line: 1128, col: 1, offset: 32335}, + pos: position{line: 1127, col: 1, offset: 32334}, expr: &actionExpr{ - pos: position{line: 1129, col: 5, offset: 32355}, + pos: position{line: 1128, col: 5, offset: 32354}, run: (*parser).callonTemplateLiteral1, expr: &labeledExpr{ - pos: position{line: 1129, col: 5, offset: 32355}, + pos: position{line: 1128, col: 5, offset: 32354}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1129, col: 7, offset: 32357}, + pos: position{line: 1128, col: 7, offset: 32356}, name: "TemplateLiteralParts", }, }, @@ -9270,66 +9522,70 @@ var g = &grammar{ }, { name: "TemplateLiteralParts", - pos: position{line: 1136, col: 1, offset: 32573}, + pos: position{line: 1135, col: 1, offset: 32572}, expr: &choiceExpr{ - pos: position{line: 1137, col: 5, offset: 32598}, - alternatives: []interface{}{ + pos: position{line: 1136, col: 5, offset: 32597}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1137, col: 5, offset: 32598}, + pos: position{line: 1136, col: 5, offset: 32597}, run: (*parser).callonTemplateLiteralParts2, expr: &seqExpr{ - pos: position{line: 1137, col: 5, offset: 32598}, - exprs: []interface{}{ + pos: position{line: 1136, col: 5, offset: 32597}, + exprs: []any{ &litMatcher{ - pos: position{line: 1137, col: 5, offset: 32598}, + pos: position{line: 1136, col: 5, offset: 32597}, val: "\"", ignoreCase: false, + want: "\"\\\"\"", }, &labeledExpr{ - pos: position{line: 1137, col: 9, offset: 32602}, + pos: position{line: 1136, col: 9, offset: 32601}, label: "v", expr: &zeroOrMoreExpr{ - pos: position{line: 1137, col: 11, offset: 32604}, + pos: position{line: 1136, col: 11, offset: 32603}, expr: &ruleRefExpr{ - pos: position{line: 1137, col: 11, offset: 32604}, + pos: position{line: 1136, col: 11, offset: 32603}, name: "TemplateDoubleQuotedPart", }, }, }, &litMatcher{ - pos: position{line: 1137, col: 37, offset: 32630}, + pos: position{line: 1136, col: 37, offset: 32629}, val: "\"", ignoreCase: false, + want: "\"\\\"\"", }, }, }, }, &actionExpr{ - pos: position{line: 1138, col: 5, offset: 32656}, + pos: position{line: 1137, col: 5, offset: 32655}, run: (*parser).callonTemplateLiteralParts9, expr: &seqExpr{ - pos: position{line: 1138, col: 5, offset: 32656}, - exprs: []interface{}{ + pos: position{line: 1137, col: 5, offset: 32655}, + exprs: []any{ &litMatcher{ - pos: position{line: 1138, col: 5, offset: 32656}, + pos: position{line: 1137, col: 5, offset: 32655}, val: "'", ignoreCase: false, + want: "\"'\"", }, &labeledExpr{ - pos: position{line: 1138, col: 9, offset: 32660}, + pos: position{line: 1137, col: 9, offset: 32659}, label: "v", expr: &zeroOrMoreExpr{ - pos: position{line: 1138, col: 11, offset: 32662}, + pos: position{line: 1137, col: 11, offset: 32661}, expr: &ruleRefExpr{ - pos: position{line: 1138, col: 11, offset: 32662}, + pos: position{line: 1137, col: 11, offset: 32661}, name: "TemplateSingleQuotedPart", }, }, }, &litMatcher{ - pos: position{line: 1138, col: 37, offset: 32688}, + pos: position{line: 1137, col: 37, offset: 32687}, val: "'", ignoreCase: false, + want: "\"'\"", }, }, }, @@ -9339,24 +9595,24 @@ var g = &grammar{ }, { name: "TemplateDoubleQuotedPart", - pos: position{line: 1140, col: 1, offset: 32711}, + pos: position{line: 1139, col: 1, offset: 32710}, expr: &choiceExpr{ - pos: position{line: 1141, col: 5, offset: 32740}, - alternatives: []interface{}{ + pos: position{line: 1140, col: 5, offset: 32739}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1141, col: 5, offset: 32740}, + pos: position{line: 1140, col: 5, offset: 32739}, name: "TemplateExpr", }, &actionExpr{ - pos: position{line: 1142, col: 5, offset: 32757}, + pos: position{line: 1141, col: 5, offset: 32756}, run: (*parser).callonTemplateDoubleQuotedPart3, expr: &labeledExpr{ - pos: position{line: 1142, col: 5, offset: 32757}, + pos: position{line: 1141, col: 5, offset: 32756}, label: "v", expr: &oneOrMoreExpr{ - pos: position{line: 1142, col: 7, offset: 32759}, + pos: position{line: 1141, col: 7, offset: 32758}, expr: &ruleRefExpr{ - pos: position{line: 1142, col: 7, offset: 32759}, + pos: position{line: 1141, col: 7, offset: 32758}, name: "TemplateDoubleQuotedChar", }, }, @@ -9367,52 +9623,55 @@ var g = &grammar{ }, { name: "TemplateDoubleQuotedChar", - pos: position{line: 1146, col: 1, offset: 32896}, + pos: position{line: 1145, col: 1, offset: 32895}, expr: &choiceExpr{ - pos: position{line: 1147, col: 5, offset: 32925}, - alternatives: []interface{}{ + pos: position{line: 1146, col: 5, offset: 32924}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1147, col: 5, offset: 32925}, + pos: position{line: 1146, col: 5, offset: 32924}, run: (*parser).callonTemplateDoubleQuotedChar2, expr: &seqExpr{ - pos: position{line: 1147, col: 5, offset: 32925}, - exprs: []interface{}{ + pos: position{line: 1146, col: 5, offset: 32924}, + exprs: []any{ &litMatcher{ - pos: position{line: 1147, col: 5, offset: 32925}, + pos: position{line: 1146, col: 5, offset: 32924}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &labeledExpr{ - pos: position{line: 1147, col: 10, offset: 32930}, + pos: position{line: 1146, col: 10, offset: 32929}, label: "v", expr: &litMatcher{ - pos: position{line: 1147, col: 12, offset: 32932}, + pos: position{line: 1146, col: 12, offset: 32931}, val: "${", ignoreCase: false, + want: "\"${\"", }, }, }, }, }, &actionExpr{ - pos: position{line: 1148, col: 5, offset: 32959}, + pos: position{line: 1147, col: 5, offset: 32958}, run: (*parser).callonTemplateDoubleQuotedChar7, expr: &seqExpr{ - pos: position{line: 1148, col: 5, offset: 32959}, - exprs: []interface{}{ + pos: position{line: 1147, col: 5, offset: 32958}, + exprs: []any{ ¬Expr{ - pos: position{line: 1148, col: 5, offset: 32959}, + pos: position{line: 1147, col: 5, offset: 32958}, expr: &litMatcher{ - pos: position{line: 1148, col: 7, offset: 32961}, + pos: position{line: 1147, col: 7, offset: 32960}, val: "${", ignoreCase: false, + want: "\"${\"", }, }, &labeledExpr{ - pos: position{line: 1148, col: 13, offset: 32967}, + pos: position{line: 1147, col: 13, offset: 32966}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1148, col: 15, offset: 32969}, + pos: position{line: 1147, col: 15, offset: 32968}, name: "DoubleQuotedChar", }, }, @@ -9424,24 +9683,24 @@ var g = &grammar{ }, { name: "TemplateSingleQuotedPart", - pos: position{line: 1150, col: 1, offset: 33005}, + pos: position{line: 1149, col: 1, offset: 33004}, expr: &choiceExpr{ - pos: position{line: 1151, col: 5, offset: 33034}, - alternatives: []interface{}{ + pos: position{line: 1150, col: 5, offset: 33033}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1151, col: 5, offset: 33034}, + pos: position{line: 1150, col: 5, offset: 33033}, name: "TemplateExpr", }, &actionExpr{ - pos: position{line: 1152, col: 5, offset: 33051}, + pos: position{line: 1151, col: 5, offset: 33050}, run: (*parser).callonTemplateSingleQuotedPart3, expr: &labeledExpr{ - pos: position{line: 1152, col: 5, offset: 33051}, + pos: position{line: 1151, col: 5, offset: 33050}, label: "v", expr: &oneOrMoreExpr{ - pos: position{line: 1152, col: 7, offset: 33053}, + pos: position{line: 1151, col: 7, offset: 33052}, expr: &ruleRefExpr{ - pos: position{line: 1152, col: 7, offset: 33053}, + pos: position{line: 1151, col: 7, offset: 33052}, name: "TemplateSingleQuotedChar", }, }, @@ -9452,52 +9711,55 @@ var g = &grammar{ }, { name: "TemplateSingleQuotedChar", - pos: position{line: 1156, col: 1, offset: 33190}, + pos: position{line: 1155, col: 1, offset: 33189}, expr: &choiceExpr{ - pos: position{line: 1157, col: 5, offset: 33219}, - alternatives: []interface{}{ + pos: position{line: 1156, col: 5, offset: 33218}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1157, col: 5, offset: 33219}, + pos: position{line: 1156, col: 5, offset: 33218}, run: (*parser).callonTemplateSingleQuotedChar2, expr: &seqExpr{ - pos: position{line: 1157, col: 5, offset: 33219}, - exprs: []interface{}{ + pos: position{line: 1156, col: 5, offset: 33218}, + exprs: []any{ &litMatcher{ - pos: position{line: 1157, col: 5, offset: 33219}, + pos: position{line: 1156, col: 5, offset: 33218}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &labeledExpr{ - pos: position{line: 1157, col: 10, offset: 33224}, + pos: position{line: 1156, col: 10, offset: 33223}, label: "v", expr: &litMatcher{ - pos: position{line: 1157, col: 12, offset: 33226}, + pos: position{line: 1156, col: 12, offset: 33225}, val: "${", ignoreCase: false, + want: "\"${\"", }, }, }, }, }, &actionExpr{ - pos: position{line: 1158, col: 5, offset: 33253}, + pos: position{line: 1157, col: 5, offset: 33252}, run: (*parser).callonTemplateSingleQuotedChar7, expr: &seqExpr{ - pos: position{line: 1158, col: 5, offset: 33253}, - exprs: []interface{}{ + pos: position{line: 1157, col: 5, offset: 33252}, + exprs: []any{ ¬Expr{ - pos: position{line: 1158, col: 5, offset: 33253}, + pos: position{line: 1157, col: 5, offset: 33252}, expr: &litMatcher{ - pos: position{line: 1158, col: 7, offset: 33255}, + pos: position{line: 1157, col: 7, offset: 33254}, val: "${", ignoreCase: false, + want: "\"${\"", }, }, &labeledExpr{ - pos: position{line: 1158, col: 13, offset: 33261}, + pos: position{line: 1157, col: 13, offset: 33260}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1158, col: 15, offset: 33263}, + pos: position{line: 1157, col: 15, offset: 33262}, name: "SingleQuotedChar", }, }, @@ -9509,38 +9771,40 @@ var g = &grammar{ }, { name: "TemplateExpr", - pos: position{line: 1160, col: 1, offset: 33299}, + pos: position{line: 1159, col: 1, offset: 33298}, expr: &actionExpr{ - pos: position{line: 1161, col: 5, offset: 33316}, + pos: position{line: 1160, col: 5, offset: 33315}, run: (*parser).callonTemplateExpr1, expr: &seqExpr{ - pos: position{line: 1161, col: 5, offset: 33316}, - exprs: []interface{}{ + pos: position{line: 1160, col: 5, offset: 33315}, + exprs: []any{ &litMatcher{ - pos: position{line: 1161, col: 5, offset: 33316}, + pos: position{line: 1160, col: 5, offset: 33315}, val: "${", ignoreCase: false, + want: "\"${\"", }, &ruleRefExpr{ - pos: position{line: 1161, col: 10, offset: 33321}, + pos: position{line: 1160, col: 10, offset: 33320}, name: "__", }, &labeledExpr{ - pos: position{line: 1161, col: 13, offset: 33324}, + pos: position{line: 1160, col: 13, offset: 33323}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 1161, col: 15, offset: 33326}, + pos: position{line: 1160, col: 15, offset: 33325}, name: "Expr", }, }, &ruleRefExpr{ - pos: position{line: 1161, col: 20, offset: 33331}, + pos: position{line: 1160, col: 20, offset: 33330}, name: "__", }, &litMatcher{ - pos: position{line: 1161, col: 23, offset: 33334}, + pos: position{line: 1160, col: 23, offset: 33333}, val: "}", ignoreCase: false, + want: "\"}\"", }, }, }, @@ -9548,112 +9812,132 @@ var g = &grammar{ }, { name: "PrimitiveType", - pos: position{line: 1176, col: 1, offset: 33630}, + pos: position{line: 1175, col: 1, offset: 33629}, expr: &actionExpr{ - pos: position{line: 1177, col: 5, offset: 33648}, + pos: position{line: 1176, col: 5, offset: 33647}, run: (*parser).callonPrimitiveType1, expr: &choiceExpr{ - pos: position{line: 1177, col: 9, offset: 33652}, - alternatives: []interface{}{ + pos: position{line: 1176, col: 9, offset: 33651}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1177, col: 9, offset: 33652}, + pos: position{line: 1176, col: 9, offset: 33651}, val: "uint8", ignoreCase: false, + want: "\"uint8\"", }, &litMatcher{ - pos: position{line: 1177, col: 19, offset: 33662}, + pos: position{line: 1176, col: 19, offset: 33661}, val: "uint16", ignoreCase: false, + want: "\"uint16\"", }, &litMatcher{ - pos: position{line: 1177, col: 30, offset: 33673}, + pos: position{line: 1176, col: 30, offset: 33672}, val: "uint32", ignoreCase: false, + want: "\"uint32\"", }, &litMatcher{ - pos: position{line: 1177, col: 41, offset: 33684}, + pos: position{line: 1176, col: 41, offset: 33683}, val: "uint64", ignoreCase: false, + want: "\"uint64\"", }, &litMatcher{ - pos: position{line: 1178, col: 9, offset: 33701}, + pos: position{line: 1177, col: 9, offset: 33700}, val: "int8", ignoreCase: false, + want: "\"int8\"", }, &litMatcher{ - pos: position{line: 1178, col: 18, offset: 33710}, + pos: position{line: 1177, col: 18, offset: 33709}, val: "int16", ignoreCase: false, + want: "\"int16\"", }, &litMatcher{ - pos: position{line: 1178, col: 28, offset: 33720}, + pos: position{line: 1177, col: 28, offset: 33719}, val: "int32", ignoreCase: false, + want: "\"int32\"", }, &litMatcher{ - pos: position{line: 1178, col: 38, offset: 33730}, + pos: position{line: 1177, col: 38, offset: 33729}, val: "int64", ignoreCase: false, + want: "\"int64\"", }, &litMatcher{ - pos: position{line: 1179, col: 9, offset: 33746}, + pos: position{line: 1178, col: 9, offset: 33745}, val: "float16", ignoreCase: false, + want: "\"float16\"", }, &litMatcher{ - pos: position{line: 1179, col: 21, offset: 33758}, + pos: position{line: 1178, col: 21, offset: 33757}, val: "float32", ignoreCase: false, + want: "\"float32\"", }, &litMatcher{ - pos: position{line: 1179, col: 33, offset: 33770}, + pos: position{line: 1178, col: 33, offset: 33769}, val: "float64", ignoreCase: false, + want: "\"float64\"", }, &litMatcher{ - pos: position{line: 1180, col: 9, offset: 33788}, + pos: position{line: 1179, col: 9, offset: 33787}, val: "bool", ignoreCase: false, + want: "\"bool\"", }, &litMatcher{ - pos: position{line: 1180, col: 18, offset: 33797}, + pos: position{line: 1179, col: 18, offset: 33796}, val: "string", ignoreCase: false, + want: "\"string\"", }, &litMatcher{ - pos: position{line: 1181, col: 9, offset: 33814}, + pos: position{line: 1180, col: 9, offset: 33813}, val: "duration", ignoreCase: false, + want: "\"duration\"", }, &litMatcher{ - pos: position{line: 1181, col: 22, offset: 33827}, + pos: position{line: 1180, col: 22, offset: 33826}, val: "time", ignoreCase: false, + want: "\"time\"", }, &litMatcher{ - pos: position{line: 1182, col: 9, offset: 33842}, + pos: position{line: 1181, col: 9, offset: 33841}, val: "bytes", ignoreCase: false, + want: "\"bytes\"", }, &litMatcher{ - pos: position{line: 1183, col: 9, offset: 33858}, + pos: position{line: 1182, col: 9, offset: 33857}, val: "ip", ignoreCase: false, + want: "\"ip\"", }, &litMatcher{ - pos: position{line: 1183, col: 16, offset: 33865}, + pos: position{line: 1182, col: 16, offset: 33864}, val: "net", ignoreCase: false, + want: "\"net\"", }, &litMatcher{ - pos: position{line: 1184, col: 9, offset: 33879}, + pos: position{line: 1183, col: 9, offset: 33878}, val: "type", ignoreCase: false, + want: "\"type\"", }, &litMatcher{ - pos: position{line: 1184, col: 18, offset: 33888}, + pos: position{line: 1183, col: 18, offset: 33887}, val: "null", ignoreCase: false, + want: "\"null\"", }, }, }, @@ -9661,31 +9945,31 @@ var g = &grammar{ }, { name: "TypeFieldList", - pos: position{line: 1188, col: 1, offset: 34003}, + pos: position{line: 1187, col: 1, offset: 34002}, expr: &choiceExpr{ - pos: position{line: 1189, col: 5, offset: 34021}, - alternatives: []interface{}{ + pos: position{line: 1188, col: 5, offset: 34020}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1189, col: 5, offset: 34021}, + pos: position{line: 1188, col: 5, offset: 34020}, run: (*parser).callonTypeFieldList2, expr: &seqExpr{ - pos: position{line: 1189, col: 5, offset: 34021}, - exprs: []interface{}{ + pos: position{line: 1188, col: 5, offset: 34020}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1189, col: 5, offset: 34021}, + pos: position{line: 1188, col: 5, offset: 34020}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 1189, col: 11, offset: 34027}, + pos: position{line: 1188, col: 11, offset: 34026}, name: "TypeField", }, }, &labeledExpr{ - pos: position{line: 1189, col: 21, offset: 34037}, + pos: position{line: 1188, col: 21, offset: 34036}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 1189, col: 26, offset: 34042}, + pos: position{line: 1188, col: 26, offset: 34041}, expr: &ruleRefExpr{ - pos: position{line: 1189, col: 26, offset: 34042}, + pos: position{line: 1188, col: 26, offset: 34041}, name: "TypeFieldListTail", }, }, @@ -9694,12 +9978,13 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1192, col: 5, offset: 34144}, + pos: position{line: 1191, col: 5, offset: 34143}, run: (*parser).callonTypeFieldList9, expr: &litMatcher{ - pos: position{line: 1192, col: 5, offset: 34144}, + pos: position{line: 1191, col: 5, offset: 34143}, val: "", ignoreCase: false, + want: "\"\"", }, }, }, @@ -9707,31 +9992,32 @@ var g = &grammar{ }, { name: "TypeFieldListTail", - pos: position{line: 1194, col: 1, offset: 34168}, + pos: position{line: 1193, col: 1, offset: 34167}, expr: &actionExpr{ - pos: position{line: 1194, col: 21, offset: 34188}, + pos: position{line: 1193, col: 21, offset: 34187}, run: (*parser).callonTypeFieldListTail1, expr: &seqExpr{ - pos: position{line: 1194, col: 21, offset: 34188}, - exprs: []interface{}{ + pos: position{line: 1193, col: 21, offset: 34187}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1194, col: 21, offset: 34188}, + pos: position{line: 1193, col: 21, offset: 34187}, name: "__", }, &litMatcher{ - pos: position{line: 1194, col: 24, offset: 34191}, + pos: position{line: 1193, col: 24, offset: 34190}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 1194, col: 28, offset: 34195}, + pos: position{line: 1193, col: 28, offset: 34194}, name: "__", }, &labeledExpr{ - pos: position{line: 1194, col: 31, offset: 34198}, + pos: position{line: 1193, col: 31, offset: 34197}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 1194, col: 35, offset: 34202}, + pos: position{line: 1193, col: 35, offset: 34201}, name: "TypeField", }, }, @@ -9741,39 +10027,40 @@ var g = &grammar{ }, { name: "TypeField", - pos: position{line: 1196, col: 1, offset: 34233}, + pos: position{line: 1195, col: 1, offset: 34232}, expr: &actionExpr{ - pos: position{line: 1197, col: 5, offset: 34247}, + pos: position{line: 1196, col: 5, offset: 34246}, run: (*parser).callonTypeField1, expr: &seqExpr{ - pos: position{line: 1197, col: 5, offset: 34247}, - exprs: []interface{}{ + pos: position{line: 1196, col: 5, offset: 34246}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1197, col: 5, offset: 34247}, + pos: position{line: 1196, col: 5, offset: 34246}, label: "name", expr: &ruleRefExpr{ - pos: position{line: 1197, col: 10, offset: 34252}, + pos: position{line: 1196, col: 10, offset: 34251}, name: "FieldName", }, }, &ruleRefExpr{ - pos: position{line: 1197, col: 20, offset: 34262}, + pos: position{line: 1196, col: 20, offset: 34261}, name: "__", }, &litMatcher{ - pos: position{line: 1197, col: 23, offset: 34265}, + pos: position{line: 1196, col: 23, offset: 34264}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 1197, col: 27, offset: 34269}, + pos: position{line: 1196, col: 27, offset: 34268}, name: "__", }, &labeledExpr{ - pos: position{line: 1197, col: 30, offset: 34272}, + pos: position{line: 1196, col: 30, offset: 34271}, label: "typ", expr: &ruleRefExpr{ - pos: position{line: 1197, col: 34, offset: 34276}, + pos: position{line: 1196, col: 34, offset: 34275}, name: "Type", }, }, @@ -9783,16 +10070,16 @@ var g = &grammar{ }, { name: "FieldName", - pos: position{line: 1201, col: 1, offset: 34358}, + pos: position{line: 1200, col: 1, offset: 34357}, expr: &choiceExpr{ - pos: position{line: 1202, col: 5, offset: 34372}, - alternatives: []interface{}{ + pos: position{line: 1201, col: 5, offset: 34371}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1202, col: 5, offset: 34372}, + pos: position{line: 1201, col: 5, offset: 34371}, name: "IdentifierName", }, &ruleRefExpr{ - pos: position{line: 1203, col: 5, offset: 34391}, + pos: position{line: 1202, col: 5, offset: 34390}, name: "QuotedString", }, }, @@ -9800,32 +10087,34 @@ var g = &grammar{ }, { name: "AndToken", - pos: position{line: 1205, col: 1, offset: 34405}, + pos: position{line: 1204, col: 1, offset: 34404}, expr: &actionExpr{ - pos: position{line: 1205, col: 12, offset: 34416}, + pos: position{line: 1204, col: 12, offset: 34415}, run: (*parser).callonAndToken1, expr: &seqExpr{ - pos: position{line: 1205, col: 12, offset: 34416}, - exprs: []interface{}{ + pos: position{line: 1204, col: 12, offset: 34415}, + exprs: []any{ &choiceExpr{ - pos: position{line: 1205, col: 13, offset: 34417}, - alternatives: []interface{}{ + pos: position{line: 1204, col: 13, offset: 34416}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1205, col: 13, offset: 34417}, + pos: position{line: 1204, col: 13, offset: 34416}, val: "and", ignoreCase: false, + want: "\"and\"", }, &litMatcher{ - pos: position{line: 1205, col: 21, offset: 34425}, + pos: position{line: 1204, col: 21, offset: 34424}, val: "AND", ignoreCase: false, + want: "\"AND\"", }, }, }, ¬Expr{ - pos: position{line: 1205, col: 28, offset: 34432}, + pos: position{line: 1204, col: 28, offset: 34431}, expr: &ruleRefExpr{ - pos: position{line: 1205, col: 29, offset: 34433}, + pos: position{line: 1204, col: 29, offset: 34432}, name: "IdentifierRest", }, }, @@ -9835,19 +10124,20 @@ var g = &grammar{ }, { name: "ByToken", - pos: position{line: 1206, col: 1, offset: 34470}, + pos: position{line: 1205, col: 1, offset: 34469}, expr: &seqExpr{ - pos: position{line: 1206, col: 11, offset: 34480}, - exprs: []interface{}{ + pos: position{line: 1205, col: 11, offset: 34479}, + exprs: []any{ &litMatcher{ - pos: position{line: 1206, col: 11, offset: 34480}, + pos: position{line: 1205, col: 11, offset: 34479}, val: "by", ignoreCase: false, + want: "\"by\"", }, ¬Expr{ - pos: position{line: 1206, col: 16, offset: 34485}, + pos: position{line: 1205, col: 16, offset: 34484}, expr: &ruleRefExpr{ - pos: position{line: 1206, col: 17, offset: 34486}, + pos: position{line: 1205, col: 17, offset: 34485}, name: "IdentifierRest", }, }, @@ -9856,19 +10146,20 @@ var g = &grammar{ }, { name: "FalseToken", - pos: position{line: 1207, col: 1, offset: 34501}, + pos: position{line: 1206, col: 1, offset: 34500}, expr: &seqExpr{ - pos: position{line: 1207, col: 14, offset: 34514}, - exprs: []interface{}{ + pos: position{line: 1206, col: 14, offset: 34513}, + exprs: []any{ &litMatcher{ - pos: position{line: 1207, col: 14, offset: 34514}, + pos: position{line: 1206, col: 14, offset: 34513}, val: "false", ignoreCase: false, + want: "\"false\"", }, ¬Expr{ - pos: position{line: 1207, col: 22, offset: 34522}, + pos: position{line: 1206, col: 22, offset: 34521}, expr: &ruleRefExpr{ - pos: position{line: 1207, col: 23, offset: 34523}, + pos: position{line: 1206, col: 23, offset: 34522}, name: "IdentifierRest", }, }, @@ -9877,19 +10168,20 @@ var g = &grammar{ }, { name: "InToken", - pos: position{line: 1208, col: 1, offset: 34538}, + pos: position{line: 1207, col: 1, offset: 34537}, expr: &seqExpr{ - pos: position{line: 1208, col: 11, offset: 34548}, - exprs: []interface{}{ + pos: position{line: 1207, col: 11, offset: 34547}, + exprs: []any{ &litMatcher{ - pos: position{line: 1208, col: 11, offset: 34548}, + pos: position{line: 1207, col: 11, offset: 34547}, val: "in", ignoreCase: false, + want: "\"in\"", }, ¬Expr{ - pos: position{line: 1208, col: 16, offset: 34553}, + pos: position{line: 1207, col: 16, offset: 34552}, expr: &ruleRefExpr{ - pos: position{line: 1208, col: 17, offset: 34554}, + pos: position{line: 1207, col: 17, offset: 34553}, name: "IdentifierRest", }, }, @@ -9898,32 +10190,34 @@ var g = &grammar{ }, { name: "NotToken", - pos: position{line: 1209, col: 1, offset: 34569}, + pos: position{line: 1208, col: 1, offset: 34568}, expr: &actionExpr{ - pos: position{line: 1209, col: 12, offset: 34580}, + pos: position{line: 1208, col: 12, offset: 34579}, run: (*parser).callonNotToken1, expr: &seqExpr{ - pos: position{line: 1209, col: 12, offset: 34580}, - exprs: []interface{}{ + pos: position{line: 1208, col: 12, offset: 34579}, + exprs: []any{ &choiceExpr{ - pos: position{line: 1209, col: 13, offset: 34581}, - alternatives: []interface{}{ + pos: position{line: 1208, col: 13, offset: 34580}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1209, col: 13, offset: 34581}, + pos: position{line: 1208, col: 13, offset: 34580}, val: "not", ignoreCase: false, + want: "\"not\"", }, &litMatcher{ - pos: position{line: 1209, col: 21, offset: 34589}, + pos: position{line: 1208, col: 21, offset: 34588}, val: "NOT", ignoreCase: false, + want: "\"NOT\"", }, }, }, ¬Expr{ - pos: position{line: 1209, col: 28, offset: 34596}, + pos: position{line: 1208, col: 28, offset: 34595}, expr: &ruleRefExpr{ - pos: position{line: 1209, col: 29, offset: 34597}, + pos: position{line: 1208, col: 29, offset: 34596}, name: "IdentifierRest", }, }, @@ -9933,19 +10227,20 @@ var g = &grammar{ }, { name: "NullToken", - pos: position{line: 1210, col: 1, offset: 34634}, + pos: position{line: 1209, col: 1, offset: 34633}, expr: &seqExpr{ - pos: position{line: 1210, col: 13, offset: 34646}, - exprs: []interface{}{ + pos: position{line: 1209, col: 13, offset: 34645}, + exprs: []any{ &litMatcher{ - pos: position{line: 1210, col: 13, offset: 34646}, + pos: position{line: 1209, col: 13, offset: 34645}, val: "null", ignoreCase: false, + want: "\"null\"", }, ¬Expr{ - pos: position{line: 1210, col: 20, offset: 34653}, + pos: position{line: 1209, col: 20, offset: 34652}, expr: &ruleRefExpr{ - pos: position{line: 1210, col: 21, offset: 34654}, + pos: position{line: 1209, col: 21, offset: 34653}, name: "IdentifierRest", }, }, @@ -9954,32 +10249,34 @@ var g = &grammar{ }, { name: "OrToken", - pos: position{line: 1211, col: 1, offset: 34669}, + pos: position{line: 1210, col: 1, offset: 34668}, expr: &actionExpr{ - pos: position{line: 1211, col: 11, offset: 34679}, + pos: position{line: 1210, col: 11, offset: 34678}, run: (*parser).callonOrToken1, expr: &seqExpr{ - pos: position{line: 1211, col: 11, offset: 34679}, - exprs: []interface{}{ + pos: position{line: 1210, col: 11, offset: 34678}, + exprs: []any{ &choiceExpr{ - pos: position{line: 1211, col: 12, offset: 34680}, - alternatives: []interface{}{ + pos: position{line: 1210, col: 12, offset: 34679}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1211, col: 12, offset: 34680}, + pos: position{line: 1210, col: 12, offset: 34679}, val: "or", ignoreCase: false, + want: "\"or\"", }, &litMatcher{ - pos: position{line: 1211, col: 19, offset: 34687}, + pos: position{line: 1210, col: 19, offset: 34686}, val: "OR", ignoreCase: false, + want: "\"OR\"", }, }, }, ¬Expr{ - pos: position{line: 1211, col: 25, offset: 34693}, + pos: position{line: 1210, col: 25, offset: 34692}, expr: &ruleRefExpr{ - pos: position{line: 1211, col: 26, offset: 34694}, + pos: position{line: 1210, col: 26, offset: 34693}, name: "IdentifierRest", }, }, @@ -9989,19 +10286,20 @@ var g = &grammar{ }, { name: "TrueToken", - pos: position{line: 1212, col: 1, offset: 34730}, + pos: position{line: 1211, col: 1, offset: 34729}, expr: &seqExpr{ - pos: position{line: 1212, col: 13, offset: 34742}, - exprs: []interface{}{ + pos: position{line: 1211, col: 13, offset: 34741}, + exprs: []any{ &litMatcher{ - pos: position{line: 1212, col: 13, offset: 34742}, + pos: position{line: 1211, col: 13, offset: 34741}, val: "true", ignoreCase: false, + want: "\"true\"", }, ¬Expr{ - pos: position{line: 1212, col: 20, offset: 34749}, + pos: position{line: 1211, col: 20, offset: 34748}, expr: &ruleRefExpr{ - pos: position{line: 1212, col: 21, offset: 34750}, + pos: position{line: 1211, col: 21, offset: 34749}, name: "IdentifierRest", }, }, @@ -10010,15 +10308,15 @@ var g = &grammar{ }, { name: "Identifier", - pos: position{line: 1214, col: 1, offset: 34766}, + pos: position{line: 1213, col: 1, offset: 34765}, expr: &actionExpr{ - pos: position{line: 1215, col: 5, offset: 34781}, + pos: position{line: 1214, col: 5, offset: 34780}, run: (*parser).callonIdentifier1, expr: &labeledExpr{ - pos: position{line: 1215, col: 5, offset: 34781}, + pos: position{line: 1214, col: 5, offset: 34780}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 1215, col: 8, offset: 34784}, + pos: position{line: 1214, col: 8, offset: 34783}, name: "IdentifierName", }, }, @@ -10026,29 +10324,29 @@ var g = &grammar{ }, { name: "IdentifierName", - pos: position{line: 1217, col: 1, offset: 34865}, + pos: position{line: 1216, col: 1, offset: 34864}, expr: &choiceExpr{ - pos: position{line: 1218, col: 5, offset: 34884}, - alternatives: []interface{}{ + pos: position{line: 1217, col: 5, offset: 34883}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1218, col: 5, offset: 34884}, + pos: position{line: 1217, col: 5, offset: 34883}, run: (*parser).callonIdentifierName2, expr: &seqExpr{ - pos: position{line: 1218, col: 5, offset: 34884}, - exprs: []interface{}{ + pos: position{line: 1217, col: 5, offset: 34883}, + exprs: []any{ ¬Expr{ - pos: position{line: 1218, col: 5, offset: 34884}, + pos: position{line: 1217, col: 5, offset: 34883}, expr: &seqExpr{ - pos: position{line: 1218, col: 7, offset: 34886}, - exprs: []interface{}{ + pos: position{line: 1217, col: 7, offset: 34885}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1218, col: 7, offset: 34886}, + pos: position{line: 1217, col: 7, offset: 34885}, name: "IDGuard", }, ¬Expr{ - pos: position{line: 1218, col: 15, offset: 34894}, + pos: position{line: 1217, col: 15, offset: 34893}, expr: &ruleRefExpr{ - pos: position{line: 1218, col: 16, offset: 34895}, + pos: position{line: 1217, col: 16, offset: 34894}, name: "IdentifierRest", }, }, @@ -10056,13 +10354,13 @@ var g = &grammar{ }, }, &ruleRefExpr{ - pos: position{line: 1218, col: 32, offset: 34911}, + pos: position{line: 1217, col: 32, offset: 34910}, name: "IdentifierStart", }, &zeroOrMoreExpr{ - pos: position{line: 1218, col: 48, offset: 34927}, + pos: position{line: 1217, col: 48, offset: 34926}, expr: &ruleRefExpr{ - pos: position{line: 1218, col: 48, offset: 34927}, + pos: position{line: 1217, col: 48, offset: 34926}, name: "IdentifierRest", }, }, @@ -10070,30 +10368,32 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1219, col: 5, offset: 34978}, + pos: position{line: 1218, col: 5, offset: 34977}, run: (*parser).callonIdentifierName12, expr: &litMatcher{ - pos: position{line: 1219, col: 5, offset: 34978}, + pos: position{line: 1218, col: 5, offset: 34977}, val: "$", ignoreCase: false, + want: "\"$\"", }, }, &actionExpr{ - pos: position{line: 1220, col: 5, offset: 35017}, + pos: position{line: 1219, col: 5, offset: 35016}, run: (*parser).callonIdentifierName14, expr: &seqExpr{ - pos: position{line: 1220, col: 5, offset: 35017}, - exprs: []interface{}{ + pos: position{line: 1219, col: 5, offset: 35016}, + exprs: []any{ &litMatcher{ - pos: position{line: 1220, col: 5, offset: 35017}, + pos: position{line: 1219, col: 5, offset: 35016}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &labeledExpr{ - pos: position{line: 1220, col: 10, offset: 35022}, + pos: position{line: 1219, col: 10, offset: 35021}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 1220, col: 13, offset: 35025}, + pos: position{line: 1219, col: 13, offset: 35024}, name: "IDGuard", }, }, @@ -10101,41 +10401,43 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1222, col: 5, offset: 35116}, + pos: position{line: 1221, col: 5, offset: 35115}, run: (*parser).callonIdentifierName19, expr: &litMatcher{ - pos: position{line: 1222, col: 5, offset: 35116}, + pos: position{line: 1221, col: 5, offset: 35115}, val: "type", ignoreCase: false, + want: "\"type\"", }, }, &actionExpr{ - pos: position{line: 1223, col: 5, offset: 35158}, + pos: position{line: 1222, col: 5, offset: 35157}, run: (*parser).callonIdentifierName21, expr: &seqExpr{ - pos: position{line: 1223, col: 5, offset: 35158}, - exprs: []interface{}{ + pos: position{line: 1222, col: 5, offset: 35157}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1223, col: 5, offset: 35158}, + pos: position{line: 1222, col: 5, offset: 35157}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 1223, col: 8, offset: 35161}, + pos: position{line: 1222, col: 8, offset: 35160}, name: "SQLTokenSentinels", }, }, &andExpr{ - pos: position{line: 1223, col: 26, offset: 35179}, + pos: position{line: 1222, col: 26, offset: 35178}, expr: &seqExpr{ - pos: position{line: 1223, col: 28, offset: 35181}, - exprs: []interface{}{ + pos: position{line: 1222, col: 28, offset: 35180}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1223, col: 28, offset: 35181}, + pos: position{line: 1222, col: 28, offset: 35180}, name: "__", }, &litMatcher{ - pos: position{line: 1223, col: 31, offset: 35184}, + pos: position{line: 1222, col: 31, offset: 35183}, val: "(", ignoreCase: false, + want: "\"(\"", }, }, }, @@ -10148,50 +10450,51 @@ var g = &grammar{ }, { name: "IdentifierNames", - pos: position{line: 1225, col: 1, offset: 35209}, + pos: position{line: 1224, col: 1, offset: 35208}, expr: &actionExpr{ - pos: position{line: 1226, col: 5, offset: 35229}, + pos: position{line: 1225, col: 5, offset: 35228}, run: (*parser).callonIdentifierNames1, expr: &seqExpr{ - pos: position{line: 1226, col: 5, offset: 35229}, - exprs: []interface{}{ + pos: position{line: 1225, col: 5, offset: 35228}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1226, col: 5, offset: 35229}, + pos: position{line: 1225, col: 5, offset: 35228}, label: "first", expr: &ruleRefExpr{ - pos: position{line: 1226, col: 11, offset: 35235}, + pos: position{line: 1225, col: 11, offset: 35234}, name: "IdentifierName", }, }, &labeledExpr{ - pos: position{line: 1226, col: 26, offset: 35250}, + pos: position{line: 1225, col: 26, offset: 35249}, label: "rest", expr: &zeroOrMoreExpr{ - pos: position{line: 1226, col: 31, offset: 35255}, + pos: position{line: 1225, col: 31, offset: 35254}, expr: &actionExpr{ - pos: position{line: 1226, col: 32, offset: 35256}, + pos: position{line: 1225, col: 32, offset: 35255}, run: (*parser).callonIdentifierNames7, expr: &seqExpr{ - pos: position{line: 1226, col: 32, offset: 35256}, - exprs: []interface{}{ + pos: position{line: 1225, col: 32, offset: 35255}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1226, col: 32, offset: 35256}, + pos: position{line: 1225, col: 32, offset: 35255}, name: "__", }, &litMatcher{ - pos: position{line: 1226, col: 35, offset: 35259}, + pos: position{line: 1225, col: 35, offset: 35258}, val: ",", ignoreCase: false, + want: "\",\"", }, &ruleRefExpr{ - pos: position{line: 1226, col: 39, offset: 35263}, + pos: position{line: 1225, col: 39, offset: 35262}, name: "__", }, &labeledExpr{ - pos: position{line: 1226, col: 42, offset: 35266}, + pos: position{line: 1225, col: 42, offset: 35265}, label: "id", expr: &ruleRefExpr{ - pos: position{line: 1226, col: 45, offset: 35269}, + pos: position{line: 1225, col: 45, offset: 35268}, name: "IdentifierName", }, }, @@ -10206,47 +10509,49 @@ var g = &grammar{ }, { name: "IdentifierStart", - pos: position{line: 1230, col: 1, offset: 35385}, + pos: position{line: 1229, col: 1, offset: 35384}, expr: &choiceExpr{ - pos: position{line: 1231, col: 5, offset: 35405}, - alternatives: []interface{}{ + pos: position{line: 1230, col: 5, offset: 35404}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1231, col: 5, offset: 35405}, + pos: position{line: 1230, col: 5, offset: 35404}, name: "UnicodeLetter", }, &litMatcher{ - pos: position{line: 1232, col: 5, offset: 35423}, + pos: position{line: 1231, col: 5, offset: 35422}, val: "$", ignoreCase: false, + want: "\"$\"", }, &litMatcher{ - pos: position{line: 1233, col: 5, offset: 35431}, + pos: position{line: 1232, col: 5, offset: 35430}, val: "_", ignoreCase: false, + want: "\"_\"", }, }, }, }, { name: "IdentifierRest", - pos: position{line: 1235, col: 1, offset: 35436}, + pos: position{line: 1234, col: 1, offset: 35435}, expr: &choiceExpr{ - pos: position{line: 1236, col: 5, offset: 35455}, - alternatives: []interface{}{ + pos: position{line: 1235, col: 5, offset: 35454}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1236, col: 5, offset: 35455}, + pos: position{line: 1235, col: 5, offset: 35454}, name: "IdentifierStart", }, &ruleRefExpr{ - pos: position{line: 1237, col: 5, offset: 35475}, + pos: position{line: 1236, col: 5, offset: 35474}, name: "UnicodeCombiningMark", }, &ruleRefExpr{ - pos: position{line: 1238, col: 5, offset: 35500}, + pos: position{line: 1237, col: 5, offset: 35499}, name: "UnicodeDigit", }, &ruleRefExpr{ - pos: position{line: 1239, col: 5, offset: 35517}, + pos: position{line: 1238, col: 5, offset: 35516}, name: "UnicodeConnectorPunctuation", }, }, @@ -10254,24 +10559,24 @@ var g = &grammar{ }, { name: "IDGuard", - pos: position{line: 1241, col: 1, offset: 35546}, + pos: position{line: 1240, col: 1, offset: 35545}, expr: &choiceExpr{ - pos: position{line: 1242, col: 5, offset: 35558}, - alternatives: []interface{}{ + pos: position{line: 1241, col: 5, offset: 35557}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1242, col: 5, offset: 35558}, + pos: position{line: 1241, col: 5, offset: 35557}, name: "BooleanLiteral", }, &ruleRefExpr{ - pos: position{line: 1243, col: 5, offset: 35577}, + pos: position{line: 1242, col: 5, offset: 35576}, name: "NullLiteral", }, &ruleRefExpr{ - pos: position{line: 1244, col: 5, offset: 35593}, + pos: position{line: 1243, col: 5, offset: 35592}, name: "NaN", }, &ruleRefExpr{ - pos: position{line: 1245, col: 5, offset: 35601}, + pos: position{line: 1244, col: 5, offset: 35600}, name: "Infinity", }, }, @@ -10279,24 +10584,25 @@ var g = &grammar{ }, { name: "Time", - pos: position{line: 1247, col: 1, offset: 35611}, + pos: position{line: 1246, col: 1, offset: 35610}, expr: &actionExpr{ - pos: position{line: 1248, col: 5, offset: 35620}, + pos: position{line: 1247, col: 5, offset: 35619}, run: (*parser).callonTime1, expr: &seqExpr{ - pos: position{line: 1248, col: 5, offset: 35620}, - exprs: []interface{}{ + pos: position{line: 1247, col: 5, offset: 35619}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1248, col: 5, offset: 35620}, + pos: position{line: 1247, col: 5, offset: 35619}, name: "FullDate", }, &litMatcher{ - pos: position{line: 1248, col: 14, offset: 35629}, + pos: position{line: 1247, col: 14, offset: 35628}, val: "T", ignoreCase: false, + want: "\"T\"", }, &ruleRefExpr{ - pos: position{line: 1248, col: 18, offset: 35633}, + pos: position{line: 1247, col: 18, offset: 35632}, name: "FullTime", }, }, @@ -10305,30 +10611,32 @@ var g = &grammar{ }, { name: "FullDate", - pos: position{line: 1252, col: 1, offset: 35753}, + pos: position{line: 1251, col: 1, offset: 35752}, expr: &seqExpr{ - pos: position{line: 1252, col: 12, offset: 35764}, - exprs: []interface{}{ + pos: position{line: 1251, col: 12, offset: 35763}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1252, col: 12, offset: 35764}, + pos: position{line: 1251, col: 12, offset: 35763}, name: "D4", }, &litMatcher{ - pos: position{line: 1252, col: 15, offset: 35767}, + pos: position{line: 1251, col: 15, offset: 35766}, val: "-", ignoreCase: false, + want: "\"-\"", }, &ruleRefExpr{ - pos: position{line: 1252, col: 19, offset: 35771}, + pos: position{line: 1251, col: 19, offset: 35770}, name: "D2", }, &litMatcher{ - pos: position{line: 1252, col: 22, offset: 35774}, + pos: position{line: 1251, col: 22, offset: 35773}, val: "-", ignoreCase: false, + want: "\"-\"", }, &ruleRefExpr{ - pos: position{line: 1252, col: 26, offset: 35778}, + pos: position{line: 1251, col: 26, offset: 35777}, name: "D2", }, }, @@ -10336,33 +10644,33 @@ var g = &grammar{ }, { name: "D4", - pos: position{line: 1254, col: 1, offset: 35782}, + pos: position{line: 1253, col: 1, offset: 35781}, expr: &seqExpr{ - pos: position{line: 1254, col: 6, offset: 35787}, - exprs: []interface{}{ + pos: position{line: 1253, col: 6, offset: 35786}, + exprs: []any{ &charClassMatcher{ - pos: position{line: 1254, col: 6, offset: 35787}, + pos: position{line: 1253, col: 6, offset: 35786}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, inverted: false, }, &charClassMatcher{ - pos: position{line: 1254, col: 11, offset: 35792}, + pos: position{line: 1253, col: 11, offset: 35791}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, inverted: false, }, &charClassMatcher{ - pos: position{line: 1254, col: 16, offset: 35797}, + pos: position{line: 1253, col: 16, offset: 35796}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, inverted: false, }, &charClassMatcher{ - pos: position{line: 1254, col: 21, offset: 35802}, + pos: position{line: 1253, col: 21, offset: 35801}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -10373,19 +10681,19 @@ var g = &grammar{ }, { name: "D2", - pos: position{line: 1255, col: 1, offset: 35808}, + pos: position{line: 1254, col: 1, offset: 35807}, expr: &seqExpr{ - pos: position{line: 1255, col: 6, offset: 35813}, - exprs: []interface{}{ + pos: position{line: 1254, col: 6, offset: 35812}, + exprs: []any{ &charClassMatcher{ - pos: position{line: 1255, col: 6, offset: 35813}, + pos: position{line: 1254, col: 6, offset: 35812}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, inverted: false, }, &charClassMatcher{ - pos: position{line: 1255, col: 11, offset: 35818}, + pos: position{line: 1254, col: 11, offset: 35817}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -10396,16 +10704,16 @@ var g = &grammar{ }, { name: "FullTime", - pos: position{line: 1257, col: 1, offset: 35825}, + pos: position{line: 1256, col: 1, offset: 35824}, expr: &seqExpr{ - pos: position{line: 1257, col: 12, offset: 35836}, - exprs: []interface{}{ + pos: position{line: 1256, col: 12, offset: 35835}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1257, col: 12, offset: 35836}, + pos: position{line: 1256, col: 12, offset: 35835}, name: "PartialTime", }, &ruleRefExpr{ - pos: position{line: 1257, col: 24, offset: 35848}, + pos: position{line: 1256, col: 24, offset: 35847}, name: "TimeOffset", }, }, @@ -10413,46 +10721,49 @@ var g = &grammar{ }, { name: "PartialTime", - pos: position{line: 1259, col: 1, offset: 35860}, + pos: position{line: 1258, col: 1, offset: 35859}, expr: &seqExpr{ - pos: position{line: 1259, col: 15, offset: 35874}, - exprs: []interface{}{ + pos: position{line: 1258, col: 15, offset: 35873}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1259, col: 15, offset: 35874}, + pos: position{line: 1258, col: 15, offset: 35873}, name: "D2", }, &litMatcher{ - pos: position{line: 1259, col: 18, offset: 35877}, + pos: position{line: 1258, col: 18, offset: 35876}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 1259, col: 22, offset: 35881}, + pos: position{line: 1258, col: 22, offset: 35880}, name: "D2", }, &litMatcher{ - pos: position{line: 1259, col: 25, offset: 35884}, + pos: position{line: 1258, col: 25, offset: 35883}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 1259, col: 29, offset: 35888}, + pos: position{line: 1258, col: 29, offset: 35887}, name: "D2", }, &zeroOrOneExpr{ - pos: position{line: 1259, col: 32, offset: 35891}, + pos: position{line: 1258, col: 32, offset: 35890}, expr: &seqExpr{ - pos: position{line: 1259, col: 33, offset: 35892}, - exprs: []interface{}{ + pos: position{line: 1258, col: 33, offset: 35891}, + exprs: []any{ &litMatcher{ - pos: position{line: 1259, col: 33, offset: 35892}, + pos: position{line: 1258, col: 33, offset: 35891}, val: ".", ignoreCase: false, + want: "\".\"", }, &oneOrMoreExpr{ - pos: position{line: 1259, col: 37, offset: 35896}, + pos: position{line: 1258, col: 37, offset: 35895}, expr: &charClassMatcher{ - pos: position{line: 1259, col: 37, offset: 35896}, + pos: position{line: 1258, col: 37, offset: 35895}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -10467,60 +10778,65 @@ var g = &grammar{ }, { name: "TimeOffset", - pos: position{line: 1261, col: 1, offset: 35906}, + pos: position{line: 1260, col: 1, offset: 35905}, expr: &choiceExpr{ - pos: position{line: 1262, col: 5, offset: 35921}, - alternatives: []interface{}{ + pos: position{line: 1261, col: 5, offset: 35920}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1262, col: 5, offset: 35921}, + pos: position{line: 1261, col: 5, offset: 35920}, val: "Z", ignoreCase: false, + want: "\"Z\"", }, &seqExpr{ - pos: position{line: 1263, col: 5, offset: 35929}, - exprs: []interface{}{ + pos: position{line: 1262, col: 5, offset: 35928}, + exprs: []any{ &choiceExpr{ - pos: position{line: 1263, col: 6, offset: 35930}, - alternatives: []interface{}{ + pos: position{line: 1262, col: 6, offset: 35929}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1263, col: 6, offset: 35930}, + pos: position{line: 1262, col: 6, offset: 35929}, val: "+", ignoreCase: false, + want: "\"+\"", }, &litMatcher{ - pos: position{line: 1263, col: 12, offset: 35936}, + pos: position{line: 1262, col: 12, offset: 35935}, val: "-", ignoreCase: false, + want: "\"-\"", }, }, }, &ruleRefExpr{ - pos: position{line: 1263, col: 17, offset: 35941}, + pos: position{line: 1262, col: 17, offset: 35940}, name: "D2", }, &litMatcher{ - pos: position{line: 1263, col: 20, offset: 35944}, + pos: position{line: 1262, col: 20, offset: 35943}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 1263, col: 24, offset: 35948}, + pos: position{line: 1262, col: 24, offset: 35947}, name: "D2", }, &zeroOrOneExpr{ - pos: position{line: 1263, col: 27, offset: 35951}, + pos: position{line: 1262, col: 27, offset: 35950}, expr: &seqExpr{ - pos: position{line: 1263, col: 28, offset: 35952}, - exprs: []interface{}{ + pos: position{line: 1262, col: 28, offset: 35951}, + exprs: []any{ &litMatcher{ - pos: position{line: 1263, col: 28, offset: 35952}, + pos: position{line: 1262, col: 28, offset: 35951}, val: ".", ignoreCase: false, + want: "\".\"", }, &oneOrMoreExpr{ - pos: position{line: 1263, col: 32, offset: 35956}, + pos: position{line: 1262, col: 32, offset: 35955}, expr: &charClassMatcher{ - pos: position{line: 1263, col: 32, offset: 35956}, + pos: position{line: 1262, col: 32, offset: 35955}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -10537,32 +10853,33 @@ var g = &grammar{ }, { name: "Duration", - pos: position{line: 1265, col: 1, offset: 35966}, + pos: position{line: 1264, col: 1, offset: 35965}, expr: &actionExpr{ - pos: position{line: 1266, col: 5, offset: 35979}, + pos: position{line: 1265, col: 5, offset: 35978}, run: (*parser).callonDuration1, expr: &seqExpr{ - pos: position{line: 1266, col: 5, offset: 35979}, - exprs: []interface{}{ + pos: position{line: 1265, col: 5, offset: 35978}, + exprs: []any{ &zeroOrOneExpr{ - pos: position{line: 1266, col: 5, offset: 35979}, + pos: position{line: 1265, col: 5, offset: 35978}, expr: &litMatcher{ - pos: position{line: 1266, col: 5, offset: 35979}, + pos: position{line: 1265, col: 5, offset: 35978}, val: "-", ignoreCase: false, + want: "\"-\"", }, }, &oneOrMoreExpr{ - pos: position{line: 1266, col: 10, offset: 35984}, + pos: position{line: 1265, col: 10, offset: 35983}, expr: &seqExpr{ - pos: position{line: 1266, col: 11, offset: 35985}, - exprs: []interface{}{ + pos: position{line: 1265, col: 11, offset: 35984}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1266, col: 11, offset: 35985}, + pos: position{line: 1265, col: 11, offset: 35984}, name: "Decimal", }, &ruleRefExpr{ - pos: position{line: 1266, col: 19, offset: 35993}, + pos: position{line: 1265, col: 19, offset: 35992}, name: "TimeUnit", }, }, @@ -10574,26 +10891,27 @@ var g = &grammar{ }, { name: "Decimal", - pos: position{line: 1270, col: 1, offset: 36119}, + pos: position{line: 1269, col: 1, offset: 36118}, expr: &seqExpr{ - pos: position{line: 1270, col: 11, offset: 36129}, - exprs: []interface{}{ + pos: position{line: 1269, col: 11, offset: 36128}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1270, col: 11, offset: 36129}, + pos: position{line: 1269, col: 11, offset: 36128}, name: "UInt", }, &zeroOrOneExpr{ - pos: position{line: 1270, col: 16, offset: 36134}, + pos: position{line: 1269, col: 16, offset: 36133}, expr: &seqExpr{ - pos: position{line: 1270, col: 17, offset: 36135}, - exprs: []interface{}{ + pos: position{line: 1269, col: 17, offset: 36134}, + exprs: []any{ &litMatcher{ - pos: position{line: 1270, col: 17, offset: 36135}, + pos: position{line: 1269, col: 17, offset: 36134}, val: ".", ignoreCase: false, + want: "\".\"", }, &ruleRefExpr{ - pos: position{line: 1270, col: 21, offset: 36139}, + pos: position{line: 1269, col: 21, offset: 36138}, name: "UInt", }, }, @@ -10604,96 +10922,108 @@ var g = &grammar{ }, { name: "TimeUnit", - pos: position{line: 1272, col: 1, offset: 36147}, + pos: position{line: 1271, col: 1, offset: 36146}, expr: &choiceExpr{ - pos: position{line: 1273, col: 5, offset: 36160}, - alternatives: []interface{}{ + pos: position{line: 1272, col: 5, offset: 36159}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1273, col: 5, offset: 36160}, + pos: position{line: 1272, col: 5, offset: 36159}, val: "ns", ignoreCase: false, + want: "\"ns\"", }, &litMatcher{ - pos: position{line: 1274, col: 5, offset: 36169}, + pos: position{line: 1273, col: 5, offset: 36168}, val: "us", ignoreCase: false, + want: "\"us\"", }, &litMatcher{ - pos: position{line: 1275, col: 5, offset: 36178}, + pos: position{line: 1274, col: 5, offset: 36177}, val: "ms", ignoreCase: false, + want: "\"ms\"", }, &litMatcher{ - pos: position{line: 1276, col: 5, offset: 36187}, + pos: position{line: 1275, col: 5, offset: 36186}, val: "s", ignoreCase: false, + want: "\"s\"", }, &litMatcher{ - pos: position{line: 1277, col: 5, offset: 36195}, + pos: position{line: 1276, col: 5, offset: 36194}, val: "m", ignoreCase: false, + want: "\"m\"", }, &litMatcher{ - pos: position{line: 1278, col: 5, offset: 36203}, + pos: position{line: 1277, col: 5, offset: 36202}, val: "h", ignoreCase: false, + want: "\"h\"", }, &litMatcher{ - pos: position{line: 1279, col: 5, offset: 36211}, + pos: position{line: 1278, col: 5, offset: 36210}, val: "d", ignoreCase: false, + want: "\"d\"", }, &litMatcher{ - pos: position{line: 1280, col: 5, offset: 36219}, + pos: position{line: 1279, col: 5, offset: 36218}, val: "w", ignoreCase: false, + want: "\"w\"", }, &litMatcher{ - pos: position{line: 1281, col: 5, offset: 36227}, + pos: position{line: 1280, col: 5, offset: 36226}, val: "y", ignoreCase: false, + want: "\"y\"", }, }, }, }, { name: "IP", - pos: position{line: 1283, col: 1, offset: 36232}, + pos: position{line: 1282, col: 1, offset: 36231}, expr: &actionExpr{ - pos: position{line: 1284, col: 5, offset: 36239}, + pos: position{line: 1283, col: 5, offset: 36238}, run: (*parser).callonIP1, expr: &seqExpr{ - pos: position{line: 1284, col: 5, offset: 36239}, - exprs: []interface{}{ + pos: position{line: 1283, col: 5, offset: 36238}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1284, col: 5, offset: 36239}, + pos: position{line: 1283, col: 5, offset: 36238}, name: "UInt", }, &litMatcher{ - pos: position{line: 1284, col: 10, offset: 36244}, + pos: position{line: 1283, col: 10, offset: 36243}, val: ".", ignoreCase: false, + want: "\".\"", }, &ruleRefExpr{ - pos: position{line: 1284, col: 14, offset: 36248}, + pos: position{line: 1283, col: 14, offset: 36247}, name: "UInt", }, &litMatcher{ - pos: position{line: 1284, col: 19, offset: 36253}, + pos: position{line: 1283, col: 19, offset: 36252}, val: ".", ignoreCase: false, + want: "\".\"", }, &ruleRefExpr{ - pos: position{line: 1284, col: 23, offset: 36257}, + pos: position{line: 1283, col: 23, offset: 36256}, name: "UInt", }, &litMatcher{ - pos: position{line: 1284, col: 28, offset: 36262}, + pos: position{line: 1283, col: 28, offset: 36261}, val: ".", ignoreCase: false, + want: "\".\"", }, &ruleRefExpr{ - pos: position{line: 1284, col: 32, offset: 36266}, + pos: position{line: 1283, col: 32, offset: 36265}, name: "UInt", }, }, @@ -10702,44 +11032,46 @@ var g = &grammar{ }, { name: "IP6", - pos: position{line: 1286, col: 1, offset: 36303}, + pos: position{line: 1285, col: 1, offset: 36302}, expr: &actionExpr{ - pos: position{line: 1287, col: 5, offset: 36311}, + pos: position{line: 1286, col: 5, offset: 36310}, run: (*parser).callonIP61, expr: &seqExpr{ - pos: position{line: 1287, col: 5, offset: 36311}, - exprs: []interface{}{ + pos: position{line: 1286, col: 5, offset: 36310}, + exprs: []any{ ¬Expr{ - pos: position{line: 1287, col: 5, offset: 36311}, + pos: position{line: 1286, col: 5, offset: 36310}, expr: &seqExpr{ - pos: position{line: 1287, col: 7, offset: 36313}, - exprs: []interface{}{ + pos: position{line: 1286, col: 7, offset: 36312}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1287, col: 7, offset: 36313}, + pos: position{line: 1286, col: 7, offset: 36312}, name: "Hex", }, &litMatcher{ - pos: position{line: 1287, col: 11, offset: 36317}, + pos: position{line: 1286, col: 11, offset: 36316}, val: ":", ignoreCase: false, + want: "\":\"", }, &ruleRefExpr{ - pos: position{line: 1287, col: 15, offset: 36321}, + pos: position{line: 1286, col: 15, offset: 36320}, name: "Hex", }, ¬Expr{ - pos: position{line: 1287, col: 19, offset: 36325}, + pos: position{line: 1286, col: 19, offset: 36324}, expr: &choiceExpr{ - pos: position{line: 1287, col: 21, offset: 36327}, - alternatives: []interface{}{ + pos: position{line: 1286, col: 21, offset: 36326}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1287, col: 21, offset: 36327}, + pos: position{line: 1286, col: 21, offset: 36326}, name: "HexDigit", }, &litMatcher{ - pos: position{line: 1287, col: 32, offset: 36338}, + pos: position{line: 1286, col: 32, offset: 36337}, val: ":", ignoreCase: false, + want: "\":\"", }, }, }, @@ -10748,10 +11080,10 @@ var g = &grammar{ }, }, &labeledExpr{ - pos: position{line: 1287, col: 38, offset: 36344}, + pos: position{line: 1286, col: 38, offset: 36343}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1287, col: 40, offset: 36346}, + pos: position{line: 1286, col: 40, offset: 36345}, name: "IP6Variations", }, }, @@ -10761,32 +11093,32 @@ var g = &grammar{ }, { name: "IP6Variations", - pos: position{line: 1291, col: 1, offset: 36510}, + pos: position{line: 1290, col: 1, offset: 36509}, expr: &choiceExpr{ - pos: position{line: 1292, col: 5, offset: 36528}, - alternatives: []interface{}{ + pos: position{line: 1291, col: 5, offset: 36527}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1292, col: 5, offset: 36528}, + pos: position{line: 1291, col: 5, offset: 36527}, run: (*parser).callonIP6Variations2, expr: &seqExpr{ - pos: position{line: 1292, col: 5, offset: 36528}, - exprs: []interface{}{ + pos: position{line: 1291, col: 5, offset: 36527}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1292, col: 5, offset: 36528}, + pos: position{line: 1291, col: 5, offset: 36527}, label: "a", expr: &oneOrMoreExpr{ - pos: position{line: 1292, col: 7, offset: 36530}, + pos: position{line: 1291, col: 7, offset: 36529}, expr: &ruleRefExpr{ - pos: position{line: 1292, col: 7, offset: 36530}, + pos: position{line: 1291, col: 7, offset: 36529}, name: "HexColon", }, }, }, &labeledExpr{ - pos: position{line: 1292, col: 17, offset: 36540}, + pos: position{line: 1291, col: 17, offset: 36539}, label: "b", expr: &ruleRefExpr{ - pos: position{line: 1292, col: 19, offset: 36542}, + pos: position{line: 1291, col: 19, offset: 36541}, name: "IP6Tail", }, }, @@ -10794,51 +11126,52 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1295, col: 5, offset: 36606}, + pos: position{line: 1294, col: 5, offset: 36605}, run: (*parser).callonIP6Variations9, expr: &seqExpr{ - pos: position{line: 1295, col: 5, offset: 36606}, - exprs: []interface{}{ + pos: position{line: 1294, col: 5, offset: 36605}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1295, col: 5, offset: 36606}, + pos: position{line: 1294, col: 5, offset: 36605}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 1295, col: 7, offset: 36608}, + pos: position{line: 1294, col: 7, offset: 36607}, name: "Hex", }, }, &labeledExpr{ - pos: position{line: 1295, col: 11, offset: 36612}, + pos: position{line: 1294, col: 11, offset: 36611}, label: "b", expr: &zeroOrMoreExpr{ - pos: position{line: 1295, col: 13, offset: 36614}, + pos: position{line: 1294, col: 13, offset: 36613}, expr: &ruleRefExpr{ - pos: position{line: 1295, col: 13, offset: 36614}, + pos: position{line: 1294, col: 13, offset: 36613}, name: "ColonHex", }, }, }, &litMatcher{ - pos: position{line: 1295, col: 23, offset: 36624}, + pos: position{line: 1294, col: 23, offset: 36623}, val: "::", ignoreCase: false, + want: "\"::\"", }, &labeledExpr{ - pos: position{line: 1295, col: 28, offset: 36629}, + pos: position{line: 1294, col: 28, offset: 36628}, label: "d", expr: &zeroOrMoreExpr{ - pos: position{line: 1295, col: 30, offset: 36631}, + pos: position{line: 1294, col: 30, offset: 36630}, expr: &ruleRefExpr{ - pos: position{line: 1295, col: 30, offset: 36631}, + pos: position{line: 1294, col: 30, offset: 36630}, name: "HexColon", }, }, }, &labeledExpr{ - pos: position{line: 1295, col: 40, offset: 36641}, + pos: position{line: 1294, col: 40, offset: 36640}, label: "e", expr: &ruleRefExpr{ - pos: position{line: 1295, col: 42, offset: 36643}, + pos: position{line: 1294, col: 42, offset: 36642}, name: "IP6Tail", }, }, @@ -10846,32 +11179,33 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1298, col: 5, offset: 36742}, + pos: position{line: 1297, col: 5, offset: 36741}, run: (*parser).callonIP6Variations22, expr: &seqExpr{ - pos: position{line: 1298, col: 5, offset: 36742}, - exprs: []interface{}{ + pos: position{line: 1297, col: 5, offset: 36741}, + exprs: []any{ &litMatcher{ - pos: position{line: 1298, col: 5, offset: 36742}, + pos: position{line: 1297, col: 5, offset: 36741}, val: "::", ignoreCase: false, + want: "\"::\"", }, &labeledExpr{ - pos: position{line: 1298, col: 10, offset: 36747}, + pos: position{line: 1297, col: 10, offset: 36746}, label: "a", expr: &zeroOrMoreExpr{ - pos: position{line: 1298, col: 12, offset: 36749}, + pos: position{line: 1297, col: 12, offset: 36748}, expr: &ruleRefExpr{ - pos: position{line: 1298, col: 12, offset: 36749}, + pos: position{line: 1297, col: 12, offset: 36748}, name: "HexColon", }, }, }, &labeledExpr{ - pos: position{line: 1298, col: 22, offset: 36759}, + pos: position{line: 1297, col: 22, offset: 36758}, label: "b", expr: &ruleRefExpr{ - pos: position{line: 1298, col: 24, offset: 36761}, + pos: position{line: 1297, col: 24, offset: 36760}, name: "IP6Tail", }, }, @@ -10879,45 +11213,47 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1301, col: 5, offset: 36832}, + pos: position{line: 1300, col: 5, offset: 36831}, run: (*parser).callonIP6Variations30, expr: &seqExpr{ - pos: position{line: 1301, col: 5, offset: 36832}, - exprs: []interface{}{ + pos: position{line: 1300, col: 5, offset: 36831}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1301, col: 5, offset: 36832}, + pos: position{line: 1300, col: 5, offset: 36831}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 1301, col: 7, offset: 36834}, + pos: position{line: 1300, col: 7, offset: 36833}, name: "Hex", }, }, &labeledExpr{ - pos: position{line: 1301, col: 11, offset: 36838}, + pos: position{line: 1300, col: 11, offset: 36837}, label: "b", expr: &zeroOrMoreExpr{ - pos: position{line: 1301, col: 13, offset: 36840}, + pos: position{line: 1300, col: 13, offset: 36839}, expr: &ruleRefExpr{ - pos: position{line: 1301, col: 13, offset: 36840}, + pos: position{line: 1300, col: 13, offset: 36839}, name: "ColonHex", }, }, }, &litMatcher{ - pos: position{line: 1301, col: 23, offset: 36850}, + pos: position{line: 1300, col: 23, offset: 36849}, val: "::", ignoreCase: false, + want: "\"::\"", }, }, }, }, &actionExpr{ - pos: position{line: 1304, col: 5, offset: 36918}, + pos: position{line: 1303, col: 5, offset: 36917}, run: (*parser).callonIP6Variations38, expr: &litMatcher{ - pos: position{line: 1304, col: 5, offset: 36918}, + pos: position{line: 1303, col: 5, offset: 36917}, val: "::", ignoreCase: false, + want: "\"::\"", }, }, }, @@ -10925,16 +11261,16 @@ var g = &grammar{ }, { name: "IP6Tail", - pos: position{line: 1308, col: 1, offset: 36955}, + pos: position{line: 1307, col: 1, offset: 36954}, expr: &choiceExpr{ - pos: position{line: 1309, col: 5, offset: 36967}, - alternatives: []interface{}{ + pos: position{line: 1308, col: 5, offset: 36966}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1309, col: 5, offset: 36967}, + pos: position{line: 1308, col: 5, offset: 36966}, name: "IP", }, &ruleRefExpr{ - pos: position{line: 1310, col: 5, offset: 36974}, + pos: position{line: 1309, col: 5, offset: 36973}, name: "Hex", }, }, @@ -10942,23 +11278,24 @@ var g = &grammar{ }, { name: "ColonHex", - pos: position{line: 1312, col: 1, offset: 36979}, + pos: position{line: 1311, col: 1, offset: 36978}, expr: &actionExpr{ - pos: position{line: 1312, col: 12, offset: 36990}, + pos: position{line: 1311, col: 12, offset: 36989}, run: (*parser).callonColonHex1, expr: &seqExpr{ - pos: position{line: 1312, col: 12, offset: 36990}, - exprs: []interface{}{ + pos: position{line: 1311, col: 12, offset: 36989}, + exprs: []any{ &litMatcher{ - pos: position{line: 1312, col: 12, offset: 36990}, + pos: position{line: 1311, col: 12, offset: 36989}, val: ":", ignoreCase: false, + want: "\":\"", }, &labeledExpr{ - pos: position{line: 1312, col: 16, offset: 36994}, + pos: position{line: 1311, col: 16, offset: 36993}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1312, col: 18, offset: 36996}, + pos: position{line: 1311, col: 18, offset: 36995}, name: "Hex", }, }, @@ -10968,25 +11305,26 @@ var g = &grammar{ }, { name: "HexColon", - pos: position{line: 1314, col: 1, offset: 37034}, + pos: position{line: 1313, col: 1, offset: 37033}, expr: &actionExpr{ - pos: position{line: 1314, col: 12, offset: 37045}, + pos: position{line: 1313, col: 12, offset: 37044}, run: (*parser).callonHexColon1, expr: &seqExpr{ - pos: position{line: 1314, col: 12, offset: 37045}, - exprs: []interface{}{ + pos: position{line: 1313, col: 12, offset: 37044}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1314, col: 12, offset: 37045}, + pos: position{line: 1313, col: 12, offset: 37044}, label: "v", expr: &ruleRefExpr{ - pos: position{line: 1314, col: 14, offset: 37047}, + pos: position{line: 1313, col: 14, offset: 37046}, name: "Hex", }, }, &litMatcher{ - pos: position{line: 1314, col: 18, offset: 37051}, + pos: position{line: 1313, col: 18, offset: 37050}, val: ":", ignoreCase: false, + want: "\":\"", }, }, }, @@ -10994,31 +11332,32 @@ var g = &grammar{ }, { name: "IP4Net", - pos: position{line: 1316, col: 1, offset: 37089}, + pos: position{line: 1315, col: 1, offset: 37088}, expr: &actionExpr{ - pos: position{line: 1317, col: 5, offset: 37100}, + pos: position{line: 1316, col: 5, offset: 37099}, run: (*parser).callonIP4Net1, expr: &seqExpr{ - pos: position{line: 1317, col: 5, offset: 37100}, - exprs: []interface{}{ + pos: position{line: 1316, col: 5, offset: 37099}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1317, col: 5, offset: 37100}, + pos: position{line: 1316, col: 5, offset: 37099}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 1317, col: 7, offset: 37102}, + pos: position{line: 1316, col: 7, offset: 37101}, name: "IP", }, }, &litMatcher{ - pos: position{line: 1317, col: 10, offset: 37105}, + pos: position{line: 1316, col: 10, offset: 37104}, val: "/", ignoreCase: false, + want: "\"/\"", }, &labeledExpr{ - pos: position{line: 1317, col: 14, offset: 37109}, + pos: position{line: 1316, col: 14, offset: 37108}, label: "m", expr: &ruleRefExpr{ - pos: position{line: 1317, col: 16, offset: 37111}, + pos: position{line: 1316, col: 16, offset: 37110}, name: "UIntString", }, }, @@ -11028,31 +11367,32 @@ var g = &grammar{ }, { name: "IP6Net", - pos: position{line: 1321, col: 1, offset: 37180}, + pos: position{line: 1320, col: 1, offset: 37179}, expr: &actionExpr{ - pos: position{line: 1322, col: 5, offset: 37191}, + pos: position{line: 1321, col: 5, offset: 37190}, run: (*parser).callonIP6Net1, expr: &seqExpr{ - pos: position{line: 1322, col: 5, offset: 37191}, - exprs: []interface{}{ + pos: position{line: 1321, col: 5, offset: 37190}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1322, col: 5, offset: 37191}, + pos: position{line: 1321, col: 5, offset: 37190}, label: "a", expr: &ruleRefExpr{ - pos: position{line: 1322, col: 7, offset: 37193}, + pos: position{line: 1321, col: 7, offset: 37192}, name: "IP6", }, }, &litMatcher{ - pos: position{line: 1322, col: 11, offset: 37197}, + pos: position{line: 1321, col: 11, offset: 37196}, val: "/", ignoreCase: false, + want: "\"/\"", }, &labeledExpr{ - pos: position{line: 1322, col: 15, offset: 37201}, + pos: position{line: 1321, col: 15, offset: 37200}, label: "m", expr: &ruleRefExpr{ - pos: position{line: 1322, col: 17, offset: 37203}, + pos: position{line: 1321, col: 17, offset: 37202}, name: "UIntString", }, }, @@ -11062,15 +11402,15 @@ var g = &grammar{ }, { name: "UInt", - pos: position{line: 1326, col: 1, offset: 37272}, + pos: position{line: 1325, col: 1, offset: 37271}, expr: &actionExpr{ - pos: position{line: 1327, col: 4, offset: 37280}, + pos: position{line: 1326, col: 4, offset: 37279}, run: (*parser).callonUInt1, expr: &labeledExpr{ - pos: position{line: 1327, col: 4, offset: 37280}, + pos: position{line: 1326, col: 4, offset: 37279}, label: "s", expr: &ruleRefExpr{ - pos: position{line: 1327, col: 6, offset: 37282}, + pos: position{line: 1326, col: 6, offset: 37281}, name: "UIntString", }, }, @@ -11078,16 +11418,16 @@ var g = &grammar{ }, { name: "IntString", - pos: position{line: 1329, col: 1, offset: 37322}, + pos: position{line: 1328, col: 1, offset: 37321}, expr: &choiceExpr{ - pos: position{line: 1330, col: 5, offset: 37336}, - alternatives: []interface{}{ + pos: position{line: 1329, col: 5, offset: 37335}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1330, col: 5, offset: 37336}, + pos: position{line: 1329, col: 5, offset: 37335}, name: "UIntString", }, &ruleRefExpr{ - pos: position{line: 1331, col: 5, offset: 37351}, + pos: position{line: 1330, col: 5, offset: 37350}, name: "MinusIntString", }, }, @@ -11095,14 +11435,14 @@ var g = &grammar{ }, { name: "UIntString", - pos: position{line: 1333, col: 1, offset: 37367}, + pos: position{line: 1332, col: 1, offset: 37366}, expr: &actionExpr{ - pos: position{line: 1333, col: 14, offset: 37380}, + pos: position{line: 1332, col: 14, offset: 37379}, run: (*parser).callonUIntString1, expr: &oneOrMoreExpr{ - pos: position{line: 1333, col: 14, offset: 37380}, + pos: position{line: 1332, col: 14, offset: 37379}, expr: &charClassMatcher{ - pos: position{line: 1333, col: 14, offset: 37380}, + pos: position{line: 1332, col: 14, offset: 37379}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -11113,20 +11453,21 @@ var g = &grammar{ }, { name: "MinusIntString", - pos: position{line: 1335, col: 1, offset: 37419}, + pos: position{line: 1334, col: 1, offset: 37418}, expr: &actionExpr{ - pos: position{line: 1336, col: 5, offset: 37438}, + pos: position{line: 1335, col: 5, offset: 37437}, run: (*parser).callonMinusIntString1, expr: &seqExpr{ - pos: position{line: 1336, col: 5, offset: 37438}, - exprs: []interface{}{ + pos: position{line: 1335, col: 5, offset: 37437}, + exprs: []any{ &litMatcher{ - pos: position{line: 1336, col: 5, offset: 37438}, + pos: position{line: 1335, col: 5, offset: 37437}, val: "-", ignoreCase: false, + want: "\"-\"", }, &ruleRefExpr{ - pos: position{line: 1336, col: 9, offset: 37442}, + pos: position{line: 1335, col: 9, offset: 37441}, name: "UIntString", }, }, @@ -11135,28 +11476,29 @@ var g = &grammar{ }, { name: "FloatString", - pos: position{line: 1338, col: 1, offset: 37485}, + pos: position{line: 1337, col: 1, offset: 37484}, expr: &choiceExpr{ - pos: position{line: 1339, col: 5, offset: 37501}, - alternatives: []interface{}{ + pos: position{line: 1338, col: 5, offset: 37500}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1339, col: 5, offset: 37501}, + pos: position{line: 1338, col: 5, offset: 37500}, run: (*parser).callonFloatString2, expr: &seqExpr{ - pos: position{line: 1339, col: 5, offset: 37501}, - exprs: []interface{}{ + pos: position{line: 1338, col: 5, offset: 37500}, + exprs: []any{ &zeroOrOneExpr{ - pos: position{line: 1339, col: 5, offset: 37501}, + pos: position{line: 1338, col: 5, offset: 37500}, expr: &litMatcher{ - pos: position{line: 1339, col: 5, offset: 37501}, + pos: position{line: 1338, col: 5, offset: 37500}, val: "-", ignoreCase: false, + want: "\"-\"", }, }, &oneOrMoreExpr{ - pos: position{line: 1339, col: 10, offset: 37506}, + pos: position{line: 1338, col: 10, offset: 37505}, expr: &charClassMatcher{ - pos: position{line: 1339, col: 10, offset: 37506}, + pos: position{line: 1338, col: 10, offset: 37505}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -11164,14 +11506,15 @@ var g = &grammar{ }, }, &litMatcher{ - pos: position{line: 1339, col: 17, offset: 37513}, + pos: position{line: 1338, col: 17, offset: 37512}, val: ".", ignoreCase: false, + want: "\".\"", }, &zeroOrMoreExpr{ - pos: position{line: 1339, col: 21, offset: 37517}, + pos: position{line: 1338, col: 21, offset: 37516}, expr: &charClassMatcher{ - pos: position{line: 1339, col: 21, offset: 37517}, + pos: position{line: 1338, col: 21, offset: 37516}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -11179,9 +11522,9 @@ var g = &grammar{ }, }, &zeroOrOneExpr{ - pos: position{line: 1339, col: 28, offset: 37524}, + pos: position{line: 1338, col: 28, offset: 37523}, expr: &ruleRefExpr{ - pos: position{line: 1339, col: 28, offset: 37524}, + pos: position{line: 1338, col: 28, offset: 37523}, name: "ExponentPart", }, }, @@ -11189,28 +11532,30 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1342, col: 5, offset: 37583}, + pos: position{line: 1341, col: 5, offset: 37582}, run: (*parser).callonFloatString13, expr: &seqExpr{ - pos: position{line: 1342, col: 5, offset: 37583}, - exprs: []interface{}{ + pos: position{line: 1341, col: 5, offset: 37582}, + exprs: []any{ &zeroOrOneExpr{ - pos: position{line: 1342, col: 5, offset: 37583}, + pos: position{line: 1341, col: 5, offset: 37582}, expr: &litMatcher{ - pos: position{line: 1342, col: 5, offset: 37583}, + pos: position{line: 1341, col: 5, offset: 37582}, val: "-", ignoreCase: false, + want: "\"-\"", }, }, &litMatcher{ - pos: position{line: 1342, col: 10, offset: 37588}, + pos: position{line: 1341, col: 10, offset: 37587}, val: ".", ignoreCase: false, + want: "\".\"", }, &oneOrMoreExpr{ - pos: position{line: 1342, col: 14, offset: 37592}, + pos: position{line: 1341, col: 14, offset: 37591}, expr: &charClassMatcher{ - pos: position{line: 1342, col: 14, offset: 37592}, + pos: position{line: 1341, col: 14, offset: 37591}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -11218,9 +11563,9 @@ var g = &grammar{ }, }, &zeroOrOneExpr{ - pos: position{line: 1342, col: 21, offset: 37599}, + pos: position{line: 1341, col: 21, offset: 37598}, expr: &ruleRefExpr{ - pos: position{line: 1342, col: 21, offset: 37599}, + pos: position{line: 1341, col: 21, offset: 37598}, name: "ExponentPart", }, }, @@ -11228,17 +11573,17 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1345, col: 5, offset: 37658}, + pos: position{line: 1344, col: 5, offset: 37657}, run: (*parser).callonFloatString22, expr: &choiceExpr{ - pos: position{line: 1345, col: 6, offset: 37659}, - alternatives: []interface{}{ + pos: position{line: 1344, col: 6, offset: 37658}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1345, col: 6, offset: 37659}, + pos: position{line: 1344, col: 6, offset: 37658}, name: "NaN", }, &ruleRefExpr{ - pos: position{line: 1345, col: 12, offset: 37665}, + pos: position{line: 1344, col: 12, offset: 37664}, name: "Infinity", }, }, @@ -11249,19 +11594,20 @@ var g = &grammar{ }, { name: "ExponentPart", - pos: position{line: 1348, col: 1, offset: 37708}, + pos: position{line: 1347, col: 1, offset: 37707}, expr: &seqExpr{ - pos: position{line: 1348, col: 16, offset: 37723}, - exprs: []interface{}{ + pos: position{line: 1347, col: 16, offset: 37722}, + exprs: []any{ &litMatcher{ - pos: position{line: 1348, col: 16, offset: 37723}, + pos: position{line: 1347, col: 16, offset: 37722}, val: "e", ignoreCase: true, + want: "\"e\"i", }, &zeroOrOneExpr{ - pos: position{line: 1348, col: 21, offset: 37728}, + pos: position{line: 1347, col: 21, offset: 37727}, expr: &charClassMatcher{ - pos: position{line: 1348, col: 21, offset: 37728}, + pos: position{line: 1347, col: 21, offset: 37727}, val: "[+-]", chars: []rune{'+', '-'}, ignoreCase: false, @@ -11269,7 +11615,7 @@ var g = &grammar{ }, }, &ruleRefExpr{ - pos: position{line: 1348, col: 27, offset: 37734}, + pos: position{line: 1347, col: 27, offset: 37733}, name: "UIntString", }, }, @@ -11277,55 +11623,59 @@ var g = &grammar{ }, { name: "NaN", - pos: position{line: 1350, col: 1, offset: 37746}, + pos: position{line: 1349, col: 1, offset: 37745}, expr: &litMatcher{ - pos: position{line: 1350, col: 7, offset: 37752}, + pos: position{line: 1349, col: 7, offset: 37751}, val: "NaN", ignoreCase: false, + want: "\"NaN\"", }, }, { name: "Infinity", - pos: position{line: 1352, col: 1, offset: 37759}, + pos: position{line: 1351, col: 1, offset: 37758}, expr: &seqExpr{ - pos: position{line: 1352, col: 12, offset: 37770}, - exprs: []interface{}{ + pos: position{line: 1351, col: 12, offset: 37769}, + exprs: []any{ &zeroOrOneExpr{ - pos: position{line: 1352, col: 12, offset: 37770}, + pos: position{line: 1351, col: 12, offset: 37769}, expr: &choiceExpr{ - pos: position{line: 1352, col: 13, offset: 37771}, - alternatives: []interface{}{ + pos: position{line: 1351, col: 13, offset: 37770}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1352, col: 13, offset: 37771}, + pos: position{line: 1351, col: 13, offset: 37770}, val: "-", ignoreCase: false, + want: "\"-\"", }, &litMatcher{ - pos: position{line: 1352, col: 19, offset: 37777}, + pos: position{line: 1351, col: 19, offset: 37776}, val: "+", ignoreCase: false, + want: "\"+\"", }, }, }, }, &litMatcher{ - pos: position{line: 1352, col: 25, offset: 37783}, + pos: position{line: 1351, col: 25, offset: 37782}, val: "Inf", ignoreCase: false, + want: "\"Inf\"", }, }, }, }, { name: "Hex", - pos: position{line: 1354, col: 1, offset: 37790}, + pos: position{line: 1353, col: 1, offset: 37789}, expr: &actionExpr{ - pos: position{line: 1354, col: 7, offset: 37796}, + pos: position{line: 1353, col: 7, offset: 37795}, run: (*parser).callonHex1, expr: &oneOrMoreExpr{ - pos: position{line: 1354, col: 7, offset: 37796}, + pos: position{line: 1353, col: 7, offset: 37795}, expr: &ruleRefExpr{ - pos: position{line: 1354, col: 7, offset: 37796}, + pos: position{line: 1353, col: 7, offset: 37795}, name: "HexDigit", }, }, @@ -11333,9 +11683,9 @@ var g = &grammar{ }, { name: "HexDigit", - pos: position{line: 1356, col: 1, offset: 37838}, + pos: position{line: 1355, col: 1, offset: 37837}, expr: &charClassMatcher{ - pos: position{line: 1356, col: 12, offset: 37849}, + pos: position{line: 1355, col: 12, offset: 37848}, val: "[0-9a-fA-F]", ranges: []rune{'0', '9', 'a', 'f', 'A', 'F'}, ignoreCase: false, @@ -11344,66 +11694,70 @@ var g = &grammar{ }, { name: "QuotedString", - pos: position{line: 1358, col: 1, offset: 37862}, + pos: position{line: 1357, col: 1, offset: 37861}, expr: &choiceExpr{ - pos: position{line: 1359, col: 5, offset: 37879}, - alternatives: []interface{}{ + pos: position{line: 1358, col: 5, offset: 37878}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1359, col: 5, offset: 37879}, + pos: position{line: 1358, col: 5, offset: 37878}, run: (*parser).callonQuotedString2, expr: &seqExpr{ - pos: position{line: 1359, col: 5, offset: 37879}, - exprs: []interface{}{ + pos: position{line: 1358, col: 5, offset: 37878}, + exprs: []any{ &litMatcher{ - pos: position{line: 1359, col: 5, offset: 37879}, + pos: position{line: 1358, col: 5, offset: 37878}, val: "\"", ignoreCase: false, + want: "\"\\\"\"", }, &labeledExpr{ - pos: position{line: 1359, col: 9, offset: 37883}, + pos: position{line: 1358, col: 9, offset: 37882}, label: "v", expr: &zeroOrMoreExpr{ - pos: position{line: 1359, col: 11, offset: 37885}, + pos: position{line: 1358, col: 11, offset: 37884}, expr: &ruleRefExpr{ - pos: position{line: 1359, col: 11, offset: 37885}, + pos: position{line: 1358, col: 11, offset: 37884}, name: "DoubleQuotedChar", }, }, }, &litMatcher{ - pos: position{line: 1359, col: 29, offset: 37903}, + pos: position{line: 1358, col: 29, offset: 37902}, val: "\"", ignoreCase: false, + want: "\"\\\"\"", }, }, }, }, &actionExpr{ - pos: position{line: 1360, col: 5, offset: 37940}, + pos: position{line: 1359, col: 5, offset: 37939}, run: (*parser).callonQuotedString9, expr: &seqExpr{ - pos: position{line: 1360, col: 5, offset: 37940}, - exprs: []interface{}{ + pos: position{line: 1359, col: 5, offset: 37939}, + exprs: []any{ &litMatcher{ - pos: position{line: 1360, col: 5, offset: 37940}, + pos: position{line: 1359, col: 5, offset: 37939}, val: "'", ignoreCase: false, + want: "\"'\"", }, &labeledExpr{ - pos: position{line: 1360, col: 9, offset: 37944}, + pos: position{line: 1359, col: 9, offset: 37943}, label: "v", expr: &zeroOrMoreExpr{ - pos: position{line: 1360, col: 11, offset: 37946}, + pos: position{line: 1359, col: 11, offset: 37945}, expr: &ruleRefExpr{ - pos: position{line: 1360, col: 11, offset: 37946}, + pos: position{line: 1359, col: 11, offset: 37945}, name: "SingleQuotedChar", }, }, }, &litMatcher{ - pos: position{line: 1360, col: 29, offset: 37964}, + pos: position{line: 1359, col: 29, offset: 37963}, val: "'", ignoreCase: false, + want: "\"'\"", }, }, }, @@ -11413,55 +11767,57 @@ var g = &grammar{ }, { name: "DoubleQuotedChar", - pos: position{line: 1362, col: 1, offset: 37998}, + pos: position{line: 1361, col: 1, offset: 37997}, expr: &choiceExpr{ - pos: position{line: 1363, col: 5, offset: 38019}, - alternatives: []interface{}{ + pos: position{line: 1362, col: 5, offset: 38018}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1363, col: 5, offset: 38019}, + pos: position{line: 1362, col: 5, offset: 38018}, run: (*parser).callonDoubleQuotedChar2, expr: &seqExpr{ - pos: position{line: 1363, col: 5, offset: 38019}, - exprs: []interface{}{ + pos: position{line: 1362, col: 5, offset: 38018}, + exprs: []any{ ¬Expr{ - pos: position{line: 1363, col: 5, offset: 38019}, + pos: position{line: 1362, col: 5, offset: 38018}, expr: &choiceExpr{ - pos: position{line: 1363, col: 7, offset: 38021}, - alternatives: []interface{}{ + pos: position{line: 1362, col: 7, offset: 38020}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1363, col: 7, offset: 38021}, + pos: position{line: 1362, col: 7, offset: 38020}, val: "\"", ignoreCase: false, + want: "\"\\\"\"", }, &ruleRefExpr{ - pos: position{line: 1363, col: 13, offset: 38027}, + pos: position{line: 1362, col: 13, offset: 38026}, name: "EscapedChar", }, }, }, }, &anyMatcher{ - line: 1363, col: 26, offset: 38040, + line: 1362, col: 26, offset: 38039, }, }, }, }, &actionExpr{ - pos: position{line: 1364, col: 5, offset: 38077}, + pos: position{line: 1363, col: 5, offset: 38076}, run: (*parser).callonDoubleQuotedChar9, expr: &seqExpr{ - pos: position{line: 1364, col: 5, offset: 38077}, - exprs: []interface{}{ + pos: position{line: 1363, col: 5, offset: 38076}, + exprs: []any{ &litMatcher{ - pos: position{line: 1364, col: 5, offset: 38077}, + pos: position{line: 1363, col: 5, offset: 38076}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &labeledExpr{ - pos: position{line: 1364, col: 10, offset: 38082}, + pos: position{line: 1363, col: 10, offset: 38081}, label: "s", expr: &ruleRefExpr{ - pos: position{line: 1364, col: 12, offset: 38084}, + pos: position{line: 1363, col: 12, offset: 38083}, name: "EscapeSequence", }, }, @@ -11473,28 +11829,28 @@ var g = &grammar{ }, { name: "KeyWord", - pos: position{line: 1366, col: 1, offset: 38118}, + pos: position{line: 1365, col: 1, offset: 38117}, expr: &actionExpr{ - pos: position{line: 1367, col: 5, offset: 38130}, + pos: position{line: 1366, col: 5, offset: 38129}, run: (*parser).callonKeyWord1, expr: &seqExpr{ - pos: position{line: 1367, col: 5, offset: 38130}, - exprs: []interface{}{ + pos: position{line: 1366, col: 5, offset: 38129}, + exprs: []any{ &labeledExpr{ - pos: position{line: 1367, col: 5, offset: 38130}, + pos: position{line: 1366, col: 5, offset: 38129}, label: "head", expr: &ruleRefExpr{ - pos: position{line: 1367, col: 10, offset: 38135}, + pos: position{line: 1366, col: 10, offset: 38134}, name: "KeyWordStart", }, }, &labeledExpr{ - pos: position{line: 1367, col: 23, offset: 38148}, + pos: position{line: 1366, col: 23, offset: 38147}, label: "tail", expr: &zeroOrMoreExpr{ - pos: position{line: 1367, col: 28, offset: 38153}, + pos: position{line: 1366, col: 28, offset: 38152}, expr: &ruleRefExpr{ - pos: position{line: 1367, col: 28, offset: 38153}, + pos: position{line: 1366, col: 28, offset: 38152}, name: "KeyWordRest", }, }, @@ -11505,16 +11861,16 @@ var g = &grammar{ }, { name: "KeyWordStart", - pos: position{line: 1369, col: 1, offset: 38215}, + pos: position{line: 1368, col: 1, offset: 38214}, expr: &choiceExpr{ - pos: position{line: 1370, col: 5, offset: 38232}, - alternatives: []interface{}{ + pos: position{line: 1369, col: 5, offset: 38231}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1370, col: 5, offset: 38232}, + pos: position{line: 1369, col: 5, offset: 38231}, name: "KeyWordChars", }, &ruleRefExpr{ - pos: position{line: 1371, col: 5, offset: 38249}, + pos: position{line: 1370, col: 5, offset: 38248}, name: "KeyWordEsc", }, }, @@ -11522,16 +11878,16 @@ var g = &grammar{ }, { name: "KeyWordRest", - pos: position{line: 1373, col: 1, offset: 38261}, + pos: position{line: 1372, col: 1, offset: 38260}, expr: &choiceExpr{ - pos: position{line: 1374, col: 5, offset: 38277}, - alternatives: []interface{}{ + pos: position{line: 1373, col: 5, offset: 38276}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1374, col: 5, offset: 38277}, + pos: position{line: 1373, col: 5, offset: 38276}, name: "KeyWordStart", }, &charClassMatcher{ - pos: position{line: 1375, col: 5, offset: 38294}, + pos: position{line: 1374, col: 5, offset: 38293}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -11542,19 +11898,19 @@ var g = &grammar{ }, { name: "KeyWordChars", - pos: position{line: 1377, col: 1, offset: 38301}, + pos: position{line: 1376, col: 1, offset: 38300}, expr: &actionExpr{ - pos: position{line: 1377, col: 16, offset: 38316}, + pos: position{line: 1376, col: 16, offset: 38315}, run: (*parser).callonKeyWordChars1, expr: &choiceExpr{ - pos: position{line: 1377, col: 17, offset: 38317}, - alternatives: []interface{}{ + pos: position{line: 1376, col: 17, offset: 38316}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1377, col: 17, offset: 38317}, + pos: position{line: 1376, col: 17, offset: 38316}, name: "UnicodeLetter", }, &charClassMatcher{ - pos: position{line: 1377, col: 33, offset: 38333}, + pos: position{line: 1376, col: 33, offset: 38332}, val: "[_.:/%#@~]", chars: []rune{'_', '.', ':', '/', '%', '#', '@', '~'}, ignoreCase: false, @@ -11566,30 +11922,31 @@ var g = &grammar{ }, { name: "KeyWordEsc", - pos: position{line: 1379, col: 1, offset: 38377}, + pos: position{line: 1378, col: 1, offset: 38376}, expr: &actionExpr{ - pos: position{line: 1379, col: 14, offset: 38390}, + pos: position{line: 1378, col: 14, offset: 38389}, run: (*parser).callonKeyWordEsc1, expr: &seqExpr{ - pos: position{line: 1379, col: 14, offset: 38390}, - exprs: []interface{}{ + pos: position{line: 1378, col: 14, offset: 38389}, + exprs: []any{ &litMatcher{ - pos: position{line: 1379, col: 14, offset: 38390}, + pos: position{line: 1378, col: 14, offset: 38389}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &labeledExpr{ - pos: position{line: 1379, col: 19, offset: 38395}, + pos: position{line: 1378, col: 19, offset: 38394}, label: "s", expr: &choiceExpr{ - pos: position{line: 1379, col: 22, offset: 38398}, - alternatives: []interface{}{ + pos: position{line: 1378, col: 22, offset: 38397}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1379, col: 22, offset: 38398}, + pos: position{line: 1378, col: 22, offset: 38397}, name: "KeywordEscape", }, &ruleRefExpr{ - pos: position{line: 1379, col: 38, offset: 38414}, + pos: position{line: 1378, col: 38, offset: 38413}, name: "EscapeSequence", }, }, @@ -11601,42 +11958,42 @@ var g = &grammar{ }, { name: "GlobPattern", - pos: position{line: 1381, col: 1, offset: 38449}, + pos: position{line: 1380, col: 1, offset: 38448}, expr: &actionExpr{ - pos: position{line: 1382, col: 5, offset: 38465}, + pos: position{line: 1381, col: 5, offset: 38464}, run: (*parser).callonGlobPattern1, expr: &seqExpr{ - pos: position{line: 1382, col: 5, offset: 38465}, - exprs: []interface{}{ + pos: position{line: 1381, col: 5, offset: 38464}, + exprs: []any{ &andExpr{ - pos: position{line: 1382, col: 5, offset: 38465}, + pos: position{line: 1381, col: 5, offset: 38464}, expr: &ruleRefExpr{ - pos: position{line: 1382, col: 6, offset: 38466}, + pos: position{line: 1381, col: 6, offset: 38465}, name: "GlobProperStart", }, }, &andExpr{ - pos: position{line: 1382, col: 22, offset: 38482}, + pos: position{line: 1381, col: 22, offset: 38481}, expr: &ruleRefExpr{ - pos: position{line: 1382, col: 23, offset: 38483}, + pos: position{line: 1381, col: 23, offset: 38482}, name: "GlobHasStar", }, }, &labeledExpr{ - pos: position{line: 1382, col: 35, offset: 38495}, + pos: position{line: 1381, col: 35, offset: 38494}, label: "head", expr: &ruleRefExpr{ - pos: position{line: 1382, col: 40, offset: 38500}, + pos: position{line: 1381, col: 40, offset: 38499}, name: "GlobStart", }, }, &labeledExpr{ - pos: position{line: 1382, col: 50, offset: 38510}, + pos: position{line: 1381, col: 50, offset: 38509}, label: "tail", expr: &zeroOrMoreExpr{ - pos: position{line: 1382, col: 55, offset: 38515}, + pos: position{line: 1381, col: 55, offset: 38514}, expr: &ruleRefExpr{ - pos: position{line: 1382, col: 55, offset: 38515}, + pos: position{line: 1381, col: 55, offset: 38514}, name: "GlobRest", }, }, @@ -11647,27 +12004,28 @@ var g = &grammar{ }, { name: "GlobProperStart", - pos: position{line: 1386, col: 1, offset: 38584}, + pos: position{line: 1385, col: 1, offset: 38583}, expr: &choiceExpr{ - pos: position{line: 1386, col: 19, offset: 38602}, - alternatives: []interface{}{ + pos: position{line: 1385, col: 19, offset: 38601}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1386, col: 19, offset: 38602}, + pos: position{line: 1385, col: 19, offset: 38601}, name: "KeyWordStart", }, &seqExpr{ - pos: position{line: 1386, col: 34, offset: 38617}, - exprs: []interface{}{ + pos: position{line: 1385, col: 34, offset: 38616}, + exprs: []any{ &oneOrMoreExpr{ - pos: position{line: 1386, col: 34, offset: 38617}, + pos: position{line: 1385, col: 34, offset: 38616}, expr: &litMatcher{ - pos: position{line: 1386, col: 34, offset: 38617}, + pos: position{line: 1385, col: 34, offset: 38616}, val: "*", ignoreCase: false, + want: "\"*\"", }, }, &ruleRefExpr{ - pos: position{line: 1386, col: 39, offset: 38622}, + pos: position{line: 1385, col: 39, offset: 38621}, name: "KeyWordRest", }, }, @@ -11677,46 +12035,48 @@ var g = &grammar{ }, { name: "GlobHasStar", - pos: position{line: 1387, col: 1, offset: 38634}, + pos: position{line: 1386, col: 1, offset: 38633}, expr: &seqExpr{ - pos: position{line: 1387, col: 15, offset: 38648}, - exprs: []interface{}{ + pos: position{line: 1386, col: 15, offset: 38647}, + exprs: []any{ &zeroOrMoreExpr{ - pos: position{line: 1387, col: 15, offset: 38648}, + pos: position{line: 1386, col: 15, offset: 38647}, expr: &ruleRefExpr{ - pos: position{line: 1387, col: 15, offset: 38648}, + pos: position{line: 1386, col: 15, offset: 38647}, name: "KeyWordRest", }, }, &litMatcher{ - pos: position{line: 1387, col: 28, offset: 38661}, + pos: position{line: 1386, col: 28, offset: 38660}, val: "*", ignoreCase: false, + want: "\"*\"", }, }, }, }, { name: "GlobStart", - pos: position{line: 1389, col: 1, offset: 38666}, + pos: position{line: 1388, col: 1, offset: 38665}, expr: &choiceExpr{ - pos: position{line: 1390, col: 5, offset: 38680}, - alternatives: []interface{}{ + pos: position{line: 1389, col: 5, offset: 38679}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1390, col: 5, offset: 38680}, + pos: position{line: 1389, col: 5, offset: 38679}, name: "KeyWordChars", }, &ruleRefExpr{ - pos: position{line: 1391, col: 5, offset: 38697}, + pos: position{line: 1390, col: 5, offset: 38696}, name: "GlobEsc", }, &actionExpr{ - pos: position{line: 1392, col: 5, offset: 38709}, + pos: position{line: 1391, col: 5, offset: 38708}, run: (*parser).callonGlobStart4, expr: &litMatcher{ - pos: position{line: 1392, col: 5, offset: 38709}, + pos: position{line: 1391, col: 5, offset: 38708}, val: "*", ignoreCase: false, + want: "\"*\"", }, }, }, @@ -11724,16 +12084,16 @@ var g = &grammar{ }, { name: "GlobRest", - pos: position{line: 1394, col: 1, offset: 38734}, + pos: position{line: 1393, col: 1, offset: 38733}, expr: &choiceExpr{ - pos: position{line: 1395, col: 5, offset: 38747}, - alternatives: []interface{}{ + pos: position{line: 1394, col: 5, offset: 38746}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1395, col: 5, offset: 38747}, + pos: position{line: 1394, col: 5, offset: 38746}, name: "GlobStart", }, &charClassMatcher{ - pos: position{line: 1396, col: 5, offset: 38761}, + pos: position{line: 1395, col: 5, offset: 38760}, val: "[0-9]", ranges: []rune{'0', '9'}, ignoreCase: false, @@ -11744,30 +12104,31 @@ var g = &grammar{ }, { name: "GlobEsc", - pos: position{line: 1398, col: 1, offset: 38768}, + pos: position{line: 1397, col: 1, offset: 38767}, expr: &actionExpr{ - pos: position{line: 1398, col: 11, offset: 38778}, + pos: position{line: 1397, col: 11, offset: 38777}, run: (*parser).callonGlobEsc1, expr: &seqExpr{ - pos: position{line: 1398, col: 11, offset: 38778}, - exprs: []interface{}{ + pos: position{line: 1397, col: 11, offset: 38777}, + exprs: []any{ &litMatcher{ - pos: position{line: 1398, col: 11, offset: 38778}, + pos: position{line: 1397, col: 11, offset: 38777}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &labeledExpr{ - pos: position{line: 1398, col: 16, offset: 38783}, + pos: position{line: 1397, col: 16, offset: 38782}, label: "s", expr: &choiceExpr{ - pos: position{line: 1398, col: 19, offset: 38786}, - alternatives: []interface{}{ + pos: position{line: 1397, col: 19, offset: 38785}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1398, col: 19, offset: 38786}, + pos: position{line: 1397, col: 19, offset: 38785}, name: "GlobEscape", }, &ruleRefExpr{ - pos: position{line: 1398, col: 32, offset: 38799}, + pos: position{line: 1397, col: 32, offset: 38798}, name: "EscapeSequence", }, }, @@ -11779,30 +12140,32 @@ var g = &grammar{ }, { name: "GlobEscape", - pos: position{line: 1400, col: 1, offset: 38834}, + pos: position{line: 1399, col: 1, offset: 38833}, expr: &choiceExpr{ - pos: position{line: 1401, col: 5, offset: 38849}, - alternatives: []interface{}{ + pos: position{line: 1400, col: 5, offset: 38848}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1401, col: 5, offset: 38849}, + pos: position{line: 1400, col: 5, offset: 38848}, run: (*parser).callonGlobEscape2, expr: &litMatcher{ - pos: position{line: 1401, col: 5, offset: 38849}, + pos: position{line: 1400, col: 5, offset: 38848}, val: "=", ignoreCase: false, + want: "\"=\"", }, }, &actionExpr{ - pos: position{line: 1402, col: 5, offset: 38877}, + pos: position{line: 1401, col: 5, offset: 38876}, run: (*parser).callonGlobEscape4, expr: &litMatcher{ - pos: position{line: 1402, col: 5, offset: 38877}, + pos: position{line: 1401, col: 5, offset: 38876}, val: "*", ignoreCase: false, + want: "\"*\"", }, }, &charClassMatcher{ - pos: position{line: 1403, col: 5, offset: 38907}, + pos: position{line: 1402, col: 5, offset: 38906}, val: "[+-]", chars: []rune{'+', '-'}, ignoreCase: false, @@ -11813,55 +12176,57 @@ var g = &grammar{ }, { name: "SingleQuotedChar", - pos: position{line: 1405, col: 1, offset: 38913}, + pos: position{line: 1404, col: 1, offset: 38912}, expr: &choiceExpr{ - pos: position{line: 1406, col: 5, offset: 38934}, - alternatives: []interface{}{ + pos: position{line: 1405, col: 5, offset: 38933}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1406, col: 5, offset: 38934}, + pos: position{line: 1405, col: 5, offset: 38933}, run: (*parser).callonSingleQuotedChar2, expr: &seqExpr{ - pos: position{line: 1406, col: 5, offset: 38934}, - exprs: []interface{}{ + pos: position{line: 1405, col: 5, offset: 38933}, + exprs: []any{ ¬Expr{ - pos: position{line: 1406, col: 5, offset: 38934}, + pos: position{line: 1405, col: 5, offset: 38933}, expr: &choiceExpr{ - pos: position{line: 1406, col: 7, offset: 38936}, - alternatives: []interface{}{ + pos: position{line: 1405, col: 7, offset: 38935}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1406, col: 7, offset: 38936}, + pos: position{line: 1405, col: 7, offset: 38935}, val: "'", ignoreCase: false, + want: "\"'\"", }, &ruleRefExpr{ - pos: position{line: 1406, col: 13, offset: 38942}, + pos: position{line: 1405, col: 13, offset: 38941}, name: "EscapedChar", }, }, }, }, &anyMatcher{ - line: 1406, col: 26, offset: 38955, + line: 1405, col: 26, offset: 38954, }, }, }, }, &actionExpr{ - pos: position{line: 1407, col: 5, offset: 38992}, + pos: position{line: 1406, col: 5, offset: 38991}, run: (*parser).callonSingleQuotedChar9, expr: &seqExpr{ - pos: position{line: 1407, col: 5, offset: 38992}, - exprs: []interface{}{ + pos: position{line: 1406, col: 5, offset: 38991}, + exprs: []any{ &litMatcher{ - pos: position{line: 1407, col: 5, offset: 38992}, + pos: position{line: 1406, col: 5, offset: 38991}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &labeledExpr{ - pos: position{line: 1407, col: 10, offset: 38997}, + pos: position{line: 1406, col: 10, offset: 38996}, label: "s", expr: &ruleRefExpr{ - pos: position{line: 1407, col: 12, offset: 38999}, + pos: position{line: 1406, col: 12, offset: 38998}, name: "EscapeSequence", }, }, @@ -11873,16 +12238,16 @@ var g = &grammar{ }, { name: "EscapeSequence", - pos: position{line: 1409, col: 1, offset: 39033}, + pos: position{line: 1408, col: 1, offset: 39032}, expr: &choiceExpr{ - pos: position{line: 1410, col: 5, offset: 39052}, - alternatives: []interface{}{ + pos: position{line: 1409, col: 5, offset: 39051}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1410, col: 5, offset: 39052}, + pos: position{line: 1409, col: 5, offset: 39051}, name: "SingleCharEscape", }, &ruleRefExpr{ - pos: position{line: 1411, col: 5, offset: 39073}, + pos: position{line: 1410, col: 5, offset: 39072}, name: "UnicodeEscape", }, }, @@ -11890,81 +12255,90 @@ var g = &grammar{ }, { name: "SingleCharEscape", - pos: position{line: 1413, col: 1, offset: 39088}, + pos: position{line: 1412, col: 1, offset: 39087}, expr: &choiceExpr{ - pos: position{line: 1414, col: 5, offset: 39109}, - alternatives: []interface{}{ + pos: position{line: 1413, col: 5, offset: 39108}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1414, col: 5, offset: 39109}, + pos: position{line: 1413, col: 5, offset: 39108}, val: "'", ignoreCase: false, + want: "\"'\"", }, &actionExpr{ - pos: position{line: 1415, col: 5, offset: 39117}, + pos: position{line: 1414, col: 5, offset: 39116}, run: (*parser).callonSingleCharEscape3, expr: &litMatcher{ - pos: position{line: 1415, col: 5, offset: 39117}, + pos: position{line: 1414, col: 5, offset: 39116}, val: "\"", ignoreCase: false, + want: "\"\\\"\"", }, }, &litMatcher{ - pos: position{line: 1416, col: 5, offset: 39157}, + pos: position{line: 1415, col: 5, offset: 39156}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &actionExpr{ - pos: position{line: 1417, col: 5, offset: 39166}, + pos: position{line: 1416, col: 5, offset: 39165}, run: (*parser).callonSingleCharEscape6, expr: &litMatcher{ - pos: position{line: 1417, col: 5, offset: 39166}, + pos: position{line: 1416, col: 5, offset: 39165}, val: "b", ignoreCase: false, + want: "\"b\"", }, }, &actionExpr{ - pos: position{line: 1418, col: 5, offset: 39195}, + pos: position{line: 1417, col: 5, offset: 39194}, run: (*parser).callonSingleCharEscape8, expr: &litMatcher{ - pos: position{line: 1418, col: 5, offset: 39195}, + pos: position{line: 1417, col: 5, offset: 39194}, val: "f", ignoreCase: false, + want: "\"f\"", }, }, &actionExpr{ - pos: position{line: 1419, col: 5, offset: 39224}, + pos: position{line: 1418, col: 5, offset: 39223}, run: (*parser).callonSingleCharEscape10, expr: &litMatcher{ - pos: position{line: 1419, col: 5, offset: 39224}, + pos: position{line: 1418, col: 5, offset: 39223}, val: "n", ignoreCase: false, + want: "\"n\"", }, }, &actionExpr{ - pos: position{line: 1420, col: 5, offset: 39253}, + pos: position{line: 1419, col: 5, offset: 39252}, run: (*parser).callonSingleCharEscape12, expr: &litMatcher{ - pos: position{line: 1420, col: 5, offset: 39253}, + pos: position{line: 1419, col: 5, offset: 39252}, val: "r", ignoreCase: false, + want: "\"r\"", }, }, &actionExpr{ - pos: position{line: 1421, col: 5, offset: 39282}, + pos: position{line: 1420, col: 5, offset: 39281}, run: (*parser).callonSingleCharEscape14, expr: &litMatcher{ - pos: position{line: 1421, col: 5, offset: 39282}, + pos: position{line: 1420, col: 5, offset: 39281}, val: "t", ignoreCase: false, + want: "\"t\"", }, }, &actionExpr{ - pos: position{line: 1422, col: 5, offset: 39311}, + pos: position{line: 1421, col: 5, offset: 39310}, run: (*parser).callonSingleCharEscape16, expr: &litMatcher{ - pos: position{line: 1422, col: 5, offset: 39311}, + pos: position{line: 1421, col: 5, offset: 39310}, val: "v", ignoreCase: false, + want: "\"v\"", }, }, }, @@ -11972,30 +12346,32 @@ var g = &grammar{ }, { name: "KeywordEscape", - pos: position{line: 1424, col: 1, offset: 39337}, + pos: position{line: 1423, col: 1, offset: 39336}, expr: &choiceExpr{ - pos: position{line: 1425, col: 5, offset: 39355}, - alternatives: []interface{}{ + pos: position{line: 1424, col: 5, offset: 39354}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1425, col: 5, offset: 39355}, + pos: position{line: 1424, col: 5, offset: 39354}, run: (*parser).callonKeywordEscape2, expr: &litMatcher{ - pos: position{line: 1425, col: 5, offset: 39355}, + pos: position{line: 1424, col: 5, offset: 39354}, val: "=", ignoreCase: false, + want: "\"=\"", }, }, &actionExpr{ - pos: position{line: 1426, col: 5, offset: 39383}, + pos: position{line: 1425, col: 5, offset: 39382}, run: (*parser).callonKeywordEscape4, expr: &litMatcher{ - pos: position{line: 1426, col: 5, offset: 39383}, + pos: position{line: 1425, col: 5, offset: 39382}, val: "*", ignoreCase: false, + want: "\"*\"", }, }, &charClassMatcher{ - pos: position{line: 1427, col: 5, offset: 39411}, + pos: position{line: 1426, col: 5, offset: 39410}, val: "[+-]", chars: []rune{'+', '-'}, ignoreCase: false, @@ -12006,41 +12382,42 @@ var g = &grammar{ }, { name: "UnicodeEscape", - pos: position{line: 1429, col: 1, offset: 39417}, + pos: position{line: 1428, col: 1, offset: 39416}, expr: &choiceExpr{ - pos: position{line: 1430, col: 5, offset: 39435}, - alternatives: []interface{}{ + pos: position{line: 1429, col: 5, offset: 39434}, + alternatives: []any{ &actionExpr{ - pos: position{line: 1430, col: 5, offset: 39435}, + pos: position{line: 1429, col: 5, offset: 39434}, run: (*parser).callonUnicodeEscape2, expr: &seqExpr{ - pos: position{line: 1430, col: 5, offset: 39435}, - exprs: []interface{}{ + pos: position{line: 1429, col: 5, offset: 39434}, + exprs: []any{ &litMatcher{ - pos: position{line: 1430, col: 5, offset: 39435}, + pos: position{line: 1429, col: 5, offset: 39434}, val: "u", ignoreCase: false, + want: "\"u\"", }, &labeledExpr{ - pos: position{line: 1430, col: 9, offset: 39439}, + pos: position{line: 1429, col: 9, offset: 39438}, label: "chars", expr: &seqExpr{ - pos: position{line: 1430, col: 16, offset: 39446}, - exprs: []interface{}{ + pos: position{line: 1429, col: 16, offset: 39445}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1430, col: 16, offset: 39446}, + pos: position{line: 1429, col: 16, offset: 39445}, name: "HexDigit", }, &ruleRefExpr{ - pos: position{line: 1430, col: 25, offset: 39455}, + pos: position{line: 1429, col: 25, offset: 39454}, name: "HexDigit", }, &ruleRefExpr{ - pos: position{line: 1430, col: 34, offset: 39464}, + pos: position{line: 1429, col: 34, offset: 39463}, name: "HexDigit", }, &ruleRefExpr{ - pos: position{line: 1430, col: 43, offset: 39473}, + pos: position{line: 1429, col: 43, offset: 39472}, name: "HexDigit", }, }, @@ -12050,63 +12427,65 @@ var g = &grammar{ }, }, &actionExpr{ - pos: position{line: 1433, col: 5, offset: 39536}, + pos: position{line: 1432, col: 5, offset: 39535}, run: (*parser).callonUnicodeEscape11, expr: &seqExpr{ - pos: position{line: 1433, col: 5, offset: 39536}, - exprs: []interface{}{ + pos: position{line: 1432, col: 5, offset: 39535}, + exprs: []any{ &litMatcher{ - pos: position{line: 1433, col: 5, offset: 39536}, + pos: position{line: 1432, col: 5, offset: 39535}, val: "u", ignoreCase: false, + want: "\"u\"", }, &litMatcher{ - pos: position{line: 1433, col: 9, offset: 39540}, + pos: position{line: 1432, col: 9, offset: 39539}, val: "{", ignoreCase: false, + want: "\"{\"", }, &labeledExpr{ - pos: position{line: 1433, col: 13, offset: 39544}, + pos: position{line: 1432, col: 13, offset: 39543}, label: "chars", expr: &seqExpr{ - pos: position{line: 1433, col: 20, offset: 39551}, - exprs: []interface{}{ + pos: position{line: 1432, col: 20, offset: 39550}, + exprs: []any{ &ruleRefExpr{ - pos: position{line: 1433, col: 20, offset: 39551}, + pos: position{line: 1432, col: 20, offset: 39550}, name: "HexDigit", }, &zeroOrOneExpr{ - pos: position{line: 1433, col: 29, offset: 39560}, + pos: position{line: 1432, col: 29, offset: 39559}, expr: &ruleRefExpr{ - pos: position{line: 1433, col: 29, offset: 39560}, + pos: position{line: 1432, col: 29, offset: 39559}, name: "HexDigit", }, }, &zeroOrOneExpr{ - pos: position{line: 1433, col: 39, offset: 39570}, + pos: position{line: 1432, col: 39, offset: 39569}, expr: &ruleRefExpr{ - pos: position{line: 1433, col: 39, offset: 39570}, + pos: position{line: 1432, col: 39, offset: 39569}, name: "HexDigit", }, }, &zeroOrOneExpr{ - pos: position{line: 1433, col: 49, offset: 39580}, + pos: position{line: 1432, col: 49, offset: 39579}, expr: &ruleRefExpr{ - pos: position{line: 1433, col: 49, offset: 39580}, + pos: position{line: 1432, col: 49, offset: 39579}, name: "HexDigit", }, }, &zeroOrOneExpr{ - pos: position{line: 1433, col: 59, offset: 39590}, + pos: position{line: 1432, col: 59, offset: 39589}, expr: &ruleRefExpr{ - pos: position{line: 1433, col: 59, offset: 39590}, + pos: position{line: 1432, col: 59, offset: 39589}, name: "HexDigit", }, }, &zeroOrOneExpr{ - pos: position{line: 1433, col: 69, offset: 39600}, + pos: position{line: 1432, col: 69, offset: 39599}, expr: &ruleRefExpr{ - pos: position{line: 1433, col: 69, offset: 39600}, + pos: position{line: 1432, col: 69, offset: 39599}, name: "HexDigit", }, }, @@ -12114,9 +12493,10 @@ var g = &grammar{ }, }, &litMatcher{ - pos: position{line: 1433, col: 80, offset: 39611}, + pos: position{line: 1432, col: 80, offset: 39610}, val: "}", ignoreCase: false, + want: "\"}\"", }, }, }, @@ -12126,35 +12506,37 @@ var g = &grammar{ }, { name: "RegexpPattern", - pos: position{line: 1437, col: 1, offset: 39665}, + pos: position{line: 1436, col: 1, offset: 39664}, expr: &actionExpr{ - pos: position{line: 1438, col: 5, offset: 39683}, + pos: position{line: 1437, col: 5, offset: 39682}, run: (*parser).callonRegexpPattern1, expr: &seqExpr{ - pos: position{line: 1438, col: 5, offset: 39683}, - exprs: []interface{}{ + pos: position{line: 1437, col: 5, offset: 39682}, + exprs: []any{ &litMatcher{ - pos: position{line: 1438, col: 5, offset: 39683}, + pos: position{line: 1437, col: 5, offset: 39682}, val: "/", ignoreCase: false, + want: "\"/\"", }, &labeledExpr{ - pos: position{line: 1438, col: 9, offset: 39687}, + pos: position{line: 1437, col: 9, offset: 39686}, label: "body", expr: &ruleRefExpr{ - pos: position{line: 1438, col: 14, offset: 39692}, + pos: position{line: 1437, col: 14, offset: 39691}, name: "RegexpBody", }, }, &litMatcher{ - pos: position{line: 1438, col: 25, offset: 39703}, + pos: position{line: 1437, col: 25, offset: 39702}, val: "/", ignoreCase: false, + want: "\"/\"", }, ¬Expr{ - pos: position{line: 1438, col: 29, offset: 39707}, + pos: position{line: 1437, col: 29, offset: 39706}, expr: &ruleRefExpr{ - pos: position{line: 1438, col: 30, offset: 39708}, + pos: position{line: 1437, col: 30, offset: 39707}, name: "KeyWordStart", }, }, @@ -12164,32 +12546,33 @@ var g = &grammar{ }, { name: "RegexpBody", - pos: position{line: 1440, col: 1, offset: 39743}, + pos: position{line: 1439, col: 1, offset: 39742}, expr: &actionExpr{ - pos: position{line: 1441, col: 5, offset: 39758}, + pos: position{line: 1440, col: 5, offset: 39757}, run: (*parser).callonRegexpBody1, expr: &oneOrMoreExpr{ - pos: position{line: 1441, col: 5, offset: 39758}, + pos: position{line: 1440, col: 5, offset: 39757}, expr: &choiceExpr{ - pos: position{line: 1441, col: 6, offset: 39759}, - alternatives: []interface{}{ + pos: position{line: 1440, col: 6, offset: 39758}, + alternatives: []any{ &charClassMatcher{ - pos: position{line: 1441, col: 6, offset: 39759}, + pos: position{line: 1440, col: 6, offset: 39758}, val: "[^/\\\\]", chars: []rune{'/', '\\'}, ignoreCase: false, inverted: true, }, &seqExpr{ - pos: position{line: 1441, col: 15, offset: 39768}, - exprs: []interface{}{ + pos: position{line: 1440, col: 15, offset: 39767}, + exprs: []any{ &litMatcher{ - pos: position{line: 1441, col: 15, offset: 39768}, + pos: position{line: 1440, col: 15, offset: 39767}, val: "\\", ignoreCase: false, + want: "\"\\\\\"", }, &anyMatcher{ - line: 1441, col: 20, offset: 39773, + line: 1440, col: 20, offset: 39772, }, }, }, @@ -12200,9 +12583,9 @@ var g = &grammar{ }, { name: "EscapedChar", - pos: position{line: 1443, col: 1, offset: 39809}, + pos: position{line: 1442, col: 1, offset: 39808}, expr: &charClassMatcher{ - pos: position{line: 1444, col: 5, offset: 39825}, + pos: position{line: 1443, col: 5, offset: 39824}, val: "[\\x00-\\x1f\\\\]", chars: []rune{'\\'}, ranges: []rune{'\x00', '\x1f'}, @@ -12212,42 +12595,42 @@ var g = &grammar{ }, { name: "_", - pos: position{line: 1446, col: 1, offset: 39840}, + pos: position{line: 1445, col: 1, offset: 39839}, expr: &oneOrMoreExpr{ - pos: position{line: 1446, col: 5, offset: 39844}, + pos: position{line: 1445, col: 5, offset: 39843}, expr: &ruleRefExpr{ - pos: position{line: 1446, col: 5, offset: 39844}, + pos: position{line: 1445, col: 5, offset: 39843}, name: "AnySpace", }, }, }, { name: "__", - pos: position{line: 1448, col: 1, offset: 39855}, + pos: position{line: 1447, col: 1, offset: 39854}, expr: &zeroOrMoreExpr{ - pos: position{line: 1448, col: 6, offset: 39860}, + pos: position{line: 1447, col: 6, offset: 39859}, expr: &ruleRefExpr{ - pos: position{line: 1448, col: 6, offset: 39860}, + pos: position{line: 1447, col: 6, offset: 39859}, name: "AnySpace", }, }, }, { name: "AnySpace", - pos: position{line: 1450, col: 1, offset: 39871}, + pos: position{line: 1449, col: 1, offset: 39870}, expr: &choiceExpr{ - pos: position{line: 1451, col: 5, offset: 39884}, - alternatives: []interface{}{ + pos: position{line: 1450, col: 5, offset: 39883}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1451, col: 5, offset: 39884}, + pos: position{line: 1450, col: 5, offset: 39883}, name: "WhiteSpace", }, &ruleRefExpr{ - pos: position{line: 1452, col: 5, offset: 39899}, + pos: position{line: 1451, col: 5, offset: 39898}, name: "LineTerminator", }, &ruleRefExpr{ - pos: position{line: 1453, col: 5, offset: 39918}, + pos: position{line: 1452, col: 5, offset: 39917}, name: "Comment", }, }, @@ -12255,32 +12638,32 @@ var g = &grammar{ }, { name: "UnicodeLetter", - pos: position{line: 1455, col: 1, offset: 39927}, + pos: position{line: 1454, col: 1, offset: 39926}, expr: &choiceExpr{ - pos: position{line: 1456, col: 5, offset: 39945}, - alternatives: []interface{}{ + pos: position{line: 1455, col: 5, offset: 39944}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1456, col: 5, offset: 39945}, + pos: position{line: 1455, col: 5, offset: 39944}, name: "Lu", }, &ruleRefExpr{ - pos: position{line: 1457, col: 5, offset: 39952}, + pos: position{line: 1456, col: 5, offset: 39951}, name: "Ll", }, &ruleRefExpr{ - pos: position{line: 1458, col: 5, offset: 39959}, + pos: position{line: 1457, col: 5, offset: 39958}, name: "Lt", }, &ruleRefExpr{ - pos: position{line: 1459, col: 5, offset: 39966}, + pos: position{line: 1458, col: 5, offset: 39965}, name: "Lm", }, &ruleRefExpr{ - pos: position{line: 1460, col: 5, offset: 39973}, + pos: position{line: 1459, col: 5, offset: 39972}, name: "Lo", }, &ruleRefExpr{ - pos: position{line: 1461, col: 5, offset: 39980}, + pos: position{line: 1460, col: 5, offset: 39979}, name: "Nl", }, }, @@ -12288,16 +12671,16 @@ var g = &grammar{ }, { name: "UnicodeCombiningMark", - pos: position{line: 1463, col: 1, offset: 39984}, + pos: position{line: 1462, col: 1, offset: 39983}, expr: &choiceExpr{ - pos: position{line: 1464, col: 5, offset: 40009}, - alternatives: []interface{}{ + pos: position{line: 1463, col: 5, offset: 40008}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1464, col: 5, offset: 40009}, + pos: position{line: 1463, col: 5, offset: 40008}, name: "Mn", }, &ruleRefExpr{ - pos: position{line: 1465, col: 5, offset: 40016}, + pos: position{line: 1464, col: 5, offset: 40015}, name: "Mc", }, }, @@ -12305,25 +12688,25 @@ var g = &grammar{ }, { name: "UnicodeDigit", - pos: position{line: 1467, col: 1, offset: 40020}, + pos: position{line: 1466, col: 1, offset: 40019}, expr: &ruleRefExpr{ - pos: position{line: 1468, col: 5, offset: 40037}, + pos: position{line: 1467, col: 5, offset: 40036}, name: "Nd", }, }, { name: "UnicodeConnectorPunctuation", - pos: position{line: 1470, col: 1, offset: 40041}, + pos: position{line: 1469, col: 1, offset: 40040}, expr: &ruleRefExpr{ - pos: position{line: 1471, col: 5, offset: 40073}, + pos: position{line: 1470, col: 5, offset: 40072}, name: "Pc", }, }, { name: "Ll", - pos: position{line: 1477, col: 1, offset: 40254}, + pos: position{line: 1476, col: 1, offset: 40253}, expr: &charClassMatcher{ - pos: position{line: 1477, col: 6, offset: 40259}, + pos: position{line: 1476, col: 6, offset: 40258}, val: "[\\u0061-\\u007A\\u00B5\\u00DF-\\u00F6\\u00F8-\\u00FF\\u0101\\u0103\\u0105\\u0107\\u0109\\u010B\\u010D\\u010F\\u0111\\u0113\\u0115\\u0117\\u0119\\u011B\\u011D\\u011F\\u0121\\u0123\\u0125\\u0127\\u0129\\u012B\\u012D\\u012F\\u0131\\u0133\\u0135\\u0137-\\u0138\\u013A\\u013C\\u013E\\u0140\\u0142\\u0144\\u0146\\u0148-\\u0149\\u014B\\u014D\\u014F\\u0151\\u0153\\u0155\\u0157\\u0159\\u015B\\u015D\\u015F\\u0161\\u0163\\u0165\\u0167\\u0169\\u016B\\u016D\\u016F\\u0171\\u0173\\u0175\\u0177\\u017A\\u017C\\u017E-\\u0180\\u0183\\u0185\\u0188\\u018C-\\u018D\\u0192\\u0195\\u0199-\\u019B\\u019E\\u01A1\\u01A3\\u01A5\\u01A8\\u01AA-\\u01AB\\u01AD\\u01B0\\u01B4\\u01B6\\u01B9-\\u01BA\\u01BD-\\u01BF\\u01C6\\u01C9\\u01CC\\u01CE\\u01D0\\u01D2\\u01D4\\u01D6\\u01D8\\u01DA\\u01DC-\\u01DD\\u01DF\\u01E1\\u01E3\\u01E5\\u01E7\\u01E9\\u01EB\\u01ED\\u01EF-\\u01F0\\u01F3\\u01F5\\u01F9\\u01FB\\u01FD\\u01FF\\u0201\\u0203\\u0205\\u0207\\u0209\\u020B\\u020D\\u020F\\u0211\\u0213\\u0215\\u0217\\u0219\\u021B\\u021D\\u021F\\u0221\\u0223\\u0225\\u0227\\u0229\\u022B\\u022D\\u022F\\u0231\\u0233-\\u0239\\u023C\\u023F-\\u0240\\u0242\\u0247\\u0249\\u024B\\u024D\\u024F-\\u0293\\u0295-\\u02AF\\u0371\\u0373\\u0377\\u037B-\\u037D\\u0390\\u03AC-\\u03CE\\u03D0-\\u03D1\\u03D5-\\u03D7\\u03D9\\u03DB\\u03DD\\u03DF\\u03E1\\u03E3\\u03E5\\u03E7\\u03E9\\u03EB\\u03ED\\u03EF-\\u03F3\\u03F5\\u03F8\\u03FB-\\u03FC\\u0430-\\u045F\\u0461\\u0463\\u0465\\u0467\\u0469\\u046B\\u046D\\u046F\\u0471\\u0473\\u0475\\u0477\\u0479\\u047B\\u047D\\u047F\\u0481\\u048B\\u048D\\u048F\\u0491\\u0493\\u0495\\u0497\\u0499\\u049B\\u049D\\u049F\\u04A1\\u04A3\\u04A5\\u04A7\\u04A9\\u04AB\\u04AD\\u04AF\\u04B1\\u04B3\\u04B5\\u04B7\\u04B9\\u04BB\\u04BD\\u04BF\\u04C2\\u04C4\\u04C6\\u04C8\\u04CA\\u04CC\\u04CE-\\u04CF\\u04D1\\u04D3\\u04D5\\u04D7\\u04D9\\u04DB\\u04DD\\u04DF\\u04E1\\u04E3\\u04E5\\u04E7\\u04E9\\u04EB\\u04ED\\u04EF\\u04F1\\u04F3\\u04F5\\u04F7\\u04F9\\u04FB\\u04FD\\u04FF\\u0501\\u0503\\u0505\\u0507\\u0509\\u050B\\u050D\\u050F\\u0511\\u0513\\u0515\\u0517\\u0519\\u051B\\u051D\\u051F\\u0521\\u0523\\u0525\\u0527\\u0529\\u052B\\u052D\\u052F\\u0560-\\u0588\\u10D0-\\u10FA\\u10FD-\\u10FF\\u13F8-\\u13FD\\u1C80-\\u1C88\\u1D00-\\u1D2B\\u1D6B-\\u1D77\\u1D79-\\u1D9A\\u1E01\\u1E03\\u1E05\\u1E07\\u1E09\\u1E0B\\u1E0D\\u1E0F\\u1E11\\u1E13\\u1E15\\u1E17\\u1E19\\u1E1B\\u1E1D\\u1E1F\\u1E21\\u1E23\\u1E25\\u1E27\\u1E29\\u1E2B\\u1E2D\\u1E2F\\u1E31\\u1E33\\u1E35\\u1E37\\u1E39\\u1E3B\\u1E3D\\u1E3F\\u1E41\\u1E43\\u1E45\\u1E47\\u1E49\\u1E4B\\u1E4D\\u1E4F\\u1E51\\u1E53\\u1E55\\u1E57\\u1E59\\u1E5B\\u1E5D\\u1E5F\\u1E61\\u1E63\\u1E65\\u1E67\\u1E69\\u1E6B\\u1E6D\\u1E6F\\u1E71\\u1E73\\u1E75\\u1E77\\u1E79\\u1E7B\\u1E7D\\u1E7F\\u1E81\\u1E83\\u1E85\\u1E87\\u1E89\\u1E8B\\u1E8D\\u1E8F\\u1E91\\u1E93\\u1E95-\\u1E9D\\u1E9F\\u1EA1\\u1EA3\\u1EA5\\u1EA7\\u1EA9\\u1EAB\\u1EAD\\u1EAF\\u1EB1\\u1EB3\\u1EB5\\u1EB7\\u1EB9\\u1EBB\\u1EBD\\u1EBF\\u1EC1\\u1EC3\\u1EC5\\u1EC7\\u1EC9\\u1ECB\\u1ECD\\u1ECF\\u1ED1\\u1ED3\\u1ED5\\u1ED7\\u1ED9\\u1EDB\\u1EDD\\u1EDF\\u1EE1\\u1EE3\\u1EE5\\u1EE7\\u1EE9\\u1EEB\\u1EED\\u1EEF\\u1EF1\\u1EF3\\u1EF5\\u1EF7\\u1EF9\\u1EFB\\u1EFD\\u1EFF-\\u1F07\\u1F10-\\u1F15\\u1F20-\\u1F27\\u1F30-\\u1F37\\u1F40-\\u1F45\\u1F50-\\u1F57\\u1F60-\\u1F67\\u1F70-\\u1F7D\\u1F80-\\u1F87\\u1F90-\\u1F97\\u1FA0-\\u1FA7\\u1FB0-\\u1FB4\\u1FB6-\\u1FB7\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FC7\\u1FD0-\\u1FD3\\u1FD6-\\u1FD7\\u1FE0-\\u1FE7\\u1FF2-\\u1FF4\\u1FF6-\\u1FF7\\u210A\\u210E-\\u210F\\u2113\\u212F\\u2134\\u2139\\u213C-\\u213D\\u2146-\\u2149\\u214E\\u2184\\u2C30-\\u2C5E\\u2C61\\u2C65-\\u2C66\\u2C68\\u2C6A\\u2C6C\\u2C71\\u2C73-\\u2C74\\u2C76-\\u2C7B\\u2C81\\u2C83\\u2C85\\u2C87\\u2C89\\u2C8B\\u2C8D\\u2C8F\\u2C91\\u2C93\\u2C95\\u2C97\\u2C99\\u2C9B\\u2C9D\\u2C9F\\u2CA1\\u2CA3\\u2CA5\\u2CA7\\u2CA9\\u2CAB\\u2CAD\\u2CAF\\u2CB1\\u2CB3\\u2CB5\\u2CB7\\u2CB9\\u2CBB\\u2CBD\\u2CBF\\u2CC1\\u2CC3\\u2CC5\\u2CC7\\u2CC9\\u2CCB\\u2CCD\\u2CCF\\u2CD1\\u2CD3\\u2CD5\\u2CD7\\u2CD9\\u2CDB\\u2CDD\\u2CDF\\u2CE1\\u2CE3-\\u2CE4\\u2CEC\\u2CEE\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\uA641\\uA643\\uA645\\uA647\\uA649\\uA64B\\uA64D\\uA64F\\uA651\\uA653\\uA655\\uA657\\uA659\\uA65B\\uA65D\\uA65F\\uA661\\uA663\\uA665\\uA667\\uA669\\uA66B\\uA66D\\uA681\\uA683\\uA685\\uA687\\uA689\\uA68B\\uA68D\\uA68F\\uA691\\uA693\\uA695\\uA697\\uA699\\uA69B\\uA723\\uA725\\uA727\\uA729\\uA72B\\uA72D\\uA72F-\\uA731\\uA733\\uA735\\uA737\\uA739\\uA73B\\uA73D\\uA73F\\uA741\\uA743\\uA745\\uA747\\uA749\\uA74B\\uA74D\\uA74F\\uA751\\uA753\\uA755\\uA757\\uA759\\uA75B\\uA75D\\uA75F\\uA761\\uA763\\uA765\\uA767\\uA769\\uA76B\\uA76D\\uA76F\\uA771-\\uA778\\uA77A\\uA77C\\uA77F\\uA781\\uA783\\uA785\\uA787\\uA78C\\uA78E\\uA791\\uA793-\\uA795\\uA797\\uA799\\uA79B\\uA79D\\uA79F\\uA7A1\\uA7A3\\uA7A5\\uA7A7\\uA7A9\\uA7AF\\uA7B5\\uA7B7\\uA7B9\\uA7FA\\uAB30-\\uAB5A\\uAB60-\\uAB65\\uAB70-\\uABBF\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFF41-\\uFF5A]", chars: []rune{'µ', 'ā', 'ă', 'ą', 'ć', 'ĉ', 'ċ', 'č', 'ď', 'đ', 'ē', 'ĕ', 'ė', 'ę', 'ě', 'ĝ', 'ğ', 'ġ', 'ģ', 'ĥ', 'ħ', 'ĩ', 'ī', 'ĭ', 'į', 'ı', 'ij', 'ĵ', 'ĺ', 'ļ', 'ľ', 'ŀ', 'ł', 'ń', 'ņ', 'ŋ', 'ō', 'ŏ', 'ő', 'œ', 'ŕ', 'ŗ', 'ř', 'ś', 'ŝ', 'ş', 'š', 'ţ', 'ť', 'ŧ', 'ũ', 'ū', 'ŭ', 'ů', 'ű', 'ų', 'ŵ', 'ŷ', 'ź', 'ż', 'ƃ', 'ƅ', 'ƈ', 'ƒ', 'ƕ', 'ƞ', 'ơ', 'ƣ', 'ƥ', 'ƨ', 'ƭ', 'ư', 'ƴ', 'ƶ', 'dž', 'lj', 'nj', 'ǎ', 'ǐ', 'ǒ', 'ǔ', 'ǖ', 'ǘ', 'ǚ', 'ǟ', 'ǡ', 'ǣ', 'ǥ', 'ǧ', 'ǩ', 'ǫ', 'ǭ', 'dz', 'ǵ', 'ǹ', 'ǻ', 'ǽ', 'ǿ', 'ȁ', 'ȃ', 'ȅ', 'ȇ', 'ȉ', 'ȋ', 'ȍ', 'ȏ', 'ȑ', 'ȓ', 'ȕ', 'ȗ', 'ș', 'ț', 'ȝ', 'ȟ', 'ȡ', 'ȣ', 'ȥ', 'ȧ', 'ȩ', 'ȫ', 'ȭ', 'ȯ', 'ȱ', 'ȼ', 'ɂ', 'ɇ', 'ɉ', 'ɋ', 'ɍ', 'ͱ', 'ͳ', 'ͷ', 'ΐ', 'ϙ', 'ϛ', 'ϝ', 'ϟ', 'ϡ', 'ϣ', 'ϥ', 'ϧ', 'ϩ', 'ϫ', 'ϭ', 'ϵ', 'ϸ', 'ѡ', 'ѣ', 'ѥ', 'ѧ', 'ѩ', 'ѫ', 'ѭ', 'ѯ', 'ѱ', 'ѳ', 'ѵ', 'ѷ', 'ѹ', 'ѻ', 'ѽ', 'ѿ', 'ҁ', 'ҋ', 'ҍ', 'ҏ', 'ґ', 'ғ', 'ҕ', 'җ', 'ҙ', 'қ', 'ҝ', 'ҟ', 'ҡ', 'ң', 'ҥ', 'ҧ', 'ҩ', 'ҫ', 'ҭ', 'ү', 'ұ', 'ҳ', 'ҵ', 'ҷ', 'ҹ', 'һ', 'ҽ', 'ҿ', 'ӂ', 'ӄ', 'ӆ', 'ӈ', 'ӊ', 'ӌ', 'ӑ', 'ӓ', 'ӕ', 'ӗ', 'ә', 'ӛ', 'ӝ', 'ӟ', 'ӡ', 'ӣ', 'ӥ', 'ӧ', 'ө', 'ӫ', 'ӭ', 'ӯ', 'ӱ', 'ӳ', 'ӵ', 'ӷ', 'ӹ', 'ӻ', 'ӽ', 'ӿ', 'ԁ', 'ԃ', 'ԅ', 'ԇ', 'ԉ', 'ԋ', 'ԍ', 'ԏ', 'ԑ', 'ԓ', 'ԕ', 'ԗ', 'ԙ', 'ԛ', 'ԝ', 'ԟ', 'ԡ', 'ԣ', 'ԥ', 'ԧ', 'ԩ', 'ԫ', 'ԭ', 'ԯ', 'ḁ', 'ḃ', 'ḅ', 'ḇ', 'ḉ', 'ḋ', 'ḍ', 'ḏ', 'ḑ', 'ḓ', 'ḕ', 'ḗ', 'ḙ', 'ḛ', 'ḝ', 'ḟ', 'ḡ', 'ḣ', 'ḥ', 'ḧ', 'ḩ', 'ḫ', 'ḭ', 'ḯ', 'ḱ', 'ḳ', 'ḵ', 'ḷ', 'ḹ', 'ḻ', 'ḽ', 'ḿ', 'ṁ', 'ṃ', 'ṅ', 'ṇ', 'ṉ', 'ṋ', 'ṍ', 'ṏ', 'ṑ', 'ṓ', 'ṕ', 'ṗ', 'ṙ', 'ṛ', 'ṝ', 'ṟ', 'ṡ', 'ṣ', 'ṥ', 'ṧ', 'ṩ', 'ṫ', 'ṭ', 'ṯ', 'ṱ', 'ṳ', 'ṵ', 'ṷ', 'ṹ', 'ṻ', 'ṽ', 'ṿ', 'ẁ', 'ẃ', 'ẅ', 'ẇ', 'ẉ', 'ẋ', 'ẍ', 'ẏ', 'ẑ', 'ẓ', 'ẟ', 'ạ', 'ả', 'ấ', 'ầ', 'ẩ', 'ẫ', 'ậ', 'ắ', 'ằ', 'ẳ', 'ẵ', 'ặ', 'ẹ', 'ẻ', 'ẽ', 'ế', 'ề', 'ể', 'ễ', 'ệ', 'ỉ', 'ị', 'ọ', 'ỏ', 'ố', 'ồ', 'ổ', 'ỗ', 'ộ', 'ớ', 'ờ', 'ở', 'ỡ', 'ợ', 'ụ', 'ủ', 'ứ', 'ừ', 'ử', 'ữ', 'ự', 'ỳ', 'ỵ', 'ỷ', 'ỹ', 'ỻ', 'ỽ', 'ι', 'ℊ', 'ℓ', 'ℯ', 'ℴ', 'ℹ', 'ⅎ', 'ↄ', 'ⱡ', 'ⱨ', 'ⱪ', 'ⱬ', 'ⱱ', 'ⲁ', 'ⲃ', 'ⲅ', 'ⲇ', 'ⲉ', 'ⲋ', 'ⲍ', 'ⲏ', 'ⲑ', 'ⲓ', 'ⲕ', 'ⲗ', 'ⲙ', 'ⲛ', 'ⲝ', 'ⲟ', 'ⲡ', 'ⲣ', 'ⲥ', 'ⲧ', 'ⲩ', 'ⲫ', 'ⲭ', 'ⲯ', 'ⲱ', 'ⲳ', 'ⲵ', 'ⲷ', 'ⲹ', 'ⲻ', 'ⲽ', 'ⲿ', 'ⳁ', 'ⳃ', 'ⳅ', 'ⳇ', 'ⳉ', 'ⳋ', 'ⳍ', 'ⳏ', 'ⳑ', 'ⳓ', 'ⳕ', 'ⳗ', 'ⳙ', 'ⳛ', 'ⳝ', 'ⳟ', 'ⳡ', 'ⳬ', 'ⳮ', 'ⳳ', 'ⴧ', 'ⴭ', 'ꙁ', 'ꙃ', 'ꙅ', 'ꙇ', 'ꙉ', 'ꙋ', 'ꙍ', 'ꙏ', 'ꙑ', 'ꙓ', 'ꙕ', 'ꙗ', 'ꙙ', 'ꙛ', 'ꙝ', 'ꙟ', 'ꙡ', 'ꙣ', 'ꙥ', 'ꙧ', 'ꙩ', 'ꙫ', 'ꙭ', 'ꚁ', 'ꚃ', 'ꚅ', 'ꚇ', 'ꚉ', 'ꚋ', 'ꚍ', 'ꚏ', 'ꚑ', 'ꚓ', 'ꚕ', 'ꚗ', 'ꚙ', 'ꚛ', 'ꜣ', 'ꜥ', 'ꜧ', 'ꜩ', 'ꜫ', 'ꜭ', 'ꜳ', 'ꜵ', 'ꜷ', 'ꜹ', 'ꜻ', 'ꜽ', 'ꜿ', 'ꝁ', 'ꝃ', 'ꝅ', 'ꝇ', 'ꝉ', 'ꝋ', 'ꝍ', 'ꝏ', 'ꝑ', 'ꝓ', 'ꝕ', 'ꝗ', 'ꝙ', 'ꝛ', 'ꝝ', 'ꝟ', 'ꝡ', 'ꝣ', 'ꝥ', 'ꝧ', 'ꝩ', 'ꝫ', 'ꝭ', 'ꝯ', 'ꝺ', 'ꝼ', 'ꝿ', 'ꞁ', 'ꞃ', 'ꞅ', 'ꞇ', 'ꞌ', 'ꞎ', 'ꞑ', 'ꞗ', 'ꞙ', 'ꞛ', 'ꞝ', 'ꞟ', 'ꞡ', 'ꞣ', 'ꞥ', 'ꞧ', 'ꞩ', 'ꞯ', 'ꞵ', 'ꞷ', 'ꞹ', 'ꟺ'}, ranges: []rune{'a', 'z', 'ß', 'ö', 'ø', 'ÿ', 'ķ', 'ĸ', 'ň', 'ʼn', 'ž', 'ƀ', 'ƌ', 'ƍ', 'ƙ', 'ƛ', 'ƪ', 'ƫ', 'ƹ', 'ƺ', 'ƽ', 'ƿ', 'ǜ', 'ǝ', 'ǯ', 'ǰ', 'ȳ', 'ȹ', 'ȿ', 'ɀ', 'ɏ', 'ʓ', 'ʕ', 'ʯ', 'ͻ', 'ͽ', 'ά', 'ώ', 'ϐ', 'ϑ', 'ϕ', 'ϗ', 'ϯ', 'ϳ', 'ϻ', 'ϼ', 'а', 'џ', 'ӎ', 'ӏ', 'ՠ', 'ֈ', 'ა', 'ჺ', 'ჽ', 'ჿ', 'ᏸ', 'ᏽ', 'ᲀ', 'ᲈ', 'ᴀ', 'ᴫ', 'ᵫ', 'ᵷ', 'ᵹ', 'ᶚ', 'ẕ', 'ẝ', 'ỿ', 'ἇ', 'ἐ', 'ἕ', 'ἠ', 'ἧ', 'ἰ', 'ἷ', 'ὀ', 'ὅ', 'ὐ', 'ὗ', 'ὠ', 'ὧ', 'ὰ', 'ώ', 'ᾀ', 'ᾇ', 'ᾐ', 'ᾗ', 'ᾠ', 'ᾧ', 'ᾰ', 'ᾴ', 'ᾶ', 'ᾷ', 'ῂ', 'ῄ', 'ῆ', 'ῇ', 'ῐ', 'ΐ', 'ῖ', 'ῗ', 'ῠ', 'ῧ', 'ῲ', 'ῴ', 'ῶ', 'ῷ', 'ℎ', 'ℏ', 'ℼ', 'ℽ', 'ⅆ', 'ⅉ', 'ⰰ', 'ⱞ', 'ⱥ', 'ⱦ', 'ⱳ', 'ⱴ', 'ⱶ', 'ⱻ', 'ⳣ', 'ⳤ', 'ⴀ', 'ⴥ', 'ꜯ', 'ꜱ', 'ꝱ', 'ꝸ', 'ꞓ', 'ꞕ', 'ꬰ', 'ꭚ', 'ꭠ', 'ꭥ', 'ꭰ', 'ꮿ', 'ff', 'st', 'ﬓ', 'ﬗ', 'a', 'z'}, @@ -12333,9 +12716,9 @@ var g = &grammar{ }, { name: "Lm", - pos: position{line: 1480, col: 1, offset: 44411}, + pos: position{line: 1479, col: 1, offset: 44410}, expr: &charClassMatcher{ - pos: position{line: 1480, col: 6, offset: 44416}, + pos: position{line: 1479, col: 6, offset: 44415}, val: "[\\u02B0-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0374\\u037A\\u0559\\u0640\\u06E5-\\u06E6\\u07F4-\\u07F5\\u07FA\\u081A\\u0824\\u0828\\u0971\\u0E46\\u0EC6\\u10FC\\u17D7\\u1843\\u1AA7\\u1C78-\\u1C7D\\u1D2C-\\u1D6A\\u1D78\\u1D9B-\\u1DBF\\u2071\\u207F\\u2090-\\u209C\\u2C7C-\\u2C7D\\u2D6F\\u2E2F\\u3005\\u3031-\\u3035\\u303B\\u309D-\\u309E\\u30FC-\\u30FE\\uA015\\uA4F8-\\uA4FD\\uA60C\\uA67F\\uA69C-\\uA69D\\uA717-\\uA71F\\uA770\\uA788\\uA7F8-\\uA7F9\\uA9CF\\uA9E6\\uAA70\\uAADD\\uAAF3-\\uAAF4\\uAB5C-\\uAB5F\\uFF70\\uFF9E-\\uFF9F]", chars: []rune{'ˬ', 'ˮ', 'ʹ', 'ͺ', 'ՙ', 'ـ', 'ߺ', 'ࠚ', 'ࠤ', 'ࠨ', 'ॱ', 'ๆ', 'ໆ', 'ჼ', 'ៗ', 'ᡃ', 'ᪧ', 'ᵸ', 'ⁱ', 'ⁿ', 'ⵯ', 'ⸯ', '々', '〻', 'ꀕ', 'ꘌ', 'ꙿ', 'ꝰ', 'ꞈ', 'ꧏ', 'ꧦ', 'ꩰ', 'ꫝ', 'ー'}, ranges: []rune{'ʰ', 'ˁ', 'ˆ', 'ˑ', 'ˠ', 'ˤ', 'ۥ', 'ۦ', 'ߴ', 'ߵ', 'ᱸ', 'ᱽ', 'ᴬ', 'ᵪ', 'ᶛ', 'ᶿ', 'ₐ', 'ₜ', 'ⱼ', 'ⱽ', '〱', '〵', 'ゝ', 'ゞ', 'ー', 'ヾ', 'ꓸ', 'ꓽ', 'ꚜ', 'ꚝ', 'ꜗ', 'ꜟ', 'ꟸ', 'ꟹ', 'ꫳ', 'ꫴ', 'ꭜ', 'ꭟ', '゙', '゚'}, @@ -12345,9 +12728,9 @@ var g = &grammar{ }, { name: "Lo", - pos: position{line: 1483, col: 1, offset: 44901}, + pos: position{line: 1482, col: 1, offset: 44900}, expr: &charClassMatcher{ - pos: position{line: 1483, col: 6, offset: 44906}, + pos: position{line: 1482, col: 6, offset: 44905}, val: "[\\u00AA\\u00BA\\u01BB\\u01C0-\\u01C3\\u0294\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u063F\\u0641-\\u064A\\u066E-\\u066F\\u0671-\\u06D3\\u06D5\\u06EE-\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u0800-\\u0815\\u0840-\\u0858\\u0860-\\u086A\\u08A0-\\u08B4\\u08B6-\\u08BD\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0972-\\u0980\\u0985-\\u098C\\u098F-\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC-\\u09DD\\u09DF-\\u09E1\\u09F0-\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F-\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32-\\u0A33\\u0A35-\\u0A36\\u0A38-\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2-\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0-\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F-\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32-\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C-\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99-\\u0B9A\\u0B9C\\u0B9E-\\u0B9F\\u0BA3-\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C60-\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0-\\u0CE1\\u0CF1-\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32-\\u0E33\\u0E40-\\u0E45\\u0E81-\\u0E82\\u0E84\\u0E87-\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA-\\u0EAB\\u0EAD-\\u0EB0\\u0EB2-\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065-\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u1100-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17DC\\u1820-\\u1842\\u1844-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE-\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C77\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5-\\u1CF6\\u2135-\\u2138\\u2D30-\\u2D67\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u3006\\u303C\\u3041-\\u3096\\u309F\\u30A1-\\u30FA\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FEF\\uA000-\\uA014\\uA016-\\uA48C\\uA4D0-\\uA4F7\\uA500-\\uA60B\\uA610-\\uA61F\\uA62A-\\uA62B\\uA66E\\uA6A0-\\uA6E5\\uA78F\\uA7F7\\uA7FB-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD-\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9E0-\\uA9E4\\uA9E7-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA6F\\uAA71-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5-\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADC\\uAAE0-\\uAAEA\\uAAF2\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40-\\uFB41\\uFB43-\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF66-\\uFF6F\\uFF71-\\uFF9D\\uFFA0-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]", chars: []rune{'ª', 'º', 'ƻ', 'ʔ', 'ە', 'ۿ', 'ܐ', 'ޱ', 'ऽ', 'ॐ', 'ল', 'ঽ', 'ৎ', 'ৼ', 'ਫ਼', 'ઽ', 'ૐ', 'ૹ', 'ଽ', 'ୱ', 'ஃ', 'ஜ', 'ௐ', 'ఽ', 'ಀ', 'ಽ', 'ೞ', 'ഽ', 'ൎ', 'ල', 'ຄ', 'ຊ', 'ຍ', 'ລ', 'ວ', 'ຽ', 'ༀ', 'ဿ', 'ၡ', 'ႎ', 'ቘ', 'ዀ', 'ៜ', 'ᢪ', '〆', '〼', 'ゟ', 'ヿ', 'ꙮ', 'ꞏ', 'ꟷ', 'ꣻ', 'ꩺ', 'ꪱ', 'ꫀ', 'ꫂ', 'ꫲ', 'יִ', 'מּ'}, ranges: []rune{'ǀ', 'ǃ', 'א', 'ת', 'ׯ', 'ײ', 'ؠ', 'ؿ', 'ف', 'ي', 'ٮ', 'ٯ', 'ٱ', 'ۓ', 'ۮ', 'ۯ', 'ۺ', 'ۼ', 'ܒ', 'ܯ', 'ݍ', 'ޥ', 'ߊ', 'ߪ', 'ࠀ', 'ࠕ', 'ࡀ', 'ࡘ', 'ࡠ', 'ࡪ', 'ࢠ', 'ࢴ', 'ࢶ', 'ࢽ', 'ऄ', 'ह', 'क़', 'ॡ', 'ॲ', 'ঀ', 'অ', 'ঌ', 'এ', 'ঐ', 'ও', 'ন', 'প', 'র', 'শ', 'হ', 'ড়', 'ঢ়', 'য়', 'ৡ', 'ৰ', 'ৱ', 'ਅ', 'ਊ', 'ਏ', 'ਐ', 'ਓ', 'ਨ', 'ਪ', 'ਰ', 'ਲ', 'ਲ਼', 'ਵ', 'ਸ਼', 'ਸ', 'ਹ', 'ਖ਼', 'ੜ', 'ੲ', 'ੴ', 'અ', 'ઍ', 'એ', 'ઑ', 'ઓ', 'ન', 'પ', 'ર', 'લ', 'ળ', 'વ', 'હ', 'ૠ', 'ૡ', 'ଅ', 'ଌ', 'ଏ', 'ଐ', 'ଓ', 'ନ', 'ପ', 'ର', 'ଲ', 'ଳ', 'ଵ', 'ହ', 'ଡ଼', 'ଢ଼', 'ୟ', 'ୡ', 'அ', 'ஊ', 'எ', 'ஐ', 'ஒ', 'க', 'ங', 'ச', 'ஞ', 'ட', 'ண', 'த', 'ந', 'ப', 'ம', 'ஹ', 'అ', 'ఌ', 'ఎ', 'ఐ', 'ఒ', 'న', 'ప', 'హ', 'ౘ', 'ౚ', 'ౠ', 'ౡ', 'ಅ', 'ಌ', 'ಎ', 'ಐ', 'ಒ', 'ನ', 'ಪ', 'ಳ', 'ವ', 'ಹ', 'ೠ', 'ೡ', 'ೱ', 'ೲ', 'അ', 'ഌ', 'എ', 'ഐ', 'ഒ', 'ഺ', 'ൔ', 'ൖ', 'ൟ', 'ൡ', 'ൺ', 'ൿ', 'අ', 'ඖ', 'ක', 'න', 'ඳ', 'ර', 'ව', 'ෆ', 'ก', 'ะ', 'า', 'ำ', 'เ', 'ๅ', 'ກ', 'ຂ', 'ງ', 'ຈ', 'ດ', 'ທ', 'ນ', 'ຟ', 'ມ', 'ຣ', 'ສ', 'ຫ', 'ອ', 'ະ', 'າ', 'ຳ', 'ເ', 'ໄ', 'ໜ', 'ໟ', 'ཀ', 'ཇ', 'ཉ', 'ཬ', 'ྈ', 'ྌ', 'က', 'ဪ', 'ၐ', 'ၕ', 'ၚ', 'ၝ', 'ၥ', 'ၦ', 'ၮ', 'ၰ', 'ၵ', 'ႁ', 'ᄀ', 'ቈ', 'ቊ', 'ቍ', 'ቐ', 'ቖ', 'ቚ', 'ቝ', 'በ', 'ኈ', 'ኊ', 'ኍ', 'ነ', 'ኰ', 'ኲ', 'ኵ', 'ኸ', 'ኾ', 'ዂ', 'ዅ', 'ወ', 'ዖ', 'ዘ', 'ጐ', 'ጒ', 'ጕ', 'ጘ', 'ፚ', 'ᎀ', 'ᎏ', 'ᐁ', 'ᙬ', 'ᙯ', 'ᙿ', 'ᚁ', 'ᚚ', 'ᚠ', 'ᛪ', 'ᛱ', 'ᛸ', 'ᜀ', 'ᜌ', 'ᜎ', 'ᜑ', 'ᜠ', 'ᜱ', 'ᝀ', 'ᝑ', 'ᝠ', 'ᝬ', 'ᝮ', 'ᝰ', 'ក', 'ឳ', 'ᠠ', 'ᡂ', 'ᡄ', 'ᡸ', 'ᢀ', 'ᢄ', 'ᢇ', 'ᢨ', 'ᢰ', 'ᣵ', 'ᤀ', 'ᤞ', 'ᥐ', 'ᥭ', 'ᥰ', 'ᥴ', 'ᦀ', 'ᦫ', 'ᦰ', 'ᧉ', 'ᨀ', 'ᨖ', 'ᨠ', 'ᩔ', 'ᬅ', 'ᬳ', 'ᭅ', 'ᭋ', 'ᮃ', 'ᮠ', 'ᮮ', 'ᮯ', 'ᮺ', 'ᯥ', 'ᰀ', 'ᰣ', 'ᱍ', 'ᱏ', 'ᱚ', 'ᱷ', 'ᳩ', 'ᳬ', 'ᳮ', 'ᳱ', 'ᳵ', 'ᳶ', 'ℵ', 'ℸ', 'ⴰ', 'ⵧ', 'ⶀ', 'ⶖ', 'ⶠ', 'ⶦ', 'ⶨ', 'ⶮ', 'ⶰ', 'ⶶ', 'ⶸ', 'ⶾ', 'ⷀ', 'ⷆ', 'ⷈ', 'ⷎ', 'ⷐ', 'ⷖ', 'ⷘ', 'ⷞ', 'ぁ', 'ゖ', 'ァ', 'ヺ', 'ㄅ', 'ㄯ', 'ㄱ', 'ㆎ', 'ㆠ', 'ㆺ', 'ㇰ', 'ㇿ', '㐀', '䶵', '一', '鿯', 'ꀀ', 'ꀔ', 'ꀖ', 'ꒌ', 'ꓐ', 'ꓷ', 'ꔀ', 'ꘋ', 'ꘐ', 'ꘟ', 'ꘪ', 'ꘫ', 'ꚠ', 'ꛥ', 'ꟻ', 'ꠁ', 'ꠃ', 'ꠅ', 'ꠇ', 'ꠊ', 'ꠌ', 'ꠢ', 'ꡀ', 'ꡳ', 'ꢂ', 'ꢳ', 'ꣲ', 'ꣷ', 'ꣽ', 'ꣾ', 'ꤊ', 'ꤥ', 'ꤰ', 'ꥆ', 'ꥠ', 'ꥼ', 'ꦄ', 'ꦲ', 'ꧠ', 'ꧤ', 'ꧧ', 'ꧯ', 'ꧺ', 'ꧾ', 'ꨀ', 'ꨨ', 'ꩀ', 'ꩂ', 'ꩄ', 'ꩋ', 'ꩠ', 'ꩯ', 'ꩱ', 'ꩶ', 'ꩾ', 'ꪯ', 'ꪵ', 'ꪶ', 'ꪹ', 'ꪽ', 'ꫛ', 'ꫜ', 'ꫠ', 'ꫪ', 'ꬁ', 'ꬆ', 'ꬉ', 'ꬎ', 'ꬑ', 'ꬖ', 'ꬠ', 'ꬦ', 'ꬨ', 'ꬮ', 'ꯀ', 'ꯢ', '가', '힣', 'ힰ', 'ퟆ', 'ퟋ', 'ퟻ', '豈', '舘', '並', '龎', 'ײַ', 'ﬨ', 'שׁ', 'זּ', 'טּ', 'לּ', 'נּ', 'סּ', 'ףּ', 'פּ', 'צּ', 'ﮱ', 'ﯓ', 'ﴽ', 'ﵐ', 'ﶏ', 'ﶒ', 'ﷇ', 'ﷰ', 'ﷻ', 'ﹰ', 'ﹴ', 'ﹶ', 'ﻼ', 'ヲ', 'ッ', 'ア', 'ン', 'ᅠ', 'ᄒ', 'ᅡ', 'ᅦ', 'ᅧ', 'ᅬ', 'ᅭ', 'ᅲ', 'ᅳ', 'ᅵ'}, @@ -12357,9 +12740,9 @@ var g = &grammar{ }, { name: "Lt", - pos: position{line: 1486, col: 1, offset: 48353}, + pos: position{line: 1485, col: 1, offset: 48352}, expr: &charClassMatcher{ - pos: position{line: 1486, col: 6, offset: 48358}, + pos: position{line: 1485, col: 6, offset: 48357}, val: "[\\u01C5\\u01C8\\u01CB\\u01F2\\u1F88-\\u1F8F\\u1F98-\\u1F9F\\u1FA8-\\u1FAF\\u1FBC\\u1FCC\\u1FFC]", chars: []rune{'Dž', 'Lj', 'Nj', 'Dz', 'ᾼ', 'ῌ', 'ῼ'}, ranges: []rune{'ᾈ', 'ᾏ', 'ᾘ', 'ᾟ', 'ᾨ', 'ᾯ'}, @@ -12369,9 +12752,9 @@ var g = &grammar{ }, { name: "Lu", - pos: position{line: 1489, col: 1, offset: 48464}, + pos: position{line: 1488, col: 1, offset: 48463}, expr: &charClassMatcher{ - pos: position{line: 1489, col: 6, offset: 48469}, + pos: position{line: 1488, col: 6, offset: 48468}, val: "[\\u0041-\\u005A\\u00C0-\\u00D6\\u00D8-\\u00DE\\u0100\\u0102\\u0104\\u0106\\u0108\\u010A\\u010C\\u010E\\u0110\\u0112\\u0114\\u0116\\u0118\\u011A\\u011C\\u011E\\u0120\\u0122\\u0124\\u0126\\u0128\\u012A\\u012C\\u012E\\u0130\\u0132\\u0134\\u0136\\u0139\\u013B\\u013D\\u013F\\u0141\\u0143\\u0145\\u0147\\u014A\\u014C\\u014E\\u0150\\u0152\\u0154\\u0156\\u0158\\u015A\\u015C\\u015E\\u0160\\u0162\\u0164\\u0166\\u0168\\u016A\\u016C\\u016E\\u0170\\u0172\\u0174\\u0176\\u0178-\\u0179\\u017B\\u017D\\u0181-\\u0182\\u0184\\u0186-\\u0187\\u0189-\\u018B\\u018E-\\u0191\\u0193-\\u0194\\u0196-\\u0198\\u019C-\\u019D\\u019F-\\u01A0\\u01A2\\u01A4\\u01A6-\\u01A7\\u01A9\\u01AC\\u01AE-\\u01AF\\u01B1-\\u01B3\\u01B5\\u01B7-\\u01B8\\u01BC\\u01C4\\u01C7\\u01CA\\u01CD\\u01CF\\u01D1\\u01D3\\u01D5\\u01D7\\u01D9\\u01DB\\u01DE\\u01E0\\u01E2\\u01E4\\u01E6\\u01E8\\u01EA\\u01EC\\u01EE\\u01F1\\u01F4\\u01F6-\\u01F8\\u01FA\\u01FC\\u01FE\\u0200\\u0202\\u0204\\u0206\\u0208\\u020A\\u020C\\u020E\\u0210\\u0212\\u0214\\u0216\\u0218\\u021A\\u021C\\u021E\\u0220\\u0222\\u0224\\u0226\\u0228\\u022A\\u022C\\u022E\\u0230\\u0232\\u023A-\\u023B\\u023D-\\u023E\\u0241\\u0243-\\u0246\\u0248\\u024A\\u024C\\u024E\\u0370\\u0372\\u0376\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u038F\\u0391-\\u03A1\\u03A3-\\u03AB\\u03CF\\u03D2-\\u03D4\\u03D8\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2\\u03E4\\u03E6\\u03E8\\u03EA\\u03EC\\u03EE\\u03F4\\u03F7\\u03F9-\\u03FA\\u03FD-\\u042F\\u0460\\u0462\\u0464\\u0466\\u0468\\u046A\\u046C\\u046E\\u0470\\u0472\\u0474\\u0476\\u0478\\u047A\\u047C\\u047E\\u0480\\u048A\\u048C\\u048E\\u0490\\u0492\\u0494\\u0496\\u0498\\u049A\\u049C\\u049E\\u04A0\\u04A2\\u04A4\\u04A6\\u04A8\\u04AA\\u04AC\\u04AE\\u04B0\\u04B2\\u04B4\\u04B6\\u04B8\\u04BA\\u04BC\\u04BE\\u04C0-\\u04C1\\u04C3\\u04C5\\u04C7\\u04C9\\u04CB\\u04CD\\u04D0\\u04D2\\u04D4\\u04D6\\u04D8\\u04DA\\u04DC\\u04DE\\u04E0\\u04E2\\u04E4\\u04E6\\u04E8\\u04EA\\u04EC\\u04EE\\u04F0\\u04F2\\u04F4\\u04F6\\u04F8\\u04FA\\u04FC\\u04FE\\u0500\\u0502\\u0504\\u0506\\u0508\\u050A\\u050C\\u050E\\u0510\\u0512\\u0514\\u0516\\u0518\\u051A\\u051C\\u051E\\u0520\\u0522\\u0524\\u0526\\u0528\\u052A\\u052C\\u052E\\u0531-\\u0556\\u10A0-\\u10C5\\u10C7\\u10CD\\u13A0-\\u13F5\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1E00\\u1E02\\u1E04\\u1E06\\u1E08\\u1E0A\\u1E0C\\u1E0E\\u1E10\\u1E12\\u1E14\\u1E16\\u1E18\\u1E1A\\u1E1C\\u1E1E\\u1E20\\u1E22\\u1E24\\u1E26\\u1E28\\u1E2A\\u1E2C\\u1E2E\\u1E30\\u1E32\\u1E34\\u1E36\\u1E38\\u1E3A\\u1E3C\\u1E3E\\u1E40\\u1E42\\u1E44\\u1E46\\u1E48\\u1E4A\\u1E4C\\u1E4E\\u1E50\\u1E52\\u1E54\\u1E56\\u1E58\\u1E5A\\u1E5C\\u1E5E\\u1E60\\u1E62\\u1E64\\u1E66\\u1E68\\u1E6A\\u1E6C\\u1E6E\\u1E70\\u1E72\\u1E74\\u1E76\\u1E78\\u1E7A\\u1E7C\\u1E7E\\u1E80\\u1E82\\u1E84\\u1E86\\u1E88\\u1E8A\\u1E8C\\u1E8E\\u1E90\\u1E92\\u1E94\\u1E9E\\u1EA0\\u1EA2\\u1EA4\\u1EA6\\u1EA8\\u1EAA\\u1EAC\\u1EAE\\u1EB0\\u1EB2\\u1EB4\\u1EB6\\u1EB8\\u1EBA\\u1EBC\\u1EBE\\u1EC0\\u1EC2\\u1EC4\\u1EC6\\u1EC8\\u1ECA\\u1ECC\\u1ECE\\u1ED0\\u1ED2\\u1ED4\\u1ED6\\u1ED8\\u1EDA\\u1EDC\\u1EDE\\u1EE0\\u1EE2\\u1EE4\\u1EE6\\u1EE8\\u1EEA\\u1EEC\\u1EEE\\u1EF0\\u1EF2\\u1EF4\\u1EF6\\u1EF8\\u1EFA\\u1EFC\\u1EFE\\u1F08-\\u1F0F\\u1F18-\\u1F1D\\u1F28-\\u1F2F\\u1F38-\\u1F3F\\u1F48-\\u1F4D\\u1F59\\u1F5B\\u1F5D\\u1F5F\\u1F68-\\u1F6F\\u1FB8-\\u1FBB\\u1FC8-\\u1FCB\\u1FD8-\\u1FDB\\u1FE8-\\u1FEC\\u1FF8-\\u1FFB\\u2102\\u2107\\u210B-\\u210D\\u2110-\\u2112\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u2130-\\u2133\\u213E-\\u213F\\u2145\\u2183\\u2C00-\\u2C2E\\u2C60\\u2C62-\\u2C64\\u2C67\\u2C69\\u2C6B\\u2C6D-\\u2C70\\u2C72\\u2C75\\u2C7E-\\u2C80\\u2C82\\u2C84\\u2C86\\u2C88\\u2C8A\\u2C8C\\u2C8E\\u2C90\\u2C92\\u2C94\\u2C96\\u2C98\\u2C9A\\u2C9C\\u2C9E\\u2CA0\\u2CA2\\u2CA4\\u2CA6\\u2CA8\\u2CAA\\u2CAC\\u2CAE\\u2CB0\\u2CB2\\u2CB4\\u2CB6\\u2CB8\\u2CBA\\u2CBC\\u2CBE\\u2CC0\\u2CC2\\u2CC4\\u2CC6\\u2CC8\\u2CCA\\u2CCC\\u2CCE\\u2CD0\\u2CD2\\u2CD4\\u2CD6\\u2CD8\\u2CDA\\u2CDC\\u2CDE\\u2CE0\\u2CE2\\u2CEB\\u2CED\\u2CF2\\uA640\\uA642\\uA644\\uA646\\uA648\\uA64A\\uA64C\\uA64E\\uA650\\uA652\\uA654\\uA656\\uA658\\uA65A\\uA65C\\uA65E\\uA660\\uA662\\uA664\\uA666\\uA668\\uA66A\\uA66C\\uA680\\uA682\\uA684\\uA686\\uA688\\uA68A\\uA68C\\uA68E\\uA690\\uA692\\uA694\\uA696\\uA698\\uA69A\\uA722\\uA724\\uA726\\uA728\\uA72A\\uA72C\\uA72E\\uA732\\uA734\\uA736\\uA738\\uA73A\\uA73C\\uA73E\\uA740\\uA742\\uA744\\uA746\\uA748\\uA74A\\uA74C\\uA74E\\uA750\\uA752\\uA754\\uA756\\uA758\\uA75A\\uA75C\\uA75E\\uA760\\uA762\\uA764\\uA766\\uA768\\uA76A\\uA76C\\uA76E\\uA779\\uA77B\\uA77D-\\uA77E\\uA780\\uA782\\uA784\\uA786\\uA78B\\uA78D\\uA790\\uA792\\uA796\\uA798\\uA79A\\uA79C\\uA79E\\uA7A0\\uA7A2\\uA7A4\\uA7A6\\uA7A8\\uA7AA-\\uA7AE\\uA7B0-\\uA7B4\\uA7B6\\uA7B8\\uFF21-\\uFF3A]", chars: []rune{'Ā', 'Ă', 'Ą', 'Ć', 'Ĉ', 'Ċ', 'Č', 'Ď', 'Đ', 'Ē', 'Ĕ', 'Ė', 'Ę', 'Ě', 'Ĝ', 'Ğ', 'Ġ', 'Ģ', 'Ĥ', 'Ħ', 'Ĩ', 'Ī', 'Ĭ', 'Į', 'İ', 'IJ', 'Ĵ', 'Ķ', 'Ĺ', 'Ļ', 'Ľ', 'Ŀ', 'Ł', 'Ń', 'Ņ', 'Ň', 'Ŋ', 'Ō', 'Ŏ', 'Ő', 'Œ', 'Ŕ', 'Ŗ', 'Ř', 'Ś', 'Ŝ', 'Ş', 'Š', 'Ţ', 'Ť', 'Ŧ', 'Ũ', 'Ū', 'Ŭ', 'Ů', 'Ű', 'Ų', 'Ŵ', 'Ŷ', 'Ż', 'Ž', 'Ƅ', 'Ƣ', 'Ƥ', 'Ʃ', 'Ƭ', 'Ƶ', 'Ƽ', 'DŽ', 'LJ', 'NJ', 'Ǎ', 'Ǐ', 'Ǒ', 'Ǔ', 'Ǖ', 'Ǘ', 'Ǚ', 'Ǜ', 'Ǟ', 'Ǡ', 'Ǣ', 'Ǥ', 'Ǧ', 'Ǩ', 'Ǫ', 'Ǭ', 'Ǯ', 'DZ', 'Ǵ', 'Ǻ', 'Ǽ', 'Ǿ', 'Ȁ', 'Ȃ', 'Ȅ', 'Ȇ', 'Ȉ', 'Ȋ', 'Ȍ', 'Ȏ', 'Ȑ', 'Ȓ', 'Ȕ', 'Ȗ', 'Ș', 'Ț', 'Ȝ', 'Ȟ', 'Ƞ', 'Ȣ', 'Ȥ', 'Ȧ', 'Ȩ', 'Ȫ', 'Ȭ', 'Ȯ', 'Ȱ', 'Ȳ', 'Ɂ', 'Ɉ', 'Ɋ', 'Ɍ', 'Ɏ', 'Ͱ', 'Ͳ', 'Ͷ', 'Ϳ', 'Ά', 'Ό', 'Ϗ', 'Ϙ', 'Ϛ', 'Ϝ', 'Ϟ', 'Ϡ', 'Ϣ', 'Ϥ', 'Ϧ', 'Ϩ', 'Ϫ', 'Ϭ', 'Ϯ', 'ϴ', 'Ϸ', 'Ѡ', 'Ѣ', 'Ѥ', 'Ѧ', 'Ѩ', 'Ѫ', 'Ѭ', 'Ѯ', 'Ѱ', 'Ѳ', 'Ѵ', 'Ѷ', 'Ѹ', 'Ѻ', 'Ѽ', 'Ѿ', 'Ҁ', 'Ҋ', 'Ҍ', 'Ҏ', 'Ґ', 'Ғ', 'Ҕ', 'Җ', 'Ҙ', 'Қ', 'Ҝ', 'Ҟ', 'Ҡ', 'Ң', 'Ҥ', 'Ҧ', 'Ҩ', 'Ҫ', 'Ҭ', 'Ү', 'Ұ', 'Ҳ', 'Ҵ', 'Ҷ', 'Ҹ', 'Һ', 'Ҽ', 'Ҿ', 'Ӄ', 'Ӆ', 'Ӈ', 'Ӊ', 'Ӌ', 'Ӎ', 'Ӑ', 'Ӓ', 'Ӕ', 'Ӗ', 'Ә', 'Ӛ', 'Ӝ', 'Ӟ', 'Ӡ', 'Ӣ', 'Ӥ', 'Ӧ', 'Ө', 'Ӫ', 'Ӭ', 'Ӯ', 'Ӱ', 'Ӳ', 'Ӵ', 'Ӷ', 'Ӹ', 'Ӻ', 'Ӽ', 'Ӿ', 'Ԁ', 'Ԃ', 'Ԅ', 'Ԇ', 'Ԉ', 'Ԋ', 'Ԍ', 'Ԏ', 'Ԑ', 'Ԓ', 'Ԕ', 'Ԗ', 'Ԙ', 'Ԛ', 'Ԝ', 'Ԟ', 'Ԡ', 'Ԣ', 'Ԥ', 'Ԧ', 'Ԩ', 'Ԫ', 'Ԭ', 'Ԯ', 'Ⴧ', 'Ⴭ', 'Ḁ', 'Ḃ', 'Ḅ', 'Ḇ', 'Ḉ', 'Ḋ', 'Ḍ', 'Ḏ', 'Ḑ', 'Ḓ', 'Ḕ', 'Ḗ', 'Ḙ', 'Ḛ', 'Ḝ', 'Ḟ', 'Ḡ', 'Ḣ', 'Ḥ', 'Ḧ', 'Ḩ', 'Ḫ', 'Ḭ', 'Ḯ', 'Ḱ', 'Ḳ', 'Ḵ', 'Ḷ', 'Ḹ', 'Ḻ', 'Ḽ', 'Ḿ', 'Ṁ', 'Ṃ', 'Ṅ', 'Ṇ', 'Ṉ', 'Ṋ', 'Ṍ', 'Ṏ', 'Ṑ', 'Ṓ', 'Ṕ', 'Ṗ', 'Ṙ', 'Ṛ', 'Ṝ', 'Ṟ', 'Ṡ', 'Ṣ', 'Ṥ', 'Ṧ', 'Ṩ', 'Ṫ', 'Ṭ', 'Ṯ', 'Ṱ', 'Ṳ', 'Ṵ', 'Ṷ', 'Ṹ', 'Ṻ', 'Ṽ', 'Ṿ', 'Ẁ', 'Ẃ', 'Ẅ', 'Ẇ', 'Ẉ', 'Ẋ', 'Ẍ', 'Ẏ', 'Ẑ', 'Ẓ', 'Ẕ', 'ẞ', 'Ạ', 'Ả', 'Ấ', 'Ầ', 'Ẩ', 'Ẫ', 'Ậ', 'Ắ', 'Ằ', 'Ẳ', 'Ẵ', 'Ặ', 'Ẹ', 'Ẻ', 'Ẽ', 'Ế', 'Ề', 'Ể', 'Ễ', 'Ệ', 'Ỉ', 'Ị', 'Ọ', 'Ỏ', 'Ố', 'Ồ', 'Ổ', 'Ỗ', 'Ộ', 'Ớ', 'Ờ', 'Ở', 'Ỡ', 'Ợ', 'Ụ', 'Ủ', 'Ứ', 'Ừ', 'Ử', 'Ữ', 'Ự', 'Ỳ', 'Ỵ', 'Ỷ', 'Ỹ', 'Ỻ', 'Ỽ', 'Ỿ', 'Ὑ', 'Ὓ', 'Ὕ', 'Ὗ', 'ℂ', 'ℇ', 'ℕ', 'ℤ', 'Ω', 'ℨ', 'ⅅ', 'Ↄ', 'Ⱡ', 'Ⱨ', 'Ⱪ', 'Ⱬ', 'Ⱳ', 'Ⱶ', 'Ⲃ', 'Ⲅ', 'Ⲇ', 'Ⲉ', 'Ⲋ', 'Ⲍ', 'Ⲏ', 'Ⲑ', 'Ⲓ', 'Ⲕ', 'Ⲗ', 'Ⲙ', 'Ⲛ', 'Ⲝ', 'Ⲟ', 'Ⲡ', 'Ⲣ', 'Ⲥ', 'Ⲧ', 'Ⲩ', 'Ⲫ', 'Ⲭ', 'Ⲯ', 'Ⲱ', 'Ⲳ', 'Ⲵ', 'Ⲷ', 'Ⲹ', 'Ⲻ', 'Ⲽ', 'Ⲿ', 'Ⳁ', 'Ⳃ', 'Ⳅ', 'Ⳇ', 'Ⳉ', 'Ⳋ', 'Ⳍ', 'Ⳏ', 'Ⳑ', 'Ⳓ', 'Ⳕ', 'Ⳗ', 'Ⳙ', 'Ⳛ', 'Ⳝ', 'Ⳟ', 'Ⳡ', 'Ⳣ', 'Ⳬ', 'Ⳮ', 'Ⳳ', 'Ꙁ', 'Ꙃ', 'Ꙅ', 'Ꙇ', 'Ꙉ', 'Ꙋ', 'Ꙍ', 'Ꙏ', 'Ꙑ', 'Ꙓ', 'Ꙕ', 'Ꙗ', 'Ꙙ', 'Ꙛ', 'Ꙝ', 'Ꙟ', 'Ꙡ', 'Ꙣ', 'Ꙥ', 'Ꙧ', 'Ꙩ', 'Ꙫ', 'Ꙭ', 'Ꚁ', 'Ꚃ', 'Ꚅ', 'Ꚇ', 'Ꚉ', 'Ꚋ', 'Ꚍ', 'Ꚏ', 'Ꚑ', 'Ꚓ', 'Ꚕ', 'Ꚗ', 'Ꚙ', 'Ꚛ', 'Ꜣ', 'Ꜥ', 'Ꜧ', 'Ꜩ', 'Ꜫ', 'Ꜭ', 'Ꜯ', 'Ꜳ', 'Ꜵ', 'Ꜷ', 'Ꜹ', 'Ꜻ', 'Ꜽ', 'Ꜿ', 'Ꝁ', 'Ꝃ', 'Ꝅ', 'Ꝇ', 'Ꝉ', 'Ꝋ', 'Ꝍ', 'Ꝏ', 'Ꝑ', 'Ꝓ', 'Ꝕ', 'Ꝗ', 'Ꝙ', 'Ꝛ', 'Ꝝ', 'Ꝟ', 'Ꝡ', 'Ꝣ', 'Ꝥ', 'Ꝧ', 'Ꝩ', 'Ꝫ', 'Ꝭ', 'Ꝯ', 'Ꝺ', 'Ꝼ', 'Ꞁ', 'Ꞃ', 'Ꞅ', 'Ꞇ', 'Ꞌ', 'Ɥ', 'Ꞑ', 'Ꞓ', 'Ꞗ', 'Ꞙ', 'Ꞛ', 'Ꞝ', 'Ꞟ', 'Ꞡ', 'Ꞣ', 'Ꞥ', 'Ꞧ', 'Ꞩ', 'Ꞷ', 'Ꞹ'}, ranges: []rune{'A', 'Z', 'À', 'Ö', 'Ø', 'Þ', 'Ÿ', 'Ź', 'Ɓ', 'Ƃ', 'Ɔ', 'Ƈ', 'Ɖ', 'Ƌ', 'Ǝ', 'Ƒ', 'Ɠ', 'Ɣ', 'Ɩ', 'Ƙ', 'Ɯ', 'Ɲ', 'Ɵ', 'Ơ', 'Ʀ', 'Ƨ', 'Ʈ', 'Ư', 'Ʊ', 'Ƴ', 'Ʒ', 'Ƹ', 'Ƕ', 'Ǹ', 'Ⱥ', 'Ȼ', 'Ƚ', 'Ⱦ', 'Ƀ', 'Ɇ', 'Έ', 'Ί', 'Ύ', 'Ώ', 'Α', 'Ρ', 'Σ', 'Ϋ', 'ϒ', 'ϔ', 'Ϲ', 'Ϻ', 'Ͻ', 'Я', 'Ӏ', 'Ӂ', 'Ա', 'Ֆ', 'Ⴀ', 'Ⴥ', 'Ꭰ', 'Ᏽ', 'Ა', 'Ჺ', 'Ჽ', 'Ჿ', 'Ἀ', 'Ἇ', 'Ἐ', 'Ἕ', 'Ἠ', 'Ἧ', 'Ἰ', 'Ἷ', 'Ὀ', 'Ὅ', 'Ὠ', 'Ὧ', 'Ᾰ', 'Ά', 'Ὲ', 'Ή', 'Ῐ', 'Ί', 'Ῠ', 'Ῥ', 'Ὸ', 'Ώ', 'ℋ', 'ℍ', 'ℐ', 'ℒ', 'ℙ', 'ℝ', 'K', 'ℭ', 'ℰ', 'ℳ', 'ℾ', 'ℿ', 'Ⰰ', 'Ⱞ', 'Ɫ', 'Ɽ', 'Ɑ', 'Ɒ', 'Ȿ', 'Ⲁ', 'Ᵹ', 'Ꝿ', 'Ɦ', 'Ɪ', 'Ʞ', 'Ꞵ', 'A', 'Z'}, @@ -12381,9 +12764,9 @@ var g = &grammar{ }, { name: "Mc", - pos: position{line: 1492, col: 1, offset: 52470}, + pos: position{line: 1491, col: 1, offset: 52469}, expr: &charClassMatcher{ - pos: position{line: 1492, col: 6, offset: 52475}, + pos: position{line: 1491, col: 6, offset: 52474}, val: "[\\u0903\\u093B\\u093E-\\u0940\\u0949-\\u094C\\u094E-\\u094F\\u0982-\\u0983\\u09BE-\\u09C0\\u09C7-\\u09C8\\u09CB-\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB-\\u0ACC\\u0B02-\\u0B03\\u0B3E\\u0B40\\u0B47-\\u0B48\\u0B4B-\\u0B4C\\u0B57\\u0BBE-\\u0BBF\\u0BC1-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82-\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7-\\u0CC8\\u0CCA-\\u0CCB\\u0CD5-\\u0CD6\\u0D02-\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82-\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2-\\u0DF3\\u0F3E-\\u0F3F\\u0F7F\\u102B-\\u102C\\u1031\\u1038\\u103B-\\u103C\\u1056-\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083-\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7-\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930-\\u1931\\u1933-\\u1938\\u1A19-\\u1A1A\\u1A55\\u1A57\\u1A61\\u1A63-\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43-\\u1B44\\u1B82\\u1BA1\\u1BA6-\\u1BA7\\u1BAA\\u1BE7\\u1BEA-\\u1BEC\\u1BEE\\u1BF2-\\u1BF3\\u1C24-\\u1C2B\\u1C34-\\u1C35\\u1CE1\\u1CF2-\\u1CF3\\u1CF7\\u302E-\\u302F\\uA823-\\uA824\\uA827\\uA880-\\uA881\\uA8B4-\\uA8C3\\uA952-\\uA953\\uA983\\uA9B4-\\uA9B5\\uA9BA-\\uA9BB\\uA9BD-\\uA9C0\\uAA2F-\\uAA30\\uAA33-\\uAA34\\uAA4D\\uAA7B\\uAA7D\\uAAEB\\uAAEE-\\uAAEF\\uAAF5\\uABE3-\\uABE4\\uABE6-\\uABE7\\uABE9-\\uABEA\\uABEC]", chars: []rune{'ः', 'ऻ', 'ৗ', 'ਃ', 'ઃ', 'ૉ', 'ା', 'ୀ', 'ୗ', 'ௗ', 'ಾ', 'ൗ', 'ཿ', 'ေ', 'း', 'ႏ', 'ា', 'ᩕ', 'ᩗ', 'ᩡ', 'ᬄ', 'ᬵ', 'ᬻ', 'ᮂ', 'ᮡ', '᮪', 'ᯧ', 'ᯮ', '᳡', '᳷', 'ꠧ', 'ꦃ', 'ꩍ', 'ꩻ', 'ꩽ', 'ꫫ', 'ꫵ', '꯬'}, ranges: []rune{'ा', 'ी', 'ॉ', 'ौ', 'ॎ', 'ॏ', 'ং', 'ঃ', 'া', 'ী', 'ে', 'ৈ', 'ো', 'ৌ', 'ਾ', 'ੀ', 'ા', 'ી', 'ો', 'ૌ', 'ଂ', 'ଃ', 'େ', 'ୈ', 'ୋ', 'ୌ', 'ா', 'ி', 'ு', 'ூ', 'ெ', 'ை', 'ொ', 'ௌ', 'ఁ', 'ః', 'ు', 'ౄ', 'ಂ', 'ಃ', 'ೀ', 'ೄ', 'ೇ', 'ೈ', 'ೊ', 'ೋ', 'ೕ', 'ೖ', 'ം', 'ഃ', 'ാ', 'ീ', 'െ', 'ൈ', 'ൊ', 'ൌ', 'ං', 'ඃ', 'ා', 'ෑ', 'ෘ', 'ෟ', 'ෲ', 'ෳ', '༾', '༿', 'ါ', 'ာ', 'ျ', 'ြ', 'ၖ', 'ၗ', 'ၢ', 'ၤ', 'ၧ', 'ၭ', 'ႃ', 'ႄ', 'ႇ', 'ႌ', 'ႚ', 'ႜ', 'ើ', 'ៅ', 'ះ', 'ៈ', 'ᤣ', 'ᤦ', 'ᤩ', 'ᤫ', 'ᤰ', 'ᤱ', 'ᤳ', 'ᤸ', 'ᨙ', 'ᨚ', 'ᩣ', 'ᩤ', 'ᩭ', 'ᩲ', 'ᬽ', 'ᭁ', 'ᭃ', '᭄', 'ᮦ', 'ᮧ', 'ᯪ', 'ᯬ', '᯲', '᯳', 'ᰤ', 'ᰫ', 'ᰴ', 'ᰵ', 'ᳲ', 'ᳳ', '〮', '〯', 'ꠣ', 'ꠤ', 'ꢀ', 'ꢁ', 'ꢴ', 'ꣃ', 'ꥒ', '꥓', 'ꦴ', 'ꦵ', 'ꦺ', 'ꦻ', 'ꦽ', '꧀', 'ꨯ', 'ꨰ', 'ꨳ', 'ꨴ', 'ꫮ', 'ꫯ', 'ꯣ', 'ꯤ', 'ꯦ', 'ꯧ', 'ꯩ', 'ꯪ'}, @@ -12393,9 +12776,9 @@ var g = &grammar{ }, { name: "Mn", - pos: position{line: 1495, col: 1, offset: 53663}, + pos: position{line: 1494, col: 1, offset: 53662}, expr: &charClassMatcher{ - pos: position{line: 1495, col: 6, offset: 53668}, + pos: position{line: 1494, col: 6, offset: 53667}, val: "[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1-\\u05C2\\u05C4-\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7-\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u08D3-\\u08E1\\u08E3-\\u0902\\u093A\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0957\\u0962-\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2-\\u09E3\\u09FE\\u0A01-\\u0A02\\u0A3C\\u0A41-\\u0A42\\u0A47-\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70-\\u0A71\\u0A75\\u0A81-\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7-\\u0AC8\\u0ACD\\u0AE2-\\u0AE3\\u0AFA-\\u0AFF\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62-\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C00\\u0C04\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55-\\u0C56\\u0C62-\\u0C63\\u0C81\\u0CBC\\u0CBF\\u0CC6\\u0CCC-\\u0CCD\\u0CE2-\\u0CE3\\u0D00-\\u0D01\\u0D3B-\\u0D3C\\u0D41-\\u0D44\\u0D4D\\u0D62-\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB-\\u0EBC\\u0EC8-\\u0ECD\\u0F18-\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86-\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039-\\u103A\\u103D-\\u103E\\u1058-\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085-\\u1086\\u108D\\u109D\\u135D-\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752-\\u1753\\u1772-\\u1773\\u17B4-\\u17B5\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u1885-\\u1886\\u18A9\\u1920-\\u1922\\u1927-\\u1928\\u1932\\u1939-\\u193B\\u1A17-\\u1A18\\u1A1B\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1AB0-\\u1ABD\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80-\\u1B81\\u1BA2-\\u1BA5\\u1BA8-\\u1BA9\\u1BAB-\\u1BAD\\u1BE6\\u1BE8-\\u1BE9\\u1BED\\u1BEF-\\u1BF1\\u1C2C-\\u1C33\\u1C36-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1CF4\\u1CF8-\\u1CF9\\u1DC0-\\u1DF9\\u1DFB-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302D\\u3099-\\u309A\\uA66F\\uA674-\\uA67D\\uA69E-\\uA69F\\uA6F0-\\uA6F1\\uA802\\uA806\\uA80B\\uA825-\\uA826\\uA8C4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uA9E5\\uAA29-\\uAA2E\\uAA31-\\uAA32\\uAA35-\\uAA36\\uAA43\\uAA4C\\uAA7C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7-\\uAAB8\\uAABE-\\uAABF\\uAAC1\\uAAEC-\\uAAED\\uAAF6\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]", chars: []rune{'ֿ', 'ׇ', 'ٰ', 'ܑ', '߽', 'ऺ', '़', '्', 'ঁ', '়', '্', '৾', '਼', 'ੑ', 'ੵ', '઼', '્', 'ଁ', '଼', 'ି', '୍', 'ୖ', 'ஂ', 'ீ', '்', 'ఀ', 'ఄ', 'ಁ', '಼', 'ಿ', 'ೆ', '്', '්', 'ූ', 'ั', 'ັ', '༵', '༷', '༹', '࿆', 'ႂ', 'ႍ', 'ႝ', 'ំ', '៝', 'ᢩ', 'ᤲ', 'ᨛ', 'ᩖ', '᩠', 'ᩢ', '᩿', '᬴', 'ᬼ', 'ᭂ', '᯦', 'ᯭ', '᳭', '᳴', '⃡', '⵿', '꙯', 'ꠂ', '꠆', 'ꠋ', 'ꣿ', '꦳', 'ꦼ', 'ꧥ', 'ꩃ', 'ꩌ', 'ꩼ', 'ꪰ', '꫁', '꫶', 'ꯥ', 'ꯨ', '꯭', 'ﬞ'}, ranges: []rune{'̀', 'ͯ', '҃', '҇', '֑', 'ֽ', 'ׁ', 'ׂ', 'ׄ', 'ׅ', 'ؐ', 'ؚ', 'ً', 'ٟ', 'ۖ', 'ۜ', '۟', 'ۤ', 'ۧ', 'ۨ', '۪', 'ۭ', 'ܰ', '݊', 'ަ', 'ް', '߫', '߳', 'ࠖ', '࠙', 'ࠛ', 'ࠣ', 'ࠥ', 'ࠧ', 'ࠩ', '࠭', '࡙', '࡛', '࣓', '࣡', 'ࣣ', 'ं', 'ु', 'ै', '॑', 'ॗ', 'ॢ', 'ॣ', 'ু', 'ৄ', 'ৢ', 'ৣ', 'ਁ', 'ਂ', 'ੁ', 'ੂ', 'ੇ', 'ੈ', 'ੋ', '੍', 'ੰ', 'ੱ', 'ઁ', 'ં', 'ુ', 'ૅ', 'ે', 'ૈ', 'ૢ', 'ૣ', 'ૺ', '૿', 'ୁ', 'ୄ', 'ୢ', 'ୣ', 'ా', 'ీ', 'ె', 'ై', 'ొ', '్', 'ౕ', 'ౖ', 'ౢ', 'ౣ', 'ೌ', '್', 'ೢ', 'ೣ', 'ഀ', 'ഁ', '഻', '഼', 'ു', 'ൄ', 'ൢ', 'ൣ', 'ි', 'ු', 'ิ', 'ฺ', '็', '๎', 'ິ', 'ູ', 'ົ', 'ຼ', '່', 'ໍ', '༘', '༙', 'ཱ', 'ཾ', 'ྀ', '྄', '྆', '྇', 'ྍ', 'ྗ', 'ྙ', 'ྼ', 'ိ', 'ူ', 'ဲ', '့', '္', '်', 'ွ', 'ှ', 'ၘ', 'ၙ', 'ၞ', 'ၠ', 'ၱ', 'ၴ', 'ႅ', 'ႆ', '፝', '፟', 'ᜒ', '᜔', 'ᜲ', '᜴', 'ᝒ', 'ᝓ', 'ᝲ', 'ᝳ', '឴', '឵', 'ិ', 'ួ', '៉', '៓', '᠋', '᠍', 'ᢅ', 'ᢆ', 'ᤠ', 'ᤢ', 'ᤧ', 'ᤨ', '᤹', '᤻', 'ᨗ', 'ᨘ', 'ᩘ', 'ᩞ', 'ᩥ', 'ᩬ', 'ᩳ', '᩼', '᪰', '᪽', 'ᬀ', 'ᬃ', 'ᬶ', 'ᬺ', '᭫', '᭳', 'ᮀ', 'ᮁ', 'ᮢ', 'ᮥ', 'ᮨ', 'ᮩ', '᮫', 'ᮭ', 'ᯨ', 'ᯩ', 'ᯯ', 'ᯱ', 'ᰬ', 'ᰳ', 'ᰶ', '᰷', '᳐', '᳒', '᳔', '᳠', '᳢', '᳨', '᳸', '᳹', '᷀', '᷹', '᷻', '᷿', '⃐', '⃜', '⃥', '⃰', '⳯', '⳱', 'ⷠ', 'ⷿ', '〪', '〭', '゙', '゚', 'ꙴ', '꙽', 'ꚞ', 'ꚟ', '꛰', '꛱', 'ꠥ', 'ꠦ', '꣄', 'ꣅ', '꣠', '꣱', 'ꤦ', '꤭', 'ꥇ', 'ꥑ', 'ꦀ', 'ꦂ', 'ꦶ', 'ꦹ', 'ꨩ', 'ꨮ', 'ꨱ', 'ꨲ', 'ꨵ', 'ꨶ', 'ꪲ', 'ꪴ', 'ꪷ', 'ꪸ', 'ꪾ', '꪿', 'ꫬ', 'ꫭ', '︀', '️', '︠', '︯'}, @@ -12405,9 +12788,9 @@ var g = &grammar{ }, { name: "Nd", - pos: position{line: 1498, col: 1, offset: 55848}, + pos: position{line: 1497, col: 1, offset: 55847}, expr: &charClassMatcher{ - pos: position{line: 1498, col: 6, offset: 55853}, + pos: position{line: 1497, col: 6, offset: 55852}, val: "[\\u0030-\\u0039\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19]", ranges: []rune{'0', '9', '٠', '٩', '۰', '۹', '߀', '߉', '०', '९', '০', '৯', '੦', '੯', '૦', '૯', '୦', '୯', '௦', '௯', '౦', '౯', '೦', '೯', '൦', '൯', '෦', '෯', '๐', '๙', '໐', '໙', '༠', '༩', '၀', '၉', '႐', '႙', '០', '៩', '᠐', '᠙', '᥆', '᥏', '᧐', '᧙', '᪀', '᪉', '᪐', '᪙', '᭐', '᭙', '᮰', '᮹', '᱀', '᱉', '᱐', '᱙', '꘠', '꘩', '꣐', '꣙', '꤀', '꤉', '꧐', '꧙', '꧰', '꧹', '꩐', '꩙', '꯰', '꯹', '0', '9'}, ignoreCase: false, @@ -12416,9 +12799,9 @@ var g = &grammar{ }, { name: "Nl", - pos: position{line: 1501, col: 1, offset: 56356}, + pos: position{line: 1500, col: 1, offset: 56355}, expr: &charClassMatcher{ - pos: position{line: 1501, col: 6, offset: 56361}, + pos: position{line: 1500, col: 6, offset: 56360}, val: "[\\u16EE-\\u16F0\\u2160-\\u2182\\u2185-\\u2188\\u3007\\u3021-\\u3029\\u3038-\\u303A\\uA6E6-\\uA6EF]", chars: []rune{'〇'}, ranges: []rune{'ᛮ', 'ᛰ', 'Ⅰ', 'ↂ', 'ↅ', 'ↈ', '〡', '〩', '〸', '〺', 'ꛦ', 'ꛯ'}, @@ -12428,9 +12811,9 @@ var g = &grammar{ }, { name: "Pc", - pos: position{line: 1504, col: 1, offset: 56475}, + pos: position{line: 1503, col: 1, offset: 56474}, expr: &charClassMatcher{ - pos: position{line: 1504, col: 6, offset: 56480}, + pos: position{line: 1503, col: 6, offset: 56479}, val: "[\\u005F\\u203F-\\u2040\\u2054\\uFE33-\\uFE34\\uFE4D-\\uFE4F\\uFF3F]", chars: []rune{'_', '⁔', '_'}, ranges: []rune{'‿', '⁀', '︳', '︴', '﹍', '﹏'}, @@ -12440,9 +12823,9 @@ var g = &grammar{ }, { name: "Zs", - pos: position{line: 1507, col: 1, offset: 56561}, + pos: position{line: 1506, col: 1, offset: 56560}, expr: &charClassMatcher{ - pos: position{line: 1507, col: 6, offset: 56566}, + pos: position{line: 1506, col: 6, offset: 56565}, val: "[\\u0020\\u00A0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]", chars: []rune{' ', '\u00a0', '\u1680', '\u202f', '\u205f', '\u3000'}, ranges: []rune{'\u2000', '\u200a'}, @@ -12452,50 +12835,56 @@ var g = &grammar{ }, { name: "SourceCharacter", - pos: position{line: 1509, col: 1, offset: 56619}, + pos: position{line: 1508, col: 1, offset: 56618}, expr: &anyMatcher{ - line: 1510, col: 5, offset: 56639, + line: 1509, col: 5, offset: 56638, }, }, { name: "WhiteSpace", displayName: "\"whitespace\"", - pos: position{line: 1512, col: 1, offset: 56642}, + pos: position{line: 1511, col: 1, offset: 56641}, expr: &choiceExpr{ - pos: position{line: 1513, col: 5, offset: 56670}, - alternatives: []interface{}{ + pos: position{line: 1512, col: 5, offset: 56669}, + alternatives: []any{ &litMatcher{ - pos: position{line: 1513, col: 5, offset: 56670}, + pos: position{line: 1512, col: 5, offset: 56669}, val: "\t", ignoreCase: false, + want: "\"\\t\"", }, &litMatcher{ - pos: position{line: 1514, col: 5, offset: 56679}, + pos: position{line: 1513, col: 5, offset: 56678}, val: "\v", ignoreCase: false, + want: "\"\\v\"", }, &litMatcher{ - pos: position{line: 1515, col: 5, offset: 56688}, + pos: position{line: 1514, col: 5, offset: 56687}, val: "\f", ignoreCase: false, + want: "\"\\f\"", }, &litMatcher{ - pos: position{line: 1516, col: 5, offset: 56697}, + pos: position{line: 1515, col: 5, offset: 56696}, val: " ", ignoreCase: false, + want: "\" \"", }, &litMatcher{ - pos: position{line: 1517, col: 5, offset: 56705}, + pos: position{line: 1516, col: 5, offset: 56704}, val: "\u00a0", ignoreCase: false, + want: "\"\\u00a0\"", }, &litMatcher{ - pos: position{line: 1518, col: 5, offset: 56718}, + pos: position{line: 1517, col: 5, offset: 56717}, val: "\ufeff", ignoreCase: false, + want: "\"\\ufeff\"", }, &ruleRefExpr{ - pos: position{line: 1519, col: 5, offset: 56731}, + pos: position{line: 1518, col: 5, offset: 56730}, name: "Zs", }, }, @@ -12503,9 +12892,9 @@ var g = &grammar{ }, { name: "LineTerminator", - pos: position{line: 1521, col: 1, offset: 56735}, + pos: position{line: 1520, col: 1, offset: 56734}, expr: &charClassMatcher{ - pos: position{line: 1522, col: 5, offset: 56754}, + pos: position{line: 1521, col: 5, offset: 56753}, val: "[\\n\\r\\u2028\\u2029]", chars: []rune{'\n', '\r', '\u2028', '\u2029'}, ignoreCase: false, @@ -12515,76 +12904,80 @@ var g = &grammar{ { name: "Comment", displayName: "\"comment\"", - pos: position{line: 1528, col: 1, offset: 57084}, + pos: position{line: 1527, col: 1, offset: 57083}, expr: &ruleRefExpr{ - pos: position{line: 1531, col: 5, offset: 57155}, + pos: position{line: 1530, col: 5, offset: 57154}, name: "SingleLineComment", }, }, { name: "MultiLineComment", - pos: position{line: 1533, col: 1, offset: 57174}, + pos: position{line: 1532, col: 1, offset: 57173}, expr: &seqExpr{ - pos: position{line: 1534, col: 5, offset: 57195}, - exprs: []interface{}{ + pos: position{line: 1533, col: 5, offset: 57194}, + exprs: []any{ &litMatcher{ - pos: position{line: 1534, col: 5, offset: 57195}, + pos: position{line: 1533, col: 5, offset: 57194}, val: "/*", ignoreCase: false, + want: "\"/*\"", }, &zeroOrMoreExpr{ - pos: position{line: 1534, col: 10, offset: 57200}, + pos: position{line: 1533, col: 10, offset: 57199}, expr: &seqExpr{ - pos: position{line: 1534, col: 11, offset: 57201}, - exprs: []interface{}{ + pos: position{line: 1533, col: 11, offset: 57200}, + exprs: []any{ ¬Expr{ - pos: position{line: 1534, col: 11, offset: 57201}, + pos: position{line: 1533, col: 11, offset: 57200}, expr: &litMatcher{ - pos: position{line: 1534, col: 12, offset: 57202}, + pos: position{line: 1533, col: 12, offset: 57201}, val: "*/", ignoreCase: false, + want: "\"*/\"", }, }, &ruleRefExpr{ - pos: position{line: 1534, col: 17, offset: 57207}, + pos: position{line: 1533, col: 17, offset: 57206}, name: "SourceCharacter", }, }, }, }, &litMatcher{ - pos: position{line: 1534, col: 35, offset: 57225}, + pos: position{line: 1533, col: 35, offset: 57224}, val: "*/", ignoreCase: false, + want: "\"*/\"", }, }, }, }, { name: "SingleLineComment", - pos: position{line: 1536, col: 1, offset: 57231}, + pos: position{line: 1535, col: 1, offset: 57230}, expr: &seqExpr{ - pos: position{line: 1537, col: 5, offset: 57253}, - exprs: []interface{}{ + pos: position{line: 1536, col: 5, offset: 57252}, + exprs: []any{ &litMatcher{ - pos: position{line: 1537, col: 5, offset: 57253}, + pos: position{line: 1536, col: 5, offset: 57252}, val: "//", ignoreCase: false, + want: "\"//\"", }, &zeroOrMoreExpr{ - pos: position{line: 1537, col: 10, offset: 57258}, + pos: position{line: 1536, col: 10, offset: 57257}, expr: &seqExpr{ - pos: position{line: 1537, col: 11, offset: 57259}, - exprs: []interface{}{ + pos: position{line: 1536, col: 11, offset: 57258}, + exprs: []any{ ¬Expr{ - pos: position{line: 1537, col: 11, offset: 57259}, + pos: position{line: 1536, col: 11, offset: 57258}, expr: &ruleRefExpr{ - pos: position{line: 1537, col: 12, offset: 57260}, + pos: position{line: 1536, col: 12, offset: 57259}, name: "LineTerminator", }, }, &ruleRefExpr{ - pos: position{line: 1537, col: 27, offset: 57275}, + pos: position{line: 1536, col: 27, offset: 57274}, name: "SourceCharacter", }, }, @@ -12595,19 +12988,19 @@ var g = &grammar{ }, { name: "EOL", - pos: position{line: 1539, col: 1, offset: 57294}, + pos: position{line: 1538, col: 1, offset: 57293}, expr: &seqExpr{ - pos: position{line: 1539, col: 7, offset: 57300}, - exprs: []interface{}{ + pos: position{line: 1538, col: 7, offset: 57299}, + exprs: []any{ &zeroOrMoreExpr{ - pos: position{line: 1539, col: 7, offset: 57300}, + pos: position{line: 1538, col: 7, offset: 57299}, expr: &ruleRefExpr{ - pos: position{line: 1539, col: 7, offset: 57300}, + pos: position{line: 1538, col: 7, offset: 57299}, name: "WhiteSpace", }, }, &ruleRefExpr{ - pos: position{line: 1539, col: 19, offset: 57312}, + pos: position{line: 1538, col: 19, offset: 57311}, name: "LineTerminator", }, }, @@ -12615,16 +13008,16 @@ var g = &grammar{ }, { name: "EOT", - pos: position{line: 1541, col: 1, offset: 57328}, + pos: position{line: 1540, col: 1, offset: 57327}, expr: &choiceExpr{ - pos: position{line: 1541, col: 7, offset: 57334}, - alternatives: []interface{}{ + pos: position{line: 1540, col: 7, offset: 57333}, + alternatives: []any{ &ruleRefExpr{ - pos: position{line: 1541, col: 7, offset: 57334}, + pos: position{line: 1540, col: 7, offset: 57333}, name: "_", }, &ruleRefExpr{ - pos: position{line: 1541, col: 11, offset: 57338}, + pos: position{line: 1540, col: 11, offset: 57337}, name: "EOF", }, }, @@ -12632,21 +13025,21 @@ var g = &grammar{ }, { name: "EOF", - pos: position{line: 1543, col: 1, offset: 57343}, + pos: position{line: 1542, col: 1, offset: 57342}, expr: ¬Expr{ - pos: position{line: 1543, col: 7, offset: 57349}, + pos: position{line: 1542, col: 7, offset: 57348}, expr: &anyMatcher{ - line: 1543, col: 8, offset: 57350, + line: 1542, col: 8, offset: 57349, }, }, }, { name: "EOKW", - pos: position{line: 1545, col: 1, offset: 57353}, + pos: position{line: 1544, col: 1, offset: 57352}, expr: ¬Expr{ - pos: position{line: 1545, col: 8, offset: 57360}, + pos: position{line: 1544, col: 8, offset: 57359}, expr: &ruleRefExpr{ - pos: position{line: 1545, col: 9, offset: 57361}, + pos: position{line: 1544, col: 9, offset: 57360}, name: "KeyWordChars", }, }, @@ -12654,80 +13047,80 @@ var g = &grammar{ }, } -func (c *current) onstart2(scope interface{}) (interface{}, error) { +func (c *current) onstart2(scope any) (any, error) { return []interface{}{scope}, nil } -func (p *parser) callonstart2() (interface{}, error) { +func (p *parser) callonstart2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onstart2(stack["scope"]) } -func (c *current) onstart9(seq interface{}) (interface{}, error) { +func (c *current) onstart9(seq any) (any, error) { return seq, nil } -func (p *parser) callonstart9() (interface{}, error) { +func (p *parser) callonstart9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onstart9(stack["seq"]) } -func (c *current) onScope1(decls, body interface{}) (interface{}, error) { +func (c *current) onScope1(decls, body any) (any, error) { return map[string]interface{}{"kind": "Scope", "decls": decls, "body": body}, nil } -func (p *parser) callonScope1() (interface{}, error) { +func (p *parser) callonScope1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onScope1(stack["decls"], stack["body"]) } -func (c *current) onSeq1(first, rest interface{}) (interface{}, error) { +func (c *current) onSeq1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonSeq1() (interface{}, error) { +func (p *parser) callonSeq1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSeq1(stack["first"], stack["rest"]) } -func (c *current) onSeqTail1(o interface{}) (interface{}, error) { +func (c *current) onSeqTail1(o any) (any, error) { return o, nil } -func (p *parser) callonSeqTail1() (interface{}, error) { +func (p *parser) callonSeqTail1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSeqTail1(stack["o"]) } -func (c *current) onDecl1(v interface{}) (interface{}, error) { +func (c *current) onDecl1(v any) (any, error) { return v, nil } -func (p *parser) callonDecl1() (interface{}, error) { +func (p *parser) callonDecl1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDecl1(stack["v"]) } -func (c *current) onConstDecl2(id, expr interface{}) (interface{}, error) { +func (c *current) onConstDecl2(id, expr any) (any, error) { return map[string]interface{}{"kind": "ConstDecl", "name": id, "expr": expr}, nil } -func (p *parser) callonConstDecl2() (interface{}, error) { +func (p *parser) callonConstDecl2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onConstDecl2(stack["id"], stack["expr"]) } -func (c *current) onConstDecl13(id, typ interface{}) (interface{}, error) { +func (c *current) onConstDecl13(id, typ any) (any, error) { return map[string]interface{}{ "kind": "ConstDecl", @@ -12738,13 +13131,13 @@ func (c *current) onConstDecl13(id, typ interface{}) (interface{}, error) { } -func (p *parser) callonConstDecl13() (interface{}, error) { +func (p *parser) callonConstDecl13() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onConstDecl13(stack["id"], stack["typ"]) } -func (c *current) onFuncDecl1(id, params, expr interface{}) (interface{}, error) { +func (c *current) onFuncDecl1(id, params, expr any) (any, error) { return map[string]interface{}{ "kind": "FuncDecl", @@ -12757,13 +13150,13 @@ func (c *current) onFuncDecl1(id, params, expr interface{}) (interface{}, error) } -func (p *parser) callonFuncDecl1() (interface{}, error) { +func (p *parser) callonFuncDecl1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFuncDecl1(stack["id"], stack["params"], stack["expr"]) } -func (c *current) onOpDecl1(name, params, body interface{}) (interface{}, error) { +func (c *current) onOpDecl1(name, params, body any) (any, error) { return map[string]interface{}{ "kind": "OpDecl", @@ -12776,192 +13169,192 @@ func (c *current) onOpDecl1(name, params, body interface{}) (interface{}, error) } -func (p *parser) callonOpDecl1() (interface{}, error) { +func (p *parser) callonOpDecl1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOpDecl1(stack["name"], stack["params"], stack["body"]) } -func (c *current) onOpDeclBody2(scope interface{}) (interface{}, error) { +func (c *current) onOpDeclBody2(scope any) (any, error) { return []interface{}{scope}, nil } -func (p *parser) callonOpDeclBody2() (interface{}, error) { +func (p *parser) callonOpDeclBody2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOpDeclBody2(stack["scope"]) } -func (c *current) onOpDeclBody5(seq interface{}) (interface{}, error) { +func (c *current) onOpDeclBody5(seq any) (any, error) { return seq, nil } -func (p *parser) callonOpDeclBody5() (interface{}, error) { +func (p *parser) callonOpDeclBody5() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOpDeclBody5(stack["seq"]) } -func (c *current) onOperation2(paths interface{}) (interface{}, error) { +func (c *current) onOperation2(paths any) (any, error) { return map[string]interface{}{"kind": "Parallel", "paths": paths}, nil } -func (p *parser) callonOperation2() (interface{}, error) { +func (p *parser) callonOperation2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation2(stack["paths"]) } -func (c *current) onOperation12(expr, cases interface{}) (interface{}, error) { +func (c *current) onOperation12(expr, cases any) (any, error) { return map[string]interface{}{"kind": "Switch", "expr": expr, "cases": cases}, nil } -func (p *parser) callonOperation12() (interface{}, error) { +func (p *parser) callonOperation12() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation12(stack["expr"], stack["cases"]) } -func (c *current) onOperation25(cases interface{}) (interface{}, error) { +func (c *current) onOperation25(cases any) (any, error) { return map[string]interface{}{"kind": "Switch", "expr": nil, "cases": cases}, nil } -func (p *parser) callonOperation25() (interface{}, error) { +func (p *parser) callonOperation25() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation25(stack["cases"]) } -func (c *current) onOperation35(trunks interface{}) (interface{}, error) { +func (c *current) onOperation35(trunks any) (any, error) { return map[string]interface{}{"kind": "From", "trunks": trunks}, nil } -func (p *parser) callonOperation35() (interface{}, error) { +func (p *parser) callonOperation35() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation35(stack["trunks"]) } -func (c *current) onOperation45(scope interface{}) (interface{}, error) { +func (c *current) onOperation45(scope any) (any, error) { return scope, nil } -func (p *parser) callonOperation45() (interface{}, error) { +func (p *parser) callonOperation45() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation45(stack["scope"]) } -func (c *current) onOperation55(a interface{}) (interface{}, error) { +func (c *current) onOperation55(a any) (any, error) { return a, nil } -func (p *parser) callonOperation55() (interface{}, error) { +func (p *parser) callonOperation55() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation55(stack["a"]) } -func (c *current) onOperation61(a interface{}) (interface{}, error) { +func (c *current) onOperation61(a any) (any, error) { return a, nil } -func (p *parser) callonOperation61() (interface{}, error) { +func (p *parser) callonOperation61() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation61(stack["a"]) } -func (c *current) onOperation71(expr interface{}) (interface{}, error) { +func (c *current) onOperation71(expr any) (any, error) { return map[string]interface{}{"kind": "Search", "expr": expr}, nil } -func (p *parser) callonOperation71() (interface{}, error) { +func (p *parser) callonOperation71() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation71(stack["expr"]) } -func (c *current) onOperation77(expr interface{}) (interface{}, error) { +func (c *current) onOperation77(expr any) (any, error) { return map[string]interface{}{"kind": "OpExpr", "expr": expr}, nil } -func (p *parser) callonOperation77() (interface{}, error) { +func (p *parser) callonOperation77() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation77(stack["expr"]) } -func (c *current) onOperation80(expr interface{}) (interface{}, error) { +func (c *current) onOperation80(expr any) (any, error) { return map[string]interface{}{"kind": "OpExpr", "expr": expr}, nil } -func (p *parser) callonOperation80() (interface{}, error) { +func (p *parser) callonOperation80() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation80(stack["expr"]) } -func (c *current) onOperation83(expr interface{}) (interface{}, error) { +func (c *current) onOperation83(expr any) (any, error) { return map[string]interface{}{"kind": "OpExpr", "expr": expr}, nil } -func (p *parser) callonOperation83() (interface{}, error) { +func (p *parser) callonOperation83() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOperation83(stack["expr"]) } -func (c *current) onLeg1(seq interface{}) (interface{}, error) { +func (c *current) onLeg1(seq any) (any, error) { return seq, nil } -func (p *parser) callonLeg1() (interface{}, error) { +func (p *parser) callonLeg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLeg1(stack["seq"]) } -func (c *current) onSwitchLeg1(expr, path interface{}) (interface{}, error) { +func (c *current) onSwitchLeg1(expr, path any) (any, error) { return map[string]interface{}{"expr": expr, "path": path}, nil } -func (p *parser) callonSwitchLeg1() (interface{}, error) { +func (p *parser) callonSwitchLeg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSwitchLeg1(stack["expr"], stack["path"]) } -func (c *current) onCase2(expr interface{}) (interface{}, error) { +func (c *current) onCase2(expr any) (any, error) { return expr, nil } -func (p *parser) callonCase2() (interface{}, error) { +func (p *parser) callonCase2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onCase2(stack["expr"]) } -func (c *current) onCase8() (interface{}, error) { +func (c *current) onCase8() (any, error) { return nil, nil } -func (p *parser) callonCase8() (interface{}, error) { +func (p *parser) callonCase8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onCase8() } -func (c *current) onFromLeg1(source, opt interface{}) (interface{}, error) { +func (c *current) onFromLeg1(source, opt any) (any, error) { var m = map[string]interface{}{"kind": "Trunk", "source": source, "seq": nil} if opt != nil { m["seq"] = opt.([]interface{})[3] @@ -12970,174 +13363,174 @@ func (c *current) onFromLeg1(source, opt interface{}) (interface{}, error) { } -func (p *parser) callonFromLeg1() (interface{}, error) { +func (p *parser) callonFromLeg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFromLeg1(stack["source"], stack["opt"]) } -func (c *current) onComparator1() (interface{}, error) { +func (c *current) onComparator1() (any, error) { return string(c.text), nil } -func (p *parser) callonComparator1() (interface{}, error) { +func (p *parser) callonComparator1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onComparator1() } -func (c *current) onSearchBoolean1(first, rest interface{}) (interface{}, error) { +func (c *current) onSearchBoolean1(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonSearchBoolean1() (interface{}, error) { +func (p *parser) callonSearchBoolean1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchBoolean1(stack["first"], stack["rest"]) } -func (c *current) onSearchOrTerm1(t interface{}) (interface{}, error) { +func (c *current) onSearchOrTerm1(t any) (any, error) { return []interface{}{"or", t}, nil } -func (p *parser) callonSearchOrTerm1() (interface{}, error) { +func (p *parser) callonSearchOrTerm1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchOrTerm1(stack["t"]) } -func (c *current) onSearchAnd7(expr interface{}) (interface{}, error) { +func (c *current) onSearchAnd7(expr any) (any, error) { return []interface{}{"and", expr}, nil } -func (p *parser) callonSearchAnd7() (interface{}, error) { +func (p *parser) callonSearchAnd7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchAnd7(stack["expr"]) } -func (c *current) onSearchAnd1(first, rest interface{}) (interface{}, error) { +func (c *current) onSearchAnd1(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonSearchAnd1() (interface{}, error) { +func (p *parser) callonSearchAnd1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchAnd1(stack["first"], stack["rest"]) } -func (c *current) onSearchFactor2(e interface{}) (interface{}, error) { +func (c *current) onSearchFactor2(e any) (any, error) { return map[string]interface{}{"kind": "UnaryExpr", "op": "!", "operand": e}, nil } -func (p *parser) callonSearchFactor2() (interface{}, error) { +func (p *parser) callonSearchFactor2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchFactor2(stack["e"]) } -func (c *current) onSearchFactor13(expr interface{}) (interface{}, error) { +func (c *current) onSearchFactor13(expr any) (any, error) { return expr, nil } -func (p *parser) callonSearchFactor13() (interface{}, error) { +func (p *parser) callonSearchFactor13() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchFactor13(stack["expr"]) } -func (c *current) onSearchExpr4(v interface{}) (interface{}, error) { +func (c *current) onSearchExpr4(v any) (any, error) { return map[string]interface{}{"kind": "Term", "text": string(c.text), "value": v}, nil } -func (p *parser) callonSearchExpr4() (interface{}, error) { +func (p *parser) callonSearchExpr4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchExpr4(stack["v"]) } -func (c *current) onSearchExpr15() (interface{}, error) { +func (c *current) onSearchExpr15() (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "bool", "text": "true"}, nil } -func (p *parser) callonSearchExpr15() (interface{}, error) { +func (p *parser) callonSearchExpr15() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchExpr15() } -func (c *current) onSearchPredicate2(lhs, op, rhs interface{}) (interface{}, error) { +func (c *current) onSearchPredicate2(lhs, op, rhs any) (any, error) { return map[string]interface{}{"kind": "BinaryExpr", "op": op, "lhs": lhs, "rhs": rhs}, nil } -func (p *parser) callonSearchPredicate2() (interface{}, error) { +func (p *parser) callonSearchPredicate2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchPredicate2(stack["lhs"], stack["op"], stack["rhs"]) } -func (c *current) onSearchPredicate12(first, rest interface{}) (interface{}, error) { +func (c *current) onSearchPredicate12(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonSearchPredicate12() (interface{}, error) { +func (p *parser) callonSearchPredicate12() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchPredicate12(stack["first"], stack["rest"]) } -func (c *current) onSearchValue3(v interface{}) (interface{}, error) { +func (c *current) onSearchValue3(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "string", "text": v}, nil } -func (p *parser) callonSearchValue3() (interface{}, error) { +func (p *parser) callonSearchValue3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSearchValue3(stack["v"]) } -func (c *current) onGlob1(pattern interface{}) (interface{}, error) { +func (c *current) onGlob1(pattern any) (any, error) { return map[string]interface{}{"kind": "Glob", "pattern": pattern}, nil } -func (p *parser) callonGlob1() (interface{}, error) { +func (p *parser) callonGlob1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGlob1(stack["pattern"]) } -func (c *current) onRegexp1(pattern interface{}) (interface{}, error) { +func (c *current) onRegexp1(pattern any) (any, error) { return map[string]interface{}{"kind": "Regexp", "pattern": pattern}, nil } -func (p *parser) callonRegexp1() (interface{}, error) { +func (p *parser) callonRegexp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRegexp1(stack["pattern"]) } -func (c *current) onAggregation2(keys, limit interface{}) (interface{}, error) { +func (c *current) onAggregation2(keys, limit any) (any, error) { return map[string]interface{}{"kind": "Summarize", "keys": keys, "aggs": nil, "limit": limit}, nil } -func (p *parser) callonAggregation2() (interface{}, error) { +func (p *parser) callonAggregation2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAggregation2(stack["keys"], stack["limit"]) } -func (c *current) onAggregation10(aggs, keys, limit interface{}) (interface{}, error) { +func (c *current) onAggregation10(aggs, keys, limit any) (any, error) { var p = map[string]interface{}{"kind": "Summarize", "keys": nil, "aggs": aggs, "limit": limit} if keys != nil { p["keys"] = keys.([]interface{})[1] @@ -13146,96 +13539,96 @@ func (c *current) onAggregation10(aggs, keys, limit interface{}) (interface{}, e } -func (p *parser) callonAggregation10() (interface{}, error) { +func (p *parser) callonAggregation10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAggregation10(stack["aggs"], stack["keys"], stack["limit"]) } -func (c *current) onGroupByKeys1(columns interface{}) (interface{}, error) { +func (c *current) onGroupByKeys1(columns any) (any, error) { return columns, nil } -func (p *parser) callonGroupByKeys1() (interface{}, error) { +func (p *parser) callonGroupByKeys1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGroupByKeys1(stack["columns"]) } -func (c *current) onLimitArg2(limit interface{}) (interface{}, error) { +func (c *current) onLimitArg2(limit any) (any, error) { return limit, nil } -func (p *parser) callonLimitArg2() (interface{}, error) { +func (p *parser) callonLimitArg2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLimitArg2(stack["limit"]) } -func (c *current) onLimitArg11() (interface{}, error) { +func (c *current) onLimitArg11() (any, error) { return 0, nil } -func (p *parser) callonLimitArg11() (interface{}, error) { +func (p *parser) callonLimitArg11() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLimitArg11() } -func (c *current) onFlexAssignment3(expr interface{}) (interface{}, error) { +func (c *current) onFlexAssignment3(expr any) (any, error) { return map[string]interface{}{"kind": "Assignment", "lhs": nil, "rhs": expr}, nil } -func (p *parser) callonFlexAssignment3() (interface{}, error) { +func (p *parser) callonFlexAssignment3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFlexAssignment3(stack["expr"]) } -func (c *current) onFlexAssignments7(expr interface{}) (interface{}, error) { +func (c *current) onFlexAssignments7(expr any) (any, error) { return expr, nil } -func (p *parser) callonFlexAssignments7() (interface{}, error) { +func (p *parser) callonFlexAssignments7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFlexAssignments7(stack["expr"]) } -func (c *current) onFlexAssignments1(first, rest interface{}) (interface{}, error) { +func (c *current) onFlexAssignments1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonFlexAssignments1() (interface{}, error) { +func (p *parser) callonFlexAssignments1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFlexAssignments1(stack["first"], stack["rest"]) } -func (c *current) onAggAssignment2(lval, agg interface{}) (interface{}, error) { +func (c *current) onAggAssignment2(lval, agg any) (any, error) { return map[string]interface{}{"kind": "Assignment", "lhs": lval, "rhs": agg}, nil } -func (p *parser) callonAggAssignment2() (interface{}, error) { +func (p *parser) callonAggAssignment2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAggAssignment2(stack["lval"], stack["agg"]) } -func (c *current) onAggAssignment11(agg interface{}) (interface{}, error) { +func (c *current) onAggAssignment11(agg any) (any, error) { return map[string]interface{}{"kind": "Assignment", "lhs": nil, "rhs": agg}, nil } -func (p *parser) callonAggAssignment11() (interface{}, error) { +func (p *parser) callonAggAssignment11() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAggAssignment11(stack["agg"]) } -func (c *current) onAgg1(op, expr, where interface{}) (interface{}, error) { +func (c *current) onAgg1(op, expr, where any) (any, error) { var r = map[string]interface{}{"kind": "Agg", "name": op, "expr": nil, "where": where} if expr != nil { r["expr"] = expr @@ -13244,23 +13637,23 @@ func (c *current) onAgg1(op, expr, where interface{}) (interface{}, error) { } -func (p *parser) callonAgg1() (interface{}, error) { +func (p *parser) callonAgg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAgg1(stack["op"], stack["expr"], stack["where"]) } -func (c *current) onWhereClause1(expr interface{}) (interface{}, error) { +func (c *current) onWhereClause1(expr any) (any, error) { return expr, nil } -func (p *parser) callonWhereClause1() (interface{}, error) { +func (p *parser) callonWhereClause1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onWhereClause1(stack["expr"]) } -func (c *current) onAggAssignments1(first, rest interface{}) (interface{}, error) { +func (c *current) onAggAssignments1(first, rest any) (any, error) { var result = []interface{}{first} for _, r := range rest.([]interface{}) { result = append(result, r.([]interface{})[3]) @@ -13269,23 +13662,23 @@ func (c *current) onAggAssignments1(first, rest interface{}) (interface{}, error } -func (p *parser) callonAggAssignments1() (interface{}, error) { +func (p *parser) callonAggAssignments1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAggAssignments1(stack["first"], stack["rest"]) } -func (c *current) onAssertOp6(e interface{}) (interface{}, error) { +func (c *current) onAssertOp6(e any) (any, error) { return []interface{}{e, string(c.text)}, nil } -func (p *parser) callonAssertOp6() (interface{}, error) { +func (p *parser) callonAssertOp6() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAssertOp6(stack["e"]) } -func (c *current) onAssertOp1(expr interface{}) (interface{}, error) { +func (c *current) onAssertOp1(expr any) (any, error) { // 'assert EXPR' is equivalent to // 'yield EXPR ? this : error({message: "assertion failed", "expr": EXPR_text, "on": this}' // where EXPR_text is the literal text of EXPR. @@ -13321,23 +13714,23 @@ func (c *current) onAssertOp1(expr interface{}) (interface{}, error) { } -func (p *parser) callonAssertOp1() (interface{}, error) { +func (p *parser) callonAssertOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAssertOp1(stack["expr"]) } -func (c *current) onSortOp10(l interface{}) (interface{}, error) { +func (c *current) onSortOp10(l any) (any, error) { return l, nil } -func (p *parser) callonSortOp10() (interface{}, error) { +func (p *parser) callonSortOp10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortOp10(stack["l"]) } -func (c *current) onSortOp1(args, list interface{}) (interface{}, error) { +func (c *current) onSortOp1(args, list any) (any, error) { var argm = args.(map[string]interface{}) var op = map[string]interface{}{"kind": "Sort", "args": list, "order": "asc", "nullsfirst": false} if _, ok := argm["r"]; ok { @@ -13352,83 +13745,83 @@ func (c *current) onSortOp1(args, list interface{}) (interface{}, error) { } -func (p *parser) callonSortOp1() (interface{}, error) { +func (p *parser) callonSortOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortOp1(stack["args"], stack["list"]) } -func (c *current) onSortArgs4(a interface{}) (interface{}, error) { +func (c *current) onSortArgs4(a any) (any, error) { return a, nil } -func (p *parser) callonSortArgs4() (interface{}, error) { +func (p *parser) callonSortArgs4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortArgs4(stack["a"]) } -func (c *current) onSortArgs1(args interface{}) (interface{}, error) { +func (c *current) onSortArgs1(args any) (any, error) { return makeArgMap(args) } -func (p *parser) callonSortArgs1() (interface{}, error) { +func (p *parser) callonSortArgs1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortArgs1(stack["args"]) } -func (c *current) onSortArg2() (interface{}, error) { +func (c *current) onSortArg2() (any, error) { return map[string]interface{}{"name": "r", "value": nil}, nil } -func (p *parser) callonSortArg2() (interface{}, error) { +func (p *parser) callonSortArg2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortArg2() } -func (c *current) onSortArg9() (interface{}, error) { +func (c *current) onSortArg9() (any, error) { return string(c.text), nil } -func (p *parser) callonSortArg9() (interface{}, error) { +func (p *parser) callonSortArg9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortArg9() } -func (c *current) onSortArg4(where interface{}) (interface{}, error) { +func (c *current) onSortArg4(where any) (any, error) { return map[string]interface{}{"name": "nulls", "value": where}, nil } -func (p *parser) callonSortArg4() (interface{}, error) { +func (p *parser) callonSortArg4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortArg4(stack["where"]) } -func (c *current) onTopOp8(n interface{}) (interface{}, error) { +func (c *current) onTopOp8(n any) (any, error) { return n, nil } -func (p *parser) callonTopOp8() (interface{}, error) { +func (p *parser) callonTopOp8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTopOp8(stack["n"]) } -func (c *current) onTopOp20(f interface{}) (interface{}, error) { +func (c *current) onTopOp20(f any) (any, error) { return f, nil } -func (p *parser) callonTopOp20() (interface{}, error) { +func (p *parser) callonTopOp20() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTopOp20(stack["f"]) } -func (c *current) onTopOp1(limit, flush, fields interface{}) (interface{}, error) { +func (c *current) onTopOp1(limit, flush, fields any) (any, error) { var op = map[string]interface{}{"kind": "Top", "limit": 0, "args": nil, "flush": false} if limit != nil { op["limit"] = limit @@ -13443,162 +13836,162 @@ func (c *current) onTopOp1(limit, flush, fields interface{}) (interface{}, error } -func (p *parser) callonTopOp1() (interface{}, error) { +func (p *parser) callonTopOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTopOp1(stack["limit"], stack["flush"], stack["fields"]) } -func (c *current) onCutOp1(args interface{}) (interface{}, error) { +func (c *current) onCutOp1(args any) (any, error) { return map[string]interface{}{"kind": "Cut", "args": args}, nil } -func (p *parser) callonCutOp1() (interface{}, error) { +func (p *parser) callonCutOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onCutOp1(stack["args"]) } -func (c *current) onDropOp1(args interface{}) (interface{}, error) { +func (c *current) onDropOp1(args any) (any, error) { return map[string]interface{}{"kind": "Drop", "args": args}, nil } -func (p *parser) callonDropOp1() (interface{}, error) { +func (p *parser) callonDropOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDropOp1(stack["args"]) } -func (c *current) onHeadOp2(count interface{}) (interface{}, error) { +func (c *current) onHeadOp2(count any) (any, error) { return map[string]interface{}{"kind": "Head", "count": count}, nil } -func (p *parser) callonHeadOp2() (interface{}, error) { +func (p *parser) callonHeadOp2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onHeadOp2(stack["count"]) } -func (c *current) onHeadOp10() (interface{}, error) { +func (c *current) onHeadOp10() (any, error) { return map[string]interface{}{"kind": "Head", "count": map[string]interface{}{"kind": "Primitive", "type": "int64", "text": "1"}}, nil } -func (p *parser) callonHeadOp10() (interface{}, error) { +func (p *parser) callonHeadOp10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onHeadOp10() } -func (c *current) onTailOp2(count interface{}) (interface{}, error) { +func (c *current) onTailOp2(count any) (any, error) { return map[string]interface{}{"kind": "Tail", "count": count}, nil } -func (p *parser) callonTailOp2() (interface{}, error) { +func (p *parser) callonTailOp2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTailOp2(stack["count"]) } -func (c *current) onTailOp10() (interface{}, error) { +func (c *current) onTailOp10() (any, error) { return map[string]interface{}{"kind": "Tail", "count": map[string]interface{}{"kind": "Primitive", "type": "int64", "text": "1"}}, nil } -func (p *parser) callonTailOp10() (interface{}, error) { +func (p *parser) callonTailOp10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTailOp10() } -func (c *current) onWhereOp1(expr interface{}) (interface{}, error) { +func (c *current) onWhereOp1(expr any) (any, error) { return map[string]interface{}{"kind": "Where", "expr": expr}, nil } -func (p *parser) callonWhereOp1() (interface{}, error) { +func (p *parser) callonWhereOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onWhereOp1(stack["expr"]) } -func (c *current) onUniqOp2() (interface{}, error) { +func (c *current) onUniqOp2() (any, error) { return map[string]interface{}{"kind": "Uniq", "cflag": true}, nil } -func (p *parser) callonUniqOp2() (interface{}, error) { +func (p *parser) callonUniqOp2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onUniqOp2() } -func (c *current) onUniqOp7() (interface{}, error) { +func (c *current) onUniqOp7() (any, error) { return map[string]interface{}{"kind": "Uniq", "cflag": false}, nil } -func (p *parser) callonUniqOp7() (interface{}, error) { +func (p *parser) callonUniqOp7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onUniqOp7() } -func (c *current) onPutOp1(args interface{}) (interface{}, error) { +func (c *current) onPutOp1(args any) (any, error) { return map[string]interface{}{"kind": "Put", "args": args}, nil } -func (p *parser) callonPutOp1() (interface{}, error) { +func (p *parser) callonPutOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPutOp1(stack["args"]) } -func (c *current) onRenameOp9(cl interface{}) (interface{}, error) { +func (c *current) onRenameOp9(cl any) (any, error) { return cl, nil } -func (p *parser) callonRenameOp9() (interface{}, error) { +func (p *parser) callonRenameOp9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRenameOp9(stack["cl"]) } -func (c *current) onRenameOp1(first, rest interface{}) (interface{}, error) { +func (c *current) onRenameOp1(first, rest any) (any, error) { return map[string]interface{}{"kind": "Rename", "args": append([]interface{}{first}, (rest.([]interface{}))...)}, nil } -func (p *parser) callonRenameOp1() (interface{}, error) { +func (p *parser) callonRenameOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRenameOp1(stack["first"], stack["rest"]) } -func (c *current) onFuseOp1() (interface{}, error) { +func (c *current) onFuseOp1() (any, error) { return map[string]interface{}{"kind": "Fuse"}, nil } -func (p *parser) callonFuseOp1() (interface{}, error) { +func (p *parser) callonFuseOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFuseOp1() } -func (c *current) onShapeOp1() (interface{}, error) { +func (c *current) onShapeOp1() (any, error) { return map[string]interface{}{"kind": "Shape"}, nil } -func (p *parser) callonShapeOp1() (interface{}, error) { +func (p *parser) callonShapeOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onShapeOp1() } -func (c *current) onJoinOp1(style, rightInput, key, optKey, optArgs interface{}) (interface{}, error) { +func (c *current) onJoinOp1(style, rightInput, key, optKey, optArgs any) (any, error) { var m = map[string]interface{}{"kind": "Join", "style": style, "right_input": rightInput, "left_key": key, "right_key": key, "args": nil} if optKey != nil { m["right_key"] = optKey.([]interface{})[3] @@ -13610,238 +14003,238 @@ func (c *current) onJoinOp1(style, rightInput, key, optKey, optArgs interface{}) } -func (p *parser) callonJoinOp1() (interface{}, error) { +func (p *parser) callonJoinOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinOp1(stack["style"], stack["rightInput"], stack["key"], stack["optKey"], stack["optArgs"]) } -func (c *current) onJoinStyle2() (interface{}, error) { +func (c *current) onJoinStyle2() (any, error) { return "anti", nil } -func (p *parser) callonJoinStyle2() (interface{}, error) { +func (p *parser) callonJoinStyle2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinStyle2() } -func (c *current) onJoinStyle6() (interface{}, error) { +func (c *current) onJoinStyle6() (any, error) { return "inner", nil } -func (p *parser) callonJoinStyle6() (interface{}, error) { +func (p *parser) callonJoinStyle6() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinStyle6() } -func (c *current) onJoinStyle10() (interface{}, error) { +func (c *current) onJoinStyle10() (any, error) { return "left", nil } -func (p *parser) callonJoinStyle10() (interface{}, error) { +func (p *parser) callonJoinStyle10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinStyle10() } -func (c *current) onJoinStyle14() (interface{}, error) { +func (c *current) onJoinStyle14() (any, error) { return "right", nil } -func (p *parser) callonJoinStyle14() (interface{}, error) { +func (p *parser) callonJoinStyle14() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinStyle14() } -func (c *current) onJoinStyle18() (interface{}, error) { +func (c *current) onJoinStyle18() (any, error) { return "inner", nil } -func (p *parser) callonJoinStyle18() (interface{}, error) { +func (p *parser) callonJoinStyle18() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinStyle18() } -func (c *current) onJoinRightInput2(s interface{}) (interface{}, error) { +func (c *current) onJoinRightInput2(s any) (any, error) { return s, nil } -func (p *parser) callonJoinRightInput2() (interface{}, error) { +func (p *parser) callonJoinRightInput2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinRightInput2(stack["s"]) } -func (c *current) onJoinRightInput12() (interface{}, error) { +func (c *current) onJoinRightInput12() (any, error) { return nil, nil } -func (p *parser) callonJoinRightInput12() (interface{}, error) { +func (p *parser) callonJoinRightInput12() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinRightInput12() } -func (c *current) onJoinKey3(expr interface{}) (interface{}, error) { +func (c *current) onJoinKey3(expr any) (any, error) { return expr, nil } -func (p *parser) callonJoinKey3() (interface{}, error) { +func (p *parser) callonJoinKey3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJoinKey3(stack["expr"]) } -func (c *current) onSampleOp1(e interface{}) (interface{}, error) { +func (c *current) onSampleOp1(e any) (any, error) { return map[string]interface{}{"kind": "Sample", "expr": e}, nil } -func (p *parser) callonSampleOp1() (interface{}, error) { +func (p *parser) callonSampleOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSampleOp1(stack["e"]) } -func (c *current) onOpAssignment1(a interface{}) (interface{}, error) { +func (c *current) onOpAssignment1(a any) (any, error) { return map[string]interface{}{"kind": "OpAssignment", "assignments": a}, nil } -func (p *parser) callonOpAssignment1() (interface{}, error) { +func (p *parser) callonOpAssignment1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOpAssignment1(stack["a"]) } -func (c *current) onSampleExpr2(lval interface{}) (interface{}, error) { +func (c *current) onSampleExpr2(lval any) (any, error) { return lval, nil } -func (p *parser) callonSampleExpr2() (interface{}, error) { +func (p *parser) callonSampleExpr2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSampleExpr2(stack["lval"]) } -func (c *current) onSampleExpr7() (interface{}, error) { +func (c *current) onSampleExpr7() (any, error) { return map[string]interface{}{"kind": "ID", "name": "this"}, nil } -func (p *parser) callonSampleExpr7() (interface{}, error) { +func (p *parser) callonSampleExpr7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSampleExpr7() } -func (c *current) onLoadOp1(pool, branch, author, message, meta interface{}) (interface{}, error) { +func (c *current) onLoadOp1(pool, branch, author, message, meta any) (any, error) { return map[string]interface{}{"kind": "Load", "pool": pool, "branch": branch, "author": author, "message": message, "meta": meta}, nil } -func (p *parser) callonLoadOp1() (interface{}, error) { +func (p *parser) callonLoadOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLoadOp1(stack["pool"], stack["branch"], stack["author"], stack["message"], stack["meta"]) } -func (c *current) onAuthorArg1(val interface{}) (interface{}, error) { +func (c *current) onAuthorArg1(val any) (any, error) { return val, nil } -func (p *parser) callonAuthorArg1() (interface{}, error) { +func (p *parser) callonAuthorArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAuthorArg1(stack["val"]) } -func (c *current) onMessageArg1(val interface{}) (interface{}, error) { +func (c *current) onMessageArg1(val any) (any, error) { return val, nil } -func (p *parser) callonMessageArg1() (interface{}, error) { +func (p *parser) callonMessageArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMessageArg1(stack["val"]) } -func (c *current) onMetaArg1(val interface{}) (interface{}, error) { +func (c *current) onMetaArg1(val any) (any, error) { return val, nil } -func (p *parser) callonMetaArg1() (interface{}, error) { +func (p *parser) callonMetaArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMetaArg1(stack["val"]) } -func (c *current) onPoolBranch1(branch interface{}) (interface{}, error) { +func (c *current) onPoolBranch1(branch any) (any, error) { return branch, nil } -func (p *parser) callonPoolBranch1() (interface{}, error) { +func (p *parser) callonPoolBranch1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolBranch1(stack["branch"]) } -func (c *current) onFromOp1(source interface{}) (interface{}, error) { +func (c *current) onFromOp1(source any) (any, error) { return map[string]interface{}{"kind": "From", "trunks": []interface{}{map[string]interface{}{"kind": "Trunk", "source": source}}}, nil } -func (p *parser) callonFromOp1() (interface{}, error) { +func (p *parser) callonFromOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFromOp1(stack["source"]) } -func (c *current) onFile1(path, format, sort_key interface{}) (interface{}, error) { +func (c *current) onFile1(path, format, sort_key any) (any, error) { return map[string]interface{}{"kind": "File", "path": path, "format": format, "sort_key": sort_key}, nil } -func (p *parser) callonFile1() (interface{}, error) { +func (p *parser) callonFile1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFile1(stack["path"], stack["format"], stack["sort_key"]) } -func (c *current) onFrom1(body interface{}) (interface{}, error) { +func (c *current) onFrom1(body any) (any, error) { return body, nil } -func (p *parser) callonFrom1() (interface{}, error) { +func (p *parser) callonFrom1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFrom1(stack["body"]) } -func (c *current) onPool1(body interface{}) (interface{}, error) { +func (c *current) onPool1(body any) (any, error) { return body, nil } -func (p *parser) callonPool1() (interface{}, error) { +func (p *parser) callonPool1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPool1(stack["body"]) } -func (c *current) onPoolBody1(spec, at interface{}) (interface{}, error) { +func (c *current) onPoolBody1(spec, at any) (any, error) { return map[string]interface{}{"kind": "Pool", "spec": spec, "at": at}, nil } -func (p *parser) callonPoolBody1() (interface{}, error) { +func (p *parser) callonPoolBody1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolBody1(stack["spec"], stack["at"]) } -func (c *current) onGet1(url, format, sort_key, method, headers, body interface{}) (interface{}, error) { +func (c *current) onGet1(url, format, sort_key, method, headers, body any) (any, error) { return map[string]interface{}{ "kind": "HTTP", @@ -13860,321 +14253,321 @@ func (c *current) onGet1(url, format, sort_key, method, headers, body interface{ } -func (p *parser) callonGet1() (interface{}, error) { +func (p *parser) callonGet1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGet1(stack["url"], stack["format"], stack["sort_key"], stack["method"], stack["headers"], stack["body"]) } -func (c *current) onMethodArg1(v interface{}) (interface{}, error) { +func (c *current) onMethodArg1(v any) (any, error) { return v, nil } -func (p *parser) callonMethodArg1() (interface{}, error) { +func (p *parser) callonMethodArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMethodArg1(stack["v"]) } -func (c *current) onHeadersArg1(v interface{}) (interface{}, error) { +func (c *current) onHeadersArg1(v any) (any, error) { return v, nil } -func (p *parser) callonHeadersArg1() (interface{}, error) { +func (p *parser) callonHeadersArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onHeadersArg1(stack["v"]) } -func (c *current) onBodyArg1(v interface{}) (interface{}, error) { +func (c *current) onBodyArg1(v any) (any, error) { return v, nil } -func (p *parser) callonBodyArg1() (interface{}, error) { +func (p *parser) callonBodyArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onBodyArg1(stack["v"]) } -func (c *current) onPath2(v interface{}) (interface{}, error) { +func (c *current) onPath2(v any) (any, error) { return map[string]interface{}{"kind": "QuotedString", "text": v}, nil } -func (p *parser) callonPath2() (interface{}, error) { +func (p *parser) callonPath2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPath2(stack["v"]) } -func (c *current) onPath5() (interface{}, error) { +func (c *current) onPath5() (any, error) { return map[string]interface{}{"kind": "String", "text": string(c.text)}, nil } -func (p *parser) callonPath5() (interface{}, error) { +func (p *parser) callonPath5() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPath5() } -func (c *current) onPoolAt1(id interface{}) (interface{}, error) { +func (c *current) onPoolAt1(id any) (any, error) { return id, nil } -func (p *parser) callonPoolAt1() (interface{}, error) { +func (p *parser) callonPoolAt1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolAt1(stack["id"]) } -func (c *current) onKSUID1() (interface{}, error) { +func (c *current) onKSUID1() (any, error) { return string(c.text), nil } -func (p *parser) callonKSUID1() (interface{}, error) { +func (p *parser) callonKSUID1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onKSUID1() } -func (c *current) onPoolSpec2(pool, commit, meta, tap interface{}) (interface{}, error) { +func (c *current) onPoolSpec2(pool, commit, meta, tap any) (any, error) { return map[string]interface{}{"pool": pool, "commit": commit, "meta": meta, "tap": tap}, nil } -func (p *parser) callonPoolSpec2() (interface{}, error) { +func (p *parser) callonPoolSpec2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolSpec2(stack["pool"], stack["commit"], stack["meta"], stack["tap"]) } -func (c *current) onPoolSpec14(meta interface{}) (interface{}, error) { +func (c *current) onPoolSpec14(meta any) (any, error) { return map[string]interface{}{"pool": nil, "commit": nil, "meta": meta}, nil } -func (p *parser) callonPoolSpec14() (interface{}, error) { +func (p *parser) callonPoolSpec14() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolSpec14(stack["meta"]) } -func (c *current) onPoolCommit1(commit interface{}) (interface{}, error) { +func (c *current) onPoolCommit1(commit any) (any, error) { return commit, nil } -func (p *parser) callonPoolCommit1() (interface{}, error) { +func (p *parser) callonPoolCommit1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolCommit1(stack["commit"]) } -func (c *current) onPoolMeta1(meta interface{}) (interface{}, error) { +func (c *current) onPoolMeta1(meta any) (any, error) { return meta, nil } -func (p *parser) callonPoolMeta1() (interface{}, error) { +func (p *parser) callonPoolMeta1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolMeta1(stack["meta"]) } -func (c *current) onPoolName4() (interface{}, error) { +func (c *current) onPoolName4() (any, error) { return map[string]interface{}{"kind": "Glob", "pattern": "*"}, nil } -func (p *parser) callonPoolName4() (interface{}, error) { +func (p *parser) callonPoolName4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolName4() } -func (c *current) onPoolName9(name interface{}) (interface{}, error) { +func (c *current) onPoolName9(name any) (any, error) { return map[string]interface{}{"kind": "QuotedString", "text": name}, nil } -func (p *parser) callonPoolName9() (interface{}, error) { +func (p *parser) callonPoolName9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolName9(stack["name"]) } -func (c *current) onPoolName12(name interface{}) (interface{}, error) { +func (c *current) onPoolName12(name any) (any, error) { return map[string]interface{}{"kind": "String", "text": name}, nil } -func (p *parser) callonPoolName12() (interface{}, error) { +func (p *parser) callonPoolName12() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolName12(stack["name"]) } -func (c *current) onPoolIdentifier1() (interface{}, error) { +func (c *current) onPoolIdentifier1() (any, error) { return string(c.text), nil } -func (p *parser) callonPoolIdentifier1() (interface{}, error) { +func (p *parser) callonPoolIdentifier1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPoolIdentifier1() } -func (c *current) onSortKeyArg1(keys, order interface{}) (interface{}, error) { +func (c *current) onSortKeyArg1(keys, order any) (any, error) { return map[string]interface{}{"kind": "SortKey", "keys": keys, "order": order}, nil } -func (p *parser) callonSortKeyArg1() (interface{}, error) { +func (p *parser) callonSortKeyArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSortKeyArg1(stack["keys"], stack["order"]) } -func (c *current) onTapArg2() (interface{}, error) { +func (c *current) onTapArg2() (any, error) { return true, nil } -func (p *parser) callonTapArg2() (interface{}, error) { +func (p *parser) callonTapArg2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTapArg2() } -func (c *current) onTapArg6() (interface{}, error) { +func (c *current) onTapArg6() (any, error) { return false, nil } -func (p *parser) callonTapArg6() (interface{}, error) { +func (p *parser) callonTapArg6() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTapArg6() } -func (c *current) onFormatArg1(val interface{}) (interface{}, error) { +func (c *current) onFormatArg1(val any) (any, error) { return val, nil } -func (p *parser) callonFormatArg1() (interface{}, error) { +func (p *parser) callonFormatArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFormatArg1(stack["val"]) } -func (c *current) onOrderSuffix2() (interface{}, error) { +func (c *current) onOrderSuffix2() (any, error) { return "asc", nil } -func (p *parser) callonOrderSuffix2() (interface{}, error) { +func (p *parser) callonOrderSuffix2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOrderSuffix2() } -func (c *current) onOrderSuffix4() (interface{}, error) { +func (c *current) onOrderSuffix4() (any, error) { return "desc", nil } -func (p *parser) callonOrderSuffix4() (interface{}, error) { +func (p *parser) callonOrderSuffix4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOrderSuffix4() } -func (c *current) onOrderSuffix6() (interface{}, error) { +func (c *current) onOrderSuffix6() (any, error) { return "asc", nil } -func (p *parser) callonOrderSuffix6() (interface{}, error) { +func (p *parser) callonOrderSuffix6() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOrderSuffix6() } -func (c *current) onPassOp1() (interface{}, error) { +func (c *current) onPassOp1() (any, error) { return map[string]interface{}{"kind": "Pass"}, nil } -func (p *parser) callonPassOp1() (interface{}, error) { +func (p *parser) callonPassOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPassOp1() } -func (c *current) onExplodeOp1(args, typ, as interface{}) (interface{}, error) { +func (c *current) onExplodeOp1(args, typ, as any) (any, error) { return map[string]interface{}{"kind": "Explode", "args": args, "as": as, "type": typ}, nil } -func (p *parser) callonExplodeOp1() (interface{}, error) { +func (p *parser) callonExplodeOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onExplodeOp1(stack["args"], stack["typ"], stack["as"]) } -func (c *current) onMergeOp1(expr interface{}) (interface{}, error) { +func (c *current) onMergeOp1(expr any) (any, error) { return map[string]interface{}{"kind": "Merge", "expr": expr}, nil } -func (p *parser) callonMergeOp1() (interface{}, error) { +func (p *parser) callonMergeOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMergeOp1(stack["expr"]) } -func (c *current) onOverOp1(exprs, locals, body interface{}) (interface{}, error) { +func (c *current) onOverOp1(exprs, locals, body any) (any, error) { return map[string]interface{}{"kind": "Over", "exprs": exprs, "locals": locals, "body": body}, nil } -func (p *parser) callonOverOp1() (interface{}, error) { +func (p *parser) callonOverOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOverOp1(stack["exprs"], stack["locals"], stack["body"]) } -func (c *current) onLateral2(scope interface{}) (interface{}, error) { +func (c *current) onLateral2(scope any) (any, error) { return []interface{}{scope}, nil } -func (p *parser) callonLateral2() (interface{}, error) { +func (p *parser) callonLateral2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLateral2(stack["scope"]) } -func (c *current) onLateral13(seq interface{}) (interface{}, error) { +func (c *current) onLateral13(seq any) (any, error) { return seq, nil } -func (p *parser) callonLateral13() (interface{}, error) { +func (p *parser) callonLateral13() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLateral13(stack["seq"]) } -func (c *current) onLocals10(a interface{}) (interface{}, error) { +func (c *current) onLocals10(a any) (any, error) { return a, nil } -func (p *parser) callonLocals10() (interface{}, error) { +func (p *parser) callonLocals10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLocals10(stack["a"]) } -func (c *current) onLocals1(first, rest interface{}) (interface{}, error) { +func (c *current) onLocals1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonLocals1() (interface{}, error) { +func (p *parser) callonLocals1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLocals1(stack["first"], stack["rest"]) } -func (c *current) onLocalsAssignment1(name, opt interface{}) (interface{}, error) { +func (c *current) onLocalsAssignment1(name, opt any) (any, error) { var m = map[string]interface{}{"name": name, "expr": map[string]interface{}{"kind": "ID", "name": name}} if opt != nil { m["expr"] = opt.([]interface{})[3] @@ -14183,65 +14576,65 @@ func (c *current) onLocalsAssignment1(name, opt interface{}) (interface{}, error } -func (p *parser) callonLocalsAssignment1() (interface{}, error) { +func (p *parser) callonLocalsAssignment1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLocalsAssignment1(stack["name"], stack["opt"]) } -func (c *current) onYieldOp1(exprs interface{}) (interface{}, error) { +func (c *current) onYieldOp1(exprs any) (any, error) { return map[string]interface{}{"kind": "Yield", "exprs": exprs}, nil } -func (p *parser) callonYieldOp1() (interface{}, error) { +func (p *parser) callonYieldOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onYieldOp1(stack["exprs"]) } -func (c *current) onTypeArg1(typ interface{}) (interface{}, error) { +func (c *current) onTypeArg1(typ any) (any, error) { return typ, nil } -func (p *parser) callonTypeArg1() (interface{}, error) { +func (p *parser) callonTypeArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeArg1(stack["typ"]) } -func (c *current) onAsArg1(lhs interface{}) (interface{}, error) { +func (c *current) onAsArg1(lhs any) (any, error) { return lhs, nil } -func (p *parser) callonAsArg1() (interface{}, error) { +func (p *parser) callonAsArg1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAsArg1(stack["lhs"]) } -func (c *current) onLvals7(lval interface{}) (interface{}, error) { +func (c *current) onLvals7(lval any) (any, error) { return lval, nil } -func (p *parser) callonLvals7() (interface{}, error) { +func (p *parser) callonLvals7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLvals7(stack["lval"]) } -func (c *current) onLvals1(first, rest interface{}) (interface{}, error) { +func (c *current) onLvals1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonLvals1() (interface{}, error) { +func (p *parser) callonLvals1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLvals1(stack["first"], stack["rest"]) } -func (c *current) onFieldExprs1(first, rest interface{}) (interface{}, error) { +func (c *current) onFieldExprs1(first, rest any) (any, error) { var result = []interface{}{first} for _, r := range rest.([]interface{}) { @@ -14252,44 +14645,44 @@ func (c *current) onFieldExprs1(first, rest interface{}) (interface{}, error) { } -func (p *parser) callonFieldExprs1() (interface{}, error) { +func (p *parser) callonFieldExprs1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFieldExprs1(stack["first"], stack["rest"]) } -func (c *current) onAssignments7(a interface{}) (interface{}, error) { +func (c *current) onAssignments7(a any) (any, error) { return a, nil } -func (p *parser) callonAssignments7() (interface{}, error) { +func (p *parser) callonAssignments7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAssignments7(stack["a"]) } -func (c *current) onAssignments1(first, rest interface{}) (interface{}, error) { +func (c *current) onAssignments1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonAssignments1() (interface{}, error) { +func (p *parser) callonAssignments1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAssignments1(stack["first"], stack["rest"]) } -func (c *current) onAssignment1(lhs, rhs interface{}) (interface{}, error) { +func (c *current) onAssignment1(lhs, rhs any) (any, error) { return map[string]interface{}{"kind": "Assignment", "lhs": lhs, "rhs": rhs}, nil } -func (p *parser) callonAssignment1() (interface{}, error) { +func (p *parser) callonAssignment1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAssignment1(stack["lhs"], stack["rhs"]) } -func (c *current) onConditionalExpr1(cond, opt interface{}) (interface{}, error) { +func (c *current) onConditionalExpr1(cond, opt any) (any, error) { if opt != nil { var Then = opt.([]interface{})[3] var Else = opt.([]interface{})[7] @@ -14299,65 +14692,65 @@ func (c *current) onConditionalExpr1(cond, opt interface{}) (interface{}, error) } -func (p *parser) callonConditionalExpr1() (interface{}, error) { +func (p *parser) callonConditionalExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onConditionalExpr1(stack["cond"], stack["opt"]) } -func (c *current) onLogicalOrExpr7(op, expr interface{}) (interface{}, error) { +func (c *current) onLogicalOrExpr7(op, expr any) (any, error) { return []interface{}{op, expr}, nil } -func (p *parser) callonLogicalOrExpr7() (interface{}, error) { +func (p *parser) callonLogicalOrExpr7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLogicalOrExpr7(stack["op"], stack["expr"]) } -func (c *current) onLogicalOrExpr1(first, rest interface{}) (interface{}, error) { +func (c *current) onLogicalOrExpr1(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonLogicalOrExpr1() (interface{}, error) { +func (p *parser) callonLogicalOrExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLogicalOrExpr1(stack["first"], stack["rest"]) } -func (c *current) onLogicalAndExpr7(op, expr interface{}) (interface{}, error) { +func (c *current) onLogicalAndExpr7(op, expr any) (any, error) { return []interface{}{op, expr}, nil } -func (p *parser) callonLogicalAndExpr7() (interface{}, error) { +func (p *parser) callonLogicalAndExpr7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLogicalAndExpr7(stack["op"], stack["expr"]) } -func (c *current) onLogicalAndExpr1(first, rest interface{}) (interface{}, error) { +func (c *current) onLogicalAndExpr1(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonLogicalAndExpr1() (interface{}, error) { +func (p *parser) callonLogicalAndExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLogicalAndExpr1(stack["first"], stack["rest"]) } -func (c *current) onComparisonExpr15() (interface{}, error) { +func (c *current) onComparisonExpr15() (any, error) { return string(c.text), nil } -func (p *parser) callonComparisonExpr15() (interface{}, error) { +func (p *parser) callonComparisonExpr15() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onComparisonExpr15() } -func (c *current) onComparisonExpr1(lhs, opAndRHS interface{}) (interface{}, error) { +func (c *current) onComparisonExpr1(lhs, opAndRHS any) (any, error) { if opAndRHS == nil { return lhs, nil } @@ -14367,175 +14760,175 @@ func (c *current) onComparisonExpr1(lhs, opAndRHS interface{}) (interface{}, err } -func (p *parser) callonComparisonExpr1() (interface{}, error) { +func (p *parser) callonComparisonExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onComparisonExpr1(stack["lhs"], stack["opAndRHS"]) } -func (c *current) onAdditiveExpr7(op, expr interface{}) (interface{}, error) { +func (c *current) onAdditiveExpr7(op, expr any) (any, error) { return []interface{}{op, expr}, nil } -func (p *parser) callonAdditiveExpr7() (interface{}, error) { +func (p *parser) callonAdditiveExpr7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAdditiveExpr7(stack["op"], stack["expr"]) } -func (c *current) onAdditiveExpr1(first, rest interface{}) (interface{}, error) { +func (c *current) onAdditiveExpr1(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonAdditiveExpr1() (interface{}, error) { +func (p *parser) callonAdditiveExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAdditiveExpr1(stack["first"], stack["rest"]) } -func (c *current) onAdditiveOperator1() (interface{}, error) { +func (c *current) onAdditiveOperator1() (any, error) { return string(c.text), nil } -func (p *parser) callonAdditiveOperator1() (interface{}, error) { +func (p *parser) callonAdditiveOperator1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAdditiveOperator1() } -func (c *current) onMultiplicativeExpr7(op, expr interface{}) (interface{}, error) { +func (c *current) onMultiplicativeExpr7(op, expr any) (any, error) { return []interface{}{op, expr}, nil } -func (p *parser) callonMultiplicativeExpr7() (interface{}, error) { +func (p *parser) callonMultiplicativeExpr7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMultiplicativeExpr7(stack["op"], stack["expr"]) } -func (c *current) onMultiplicativeExpr1(first, rest interface{}) (interface{}, error) { +func (c *current) onMultiplicativeExpr1(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonMultiplicativeExpr1() (interface{}, error) { +func (p *parser) callonMultiplicativeExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMultiplicativeExpr1(stack["first"], stack["rest"]) } -func (c *current) onMultiplicativeOperator1() (interface{}, error) { +func (c *current) onMultiplicativeOperator1() (any, error) { return string(c.text), nil } -func (p *parser) callonMultiplicativeOperator1() (interface{}, error) { +func (p *parser) callonMultiplicativeOperator1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMultiplicativeOperator1() } -func (c *current) onNotExpr2(e interface{}) (interface{}, error) { +func (c *current) onNotExpr2(e any) (any, error) { return map[string]interface{}{"kind": "UnaryExpr", "op": "!", "operand": e}, nil } -func (p *parser) callonNotExpr2() (interface{}, error) { +func (p *parser) callonNotExpr2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onNotExpr2(stack["e"]) } -func (c *current) onNegationExpr2(e interface{}) (interface{}, error) { +func (c *current) onNegationExpr2(e any) (any, error) { return map[string]interface{}{"kind": "UnaryExpr", "op": "-", "operand": e}, nil } -func (p *parser) callonNegationExpr2() (interface{}, error) { +func (p *parser) callonNegationExpr2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onNegationExpr2(stack["e"]) } -func (c *current) onFuncExpr2(first, rest interface{}) (interface{}, error) { +func (c *current) onFuncExpr2(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonFuncExpr2() (interface{}, error) { +func (p *parser) callonFuncExpr2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFuncExpr2(stack["first"], stack["rest"]) } -func (c *current) onFuncExpr9(first, rest interface{}) (interface{}, error) { +func (c *current) onFuncExpr9(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonFuncExpr9() (interface{}, error) { +func (p *parser) callonFuncExpr9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFuncExpr9(stack["first"], stack["rest"]) } -func (c *current) onCast1(typ, expr interface{}) (interface{}, error) { +func (c *current) onCast1(typ, expr any) (any, error) { return map[string]interface{}{"kind": "Cast", "expr": expr, "type": typ}, nil } -func (p *parser) callonCast1() (interface{}, error) { +func (p *parser) callonCast1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onCast1(stack["typ"], stack["expr"]) } -func (c *current) onFunction3(arg0Text, arg1, where interface{}) (interface{}, error) { +func (c *current) onFunction3(arg0Text, arg1, where any) (any, error) { var arg0 = map[string]interface{}{"kind": "Primitive", "type": "string", "text": arg0Text} return map[string]interface{}{"kind": "Call", "name": "regexp", "args": []interface{}{arg0, arg1}, "where": where}, nil } -func (p *parser) callonFunction3() (interface{}, error) { +func (p *parser) callonFunction3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFunction3(stack["arg0Text"], stack["arg1"], stack["where"]) } -func (c *current) onFunction21(arg0, arg1Text, arg2, where interface{}) (interface{}, error) { +func (c *current) onFunction21(arg0, arg1Text, arg2, where any) (any, error) { var arg1 = map[string]interface{}{"kind": "Primitive", "type": "string", "text": arg1Text} return map[string]interface{}{"kind": "Call", "name": "regexp_replace", "args": []interface{}{arg0, arg1, arg2}, "where": where}, nil } -func (p *parser) callonFunction21() (interface{}, error) { +func (p *parser) callonFunction21() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFunction21(stack["arg0"], stack["arg1Text"], stack["arg2"], stack["where"]) } -func (c *current) onFunction44(fn, args, where interface{}) (interface{}, error) { +func (c *current) onFunction44(fn, args, where any) (any, error) { return map[string]interface{}{"kind": "Call", "name": fn, "args": args, "where": where}, nil } -func (p *parser) callonFunction44() (interface{}, error) { +func (p *parser) callonFunction44() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFunction44(stack["fn"], stack["args"], stack["where"]) } -func (c *current) onFunctionArgs2(o interface{}) (interface{}, error) { +func (c *current) onFunctionArgs2(o any) (any, error) { return []interface{}{o}, nil } -func (p *parser) callonFunctionArgs2() (interface{}, error) { +func (p *parser) callonFunctionArgs2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFunctionArgs2(stack["o"]) } -func (c *current) onGrep1(pattern, opt interface{}) (interface{}, error) { +func (c *current) onGrep1(pattern, opt any) (any, error) { var m = map[string]interface{}{"kind": "Grep", "pattern": pattern, "expr": map[string]interface{}{"kind": "ID", "name": "this"}} if opt != nil { m["expr"] = opt.([]interface{})[2] @@ -14544,312 +14937,312 @@ func (c *current) onGrep1(pattern, opt interface{}) (interface{}, error) { } -func (p *parser) callonGrep1() (interface{}, error) { +func (p *parser) callonGrep1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGrep1(stack["pattern"], stack["opt"]) } -func (c *current) onOptionalExprs3() (interface{}, error) { +func (c *current) onOptionalExprs3() (any, error) { return []interface{}{}, nil } -func (p *parser) callonOptionalExprs3() (interface{}, error) { +func (p *parser) callonOptionalExprs3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOptionalExprs3() } -func (c *current) onExprs7(e interface{}) (interface{}, error) { +func (c *current) onExprs7(e any) (any, error) { return e, nil } -func (p *parser) callonExprs7() (interface{}, error) { +func (p *parser) callonExprs7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onExprs7(stack["e"]) } -func (c *current) onExprs1(first, rest interface{}) (interface{}, error) { +func (c *current) onExprs1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonExprs1() (interface{}, error) { +func (p *parser) callonExprs1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onExprs1(stack["first"], stack["rest"]) } -func (c *current) onDerefExpr1(first, rest interface{}) (interface{}, error) { +func (c *current) onDerefExpr1(first, rest any) (any, error) { return makeBinaryExprChain(first, rest), nil } -func (p *parser) callonDerefExpr1() (interface{}, error) { +func (p *parser) callonDerefExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDerefExpr1(stack["first"], stack["rest"]) } -func (c *current) onDeref2(from, to interface{}) (interface{}, error) { +func (c *current) onDeref2(from, to any) (any, error) { return []interface{}{"[", map[string]interface{}{"kind": "BinaryExpr", "op": ":", "lhs": from, "rhs": to}}, nil } -func (p *parser) callonDeref2() (interface{}, error) { +func (p *parser) callonDeref2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDeref2(stack["from"], stack["to"]) } -func (c *current) onDeref14(to interface{}) (interface{}, error) { +func (c *current) onDeref14(to any) (any, error) { return []interface{}{"[", map[string]interface{}{"kind": "BinaryExpr", "op": ":", "lhs": nil, "rhs": to}}, nil } -func (p *parser) callonDeref14() (interface{}, error) { +func (p *parser) callonDeref14() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDeref14(stack["to"]) } -func (c *current) onDeref23(expr interface{}) (interface{}, error) { +func (c *current) onDeref23(expr any) (any, error) { return []interface{}{"[", expr}, nil } -func (p *parser) callonDeref23() (interface{}, error) { +func (p *parser) callonDeref23() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDeref23(stack["expr"]) } -func (c *current) onDeref29(id interface{}) (interface{}, error) { +func (c *current) onDeref29(id any) (any, error) { return []interface{}{".", id}, nil } -func (p *parser) callonDeref29() (interface{}, error) { +func (p *parser) callonDeref29() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDeref29(stack["id"]) } -func (c *current) onPrimary8(expr interface{}) (interface{}, error) { +func (c *current) onPrimary8(expr any) (any, error) { return expr, nil } -func (p *parser) callonPrimary8() (interface{}, error) { +func (p *parser) callonPrimary8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPrimary8(stack["expr"]) } -func (c *current) onPrimary16(expr interface{}) (interface{}, error) { +func (c *current) onPrimary16(expr any) (any, error) { return expr, nil } -func (p *parser) callonPrimary16() (interface{}, error) { +func (p *parser) callonPrimary16() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPrimary16(stack["expr"]) } -func (c *current) onOverExpr1(exprs, locals, body interface{}) (interface{}, error) { +func (c *current) onOverExpr1(exprs, locals, body any) (any, error) { return map[string]interface{}{"kind": "OverExpr", "locals": locals, "exprs": exprs, "body": body}, nil } -func (p *parser) callonOverExpr1() (interface{}, error) { +func (p *parser) callonOverExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOverExpr1(stack["exprs"], stack["locals"], stack["body"]) } -func (c *current) onRecord1(elems interface{}) (interface{}, error) { +func (c *current) onRecord1(elems any) (any, error) { return map[string]interface{}{"kind": "RecordExpr", "elems": elems}, nil } -func (p *parser) callonRecord1() (interface{}, error) { +func (p *parser) callonRecord1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRecord1(stack["elems"]) } -func (c *current) onRecordElems2(first, rest interface{}) (interface{}, error) { +func (c *current) onRecordElems2(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonRecordElems2() (interface{}, error) { +func (p *parser) callonRecordElems2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRecordElems2(stack["first"], stack["rest"]) } -func (c *current) onRecordElems9() (interface{}, error) { +func (c *current) onRecordElems9() (any, error) { return []interface{}{}, nil } -func (p *parser) callonRecordElems9() (interface{}, error) { +func (p *parser) callonRecordElems9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRecordElems9() } -func (c *current) onRecordElemTail1(elem interface{}) (interface{}, error) { +func (c *current) onRecordElemTail1(elem any) (any, error) { return elem, nil } -func (p *parser) callonRecordElemTail1() (interface{}, error) { +func (p *parser) callonRecordElemTail1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRecordElemTail1(stack["elem"]) } -func (c *current) onSpread1(expr interface{}) (interface{}, error) { +func (c *current) onSpread1(expr any) (any, error) { return map[string]interface{}{"kind": "Spread", "expr": expr}, nil } -func (p *parser) callonSpread1() (interface{}, error) { +func (p *parser) callonSpread1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSpread1(stack["expr"]) } -func (c *current) onField1(name, value interface{}) (interface{}, error) { +func (c *current) onField1(name, value any) (any, error) { return map[string]interface{}{"kind": "Field", "name": name, "value": value}, nil } -func (p *parser) callonField1() (interface{}, error) { +func (p *parser) callonField1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onField1(stack["name"], stack["value"]) } -func (c *current) onArray1(elems interface{}) (interface{}, error) { +func (c *current) onArray1(elems any) (any, error) { return map[string]interface{}{"kind": "ArrayExpr", "elems": elems}, nil } -func (p *parser) callonArray1() (interface{}, error) { +func (p *parser) callonArray1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onArray1(stack["elems"]) } -func (c *current) onSet1(elems interface{}) (interface{}, error) { +func (c *current) onSet1(elems any) (any, error) { return map[string]interface{}{"kind": "SetExpr", "elems": elems}, nil } -func (p *parser) callonSet1() (interface{}, error) { +func (p *parser) callonSet1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSet1(stack["elems"]) } -func (c *current) onVectorElems8(e interface{}) (interface{}, error) { +func (c *current) onVectorElems8(e any) (any, error) { return e, nil } -func (p *parser) callonVectorElems8() (interface{}, error) { +func (p *parser) callonVectorElems8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onVectorElems8(stack["e"]) } -func (c *current) onVectorElems2(first, rest interface{}) (interface{}, error) { +func (c *current) onVectorElems2(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonVectorElems2() (interface{}, error) { +func (p *parser) callonVectorElems2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onVectorElems2(stack["first"], stack["rest"]) } -func (c *current) onVectorElems15() (interface{}, error) { +func (c *current) onVectorElems15() (any, error) { return []interface{}{}, nil } -func (p *parser) callonVectorElems15() (interface{}, error) { +func (p *parser) callonVectorElems15() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onVectorElems15() } -func (c *current) onVectorElem3(e interface{}) (interface{}, error) { +func (c *current) onVectorElem3(e any) (any, error) { return map[string]interface{}{"kind": "VectorValue", "expr": e}, nil } -func (p *parser) callonVectorElem3() (interface{}, error) { +func (p *parser) callonVectorElem3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onVectorElem3(stack["e"]) } -func (c *current) onMap1(exprs interface{}) (interface{}, error) { +func (c *current) onMap1(exprs any) (any, error) { return map[string]interface{}{"kind": "MapExpr", "entries": exprs}, nil } -func (p *parser) callonMap1() (interface{}, error) { +func (p *parser) callonMap1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMap1(stack["exprs"]) } -func (c *current) onEntries2(first, rest interface{}) (interface{}, error) { +func (c *current) onEntries2(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonEntries2() (interface{}, error) { +func (p *parser) callonEntries2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onEntries2(stack["first"], stack["rest"]) } -func (c *current) onEntries9() (interface{}, error) { +func (c *current) onEntries9() (any, error) { return []interface{}{}, nil } -func (p *parser) callonEntries9() (interface{}, error) { +func (p *parser) callonEntries9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onEntries9() } -func (c *current) onEntryTail1(e interface{}) (interface{}, error) { +func (c *current) onEntryTail1(e any) (any, error) { return e, nil } -func (p *parser) callonEntryTail1() (interface{}, error) { +func (p *parser) callonEntryTail1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onEntryTail1(stack["e"]) } -func (c *current) onEntry1(key, value interface{}) (interface{}, error) { +func (c *current) onEntry1(key, value any) (any, error) { return map[string]interface{}{"key": key, "value": value}, nil } -func (p *parser) callonEntry1() (interface{}, error) { +func (p *parser) callonEntry1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onEntry1(stack["key"], stack["value"]) } -func (c *current) onSQLOp1(selection, from, joins, where, groupby, having, orderby, limit interface{}) (interface{}, error) { +func (c *current) onSQLOp1(selection, from, joins, where, groupby, having, orderby, limit any) (any, error) { return map[string]interface{}{ "kind": "SQLExpr", @@ -14872,33 +15265,33 @@ func (c *current) onSQLOp1(selection, from, joins, where, groupby, having, order } -func (p *parser) callonSQLOp1() (interface{}, error) { +func (p *parser) callonSQLOp1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLOp1(stack["selection"], stack["from"], stack["joins"], stack["where"], stack["groupby"], stack["having"], stack["orderby"], stack["limit"]) } -func (c *current) onSQLSelect2() (interface{}, error) { +func (c *current) onSQLSelect2() (any, error) { return nil, nil } -func (p *parser) callonSQLSelect2() (interface{}, error) { +func (p *parser) callonSQLSelect2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLSelect2() } -func (c *current) onSQLSelect7(assignments interface{}) (interface{}, error) { +func (c *current) onSQLSelect7(assignments any) (any, error) { return assignments, nil } -func (p *parser) callonSQLSelect7() (interface{}, error) { +func (p *parser) callonSQLSelect7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLSelect7(stack["assignments"]) } -func (c *current) onSQLAssignment1(rhs, opt interface{}) (interface{}, error) { +func (c *current) onSQLAssignment1(rhs, opt any) (any, error) { var m = map[string]interface{}{"kind": "Assignment", "lhs": nil, "rhs": rhs} if opt != nil { m["lhs"] = opt.([]interface{})[3] @@ -14907,96 +15300,96 @@ func (c *current) onSQLAssignment1(rhs, opt interface{}) (interface{}, error) { } -func (p *parser) callonSQLAssignment1() (interface{}, error) { +func (p *parser) callonSQLAssignment1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLAssignment1(stack["rhs"], stack["opt"]) } -func (c *current) onSQLAssignments7(expr interface{}) (interface{}, error) { +func (c *current) onSQLAssignments7(expr any) (any, error) { return expr, nil } -func (p *parser) callonSQLAssignments7() (interface{}, error) { +func (p *parser) callonSQLAssignments7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLAssignments7(stack["expr"]) } -func (c *current) onSQLAssignments1(first, rest interface{}) (interface{}, error) { +func (c *current) onSQLAssignments1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonSQLAssignments1() (interface{}, error) { +func (p *parser) callonSQLAssignments1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLAssignments1(stack["first"], stack["rest"]) } -func (c *current) onSQLFrom2(table, alias interface{}) (interface{}, error) { +func (c *current) onSQLFrom2(table, alias any) (any, error) { return map[string]interface{}{"table": table, "alias": alias}, nil } -func (p *parser) callonSQLFrom2() (interface{}, error) { +func (p *parser) callonSQLFrom2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLFrom2(stack["table"], stack["alias"]) } -func (c *current) onSQLFrom12() (interface{}, error) { +func (c *current) onSQLFrom12() (any, error) { return nil, nil } -func (p *parser) callonSQLFrom12() (interface{}, error) { +func (p *parser) callonSQLFrom12() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLFrom12() } -func (c *current) onSQLAlias2(id interface{}) (interface{}, error) { +func (c *current) onSQLAlias2(id any) (any, error) { return id, nil } -func (p *parser) callonSQLAlias2() (interface{}, error) { +func (p *parser) callonSQLAlias2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLAlias2(stack["id"]) } -func (c *current) onSQLAlias9(id interface{}) (interface{}, error) { +func (c *current) onSQLAlias9(id any) (any, error) { return id, nil } -func (p *parser) callonSQLAlias9() (interface{}, error) { +func (p *parser) callonSQLAlias9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLAlias9(stack["id"]) } -func (c *current) onSQLJoins7(join interface{}) (interface{}, error) { +func (c *current) onSQLJoins7(join any) (any, error) { return join, nil } -func (p *parser) callonSQLJoins7() (interface{}, error) { +func (p *parser) callonSQLJoins7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLJoins7(stack["join"]) } -func (c *current) onSQLJoins1(first, rest interface{}) (interface{}, error) { +func (c *current) onSQLJoins1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonSQLJoins1() (interface{}, error) { +func (p *parser) callonSQLJoins1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLJoins1(stack["first"], stack["rest"]) } -func (c *current) onSQLJoin1(style, table, alias, leftKey, rightKey interface{}) (interface{}, error) { +func (c *current) onSQLJoin1(style, table, alias, leftKey, rightKey any) (any, error) { return map[string]interface{}{ "table": table, @@ -15011,423 +15404,423 @@ func (c *current) onSQLJoin1(style, table, alias, leftKey, rightKey interface{}) } -func (p *parser) callonSQLJoin1() (interface{}, error) { +func (p *parser) callonSQLJoin1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLJoin1(stack["style"], stack["table"], stack["alias"], stack["leftKey"], stack["rightKey"]) } -func (c *current) onSQLJoinStyle2(style interface{}) (interface{}, error) { +func (c *current) onSQLJoinStyle2(style any) (any, error) { return style, nil } -func (p *parser) callonSQLJoinStyle2() (interface{}, error) { +func (p *parser) callonSQLJoinStyle2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLJoinStyle2(stack["style"]) } -func (c *current) onSQLJoinStyle11() (interface{}, error) { +func (c *current) onSQLJoinStyle11() (any, error) { return "inner", nil } -func (p *parser) callonSQLJoinStyle11() (interface{}, error) { +func (p *parser) callonSQLJoinStyle11() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLJoinStyle11() } -func (c *current) onSQLWhere1(expr interface{}) (interface{}, error) { +func (c *current) onSQLWhere1(expr any) (any, error) { return expr, nil } -func (p *parser) callonSQLWhere1() (interface{}, error) { +func (p *parser) callonSQLWhere1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLWhere1(stack["expr"]) } -func (c *current) onSQLGroupBy1(columns interface{}) (interface{}, error) { +func (c *current) onSQLGroupBy1(columns any) (any, error) { return columns, nil } -func (p *parser) callonSQLGroupBy1() (interface{}, error) { +func (p *parser) callonSQLGroupBy1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLGroupBy1(stack["columns"]) } -func (c *current) onSQLHaving1(expr interface{}) (interface{}, error) { +func (c *current) onSQLHaving1(expr any) (any, error) { return expr, nil } -func (p *parser) callonSQLHaving1() (interface{}, error) { +func (p *parser) callonSQLHaving1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLHaving1(stack["expr"]) } -func (c *current) onSQLOrderBy1(keys, order interface{}) (interface{}, error) { +func (c *current) onSQLOrderBy1(keys, order any) (any, error) { return map[string]interface{}{"kind": "SQLOrderBy", "keys": keys, "order": order}, nil } -func (p *parser) callonSQLOrderBy1() (interface{}, error) { +func (p *parser) callonSQLOrderBy1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLOrderBy1(stack["keys"], stack["order"]) } -func (c *current) onSQLOrder2(dir interface{}) (interface{}, error) { +func (c *current) onSQLOrder2(dir any) (any, error) { return dir, nil } -func (p *parser) callonSQLOrder2() (interface{}, error) { +func (p *parser) callonSQLOrder2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLOrder2(stack["dir"]) } -func (c *current) onSQLOrder9() (interface{}, error) { +func (c *current) onSQLOrder9() (any, error) { return "asc", nil } -func (p *parser) callonSQLOrder9() (interface{}, error) { +func (p *parser) callonSQLOrder9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLOrder9() } -func (c *current) onSQLLimit2(count interface{}) (interface{}, error) { +func (c *current) onSQLLimit2(count any) (any, error) { return count, nil } -func (p *parser) callonSQLLimit2() (interface{}, error) { +func (p *parser) callonSQLLimit2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLLimit2(stack["count"]) } -func (c *current) onSQLLimit9() (interface{}, error) { +func (c *current) onSQLLimit9() (any, error) { return 0, nil } -func (p *parser) callonSQLLimit9() (interface{}, error) { +func (p *parser) callonSQLLimit9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSQLLimit9() } -func (c *current) onSELECT1() (interface{}, error) { +func (c *current) onSELECT1() (any, error) { return "select", nil } -func (p *parser) callonSELECT1() (interface{}, error) { +func (p *parser) callonSELECT1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSELECT1() } -func (c *current) onAS1() (interface{}, error) { +func (c *current) onAS1() (any, error) { return "as", nil } -func (p *parser) callonAS1() (interface{}, error) { +func (p *parser) callonAS1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAS1() } -func (c *current) onFROM1() (interface{}, error) { +func (c *current) onFROM1() (any, error) { return "from", nil } -func (p *parser) callonFROM1() (interface{}, error) { +func (p *parser) callonFROM1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFROM1() } -func (c *current) onJOIN1() (interface{}, error) { +func (c *current) onJOIN1() (any, error) { return "join", nil } -func (p *parser) callonJOIN1() (interface{}, error) { +func (p *parser) callonJOIN1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onJOIN1() } -func (c *current) onWHERE1() (interface{}, error) { +func (c *current) onWHERE1() (any, error) { return "where", nil } -func (p *parser) callonWHERE1() (interface{}, error) { +func (p *parser) callonWHERE1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onWHERE1() } -func (c *current) onGROUP1() (interface{}, error) { +func (c *current) onGROUP1() (any, error) { return "group", nil } -func (p *parser) callonGROUP1() (interface{}, error) { +func (p *parser) callonGROUP1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGROUP1() } -func (c *current) onBY1() (interface{}, error) { +func (c *current) onBY1() (any, error) { return "by", nil } -func (p *parser) callonBY1() (interface{}, error) { +func (p *parser) callonBY1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onBY1() } -func (c *current) onHAVING1() (interface{}, error) { +func (c *current) onHAVING1() (any, error) { return "having", nil } -func (p *parser) callonHAVING1() (interface{}, error) { +func (p *parser) callonHAVING1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onHAVING1() } -func (c *current) onORDER1() (interface{}, error) { +func (c *current) onORDER1() (any, error) { return "order", nil } -func (p *parser) callonORDER1() (interface{}, error) { +func (p *parser) callonORDER1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onORDER1() } -func (c *current) onON1() (interface{}, error) { +func (c *current) onON1() (any, error) { return "on", nil } -func (p *parser) callonON1() (interface{}, error) { +func (p *parser) callonON1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onON1() } -func (c *current) onLIMIT1() (interface{}, error) { +func (c *current) onLIMIT1() (any, error) { return "limit", nil } -func (p *parser) callonLIMIT1() (interface{}, error) { +func (p *parser) callonLIMIT1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLIMIT1() } -func (c *current) onASC1() (interface{}, error) { +func (c *current) onASC1() (any, error) { return "asc", nil } -func (p *parser) callonASC1() (interface{}, error) { +func (p *parser) callonASC1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onASC1() } -func (c *current) onDESC1() (interface{}, error) { +func (c *current) onDESC1() (any, error) { return "desc", nil } -func (p *parser) callonDESC1() (interface{}, error) { +func (p *parser) callonDESC1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDESC1() } -func (c *current) onANTI1() (interface{}, error) { +func (c *current) onANTI1() (any, error) { return "anti", nil } -func (p *parser) callonANTI1() (interface{}, error) { +func (p *parser) callonANTI1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onANTI1() } -func (c *current) onLEFT1() (interface{}, error) { +func (c *current) onLEFT1() (any, error) { return "left", nil } -func (p *parser) callonLEFT1() (interface{}, error) { +func (p *parser) callonLEFT1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onLEFT1() } -func (c *current) onRIGHT1() (interface{}, error) { +func (c *current) onRIGHT1() (any, error) { return "right", nil } -func (p *parser) callonRIGHT1() (interface{}, error) { +func (p *parser) callonRIGHT1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRIGHT1() } -func (c *current) onINNER1() (interface{}, error) { +func (c *current) onINNER1() (any, error) { return "inner", nil } -func (p *parser) callonINNER1() (interface{}, error) { +func (p *parser) callonINNER1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onINNER1() } -func (c *current) onSubnetLiteral2(v interface{}) (interface{}, error) { +func (c *current) onSubnetLiteral2(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "net", "text": v}, nil } -func (p *parser) callonSubnetLiteral2() (interface{}, error) { +func (p *parser) callonSubnetLiteral2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSubnetLiteral2(stack["v"]) } -func (c *current) onSubnetLiteral8(v interface{}) (interface{}, error) { +func (c *current) onSubnetLiteral8(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "net", "text": v}, nil } -func (p *parser) callonSubnetLiteral8() (interface{}, error) { +func (p *parser) callonSubnetLiteral8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSubnetLiteral8(stack["v"]) } -func (c *current) onAddressLiteral2(v interface{}) (interface{}, error) { +func (c *current) onAddressLiteral2(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "ip", "text": v}, nil } -func (p *parser) callonAddressLiteral2() (interface{}, error) { +func (p *parser) callonAddressLiteral2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAddressLiteral2(stack["v"]) } -func (c *current) onAddressLiteral8(v interface{}) (interface{}, error) { +func (c *current) onAddressLiteral8(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "ip", "text": v}, nil } -func (p *parser) callonAddressLiteral8() (interface{}, error) { +func (p *parser) callonAddressLiteral8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAddressLiteral8(stack["v"]) } -func (c *current) onFloatLiteral1(v interface{}) (interface{}, error) { +func (c *current) onFloatLiteral1(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "float64", "text": v}, nil } -func (p *parser) callonFloatLiteral1() (interface{}, error) { +func (p *parser) callonFloatLiteral1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFloatLiteral1(stack["v"]) } -func (c *current) onIntegerLiteral1(v interface{}) (interface{}, error) { +func (c *current) onIntegerLiteral1(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "int64", "text": v}, nil } -func (p *parser) callonIntegerLiteral1() (interface{}, error) { +func (p *parser) callonIntegerLiteral1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIntegerLiteral1(stack["v"]) } -func (c *current) onBooleanLiteral2() (interface{}, error) { +func (c *current) onBooleanLiteral2() (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "bool", "text": "true"}, nil } -func (p *parser) callonBooleanLiteral2() (interface{}, error) { +func (p *parser) callonBooleanLiteral2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onBooleanLiteral2() } -func (c *current) onBooleanLiteral4() (interface{}, error) { +func (c *current) onBooleanLiteral4() (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "bool", "text": "false"}, nil } -func (p *parser) callonBooleanLiteral4() (interface{}, error) { +func (p *parser) callonBooleanLiteral4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onBooleanLiteral4() } -func (c *current) onNullLiteral1() (interface{}, error) { +func (c *current) onNullLiteral1() (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "null", "text": ""}, nil } -func (p *parser) callonNullLiteral1() (interface{}, error) { +func (p *parser) callonNullLiteral1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onNullLiteral1() } -func (c *current) onBytesLiteral1() (interface{}, error) { +func (c *current) onBytesLiteral1() (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "bytes", "text": string(c.text)}, nil } -func (p *parser) callonBytesLiteral1() (interface{}, error) { +func (p *parser) callonBytesLiteral1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onBytesLiteral1() } -func (c *current) onTypeLiteral1(typ interface{}) (interface{}, error) { +func (c *current) onTypeLiteral1(typ any) (any, error) { return map[string]interface{}{"kind": "TypeValue", "value": typ}, nil } -func (p *parser) callonTypeLiteral1() (interface{}, error) { +func (p *parser) callonTypeLiteral1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeLiteral1(stack["typ"]) } -func (c *current) onAmbiguousType2(name interface{}) (interface{}, error) { +func (c *current) onAmbiguousType2(name any) (any, error) { return name, nil } -func (p *parser) callonAmbiguousType2() (interface{}, error) { +func (p *parser) callonAmbiguousType2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAmbiguousType2(stack["name"]) } -func (c *current) onAmbiguousType8(t interface{}) (interface{}, error) { +func (c *current) onAmbiguousType8(t any) (any, error) { return map[string]interface{}{"kind": "TypeError", "type": t}, nil } -func (p *parser) callonAmbiguousType8() (interface{}, error) { +func (p *parser) callonAmbiguousType8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAmbiguousType8(stack["t"]) } -func (c *current) onAmbiguousType18(name, opt interface{}) (interface{}, error) { +func (c *current) onAmbiguousType18(name, opt any) (any, error) { if opt != nil { return map[string]interface{}{"kind": "TypeDef", "name": name, "type": opt.([]interface{})[3]}, nil } @@ -15435,110 +15828,110 @@ func (c *current) onAmbiguousType18(name, opt interface{}) (interface{}, error) } -func (p *parser) callonAmbiguousType18() (interface{}, error) { +func (p *parser) callonAmbiguousType18() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAmbiguousType18(stack["name"], stack["opt"]) } -func (c *current) onAmbiguousType29(name interface{}) (interface{}, error) { +func (c *current) onAmbiguousType29(name any) (any, error) { return map[string]interface{}{"kind": "TypeName", "name": name}, nil } -func (p *parser) callonAmbiguousType29() (interface{}, error) { +func (p *parser) callonAmbiguousType29() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAmbiguousType29(stack["name"]) } -func (c *current) onAmbiguousType32(u interface{}) (interface{}, error) { +func (c *current) onAmbiguousType32(u any) (any, error) { return u, nil } -func (p *parser) callonAmbiguousType32() (interface{}, error) { +func (p *parser) callonAmbiguousType32() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAmbiguousType32(stack["u"]) } -func (c *current) onTypeUnion1(types interface{}) (interface{}, error) { +func (c *current) onTypeUnion1(types any) (any, error) { return map[string]interface{}{"kind": "TypeUnion", "types": types}, nil } -func (p *parser) callonTypeUnion1() (interface{}, error) { +func (p *parser) callonTypeUnion1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeUnion1(stack["types"]) } -func (c *current) onTypeList1(first, rest interface{}) (interface{}, error) { +func (c *current) onTypeList1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonTypeList1() (interface{}, error) { +func (p *parser) callonTypeList1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeList1(stack["first"], stack["rest"]) } -func (c *current) onTypeListTail1(typ interface{}) (interface{}, error) { +func (c *current) onTypeListTail1(typ any) (any, error) { return typ, nil } -func (p *parser) callonTypeListTail1() (interface{}, error) { +func (p *parser) callonTypeListTail1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeListTail1(stack["typ"]) } -func (c *current) onComplexType2(fields interface{}) (interface{}, error) { +func (c *current) onComplexType2(fields any) (any, error) { return map[string]interface{}{"kind": "TypeRecord", "fields": fields}, nil } -func (p *parser) callonComplexType2() (interface{}, error) { +func (p *parser) callonComplexType2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onComplexType2(stack["fields"]) } -func (c *current) onComplexType10(typ interface{}) (interface{}, error) { +func (c *current) onComplexType10(typ any) (any, error) { return map[string]interface{}{"kind": "TypeArray", "type": typ}, nil } -func (p *parser) callonComplexType10() (interface{}, error) { +func (p *parser) callonComplexType10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onComplexType10(stack["typ"]) } -func (c *current) onComplexType18(typ interface{}) (interface{}, error) { +func (c *current) onComplexType18(typ any) (any, error) { return map[string]interface{}{"kind": "TypeSet", "type": typ}, nil } -func (p *parser) callonComplexType18() (interface{}, error) { +func (p *parser) callonComplexType18() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onComplexType18(stack["typ"]) } -func (c *current) onComplexType26(keyType, valType interface{}) (interface{}, error) { +func (c *current) onComplexType26(keyType, valType any) (any, error) { return map[string]interface{}{"kind": "TypeMap", "key_type": keyType, "val_type": valType}, nil } -func (p *parser) callonComplexType26() (interface{}, error) { +func (p *parser) callonComplexType26() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onComplexType26(stack["keyType"], stack["valType"]) } -func (c *current) onTemplateLiteral1(v interface{}) (interface{}, error) { +func (c *current) onTemplateLiteral1(v any) (any, error) { if len(v.([]interface{})) == 0 { return map[string]interface{}{"kind": "Primitive", "type": "string", "text": ""}, nil } @@ -15546,95 +15939,95 @@ func (c *current) onTemplateLiteral1(v interface{}) (interface{}, error) { } -func (p *parser) callonTemplateLiteral1() (interface{}, error) { +func (p *parser) callonTemplateLiteral1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateLiteral1(stack["v"]) } -func (c *current) onTemplateLiteralParts2(v interface{}) (interface{}, error) { +func (c *current) onTemplateLiteralParts2(v any) (any, error) { return v, nil } -func (p *parser) callonTemplateLiteralParts2() (interface{}, error) { +func (p *parser) callonTemplateLiteralParts2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateLiteralParts2(stack["v"]) } -func (c *current) onTemplateLiteralParts9(v interface{}) (interface{}, error) { +func (c *current) onTemplateLiteralParts9(v any) (any, error) { return v, nil } -func (p *parser) callonTemplateLiteralParts9() (interface{}, error) { +func (p *parser) callonTemplateLiteralParts9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateLiteralParts9(stack["v"]) } -func (c *current) onTemplateDoubleQuotedPart3(v interface{}) (interface{}, error) { +func (c *current) onTemplateDoubleQuotedPart3(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "string", "text": joinChars(v)}, nil } -func (p *parser) callonTemplateDoubleQuotedPart3() (interface{}, error) { +func (p *parser) callonTemplateDoubleQuotedPart3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateDoubleQuotedPart3(stack["v"]) } -func (c *current) onTemplateDoubleQuotedChar2(v interface{}) (interface{}, error) { +func (c *current) onTemplateDoubleQuotedChar2(v any) (any, error) { return v, nil } -func (p *parser) callonTemplateDoubleQuotedChar2() (interface{}, error) { +func (p *parser) callonTemplateDoubleQuotedChar2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateDoubleQuotedChar2(stack["v"]) } -func (c *current) onTemplateDoubleQuotedChar7(v interface{}) (interface{}, error) { +func (c *current) onTemplateDoubleQuotedChar7(v any) (any, error) { return v, nil } -func (p *parser) callonTemplateDoubleQuotedChar7() (interface{}, error) { +func (p *parser) callonTemplateDoubleQuotedChar7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateDoubleQuotedChar7(stack["v"]) } -func (c *current) onTemplateSingleQuotedPart3(v interface{}) (interface{}, error) { +func (c *current) onTemplateSingleQuotedPart3(v any) (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "string", "text": joinChars(v)}, nil } -func (p *parser) callonTemplateSingleQuotedPart3() (interface{}, error) { +func (p *parser) callonTemplateSingleQuotedPart3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateSingleQuotedPart3(stack["v"]) } -func (c *current) onTemplateSingleQuotedChar2(v interface{}) (interface{}, error) { +func (c *current) onTemplateSingleQuotedChar2(v any) (any, error) { return v, nil } -func (p *parser) callonTemplateSingleQuotedChar2() (interface{}, error) { +func (p *parser) callonTemplateSingleQuotedChar2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateSingleQuotedChar2(stack["v"]) } -func (c *current) onTemplateSingleQuotedChar7(v interface{}) (interface{}, error) { +func (c *current) onTemplateSingleQuotedChar7(v any) (any, error) { return v, nil } -func (p *parser) callonTemplateSingleQuotedChar7() (interface{}, error) { +func (p *parser) callonTemplateSingleQuotedChar7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateSingleQuotedChar7(stack["v"]) } -func (c *current) onTemplateExpr1(e interface{}) (interface{}, error) { +func (c *current) onTemplateExpr1(e any) (any, error) { return map[string]interface{}{ "kind": "Cast", @@ -15649,655 +16042,655 @@ func (c *current) onTemplateExpr1(e interface{}) (interface{}, error) { } -func (p *parser) callonTemplateExpr1() (interface{}, error) { +func (p *parser) callonTemplateExpr1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTemplateExpr1(stack["e"]) } -func (c *current) onPrimitiveType1() (interface{}, error) { +func (c *current) onPrimitiveType1() (any, error) { return map[string]interface{}{"kind": "TypePrimitive", "name": string(c.text)}, nil } -func (p *parser) callonPrimitiveType1() (interface{}, error) { +func (p *parser) callonPrimitiveType1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onPrimitiveType1() } -func (c *current) onTypeFieldList2(first, rest interface{}) (interface{}, error) { +func (c *current) onTypeFieldList2(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonTypeFieldList2() (interface{}, error) { +func (p *parser) callonTypeFieldList2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeFieldList2(stack["first"], stack["rest"]) } -func (c *current) onTypeFieldList9() (interface{}, error) { +func (c *current) onTypeFieldList9() (any, error) { return nil, nil } -func (p *parser) callonTypeFieldList9() (interface{}, error) { +func (p *parser) callonTypeFieldList9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeFieldList9() } -func (c *current) onTypeFieldListTail1(typ interface{}) (interface{}, error) { +func (c *current) onTypeFieldListTail1(typ any) (any, error) { return typ, nil } -func (p *parser) callonTypeFieldListTail1() (interface{}, error) { +func (p *parser) callonTypeFieldListTail1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeFieldListTail1(stack["typ"]) } -func (c *current) onTypeField1(name, typ interface{}) (interface{}, error) { +func (c *current) onTypeField1(name, typ any) (any, error) { return map[string]interface{}{"name": name, "type": typ}, nil } -func (p *parser) callonTypeField1() (interface{}, error) { +func (p *parser) callonTypeField1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTypeField1(stack["name"], stack["typ"]) } -func (c *current) onAndToken1() (interface{}, error) { +func (c *current) onAndToken1() (any, error) { return "and", nil } -func (p *parser) callonAndToken1() (interface{}, error) { +func (p *parser) callonAndToken1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onAndToken1() } -func (c *current) onNotToken1() (interface{}, error) { +func (c *current) onNotToken1() (any, error) { return "not", nil } -func (p *parser) callonNotToken1() (interface{}, error) { +func (p *parser) callonNotToken1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onNotToken1() } -func (c *current) onOrToken1() (interface{}, error) { +func (c *current) onOrToken1() (any, error) { return "or", nil } -func (p *parser) callonOrToken1() (interface{}, error) { +func (p *parser) callonOrToken1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onOrToken1() } -func (c *current) onIdentifier1(id interface{}) (interface{}, error) { +func (c *current) onIdentifier1(id any) (any, error) { return map[string]interface{}{"kind": "ID", "name": id}, nil } -func (p *parser) callonIdentifier1() (interface{}, error) { +func (p *parser) callonIdentifier1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifier1(stack["id"]) } -func (c *current) onIdentifierName2() (interface{}, error) { +func (c *current) onIdentifierName2() (any, error) { return string(c.text), nil } -func (p *parser) callonIdentifierName2() (interface{}, error) { +func (p *parser) callonIdentifierName2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifierName2() } -func (c *current) onIdentifierName12() (interface{}, error) { +func (c *current) onIdentifierName12() (any, error) { return string(c.text), nil } -func (p *parser) callonIdentifierName12() (interface{}, error) { +func (p *parser) callonIdentifierName12() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifierName12() } -func (c *current) onIdentifierName14(id interface{}) (interface{}, error) { +func (c *current) onIdentifierName14(id any) (any, error) { return id, nil } -func (p *parser) callonIdentifierName14() (interface{}, error) { +func (p *parser) callonIdentifierName14() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifierName14(stack["id"]) } -func (c *current) onIdentifierName19() (interface{}, error) { +func (c *current) onIdentifierName19() (any, error) { return string(c.text), nil } -func (p *parser) callonIdentifierName19() (interface{}, error) { +func (p *parser) callonIdentifierName19() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifierName19() } -func (c *current) onIdentifierName21(id interface{}) (interface{}, error) { +func (c *current) onIdentifierName21(id any) (any, error) { return id, nil } -func (p *parser) callonIdentifierName21() (interface{}, error) { +func (p *parser) callonIdentifierName21() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifierName21(stack["id"]) } -func (c *current) onIdentifierNames7(id interface{}) (interface{}, error) { +func (c *current) onIdentifierNames7(id any) (any, error) { return id, nil } -func (p *parser) callonIdentifierNames7() (interface{}, error) { +func (p *parser) callonIdentifierNames7() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifierNames7(stack["id"]) } -func (c *current) onIdentifierNames1(first, rest interface{}) (interface{}, error) { +func (c *current) onIdentifierNames1(first, rest any) (any, error) { return append([]interface{}{first}, (rest.([]interface{}))...), nil } -func (p *parser) callonIdentifierNames1() (interface{}, error) { +func (p *parser) callonIdentifierNames1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIdentifierNames1(stack["first"], stack["rest"]) } -func (c *current) onTime1() (interface{}, error) { +func (c *current) onTime1() (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "time", "text": string(c.text)}, nil } -func (p *parser) callonTime1() (interface{}, error) { +func (p *parser) callonTime1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onTime1() } -func (c *current) onDuration1() (interface{}, error) { +func (c *current) onDuration1() (any, error) { return map[string]interface{}{"kind": "Primitive", "type": "duration", "text": string(c.text)}, nil } -func (p *parser) callonDuration1() (interface{}, error) { +func (p *parser) callonDuration1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDuration1() } -func (c *current) onIP1() (interface{}, error) { +func (c *current) onIP1() (any, error) { return string(c.text), nil } -func (p *parser) callonIP1() (interface{}, error) { +func (p *parser) callonIP1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP1() } -func (c *current) onIP61(v interface{}) (interface{}, error) { +func (c *current) onIP61(v any) (any, error) { return v, nil } -func (p *parser) callonIP61() (interface{}, error) { +func (p *parser) callonIP61() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP61(stack["v"]) } -func (c *current) onIP6Variations2(a, b interface{}) (interface{}, error) { +func (c *current) onIP6Variations2(a, b any) (any, error) { return joinChars(a) + b.(string), nil } -func (p *parser) callonIP6Variations2() (interface{}, error) { +func (p *parser) callonIP6Variations2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP6Variations2(stack["a"], stack["b"]) } -func (c *current) onIP6Variations9(a, b, d, e interface{}) (interface{}, error) { +func (c *current) onIP6Variations9(a, b, d, e any) (any, error) { return a.(string) + joinChars(b) + "::" + joinChars(d) + e.(string), nil } -func (p *parser) callonIP6Variations9() (interface{}, error) { +func (p *parser) callonIP6Variations9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP6Variations9(stack["a"], stack["b"], stack["d"], stack["e"]) } -func (c *current) onIP6Variations22(a, b interface{}) (interface{}, error) { +func (c *current) onIP6Variations22(a, b any) (any, error) { return "::" + joinChars(a) + b.(string), nil } -func (p *parser) callonIP6Variations22() (interface{}, error) { +func (p *parser) callonIP6Variations22() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP6Variations22(stack["a"], stack["b"]) } -func (c *current) onIP6Variations30(a, b interface{}) (interface{}, error) { +func (c *current) onIP6Variations30(a, b any) (any, error) { return a.(string) + joinChars(b) + "::", nil } -func (p *parser) callonIP6Variations30() (interface{}, error) { +func (p *parser) callonIP6Variations30() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP6Variations30(stack["a"], stack["b"]) } -func (c *current) onIP6Variations38() (interface{}, error) { +func (c *current) onIP6Variations38() (any, error) { return "::", nil } -func (p *parser) callonIP6Variations38() (interface{}, error) { +func (p *parser) callonIP6Variations38() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP6Variations38() } -func (c *current) onColonHex1(v interface{}) (interface{}, error) { +func (c *current) onColonHex1(v any) (any, error) { return ":" + v.(string), nil } -func (p *parser) callonColonHex1() (interface{}, error) { +func (p *parser) callonColonHex1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onColonHex1(stack["v"]) } -func (c *current) onHexColon1(v interface{}) (interface{}, error) { +func (c *current) onHexColon1(v any) (any, error) { return v.(string) + ":", nil } -func (p *parser) callonHexColon1() (interface{}, error) { +func (p *parser) callonHexColon1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onHexColon1(stack["v"]) } -func (c *current) onIP4Net1(a, m interface{}) (interface{}, error) { +func (c *current) onIP4Net1(a, m any) (any, error) { return a.(string) + "/" + m.(string), nil } -func (p *parser) callonIP4Net1() (interface{}, error) { +func (p *parser) callonIP4Net1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP4Net1(stack["a"], stack["m"]) } -func (c *current) onIP6Net1(a, m interface{}) (interface{}, error) { +func (c *current) onIP6Net1(a, m any) (any, error) { return a.(string) + "/" + m.(string), nil } -func (p *parser) callonIP6Net1() (interface{}, error) { +func (p *parser) callonIP6Net1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onIP6Net1(stack["a"], stack["m"]) } -func (c *current) onUInt1(s interface{}) (interface{}, error) { +func (c *current) onUInt1(s any) (any, error) { return parseInt(s), nil } -func (p *parser) callonUInt1() (interface{}, error) { +func (p *parser) callonUInt1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onUInt1(stack["s"]) } -func (c *current) onUIntString1() (interface{}, error) { +func (c *current) onUIntString1() (any, error) { return string(c.text), nil } -func (p *parser) callonUIntString1() (interface{}, error) { +func (p *parser) callonUIntString1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onUIntString1() } -func (c *current) onMinusIntString1() (interface{}, error) { +func (c *current) onMinusIntString1() (any, error) { return string(c.text), nil } -func (p *parser) callonMinusIntString1() (interface{}, error) { +func (p *parser) callonMinusIntString1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onMinusIntString1() } -func (c *current) onFloatString2() (interface{}, error) { +func (c *current) onFloatString2() (any, error) { return string(c.text), nil } -func (p *parser) callonFloatString2() (interface{}, error) { +func (p *parser) callonFloatString2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFloatString2() } -func (c *current) onFloatString13() (interface{}, error) { +func (c *current) onFloatString13() (any, error) { return string(c.text), nil } -func (p *parser) callonFloatString13() (interface{}, error) { +func (p *parser) callonFloatString13() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFloatString13() } -func (c *current) onFloatString22() (interface{}, error) { +func (c *current) onFloatString22() (any, error) { return string(c.text), nil } -func (p *parser) callonFloatString22() (interface{}, error) { +func (p *parser) callonFloatString22() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onFloatString22() } -func (c *current) onHex1() (interface{}, error) { +func (c *current) onHex1() (any, error) { return string(c.text), nil } -func (p *parser) callonHex1() (interface{}, error) { +func (p *parser) callonHex1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onHex1() } -func (c *current) onQuotedString2(v interface{}) (interface{}, error) { +func (c *current) onQuotedString2(v any) (any, error) { return joinChars(v), nil } -func (p *parser) callonQuotedString2() (interface{}, error) { +func (p *parser) callonQuotedString2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onQuotedString2(stack["v"]) } -func (c *current) onQuotedString9(v interface{}) (interface{}, error) { +func (c *current) onQuotedString9(v any) (any, error) { return joinChars(v), nil } -func (p *parser) callonQuotedString9() (interface{}, error) { +func (p *parser) callonQuotedString9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onQuotedString9(stack["v"]) } -func (c *current) onDoubleQuotedChar2() (interface{}, error) { +func (c *current) onDoubleQuotedChar2() (any, error) { return string(c.text), nil } -func (p *parser) callonDoubleQuotedChar2() (interface{}, error) { +func (p *parser) callonDoubleQuotedChar2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDoubleQuotedChar2() } -func (c *current) onDoubleQuotedChar9(s interface{}) (interface{}, error) { +func (c *current) onDoubleQuotedChar9(s any) (any, error) { return s, nil } -func (p *parser) callonDoubleQuotedChar9() (interface{}, error) { +func (p *parser) callonDoubleQuotedChar9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onDoubleQuotedChar9(stack["s"]) } -func (c *current) onKeyWord1(head, tail interface{}) (interface{}, error) { +func (c *current) onKeyWord1(head, tail any) (any, error) { return head.(string) + joinChars(tail), nil } -func (p *parser) callonKeyWord1() (interface{}, error) { +func (p *parser) callonKeyWord1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onKeyWord1(stack["head"], stack["tail"]) } -func (c *current) onKeyWordChars1() (interface{}, error) { +func (c *current) onKeyWordChars1() (any, error) { return string(c.text), nil } -func (p *parser) callonKeyWordChars1() (interface{}, error) { +func (p *parser) callonKeyWordChars1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onKeyWordChars1() } -func (c *current) onKeyWordEsc1(s interface{}) (interface{}, error) { +func (c *current) onKeyWordEsc1(s any) (any, error) { return s, nil } -func (p *parser) callonKeyWordEsc1() (interface{}, error) { +func (p *parser) callonKeyWordEsc1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onKeyWordEsc1(stack["s"]) } -func (c *current) onGlobPattern1(head, tail interface{}) (interface{}, error) { +func (c *current) onGlobPattern1(head, tail any) (any, error) { return head.(string) + joinChars(tail), nil } -func (p *parser) callonGlobPattern1() (interface{}, error) { +func (p *parser) callonGlobPattern1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGlobPattern1(stack["head"], stack["tail"]) } -func (c *current) onGlobStart4() (interface{}, error) { +func (c *current) onGlobStart4() (any, error) { return "*", nil } -func (p *parser) callonGlobStart4() (interface{}, error) { +func (p *parser) callonGlobStart4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGlobStart4() } -func (c *current) onGlobEsc1(s interface{}) (interface{}, error) { +func (c *current) onGlobEsc1(s any) (any, error) { return s, nil } -func (p *parser) callonGlobEsc1() (interface{}, error) { +func (p *parser) callonGlobEsc1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGlobEsc1(stack["s"]) } -func (c *current) onGlobEscape2() (interface{}, error) { +func (c *current) onGlobEscape2() (any, error) { return "=", nil } -func (p *parser) callonGlobEscape2() (interface{}, error) { +func (p *parser) callonGlobEscape2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGlobEscape2() } -func (c *current) onGlobEscape4() (interface{}, error) { +func (c *current) onGlobEscape4() (any, error) { return "\\*", nil } -func (p *parser) callonGlobEscape4() (interface{}, error) { +func (p *parser) callonGlobEscape4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onGlobEscape4() } -func (c *current) onSingleQuotedChar2() (interface{}, error) { +func (c *current) onSingleQuotedChar2() (any, error) { return string(c.text), nil } -func (p *parser) callonSingleQuotedChar2() (interface{}, error) { +func (p *parser) callonSingleQuotedChar2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleQuotedChar2() } -func (c *current) onSingleQuotedChar9(s interface{}) (interface{}, error) { +func (c *current) onSingleQuotedChar9(s any) (any, error) { return s, nil } -func (p *parser) callonSingleQuotedChar9() (interface{}, error) { +func (p *parser) callonSingleQuotedChar9() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleQuotedChar9(stack["s"]) } -func (c *current) onSingleCharEscape3() (interface{}, error) { +func (c *current) onSingleCharEscape3() (any, error) { return string(c.text), nil } -func (p *parser) callonSingleCharEscape3() (interface{}, error) { +func (p *parser) callonSingleCharEscape3() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleCharEscape3() } -func (c *current) onSingleCharEscape6() (interface{}, error) { +func (c *current) onSingleCharEscape6() (any, error) { return "\b", nil } -func (p *parser) callonSingleCharEscape6() (interface{}, error) { +func (p *parser) callonSingleCharEscape6() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleCharEscape6() } -func (c *current) onSingleCharEscape8() (interface{}, error) { +func (c *current) onSingleCharEscape8() (any, error) { return "\f", nil } -func (p *parser) callonSingleCharEscape8() (interface{}, error) { +func (p *parser) callonSingleCharEscape8() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleCharEscape8() } -func (c *current) onSingleCharEscape10() (interface{}, error) { +func (c *current) onSingleCharEscape10() (any, error) { return "\n", nil } -func (p *parser) callonSingleCharEscape10() (interface{}, error) { +func (p *parser) callonSingleCharEscape10() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleCharEscape10() } -func (c *current) onSingleCharEscape12() (interface{}, error) { +func (c *current) onSingleCharEscape12() (any, error) { return "\r", nil } -func (p *parser) callonSingleCharEscape12() (interface{}, error) { +func (p *parser) callonSingleCharEscape12() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleCharEscape12() } -func (c *current) onSingleCharEscape14() (interface{}, error) { +func (c *current) onSingleCharEscape14() (any, error) { return "\t", nil } -func (p *parser) callonSingleCharEscape14() (interface{}, error) { +func (p *parser) callonSingleCharEscape14() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleCharEscape14() } -func (c *current) onSingleCharEscape16() (interface{}, error) { +func (c *current) onSingleCharEscape16() (any, error) { return "\v", nil } -func (p *parser) callonSingleCharEscape16() (interface{}, error) { +func (p *parser) callonSingleCharEscape16() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onSingleCharEscape16() } -func (c *current) onKeywordEscape2() (interface{}, error) { +func (c *current) onKeywordEscape2() (any, error) { return "=", nil } -func (p *parser) callonKeywordEscape2() (interface{}, error) { +func (p *parser) callonKeywordEscape2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onKeywordEscape2() } -func (c *current) onKeywordEscape4() (interface{}, error) { +func (c *current) onKeywordEscape4() (any, error) { return "*", nil } -func (p *parser) callonKeywordEscape4() (interface{}, error) { +func (p *parser) callonKeywordEscape4() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onKeywordEscape4() } -func (c *current) onUnicodeEscape2(chars interface{}) (interface{}, error) { +func (c *current) onUnicodeEscape2(chars any) (any, error) { return makeUnicodeChar(chars), nil } -func (p *parser) callonUnicodeEscape2() (interface{}, error) { +func (p *parser) callonUnicodeEscape2() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onUnicodeEscape2(stack["chars"]) } -func (c *current) onUnicodeEscape11(chars interface{}) (interface{}, error) { +func (c *current) onUnicodeEscape11(chars any) (any, error) { return makeUnicodeChar(chars), nil } -func (p *parser) callonUnicodeEscape11() (interface{}, error) { +func (p *parser) callonUnicodeEscape11() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onUnicodeEscape11(stack["chars"]) } -func (c *current) onRegexpPattern1(body interface{}) (interface{}, error) { +func (c *current) onRegexpPattern1(body any) (any, error) { return body, nil } -func (p *parser) callonRegexpPattern1() (interface{}, error) { +func (p *parser) callonRegexpPattern1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRegexpPattern1(stack["body"]) } -func (c *current) onRegexpBody1() (interface{}, error) { +func (c *current) onRegexpBody1() (any, error) { return string(c.text), nil } -func (p *parser) callonRegexpBody1() (interface{}, error) { +func (p *parser) callonRegexpBody1() (any, error) { stack := p.vstack[len(p.vstack)-1] _ = stack return p.cur.onRegexpBody1() @@ -16441,7 +16834,7 @@ func Recover(b bool) Option { // GlobalStore creates an Option to set a key to a certain value in // the globalStore. -func GlobalStore(key string, value interface{}) Option { +func GlobalStore(key string, value any) Option { return func(p *parser) Option { old := p.cur.globalStore[key] p.cur.globalStore[key] = value @@ -16451,7 +16844,7 @@ func GlobalStore(key string, value interface{}) Option { // InitState creates an Option to set a key to a certain value in // the global "state" store. -func InitState(key string, value interface{}) Option { +func InitState(key string, value any) Option { return func(p *parser) Option { old := p.cur.state[key] p.cur.state[key] = value @@ -16460,7 +16853,7 @@ func InitState(key string, value interface{}) Option { } // ParseFile parses the file identified by filename. -func ParseFile(filename string, opts ...Option) (i interface{}, err error) { +func ParseFile(filename string, opts ...Option) (i any, err error) { f, err := os.Open(filename) if err != nil { return nil, err @@ -16475,8 +16868,8 @@ func ParseFile(filename string, opts ...Option) (i interface{}, err error) { // ParseReader parses the data from r using filename as information in the // error messages. -func ParseReader(filename string, r io.Reader, opts ...Option) (interface{}, error) { - b, err := ioutil.ReadAll(r) +func ParseReader(filename string, r io.Reader, opts ...Option) (any, error) { + b, err := io.ReadAll(r) if err != nil { return nil, err } @@ -16486,7 +16879,7 @@ func ParseReader(filename string, r io.Reader, opts ...Option) (interface{}, err // Parse parses the data from b using filename as information in the // error messages. -func Parse(filename string, b []byte, opts ...Option) (interface{}, error) { +func Parse(filename string, b []byte, opts ...Option) (any, error) { return newParser(filename, b, opts...).parse(g) } @@ -16496,7 +16889,7 @@ type position struct { } func (p position) String() string { - return fmt.Sprintf("%d:%d [%d]", p.line, p.col, p.offset) + 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 @@ -16524,7 +16917,7 @@ type current struct { globalStore storeDict } -type storeDict map[string]interface{} +type storeDict map[string]any // the AST types... @@ -16537,30 +16930,30 @@ type rule struct { pos position name string displayName string - expr interface{} + expr any } type choiceExpr struct { pos position - alternatives []interface{} + alternatives []any } type actionExpr struct { pos position - expr interface{} - run func(*parser) (interface{}, error) + expr any + run func(*parser) (any, error) } type recoveryExpr struct { pos position - expr interface{} - recoverExpr interface{} + expr any + recoverExpr any failureLabel []string } type seqExpr struct { pos position - exprs []interface{} + exprs []any } type throwExpr struct { @@ -16571,19 +16964,21 @@ type throwExpr struct { type labeledExpr struct { pos position label string - expr interface{} + expr any } type expr struct { pos position - expr interface{} + expr any } -type andExpr expr -type notExpr expr -type zeroOrOneExpr expr -type zeroOrMoreExpr expr -type oneOrMoreExpr expr +type ( + andExpr expr + notExpr expr + zeroOrOneExpr expr + zeroOrMoreExpr expr + oneOrMoreExpr expr +) type ruleRefExpr struct { pos position @@ -16609,6 +17004,7 @@ type litMatcher struct { pos position val string ignoreCase bool + want string } type charClassMatcher struct { @@ -16723,7 +17119,7 @@ func (p *parser) setOptions(opts []Option) { } type resultTuple struct { - v interface{} + v any b bool end savepoint } @@ -16767,12 +17163,12 @@ type parser struct { memoize bool // memoization table for the packrat algorithm: // map[offset in source] map[expression or rule] {value, match} - memo map[int]map[interface{}]resultTuple + memo map[int]map[any]resultTuple // rules table, maps the rule identifier to the rule node rules map[string]*rule // variables stack, map of label to value - vstack []map[string]interface{} + vstack []map[string]any // rule stack, allows identification of the current rule in errors rstack []*rule @@ -16792,7 +17188,7 @@ type parser struct { choiceNoMatch string // recovery expression stack, keeps track of the currently available recovery expression, these are traversed in reverse - recoveryStack []map[string]interface{} + recoveryStack []map[string]any } // push a variable set on the vstack. @@ -16812,7 +17208,7 @@ func (p *parser) pushV() { return } - m = make(map[string]interface{}) + m = make(map[string]any) p.vstack[len(p.vstack)-1] = m } @@ -16828,7 +17224,7 @@ func (p *parser) popV() { } // push a recovery expression with its labels to the recoveryStack -func (p *parser) pushRecovery(labels []string, expr interface{}) { +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) @@ -16837,7 +17233,7 @@ func (p *parser) pushRecovery(labels []string, expr interface{}) { p.recoveryStack = p.recoveryStack[:len(p.recoveryStack)+1] } - m := make(map[string]interface{}, len(labels)) + m := make(map[string]any, len(labels)) for _, fl := range labels { m[fl] = expr } @@ -16862,14 +17258,19 @@ func (p *parser) print(prefix, s string) string { return s } +func (p *parser) printIndent(mark string, s string) string { + return p.print(strings.Repeat(" ", p.depth)+mark, s) +} + func (p *parser) in(s string) string { + res := p.printIndent(">", s) p.depth++ - return p.print(strings.Repeat(" ", p.depth)+">", s) + return res } func (p *parser) out(s string) string { p.depth-- - return p.print(strings.Repeat(" ", p.depth)+"<", s) + return p.printIndent("<", s) } func (p *parser) addErr(err error) { @@ -16957,7 +17358,18 @@ func (p *parser) restore(pt savepoint) { // copies of the state to allow the parser to properly restore the state in // the case of backtracking. type Cloner interface { - Clone() interface{} + Clone() any +} + +var statePool = &sync.Pool{ + New: func() any { return make(storeDict) }, +} + +func (sd storeDict) Discard() { + for k := range sd { + delete(sd, k) + } + statePool.Put(sd) } // clone and return parser current state. @@ -16966,7 +17378,7 @@ func (p *parser) cloneState() storeDict { defer p.out(p.in("cloneState")) } - state := make(storeDict, len(p.cur.state)) + state := statePool.Get().(storeDict) for k, v := range p.cur.state { if c, ok := v.(Cloner); ok { state[k] = c.Clone() @@ -16983,6 +17395,7 @@ func (p *parser) restoreState(state storeDict) { if p.debug { defer p.out(p.in("restoreState")) } + p.cur.state.Discard() p.cur.state = state } @@ -16991,7 +17404,7 @@ func (p *parser) sliceFrom(start savepoint) []byte { return p.data[start.position.offset:p.pt.position.offset] } -func (p *parser) getMemoized(node interface{}) (resultTuple, bool) { +func (p *parser) getMemoized(node any) (resultTuple, bool) { if len(p.memo) == 0 { return resultTuple{}, false } @@ -17003,13 +17416,13 @@ func (p *parser) getMemoized(node interface{}) (resultTuple, bool) { return res, ok } -func (p *parser) setMemoized(pt savepoint, node interface{}, tuple resultTuple) { +func (p *parser) setMemoized(pt savepoint, node any, tuple resultTuple) { if p.memo == nil { - p.memo = make(map[int]map[interface{}]resultTuple) + p.memo = make(map[int]map[any]resultTuple) } m := p.memo[pt.offset] if m == nil { - m = make(map[interface{}]resultTuple) + m = make(map[any]resultTuple) p.memo[pt.offset] = m } m[node] = tuple @@ -17022,7 +17435,7 @@ func (p *parser) buildRulesTable(g *grammar) { } } -func (p *parser) parse(g *grammar) (val interface{}, err error) { +func (p *parser) parse(g *grammar) (val any, err error) { if len(g.rules) == 0 { p.addErr(errNoRule) return nil, p.errs.err() @@ -17058,7 +17471,7 @@ func (p *parser) parse(g *grammar) (val interface{}, err error) { } p.read() // advance to first rune - val, ok = p.parseRule(startRule) + val, ok = p.parseRuleWrap(startRule) if !ok { if len(*p.errs) == 0 { // If parsing fails, but no errors have been recorded, the expected values @@ -17095,40 +17508,56 @@ func listJoin(list []string, sep string, lastSep string) string { case 1: return list[0] default: - return fmt.Sprintf("%s %s %s", strings.Join(list[:len(list)-1], sep), lastSep, list[len(list)-1]) + return strings.Join(list[:len(list)-1], sep) + " " + lastSep + " " + list[len(list)-1] } } -func (p *parser) parseRule(rule *rule) (interface{}, bool) { +func (p *parser) parseRuleMemoize(rule *rule) (any, bool) { + res, ok := p.getMemoized(rule) + if ok { + p.restore(res.end) + return res.v, res.b + } + + startMark := p.pt + val, ok := p.parseRule(rule) + p.setMemoized(startMark, rule, resultTuple{val, ok, p.pt}) + + return val, ok +} + +func (p *parser) parseRuleWrap(rule *rule) (any, bool) { if p.debug { defer p.out(p.in("parseRule " + rule.name)) } + var ( + val any + ok bool + startMark = p.pt + ) if p.memoize { - res, ok := p.getMemoized(rule) - if ok { - p.restore(res.end) - return res.v, res.b - } + val, ok = p.parseRuleMemoize(rule) + } else { + val, ok = p.parseRule(rule) } - start := p.pt + if ok && p.debug { + p.printIndent("MATCH", string(p.sliceFrom(startMark))) + } + return val, ok +} + +func (p *parser) parseRule(rule *rule) (any, bool) { p.rstack = append(p.rstack, rule) p.pushV() - val, ok := p.parseExpr(rule.expr) + val, ok := p.parseExprWrap(rule.expr) p.popV() p.rstack = p.rstack[:len(p.rstack)-1] - if ok && p.debug { - p.print(strings.Repeat(" ", p.depth)+"MATCH", string(p.sliceFrom(start))) - } - - if p.memoize { - p.setMemoized(start, rule, resultTuple{val, ok, p.pt}) - } return val, ok } -func (p *parser) parseExpr(expr interface{}) (interface{}, bool) { +func (p *parser) parseExprWrap(expr any) (any, bool) { var pt savepoint if p.memoize { @@ -17140,12 +17569,21 @@ func (p *parser) parseExpr(expr interface{}) (interface{}, bool) { pt = p.pt } + val, ok := p.parseExpr(expr) + + if p.memoize { + p.setMemoized(pt, expr, resultTuple{val, ok, p.pt}) + } + return val, ok +} + +func (p *parser) parseExpr(expr any) (any, bool) { p.ExprCnt++ if p.ExprCnt > p.maxExprCnt { panic(errMaxExprCnt) } - var val interface{} + var val any var ok bool switch expr := expr.(type) { case *actionExpr: @@ -17187,19 +17625,16 @@ func (p *parser) parseExpr(expr interface{}) (interface{}, bool) { default: panic(fmt.Sprintf("unknown expression type %T", expr)) } - if p.memoize { - p.setMemoized(pt, expr, resultTuple{val, ok, p.pt}) - } return val, ok } -func (p *parser) parseActionExpr(act *actionExpr) (interface{}, bool) { +func (p *parser) parseActionExpr(act *actionExpr) (any, bool) { if p.debug { defer p.out(p.in("parseActionExpr")) } start := p.pt - val, ok := p.parseExpr(act.expr) + val, ok := p.parseExprWrap(act.expr) if ok { p.cur.pos = start.position p.cur.text = p.sliceFrom(start) @@ -17213,12 +17648,12 @@ func (p *parser) parseActionExpr(act *actionExpr) (interface{}, bool) { val = actVal } if ok && p.debug { - p.print(strings.Repeat(" ", p.depth)+"MATCH", string(p.sliceFrom(start))) + p.printIndent("MATCH", string(p.sliceFrom(start))) } return val, ok } -func (p *parser) parseAndCodeExpr(and *andCodeExpr) (interface{}, bool) { +func (p *parser) parseAndCodeExpr(and *andCodeExpr) (any, bool) { if p.debug { defer p.out(p.in("parseAndCodeExpr")) } @@ -17234,7 +17669,7 @@ func (p *parser) parseAndCodeExpr(and *andCodeExpr) (interface{}, bool) { return nil, ok } -func (p *parser) parseAndExpr(and *andExpr) (interface{}, bool) { +func (p *parser) parseAndExpr(and *andExpr) (any, bool) { if p.debug { defer p.out(p.in("parseAndExpr")) } @@ -17242,7 +17677,7 @@ func (p *parser) parseAndExpr(and *andExpr) (interface{}, bool) { pt := p.pt state := p.cloneState() p.pushV() - _, ok := p.parseExpr(and.expr) + _, ok := p.parseExprWrap(and.expr) p.popV() p.restoreState(state) p.restore(pt) @@ -17250,7 +17685,7 @@ func (p *parser) parseAndExpr(and *andExpr) (interface{}, bool) { return nil, ok } -func (p *parser) parseAnyMatcher(any *anyMatcher) (interface{}, bool) { +func (p *parser) parseAnyMatcher(any *anyMatcher) (any, bool) { if p.debug { defer p.out(p.in("parseAnyMatcher")) } @@ -17266,7 +17701,7 @@ func (p *parser) parseAnyMatcher(any *anyMatcher) (interface{}, bool) { return p.sliceFrom(start), true } -func (p *parser) parseCharClassMatcher(chr *charClassMatcher) (interface{}, bool) { +func (p *parser) parseCharClassMatcher(chr *charClassMatcher) (any, bool) { if p.debug { defer p.out(p.in("parseCharClassMatcher")) } @@ -17347,7 +17782,7 @@ func (p *parser) incChoiceAltCnt(ch *choiceExpr, altI int) { m[alt]++ } -func (p *parser) parseChoiceExpr(ch *choiceExpr) (interface{}, bool) { +func (p *parser) parseChoiceExpr(ch *choiceExpr) (any, bool) { if p.debug { defer p.out(p.in("parseChoiceExpr")) } @@ -17359,7 +17794,7 @@ func (p *parser) parseChoiceExpr(ch *choiceExpr) (interface{}, bool) { state := p.cloneState() p.pushV() - val, ok := p.parseExpr(alt) + val, ok := p.parseExprWrap(alt) p.popV() if ok { p.incChoiceAltCnt(ch, altI) @@ -17371,13 +17806,13 @@ func (p *parser) parseChoiceExpr(ch *choiceExpr) (interface{}, bool) { return nil, false } -func (p *parser) parseLabeledExpr(lab *labeledExpr) (interface{}, bool) { +func (p *parser) parseLabeledExpr(lab *labeledExpr) (any, bool) { if p.debug { defer p.out(p.in("parseLabeledExpr")) } p.pushV() - val, ok := p.parseExpr(lab.expr) + val, ok := p.parseExprWrap(lab.expr) p.popV() if ok && lab.label != "" { m := p.vstack[len(p.vstack)-1] @@ -17386,16 +17821,11 @@ func (p *parser) parseLabeledExpr(lab *labeledExpr) (interface{}, bool) { return val, ok } -func (p *parser) parseLitMatcher(lit *litMatcher) (interface{}, bool) { +func (p *parser) parseLitMatcher(lit *litMatcher) (any, bool) { if p.debug { defer p.out(p.in("parseLitMatcher")) } - ignoreCase := "" - if lit.ignoreCase { - ignoreCase = "i" - } - val := fmt.Sprintf("%q%s", lit.val, ignoreCase) start := p.pt for _, want := range lit.val { cur := p.pt.rn @@ -17403,17 +17833,17 @@ func (p *parser) parseLitMatcher(lit *litMatcher) (interface{}, bool) { cur = unicode.ToLower(cur) } if cur != want { - p.failAt(false, start.position, val) + p.failAt(false, start.position, lit.want) p.restore(start) return nil, false } p.read() } - p.failAt(true, start.position, val) + p.failAt(true, start.position, lit.want) return p.sliceFrom(start), true } -func (p *parser) parseNotCodeExpr(not *notCodeExpr) (interface{}, bool) { +func (p *parser) parseNotCodeExpr(not *notCodeExpr) (any, bool) { if p.debug { defer p.out(p.in("parseNotCodeExpr")) } @@ -17429,7 +17859,7 @@ func (p *parser) parseNotCodeExpr(not *notCodeExpr) (interface{}, bool) { return nil, !ok } -func (p *parser) parseNotExpr(not *notExpr) (interface{}, bool) { +func (p *parser) parseNotExpr(not *notExpr) (any, bool) { if p.debug { defer p.out(p.in("parseNotExpr")) } @@ -17438,7 +17868,7 @@ func (p *parser) parseNotExpr(not *notExpr) (interface{}, bool) { state := p.cloneState() p.pushV() p.maxFailInvertExpected = !p.maxFailInvertExpected - _, ok := p.parseExpr(not.expr) + _, ok := p.parseExprWrap(not.expr) p.maxFailInvertExpected = !p.maxFailInvertExpected p.popV() p.restoreState(state) @@ -17447,16 +17877,16 @@ func (p *parser) parseNotExpr(not *notExpr) (interface{}, bool) { return nil, !ok } -func (p *parser) parseOneOrMoreExpr(expr *oneOrMoreExpr) (interface{}, bool) { +func (p *parser) parseOneOrMoreExpr(expr *oneOrMoreExpr) (any, bool) { if p.debug { defer p.out(p.in("parseOneOrMoreExpr")) } - var vals []interface{} + var vals []any for { p.pushV() - val, ok := p.parseExpr(expr.expr) + val, ok := p.parseExprWrap(expr.expr) p.popV() if !ok { if len(vals) == 0 { @@ -17469,19 +17899,19 @@ func (p *parser) parseOneOrMoreExpr(expr *oneOrMoreExpr) (interface{}, bool) { } } -func (p *parser) parseRecoveryExpr(recover *recoveryExpr) (interface{}, bool) { +func (p *parser) parseRecoveryExpr(recover *recoveryExpr) (any, bool) { if p.debug { defer p.out(p.in("parseRecoveryExpr (" + strings.Join(recover.failureLabel, ",") + ")")) } p.pushRecovery(recover.failureLabel, recover.recoverExpr) - val, ok := p.parseExpr(recover.expr) + val, ok := p.parseExprWrap(recover.expr) p.popRecovery() return val, ok } -func (p *parser) parseRuleRefExpr(ref *ruleRefExpr) (interface{}, bool) { +func (p *parser) parseRuleRefExpr(ref *ruleRefExpr) (any, bool) { if p.debug { defer p.out(p.in("parseRuleRefExpr " + ref.name)) } @@ -17495,20 +17925,20 @@ func (p *parser) parseRuleRefExpr(ref *ruleRefExpr) (interface{}, bool) { p.addErr(fmt.Errorf("undefined rule: %s", ref.name)) return nil, false } - return p.parseRule(rule) + return p.parseRuleWrap(rule) } -func (p *parser) parseSeqExpr(seq *seqExpr) (interface{}, bool) { +func (p *parser) parseSeqExpr(seq *seqExpr) (any, bool) { if p.debug { defer p.out(p.in("parseSeqExpr")) } - vals := make([]interface{}, 0, len(seq.exprs)) + vals := make([]any, 0, len(seq.exprs)) pt := p.pt state := p.cloneState() for _, expr := range seq.exprs { - val, ok := p.parseExpr(expr) + val, ok := p.parseExprWrap(expr) if !ok { p.restoreState(state) p.restore(pt) @@ -17519,7 +17949,7 @@ func (p *parser) parseSeqExpr(seq *seqExpr) (interface{}, bool) { return vals, true } -func (p *parser) parseStateCodeExpr(state *stateCodeExpr) (interface{}, bool) { +func (p *parser) parseStateCodeExpr(state *stateCodeExpr) (any, bool) { if p.debug { defer p.out(p.in("parseStateCodeExpr")) } @@ -17531,14 +17961,14 @@ func (p *parser) parseStateCodeExpr(state *stateCodeExpr) (interface{}, bool) { return nil, true } -func (p *parser) parseThrowExpr(expr *throwExpr) (interface{}, bool) { +func (p *parser) parseThrowExpr(expr *throwExpr) (any, bool) { if p.debug { defer p.out(p.in("parseThrowExpr")) } for i := len(p.recoveryStack) - 1; i >= 0; i-- { if recoverExpr, ok := p.recoveryStack[i][expr.label]; ok { - if val, ok := p.parseExpr(recoverExpr); ok { + if val, ok := p.parseExprWrap(recoverExpr); ok { return val, ok } } @@ -17547,16 +17977,16 @@ func (p *parser) parseThrowExpr(expr *throwExpr) (interface{}, bool) { return nil, false } -func (p *parser) parseZeroOrMoreExpr(expr *zeroOrMoreExpr) (interface{}, bool) { +func (p *parser) parseZeroOrMoreExpr(expr *zeroOrMoreExpr) (any, bool) { if p.debug { defer p.out(p.in("parseZeroOrMoreExpr")) } - var vals []interface{} + var vals []any for { p.pushV() - val, ok := p.parseExpr(expr.expr) + val, ok := p.parseExprWrap(expr.expr) p.popV() if !ok { return vals, true @@ -17565,13 +17995,13 @@ func (p *parser) parseZeroOrMoreExpr(expr *zeroOrMoreExpr) (interface{}, bool) { } } -func (p *parser) parseZeroOrOneExpr(expr *zeroOrOneExpr) (interface{}, bool) { +func (p *parser) parseZeroOrOneExpr(expr *zeroOrOneExpr) (any, bool) { if p.debug { defer p.out(p.in("parseZeroOrOneExpr")) } p.pushV() - val, _ := p.parseExpr(expr.expr) + val, _ := p.parseExprWrap(expr.expr) p.popV() // whether it matched or not, consider it a match return val, true diff --git a/compiler/parser/parser.js b/compiler/parser/parser.js deleted file mode 100644 index 0e6e128384..0000000000 --- a/compiler/parser/parser.js +++ /dev/null @@ -1,16840 +0,0 @@ -/* - * Generated by PEG.js 0.10.0. - * - * http://pegjs.org/ - */ - -"use strict"; - -function peg$subclass(child, parent) { - function ctor() { this.constructor = child; } - ctor.prototype = parent.prototype; - child.prototype = new ctor(); -} - -function peg$SyntaxError(message, expected, found, location) { - this.message = message; - this.expected = expected; - this.found = found; - this.location = location; - this.name = "SyntaxError"; - - if (typeof Error.captureStackTrace === "function") { - Error.captureStackTrace(this, peg$SyntaxError); - } -} - -peg$subclass(peg$SyntaxError, Error); - -peg$SyntaxError.buildMessage = function(expected, found) { - var DESCRIBE_EXPECTATION_FNS = { - literal: function(expectation) { - return "\"" + literalEscape(expectation.text) + "\""; - }, - - "class": function(expectation) { - var escapedParts = "", - i; - - for (i = 0; i < expectation.parts.length; i++) { - escapedParts += expectation.parts[i] instanceof Array - ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1]) - : classEscape(expectation.parts[i]); - } - - return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; - }, - - any: function(expectation) { - return "any character"; - }, - - end: function(expectation) { - return "end of input"; - }, - - other: function(expectation) { - return expectation.description; - } - }; - - function hex(ch) { - return ch.charCodeAt(0).toString(16).toUpperCase(); - } - - function literalEscape(s) { - return s - .replace(/\\/g, '\\\\') - .replace(/"/g, '\\"') - .replace(/\0/g, '\\0') - .replace(/\t/g, '\\t') - .replace(/\n/g, '\\n') - .replace(/\r/g, '\\r') - .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); - } - - function classEscape(s) { - return s - .replace(/\\/g, '\\\\') - .replace(/\]/g, '\\]') - .replace(/\^/g, '\\^') - .replace(/-/g, '\\-') - .replace(/\0/g, '\\0') - .replace(/\t/g, '\\t') - .replace(/\n/g, '\\n') - .replace(/\r/g, '\\r') - .replace(/[\x00-\x0F]/g, function(ch) { return '\\x0' + hex(ch); }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return '\\x' + hex(ch); }); - } - - function describeExpectation(expectation) { - return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); - } - - function describeExpected(expected) { - var descriptions = new Array(expected.length), - i, j; - - for (i = 0; i < expected.length; i++) { - descriptions[i] = describeExpectation(expected[i]); - } - - descriptions.sort(); - - if (descriptions.length > 0) { - for (i = 1, j = 1; i < descriptions.length; i++) { - if (descriptions[i - 1] !== descriptions[i]) { - descriptions[j] = descriptions[i]; - j++; - } - } - descriptions.length = j; - } - - switch (descriptions.length) { - case 1: - return descriptions[0]; - - case 2: - return descriptions[0] + " or " + descriptions[1]; - - default: - return descriptions.slice(0, -1).join(", ") - + ", or " - + descriptions[descriptions.length - 1]; - } - } - - function describeFound(found) { - return found ? "\"" + literalEscape(found) + "\"" : "end of input"; - } - - return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; -}; - -function peg$parse(input, options) { - options = options !== void 0 ? options : {}; - - var peg$FAILED = {}, - - peg$startRuleFunctions = { start: peg$parsestart, Expr: peg$parseExpr }, - peg$startRuleFunction = peg$parsestart, - - peg$c0 = function(scope) { return [scope] }, - peg$c1 = function(seq) { return seq }, - peg$c2 = function(decls, body) { - return {"kind": "Scope", "decls": decls, "body": body} - }, - peg$c3 = function(first, rest) { - return [first, ... rest] - }, - peg$c4 = function(o) { return o }, - peg$c5 = function(v) { return v }, - peg$c6 = "const", - peg$c7 = peg$literalExpectation("const", false), - peg$c8 = "=", - peg$c9 = peg$literalExpectation("=", false), - peg$c10 = function(id, expr) { - return {"kind": "ConstDecl", "name": id, "expr": expr} - }, - peg$c11 = "type", - peg$c12 = peg$literalExpectation("type", false), - peg$c13 = function(id, typ) { - return { - - "kind": "ConstDecl", - - "name": id, - - "expr": {"kind": "TypeValue", "value": {"kind": "TypeDef", "name": id, "type": typ}}} - - }, - peg$c14 = "func", - peg$c15 = peg$literalExpectation("func", false), - peg$c16 = "(", - peg$c17 = peg$literalExpectation("(", false), - peg$c18 = ")", - peg$c19 = peg$literalExpectation(")", false), - peg$c20 = ":", - peg$c21 = peg$literalExpectation(":", false), - peg$c22 = function(id, params, expr) { - return { - - "kind": "FuncDecl", - - "name": id, - - "params": params, - - "expr": expr} - - }, - peg$c23 = "op", - peg$c24 = peg$literalExpectation("op", false), - peg$c25 = function(name, params, body) { - return { - - "kind": "OpDecl", - - "name": name, - - "params": params, - - "body": body} - - }, - peg$c26 = "fork", - peg$c27 = peg$literalExpectation("fork", false), - peg$c28 = function(paths) { - return {"kind": "Parallel", "paths": paths} - }, - peg$c29 = "switch", - peg$c30 = peg$literalExpectation("switch", false), - peg$c31 = function(expr, cases) { - return {"kind": "Switch", "expr": expr, "cases": cases} - }, - peg$c32 = function(cases) { - return {"kind": "Switch", "expr": null, "cases": cases} - }, - peg$c33 = "from", - peg$c34 = peg$literalExpectation("from", false), - peg$c35 = function(trunks) { - return {"kind": "From", "trunks": trunks} - }, - peg$c36 = function(scope) { return scope }, - peg$c37 = function(a) { return a }, - peg$c38 = "search", - peg$c39 = peg$literalExpectation("search", false), - peg$c40 = function(expr) { - return {"kind": "Search", "expr": expr} - }, - peg$c41 = function(expr) { - return {"kind": "OpExpr", "expr": expr} - }, - peg$c42 = function(expr) { - return {"kind": "OpExpr", "expr": expr} - }, - peg$c43 = "=>", - peg$c44 = peg$literalExpectation("=>", false), - peg$c45 = "|", - peg$c46 = peg$literalExpectation("|", false), - peg$c47 = "{", - peg$c48 = peg$literalExpectation("{", false), - peg$c49 = "[", - peg$c50 = peg$literalExpectation("[", false), - peg$c51 = function(expr, path) { - return {"expr": expr, "path": path} - }, - peg$c52 = "case", - peg$c53 = peg$literalExpectation("case", false), - peg$c54 = function(expr) { return expr }, - peg$c55 = "default", - peg$c56 = peg$literalExpectation("default", false), - peg$c57 = function() { return null }, - peg$c58 = function(source, opt) { - let m = {"kind": "Trunk", "source": source, "seq": null} - if (opt) { - m["seq"] = opt[3] - } - return m - }, - peg$c59 = "~", - peg$c60 = peg$literalExpectation("~", false), - peg$c61 = "==", - peg$c62 = peg$literalExpectation("==", false), - peg$c63 = "!=", - peg$c64 = peg$literalExpectation("!=", false), - peg$c65 = "in", - peg$c66 = peg$literalExpectation("in", false), - peg$c67 = "<=", - peg$c68 = peg$literalExpectation("<=", false), - peg$c69 = "<", - peg$c70 = peg$literalExpectation("<", false), - peg$c71 = ">=", - peg$c72 = peg$literalExpectation(">=", false), - peg$c73 = ">", - peg$c74 = peg$literalExpectation(">", false), - peg$c75 = function() { return text() }, - peg$c76 = function(first, rest) { - return makeBinaryExprChain(first, rest) - }, - peg$c77 = function(t) { return ["or", t] }, - peg$c78 = function(first, expr) { return ["and", expr] }, - peg$c79 = "!", - peg$c80 = peg$literalExpectation("!", false), - peg$c81 = function(e) { - return {"kind": "UnaryExpr", "op": "!", "operand": e} - }, - peg$c82 = function(v) { - return {"kind": "Term", "text": text(), "value": v} - }, - peg$c83 = "*", - peg$c84 = peg$literalExpectation("*", false), - peg$c85 = function() { - return {"kind": "Primitive", "type": "bool", "text": "true"} - }, - peg$c86 = function(lhs, op, rhs) { - return {"kind": "BinaryExpr", "op": op, "lhs": lhs, "rhs": rhs} - }, - peg$c87 = function(first, rest) { - return makeBinaryExprChain(first, rest) - }, - peg$c88 = function(v) { - return {"kind": "Primitive", "type": "string", "text": v} - }, - peg$c89 = function(pattern) { - return {"kind": "Glob", "pattern": pattern} - }, - peg$c90 = function(pattern) { - return {"kind": "Regexp", "pattern": pattern} - }, - peg$c91 = function(keys, limit) { - return {"kind": "Summarize", "keys": keys, "aggs": null, "limit": limit} - }, - peg$c92 = function(aggs, keys, limit) { - let p = {"kind": "Summarize", "keys": null, "aggs": aggs, "limit": limit} - if (keys) { - p["keys"] = keys[1] - } - return p - }, - peg$c93 = "summarize", - peg$c94 = peg$literalExpectation("summarize", false), - peg$c95 = function(columns) { return columns }, - peg$c96 = "with", - peg$c97 = peg$literalExpectation("with", false), - peg$c98 = "-limit", - peg$c99 = peg$literalExpectation("-limit", false), - peg$c100 = function(limit) { return limit }, - peg$c101 = "", - peg$c102 = function() { return 0 }, - peg$c103 = function(expr) { return {"kind": "Assignment", "lhs": null, "rhs": expr} }, - peg$c104 = ",", - peg$c105 = peg$literalExpectation(",", false), - peg$c106 = function(first, expr) { return expr }, - peg$c107 = ":=", - peg$c108 = peg$literalExpectation(":=", false), - peg$c109 = function(lval, agg) { - return {"kind": "Assignment", "lhs": lval, "rhs": agg} - }, - peg$c110 = function(agg) { - return {"kind": "Assignment", "lhs": null, "rhs": agg} - }, - peg$c111 = ".", - peg$c112 = peg$literalExpectation(".", false), - peg$c113 = function(op, expr, where) { - let r = {"kind": "Agg", "name": op, "expr": null, "where": where} - if (expr) { - r["expr"] = expr - } - return r - }, - peg$c114 = "where", - peg$c115 = peg$literalExpectation("where", false), - peg$c116 = function(first, rest) { - let result = [first] - for(let r of rest) { - result.push( r[3]) - } - return result - }, - peg$c117 = "assert", - peg$c118 = peg$literalExpectation("assert", false), - peg$c119 = function(e) { return [e, text()] }, - peg$c120 = function(expr) { - // 'assert EXPR' is equivalent to - // 'yield EXPR ? this : error({message: "assertion failed", "expr": EXPR_text, "on": this}' - // where EXPR_text is the literal text of EXPR. - return {"kind": "Yield", "exprs": [{ - - "kind": "Conditional", - - "cond": expr[0], - - "then": {"kind": "ID", "name": "this"}, - - "else": { - - "kind": "Call", - - "name": "error", - - "args": [{"kind": "RecordExpr", "elems": [ - - {"kind": "Field", "name": "message", "value": { - - "kind": "Primitive", "text": "assertion failed", "type": "string"}}, - - {"kind": "Field", "name": "expr", "value": { - - "kind": "Primitive", "text": expr[1], "type": "string"}}, - - {"kind": "Field", "name": "on", "value": { - - "kind": "ID", "name": "this"}}]}], - - "where": null}}]} - - }, - peg$c121 = "sort", - peg$c122 = peg$literalExpectation("sort", false), - peg$c123 = function(args, l) { return l }, - peg$c124 = function(args, list) { - let argm = args - let op = {"kind": "Sort", "args": list, "order": "asc", "nullsfirst": false} - if ( "r" in argm) { - op["order"] = "desc" - } - if ( "nulls" in argm) { - if (argm["nulls"] == "first") { - op["nullsfirst"] = true - } - } - return op - }, - peg$c125 = function(args) { return makeArgMap(args) }, - peg$c126 = "-r", - peg$c127 = peg$literalExpectation("-r", false), - peg$c128 = function() { return {"name": "r", "value": null} }, - peg$c129 = "-nulls", - peg$c130 = peg$literalExpectation("-nulls", false), - peg$c131 = "first", - peg$c132 = peg$literalExpectation("first", false), - peg$c133 = "last", - peg$c134 = peg$literalExpectation("last", false), - peg$c135 = function(where) { return {"name": "nulls", "value": where} }, - peg$c136 = "top", - peg$c137 = peg$literalExpectation("top", false), - peg$c138 = function(n) { return n }, - peg$c139 = "-flush", - peg$c140 = peg$literalExpectation("-flush", false), - peg$c141 = function(limit, flush, f) { return f }, - peg$c142 = function(limit, flush, fields) { - let op = {"kind": "Top", "limit": 0, "args": null, "flush": false} - if (limit) { - op["limit"] = limit - } - if (fields) { - op["args"] = fields - } - if (flush) { - op["flush"] = true - } - return op - }, - peg$c143 = "cut", - peg$c144 = peg$literalExpectation("cut", false), - peg$c145 = function(args) { - return {"kind": "Cut", "args": args} - }, - peg$c146 = "drop", - peg$c147 = peg$literalExpectation("drop", false), - peg$c148 = function(args) { - return {"kind": "Drop", "args": args} - }, - peg$c149 = "head", - peg$c150 = peg$literalExpectation("head", false), - peg$c151 = function(count) { return {"kind": "Head", "count": count} }, - peg$c152 = function() { return {"kind": "Head", "count": {"kind": "Primitive", "type": "int64", "text": "1"}} }, - peg$c153 = "tail", - peg$c154 = peg$literalExpectation("tail", false), - peg$c155 = function(count) { return {"kind": "Tail", "count": count} }, - peg$c156 = function() { return {"kind": "Tail", "count": {"kind": "Primitive", "type": "int64", "text": "1"}} }, - peg$c157 = function(expr) { - return {"kind": "Where", "expr": expr} - }, - peg$c158 = "uniq", - peg$c159 = peg$literalExpectation("uniq", false), - peg$c160 = "-c", - peg$c161 = peg$literalExpectation("-c", false), - peg$c162 = function() { - return {"kind": "Uniq", "cflag": true} - }, - peg$c163 = function() { - return {"kind": "Uniq", "cflag": false} - }, - peg$c164 = "put", - peg$c165 = peg$literalExpectation("put", false), - peg$c166 = function(args) { - return {"kind": "Put", "args": args} - }, - peg$c167 = "rename", - peg$c168 = peg$literalExpectation("rename", false), - peg$c169 = function(first, cl) { return cl }, - peg$c170 = function(first, rest) { - return {"kind": "Rename", "args": [first, ... rest]} - }, - peg$c171 = "fuse", - peg$c172 = peg$literalExpectation("fuse", false), - peg$c173 = function() { - return {"kind": "Fuse"} - }, - peg$c174 = "shape", - peg$c175 = peg$literalExpectation("shape", false), - peg$c176 = function() { - return {"kind": "Shape"} - }, - peg$c177 = "join", - peg$c178 = peg$literalExpectation("join", false), - peg$c179 = function(style, rightInput, key, optKey, optArgs) { - let m = {"kind": "Join", "style": style, "right_input": rightInput, "left_key": key, "right_key": key, "args": null} - if (optKey) { - m["right_key"] = optKey[3] - } - if (optArgs) { - m["args"] = optArgs[1] - } - return m - }, - peg$c180 = "anti", - peg$c181 = peg$literalExpectation("anti", false), - peg$c182 = function() { return "anti" }, - peg$c183 = "inner", - peg$c184 = peg$literalExpectation("inner", false), - peg$c185 = function() { return "inner" }, - peg$c186 = "left", - peg$c187 = peg$literalExpectation("left", false), - peg$c188 = function() { return "left" }, - peg$c189 = "right", - peg$c190 = peg$literalExpectation("right", false), - peg$c191 = function() { return "right" }, - peg$c192 = function(s) { return s }, - peg$c193 = "sample", - peg$c194 = peg$literalExpectation("sample", false), - peg$c195 = function(e) { return {"kind": "Sample", "expr": e} }, - peg$c196 = function(a) { - return {"kind": "OpAssignment", "assignments": a} - }, - peg$c197 = function(lval) { return lval }, - peg$c198 = function() { return {"kind": "ID", "name": "this"} }, - peg$c199 = "load", - peg$c200 = peg$literalExpectation("load", false), - peg$c201 = function(pool, branch, author, message, meta) { - return {"kind": "Load", "pool": pool, "branch": branch, "author": author, "message": message, "meta": meta} - }, - peg$c202 = "author", - peg$c203 = peg$literalExpectation("author", false), - peg$c204 = function(val) { return val }, - peg$c205 = "message", - peg$c206 = peg$literalExpectation("message", false), - peg$c207 = "meta", - peg$c208 = peg$literalExpectation("meta", false), - peg$c209 = "@", - peg$c210 = peg$literalExpectation("@", false), - peg$c211 = function(branch) { return branch }, - peg$c212 = function(source) { - return {"kind": "From", "trunks": [{"kind": "Trunk", "source": source}]} - }, - peg$c213 = "file", - peg$c214 = peg$literalExpectation("file", false), - peg$c215 = function(path, format, sort_key) { - return {"kind": "File", "path": path, "format": format, "sort_key": sort_key} - }, - peg$c216 = function(body) { return body }, - peg$c217 = "pool", - peg$c218 = peg$literalExpectation("pool", false), - peg$c219 = function(spec, at) { - return {"kind": "Pool", "spec": spec, "at": at} - }, - peg$c220 = "get", - peg$c221 = peg$literalExpectation("get", false), - peg$c222 = function(url, format, sort_key, method, headers, body) { - return { - - "kind": "HTTP", - - "url": url, - - "format": format, - - "sort_key": sort_key, - - "method": method, - - "headers": headers, - - "body": body} - - }, - peg$c223 = "method", - peg$c224 = peg$literalExpectation("method", false), - peg$c225 = "headers", - peg$c226 = peg$literalExpectation("headers", false), - peg$c227 = "body", - peg$c228 = peg$literalExpectation("body", false), - peg$c229 = function(v) { return {"kind": "QuotedString", "text": v} }, - peg$c230 = /^[0-9a-zA-Z!@$%\^&*_=<>,.\/?:[\]{}~+\-]/, - peg$c231 = peg$classExpectation([["0", "9"], ["a", "z"], ["A", "Z"], "!", "@", "$", "%", "^", "&", "*", "_", "=", "<", ">", ",", ".", "/", "?", ":", "[", "]", "{", "}", "~", "+", "-"], false, false), - peg$c232 = function() { return {"kind": "String", "text": text()} }, - peg$c233 = "at", - peg$c234 = peg$literalExpectation("at", false), - peg$c235 = function(id) { return id }, - peg$c236 = /^[0-9a-zA-Z]/, - peg$c237 = peg$classExpectation([["0", "9"], ["a", "z"], ["A", "Z"]], false, false), - peg$c238 = function(pool, commit, meta, tap) { - return {"pool": pool, "commit": commit, "meta": meta, "tap": tap} - }, - peg$c239 = function(meta) { - return {"pool": null, "commit": null, "meta": meta} - }, - peg$c240 = function(commit) { return commit }, - peg$c241 = function(meta) { return meta }, - peg$c242 = function() { return {"kind": "Glob", "pattern": "*"} }, - peg$c243 = function(name) { return {"kind": "QuotedString", "text": name} }, - peg$c244 = function(name) { return {"kind": "String", "text": name} }, - peg$c245 = "order", - peg$c246 = peg$literalExpectation("order", false), - peg$c247 = function(keys, order) { - return {"kind": "SortKey", "keys": keys, "order": order} - }, - peg$c248 = "tap", - peg$c249 = peg$literalExpectation("tap", false), - peg$c250 = function() { return true }, - peg$c251 = function() { return false }, - peg$c252 = "format", - peg$c253 = peg$literalExpectation("format", false), - peg$c254 = ":asc", - peg$c255 = peg$literalExpectation(":asc", false), - peg$c256 = function() { return "asc" }, - peg$c257 = ":desc", - peg$c258 = peg$literalExpectation(":desc", false), - peg$c259 = function() { return "desc" }, - peg$c260 = "pass", - peg$c261 = peg$literalExpectation("pass", false), - peg$c262 = function() { - return {"kind": "Pass"} - }, - peg$c263 = "explode", - peg$c264 = peg$literalExpectation("explode", false), - peg$c265 = function(args, typ, as) { - return {"kind": "Explode", "args": args, "as": as, "type": typ} - }, - peg$c266 = "merge", - peg$c267 = peg$literalExpectation("merge", false), - peg$c268 = function(expr) { - return {"kind": "Merge", "expr": expr} - }, - peg$c269 = "over", - peg$c270 = peg$literalExpectation("over", false), - peg$c271 = function(exprs, locals, body) { - return {"kind": "Over", "exprs": exprs, "locals": locals, "body": body} - }, - peg$c272 = function(first, a) { return a }, - peg$c273 = function(name, opt) { - let m = {"name": name, "expr": {"kind": "ID", "name": name}} - if (opt) { - m["expr"] = opt[3] - } - return m - }, - peg$c274 = "yield", - peg$c275 = peg$literalExpectation("yield", false), - peg$c276 = function(exprs) { - return {"kind": "Yield", "exprs": exprs} - }, - peg$c277 = function(typ) { return typ }, - peg$c278 = function(lhs) { return lhs }, - peg$c279 = function(first, lval) { return lval }, - peg$c280 = function(first, rest) { - let result = [first] - - for(let r of rest) { - result.push( r[3]) - } - - return result - }, - peg$c281 = function(first, rest) { - return [first, ... rest] - }, - peg$c282 = function(lhs, rhs) { return {"kind": "Assignment", "lhs": lhs, "rhs": rhs} }, - peg$c283 = "?", - peg$c284 = peg$literalExpectation("?", false), - peg$c285 = function(cond, opt) { - if (opt) { - let Then = opt[3] - let Else = opt[7] - return {"kind": "Conditional", "cond": cond, "then": Then, "else": Else} - } - return cond - }, - peg$c286 = function(first, op, expr) { return [op, expr] }, - peg$c287 = function(first, rest) { - return makeBinaryExprChain(first, rest) - }, - peg$c288 = function(lhs) { return text() }, - peg$c289 = function(lhs, opAndRHS) { - if (!opAndRHS) { - return lhs - } - let op = opAndRHS[1] - let rhs = opAndRHS[3] - return {"kind": "BinaryExpr", "op": op, "lhs": lhs, "rhs": rhs} - }, - peg$c290 = "+", - peg$c291 = peg$literalExpectation("+", false), - peg$c292 = "-", - peg$c293 = peg$literalExpectation("-", false), - peg$c294 = "/", - peg$c295 = peg$literalExpectation("/", false), - peg$c296 = "%", - peg$c297 = peg$literalExpectation("%", false), - peg$c298 = function(e) { - return {"kind": "UnaryExpr", "op": "!", "operand": e} - }, - peg$c299 = function(e) { - return {"kind": "UnaryExpr", "op": "-", "operand": e} - }, - peg$c300 = "not", - peg$c301 = peg$literalExpectation("not", false), - peg$c302 = "select", - peg$c303 = peg$literalExpectation("select", false), - peg$c304 = function(typ, expr) { - return {"kind": "Cast", "expr": expr, "type": typ} - }, - peg$c305 = "regexp", - peg$c306 = peg$literalExpectation("regexp", false), - peg$c307 = function(arg0Text, arg1, where) { - let arg0 = {"kind": "Primitive", "type": "string", "text": arg0Text} - return {"kind": "Call", "name": "regexp", "args": [arg0, arg1], "where": where} - }, - peg$c308 = "regexp_replace", - peg$c309 = peg$literalExpectation("regexp_replace", false), - peg$c310 = function(arg0, arg1Text, arg2, where) { - let arg1 = {"kind": "Primitive", "type": "string", "text": arg1Text} - return {"kind": "Call", "name": "regexp_replace", "args": [arg0, arg1, arg2], "where": where} - }, - peg$c311 = function(fn, args, where) { - return {"kind": "Call", "name": fn, "args": args, "where": where} - }, - peg$c312 = function(o) { return [o] }, - peg$c313 = "grep", - peg$c314 = peg$literalExpectation("grep", false), - peg$c315 = function(pattern, opt) { - let m = {"kind": "Grep", "pattern": pattern, "expr": {"kind": "ID", "name": "this"}} - if (opt) { - m["expr"] = opt[2] - } - return m - }, - peg$c316 = function() { return [] }, - peg$c317 = function(first, e) { return e }, - peg$c318 = "]", - peg$c319 = peg$literalExpectation("]", false), - peg$c320 = function(from, to) { - return ["[", {"kind": "BinaryExpr", "op": ":", - - "lhs": from, "rhs": to}] - - }, - peg$c321 = function(to) { - return ["[", {"kind": "BinaryExpr", "op": ":", - - "lhs": null, "rhs": to}] - - }, - peg$c322 = function(expr) { return ["[", expr] }, - peg$c323 = function(id) { return [".", id] }, - peg$c324 = function(exprs, locals, body) { - return {"kind": "OverExpr", "locals": locals, "exprs": exprs, "body": body} - }, - peg$c325 = "}", - peg$c326 = peg$literalExpectation("}", false), - peg$c327 = function(elems) { - return {"kind": "RecordExpr", "elems": elems} - }, - peg$c328 = function(elem) { return elem }, - peg$c329 = "...", - peg$c330 = peg$literalExpectation("...", false), - peg$c331 = function(expr) { - return {"kind": "Spread", "expr": expr} - }, - peg$c332 = function(name, value) { - return {"kind": "Field", "name": name, "value": value} - }, - peg$c333 = function(elems) { - return {"kind": "ArrayExpr", "elems": elems} - }, - peg$c334 = "|[", - peg$c335 = peg$literalExpectation("|[", false), - peg$c336 = "]|", - peg$c337 = peg$literalExpectation("]|", false), - peg$c338 = function(elems) { - return {"kind": "SetExpr", "elems": elems} - }, - peg$c339 = function(e) { return {"kind": "VectorValue", "expr": e} }, - peg$c340 = "|{", - peg$c341 = peg$literalExpectation("|{", false), - peg$c342 = "}|", - peg$c343 = peg$literalExpectation("}|", false), - peg$c344 = function(exprs) { - return {"kind": "MapExpr", "entries": exprs} - }, - peg$c345 = function(e) { return e }, - peg$c346 = function(key, value) { - return {"key": key, "value": value} - }, - peg$c347 = function(selection, from, joins, where, groupby, having, orderby, limit) { - return { - - "kind": "SQLExpr", - - "select": selection, - - "from": from, - - "joins": joins, - - "where": where, - - "group_by": groupby, - - "having": having, - - "order_by": orderby, - - "limit": limit} - - }, - peg$c348 = function(assignments) { return assignments }, - peg$c349 = function(rhs, opt) { - let m = {"kind": "Assignment", "lhs": null, "rhs": rhs} - if (opt) { - m["lhs"] = opt[3] - } - return m - }, - peg$c350 = function(table, alias) { - return {"table": table, "alias": alias} - }, - peg$c351 = function(first, join) { return join }, - peg$c352 = function(style, table, alias, leftKey, rightKey) { - return { - - "table": table, - - "style": style, - - "left_key": leftKey, - - "right_key": rightKey, - - "alias": alias} - - }, - peg$c353 = function(style) { return style }, - peg$c354 = function(keys, order) { - return {"kind": "SQLOrderBy", "keys": keys, "order": order} - }, - peg$c355 = function(dir) { return dir }, - peg$c356 = function(count) { return count }, - peg$c357 = peg$literalExpectation("select", true), - peg$c358 = function() { return "select" }, - peg$c359 = "as", - peg$c360 = peg$literalExpectation("as", true), - peg$c361 = function() { return "as" }, - peg$c362 = peg$literalExpectation("from", true), - peg$c363 = function() { return "from" }, - peg$c364 = peg$literalExpectation("join", true), - peg$c365 = function() { return "join" }, - peg$c366 = peg$literalExpectation("where", true), - peg$c367 = function() { return "where" }, - peg$c368 = "group", - peg$c369 = peg$literalExpectation("group", true), - peg$c370 = function() { return "group" }, - peg$c371 = "by", - peg$c372 = peg$literalExpectation("by", true), - peg$c373 = function() { return "by" }, - peg$c374 = "having", - peg$c375 = peg$literalExpectation("having", true), - peg$c376 = function() { return "having" }, - peg$c377 = peg$literalExpectation("order", true), - peg$c378 = function() { return "order" }, - peg$c379 = "on", - peg$c380 = peg$literalExpectation("on", true), - peg$c381 = function() { return "on" }, - peg$c382 = "limit", - peg$c383 = peg$literalExpectation("limit", true), - peg$c384 = function() { return "limit" }, - peg$c385 = "asc", - peg$c386 = peg$literalExpectation("asc", true), - peg$c387 = "desc", - peg$c388 = peg$literalExpectation("desc", true), - peg$c389 = peg$literalExpectation("anti", true), - peg$c390 = peg$literalExpectation("left", true), - peg$c391 = peg$literalExpectation("right", true), - peg$c392 = peg$literalExpectation("inner", true), - peg$c393 = function(v) { - return {"kind": "Primitive", "type": "net", "text": v} - }, - peg$c394 = function(v) { - return {"kind": "Primitive", "type": "ip", "text": v} - }, - peg$c395 = function(v) { - return {"kind": "Primitive", "type": "float64", "text": v} - }, - peg$c396 = function(v) { - return {"kind": "Primitive", "type": "int64", "text": v} - }, - peg$c397 = function() { return {"kind": "Primitive", "type": "bool", "text": "true"} }, - peg$c398 = function() { return {"kind": "Primitive", "type": "bool", "text": "false"} }, - peg$c399 = function() { return {"kind": "Primitive", "type": "null", "text": ""} }, - peg$c400 = "0x", - peg$c401 = peg$literalExpectation("0x", false), - peg$c402 = function() { - return {"kind": "Primitive", "type": "bytes", "text": text()} - }, - peg$c403 = function(typ) { - return {"kind": "TypeValue", "value": typ} - }, - peg$c404 = function(name) { return name }, - peg$c405 = "error", - peg$c406 = peg$literalExpectation("error", false), - peg$c407 = function(t) { - return {"kind": "TypeError", "type": t} - }, - peg$c408 = function(name, opt) { - if (opt) { - return {"kind": "TypeDef", "name": name, "type": opt[3]} - } - return {"kind": "TypeName", "name": name} - }, - peg$c409 = function(name) { - return {"kind": "TypeName", "name": name} - }, - peg$c410 = function(u) { return u }, - peg$c411 = function(types) { - return {"kind": "TypeUnion", "types": types} - }, - peg$c412 = function(fields) { - return {"kind": "TypeRecord", "fields": fields} - }, - peg$c413 = function(typ) { - return {"kind": "TypeArray", "type": typ} - }, - peg$c414 = function(typ) { - return {"kind": "TypeSet", "type": typ} - }, - peg$c415 = function(keyType, valType) { - return {"kind": "TypeMap", "key_type": keyType, "val_type": valType} - }, - peg$c416 = function(v) { - if (v.length == 0) { - return {"kind": "Primitive", "type": "string", "text": ""} - } - return makeTemplateExprChain(v) - }, - peg$c417 = "\"", - peg$c418 = peg$literalExpectation("\"", false), - peg$c419 = "'", - peg$c420 = peg$literalExpectation("'", false), - peg$c421 = function(v) { - return {"kind": "Primitive", "type": "string", "text": joinChars(v)} - }, - peg$c422 = "\\", - peg$c423 = peg$literalExpectation("\\", false), - peg$c424 = "${", - peg$c425 = peg$literalExpectation("${", false), - peg$c426 = function(e) { - return { - - "kind": "Cast", - - "expr": e, - - "type": { - - "kind": "TypeValue", - - "value": {"kind": "TypePrimitive", "name": "string"}}} - - }, - peg$c427 = "uint8", - peg$c428 = peg$literalExpectation("uint8", false), - peg$c429 = "uint16", - peg$c430 = peg$literalExpectation("uint16", false), - peg$c431 = "uint32", - peg$c432 = peg$literalExpectation("uint32", false), - peg$c433 = "uint64", - peg$c434 = peg$literalExpectation("uint64", false), - peg$c435 = "int8", - peg$c436 = peg$literalExpectation("int8", false), - peg$c437 = "int16", - peg$c438 = peg$literalExpectation("int16", false), - peg$c439 = "int32", - peg$c440 = peg$literalExpectation("int32", false), - peg$c441 = "int64", - peg$c442 = peg$literalExpectation("int64", false), - peg$c443 = "float16", - peg$c444 = peg$literalExpectation("float16", false), - peg$c445 = "float32", - peg$c446 = peg$literalExpectation("float32", false), - peg$c447 = "float64", - peg$c448 = peg$literalExpectation("float64", false), - peg$c449 = "bool", - peg$c450 = peg$literalExpectation("bool", false), - peg$c451 = "string", - peg$c452 = peg$literalExpectation("string", false), - peg$c453 = "duration", - peg$c454 = peg$literalExpectation("duration", false), - peg$c455 = "time", - peg$c456 = peg$literalExpectation("time", false), - peg$c457 = "bytes", - peg$c458 = peg$literalExpectation("bytes", false), - peg$c459 = "ip", - peg$c460 = peg$literalExpectation("ip", false), - peg$c461 = "net", - peg$c462 = peg$literalExpectation("net", false), - peg$c463 = "null", - peg$c464 = peg$literalExpectation("null", false), - peg$c465 = function() { - return {"kind": "TypePrimitive", "name": text()} - }, - peg$c466 = function(name, typ) { - return {"name": name, "type": typ} - }, - peg$c467 = "and", - peg$c468 = peg$literalExpectation("and", false), - peg$c469 = "AND", - peg$c470 = peg$literalExpectation("AND", false), - peg$c471 = function() { return "and" }, - peg$c472 = peg$literalExpectation("by", false), - peg$c473 = "false", - peg$c474 = peg$literalExpectation("false", false), - peg$c475 = "NOT", - peg$c476 = peg$literalExpectation("NOT", false), - peg$c477 = function() { return "not" }, - peg$c478 = "or", - peg$c479 = peg$literalExpectation("or", false), - peg$c480 = "OR", - peg$c481 = peg$literalExpectation("OR", false), - peg$c482 = function() { return "or" }, - peg$c483 = "true", - peg$c484 = peg$literalExpectation("true", false), - peg$c485 = function(id) { return {"kind": "ID", "name": id} }, - peg$c486 = "$", - peg$c487 = peg$literalExpectation("$", false), - peg$c488 = function(first, id) { return id }, - peg$c489 = "_", - peg$c490 = peg$literalExpectation("_", false), - peg$c491 = "T", - peg$c492 = peg$literalExpectation("T", false), - peg$c493 = function() { - return {"kind": "Primitive", "type": "time", "text": text()} - }, - peg$c494 = /^[0-9]/, - peg$c495 = peg$classExpectation([["0", "9"]], false, false), - peg$c496 = "Z", - peg$c497 = peg$literalExpectation("Z", false), - peg$c498 = function() { - return {"kind": "Primitive", "type": "duration", "text": text()} - }, - peg$c499 = "ns", - peg$c500 = peg$literalExpectation("ns", false), - peg$c501 = "us", - peg$c502 = peg$literalExpectation("us", false), - peg$c503 = "ms", - peg$c504 = peg$literalExpectation("ms", false), - peg$c505 = "s", - peg$c506 = peg$literalExpectation("s", false), - peg$c507 = "m", - peg$c508 = peg$literalExpectation("m", false), - peg$c509 = "h", - peg$c510 = peg$literalExpectation("h", false), - peg$c511 = "d", - peg$c512 = peg$literalExpectation("d", false), - peg$c513 = "w", - peg$c514 = peg$literalExpectation("w", false), - peg$c515 = "y", - peg$c516 = peg$literalExpectation("y", false), - peg$c517 = function(a, b) { - return joinChars(a) + b - }, - peg$c518 = "::", - peg$c519 = peg$literalExpectation("::", false), - peg$c520 = function(a, b, d, e) { - return a + joinChars(b) + "::" + joinChars(d) + e - }, - peg$c521 = function(a, b) { - return "::" + joinChars(a) + b - }, - peg$c522 = function(a, b) { - return a + joinChars(b) + "::" - }, - peg$c523 = function() { - return "::" - }, - peg$c524 = function(v) { return ":" + v }, - peg$c525 = function(v) { return v + ":" }, - peg$c526 = function(a, m) { - return a + "/" + m; - }, - peg$c527 = function(s) { return parseInt(s) }, - peg$c528 = function() { - return text() - }, - peg$c529 = "e", - peg$c530 = peg$literalExpectation("e", true), - peg$c531 = /^[+\-]/, - peg$c532 = peg$classExpectation(["+", "-"], false, false), - peg$c533 = "NaN", - peg$c534 = peg$literalExpectation("NaN", false), - peg$c535 = "Inf", - peg$c536 = peg$literalExpectation("Inf", false), - peg$c537 = /^[0-9a-fA-F]/, - peg$c538 = peg$classExpectation([["0", "9"], ["a", "f"], ["A", "F"]], false, false), - peg$c539 = function(v) { return joinChars(v) }, - peg$c540 = peg$anyExpectation(), - peg$c541 = function(head, tail) { return head + joinChars(tail) }, - peg$c542 = /^[_.:\/%#@~]/, - peg$c543 = peg$classExpectation(["_", ".", ":", "/", "%", "#", "@", "~"], false, false), - peg$c544 = function(head, tail) { - return head + joinChars(tail) - }, - peg$c545 = function() { return "*" }, - peg$c546 = function() { return "=" }, - peg$c547 = function() { return "\\*" }, - peg$c548 = "b", - peg$c549 = peg$literalExpectation("b", false), - peg$c550 = function() { return "\b" }, - peg$c551 = "f", - peg$c552 = peg$literalExpectation("f", false), - peg$c553 = function() { return "\f" }, - peg$c554 = "n", - peg$c555 = peg$literalExpectation("n", false), - peg$c556 = function() { return "\n" }, - peg$c557 = "r", - peg$c558 = peg$literalExpectation("r", false), - peg$c559 = function() { return "\r" }, - peg$c560 = "t", - peg$c561 = peg$literalExpectation("t", false), - peg$c562 = function() { return "\t" }, - peg$c563 = "v", - peg$c564 = peg$literalExpectation("v", false), - peg$c565 = function() { return "\v" }, - peg$c566 = "u", - peg$c567 = peg$literalExpectation("u", false), - peg$c568 = function(chars) { - return makeUnicodeChar(chars) - }, - peg$c569 = /^[^\/\\]/, - peg$c570 = peg$classExpectation(["/", "\\"], true, false), - peg$c571 = /^[\0-\x1F\\]/, - peg$c572 = peg$classExpectation([["\0", "\x1F"], "\\"], false, false), - peg$c573 = /^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/, - peg$c574 = peg$classExpectation([["a", "z"], "\xB5", ["\xDF", "\xF6"], ["\xF8", "\xFF"], "\u0101", "\u0103", "\u0105", "\u0107", "\u0109", "\u010B", "\u010D", "\u010F", "\u0111", "\u0113", "\u0115", "\u0117", "\u0119", "\u011B", "\u011D", "\u011F", "\u0121", "\u0123", "\u0125", "\u0127", "\u0129", "\u012B", "\u012D", "\u012F", "\u0131", "\u0133", "\u0135", ["\u0137", "\u0138"], "\u013A", "\u013C", "\u013E", "\u0140", "\u0142", "\u0144", "\u0146", ["\u0148", "\u0149"], "\u014B", "\u014D", "\u014F", "\u0151", "\u0153", "\u0155", "\u0157", "\u0159", "\u015B", "\u015D", "\u015F", "\u0161", "\u0163", "\u0165", "\u0167", "\u0169", "\u016B", "\u016D", "\u016F", "\u0171", "\u0173", "\u0175", "\u0177", "\u017A", "\u017C", ["\u017E", "\u0180"], "\u0183", "\u0185", "\u0188", ["\u018C", "\u018D"], "\u0192", "\u0195", ["\u0199", "\u019B"], "\u019E", "\u01A1", "\u01A3", "\u01A5", "\u01A8", ["\u01AA", "\u01AB"], "\u01AD", "\u01B0", "\u01B4", "\u01B6", ["\u01B9", "\u01BA"], ["\u01BD", "\u01BF"], "\u01C6", "\u01C9", "\u01CC", "\u01CE", "\u01D0", "\u01D2", "\u01D4", "\u01D6", "\u01D8", "\u01DA", ["\u01DC", "\u01DD"], "\u01DF", "\u01E1", "\u01E3", "\u01E5", "\u01E7", "\u01E9", "\u01EB", "\u01ED", ["\u01EF", "\u01F0"], "\u01F3", "\u01F5", "\u01F9", "\u01FB", "\u01FD", "\u01FF", "\u0201", "\u0203", "\u0205", "\u0207", "\u0209", "\u020B", "\u020D", "\u020F", "\u0211", "\u0213", "\u0215", "\u0217", "\u0219", "\u021B", "\u021D", "\u021F", "\u0221", "\u0223", "\u0225", "\u0227", "\u0229", "\u022B", "\u022D", "\u022F", "\u0231", ["\u0233", "\u0239"], "\u023C", ["\u023F", "\u0240"], "\u0242", "\u0247", "\u0249", "\u024B", "\u024D", ["\u024F", "\u0293"], ["\u0295", "\u02AF"], "\u0371", "\u0373", "\u0377", ["\u037B", "\u037D"], "\u0390", ["\u03AC", "\u03CE"], ["\u03D0", "\u03D1"], ["\u03D5", "\u03D7"], "\u03D9", "\u03DB", "\u03DD", "\u03DF", "\u03E1", "\u03E3", "\u03E5", "\u03E7", "\u03E9", "\u03EB", "\u03ED", ["\u03EF", "\u03F3"], "\u03F5", "\u03F8", ["\u03FB", "\u03FC"], ["\u0430", "\u045F"], "\u0461", "\u0463", "\u0465", "\u0467", "\u0469", "\u046B", "\u046D", "\u046F", "\u0471", "\u0473", "\u0475", "\u0477", "\u0479", "\u047B", "\u047D", "\u047F", "\u0481", "\u048B", "\u048D", "\u048F", "\u0491", "\u0493", "\u0495", "\u0497", "\u0499", "\u049B", "\u049D", "\u049F", "\u04A1", "\u04A3", "\u04A5", "\u04A7", "\u04A9", "\u04AB", "\u04AD", "\u04AF", "\u04B1", "\u04B3", "\u04B5", "\u04B7", "\u04B9", "\u04BB", "\u04BD", "\u04BF", "\u04C2", "\u04C4", "\u04C6", "\u04C8", "\u04CA", "\u04CC", ["\u04CE", "\u04CF"], "\u04D1", "\u04D3", "\u04D5", "\u04D7", "\u04D9", "\u04DB", "\u04DD", "\u04DF", "\u04E1", "\u04E3", "\u04E5", "\u04E7", "\u04E9", "\u04EB", "\u04ED", "\u04EF", "\u04F1", "\u04F3", "\u04F5", "\u04F7", "\u04F9", "\u04FB", "\u04FD", "\u04FF", "\u0501", "\u0503", "\u0505", "\u0507", "\u0509", "\u050B", "\u050D", "\u050F", "\u0511", "\u0513", "\u0515", "\u0517", "\u0519", "\u051B", "\u051D", "\u051F", "\u0521", "\u0523", "\u0525", "\u0527", "\u0529", "\u052B", "\u052D", "\u052F", ["\u0560", "\u0588"], ["\u10D0", "\u10FA"], ["\u10FD", "\u10FF"], ["\u13F8", "\u13FD"], ["\u1C80", "\u1C88"], ["\u1D00", "\u1D2B"], ["\u1D6B", "\u1D77"], ["\u1D79", "\u1D9A"], "\u1E01", "\u1E03", "\u1E05", "\u1E07", "\u1E09", "\u1E0B", "\u1E0D", "\u1E0F", "\u1E11", "\u1E13", "\u1E15", "\u1E17", "\u1E19", "\u1E1B", "\u1E1D", "\u1E1F", "\u1E21", "\u1E23", "\u1E25", "\u1E27", "\u1E29", "\u1E2B", "\u1E2D", "\u1E2F", "\u1E31", "\u1E33", "\u1E35", "\u1E37", "\u1E39", "\u1E3B", "\u1E3D", "\u1E3F", "\u1E41", "\u1E43", "\u1E45", "\u1E47", "\u1E49", "\u1E4B", "\u1E4D", "\u1E4F", "\u1E51", "\u1E53", "\u1E55", "\u1E57", "\u1E59", "\u1E5B", "\u1E5D", "\u1E5F", "\u1E61", "\u1E63", "\u1E65", "\u1E67", "\u1E69", "\u1E6B", "\u1E6D", "\u1E6F", "\u1E71", "\u1E73", "\u1E75", "\u1E77", "\u1E79", "\u1E7B", "\u1E7D", "\u1E7F", "\u1E81", "\u1E83", "\u1E85", "\u1E87", "\u1E89", "\u1E8B", "\u1E8D", "\u1E8F", "\u1E91", "\u1E93", ["\u1E95", "\u1E9D"], "\u1E9F", "\u1EA1", "\u1EA3", "\u1EA5", "\u1EA7", "\u1EA9", "\u1EAB", "\u1EAD", "\u1EAF", "\u1EB1", "\u1EB3", "\u1EB5", "\u1EB7", "\u1EB9", "\u1EBB", "\u1EBD", "\u1EBF", "\u1EC1", "\u1EC3", "\u1EC5", "\u1EC7", "\u1EC9", "\u1ECB", "\u1ECD", "\u1ECF", "\u1ED1", "\u1ED3", "\u1ED5", "\u1ED7", "\u1ED9", "\u1EDB", "\u1EDD", "\u1EDF", "\u1EE1", "\u1EE3", "\u1EE5", "\u1EE7", "\u1EE9", "\u1EEB", "\u1EED", "\u1EEF", "\u1EF1", "\u1EF3", "\u1EF5", "\u1EF7", "\u1EF9", "\u1EFB", "\u1EFD", ["\u1EFF", "\u1F07"], ["\u1F10", "\u1F15"], ["\u1F20", "\u1F27"], ["\u1F30", "\u1F37"], ["\u1F40", "\u1F45"], ["\u1F50", "\u1F57"], ["\u1F60", "\u1F67"], ["\u1F70", "\u1F7D"], ["\u1F80", "\u1F87"], ["\u1F90", "\u1F97"], ["\u1FA0", "\u1FA7"], ["\u1FB0", "\u1FB4"], ["\u1FB6", "\u1FB7"], "\u1FBE", ["\u1FC2", "\u1FC4"], ["\u1FC6", "\u1FC7"], ["\u1FD0", "\u1FD3"], ["\u1FD6", "\u1FD7"], ["\u1FE0", "\u1FE7"], ["\u1FF2", "\u1FF4"], ["\u1FF6", "\u1FF7"], "\u210A", ["\u210E", "\u210F"], "\u2113", "\u212F", "\u2134", "\u2139", ["\u213C", "\u213D"], ["\u2146", "\u2149"], "\u214E", "\u2184", ["\u2C30", "\u2C5E"], "\u2C61", ["\u2C65", "\u2C66"], "\u2C68", "\u2C6A", "\u2C6C", "\u2C71", ["\u2C73", "\u2C74"], ["\u2C76", "\u2C7B"], "\u2C81", "\u2C83", "\u2C85", "\u2C87", "\u2C89", "\u2C8B", "\u2C8D", "\u2C8F", "\u2C91", "\u2C93", "\u2C95", "\u2C97", "\u2C99", "\u2C9B", "\u2C9D", "\u2C9F", "\u2CA1", "\u2CA3", "\u2CA5", "\u2CA7", "\u2CA9", "\u2CAB", "\u2CAD", "\u2CAF", "\u2CB1", "\u2CB3", "\u2CB5", "\u2CB7", "\u2CB9", "\u2CBB", "\u2CBD", "\u2CBF", "\u2CC1", "\u2CC3", "\u2CC5", "\u2CC7", "\u2CC9", "\u2CCB", "\u2CCD", "\u2CCF", "\u2CD1", "\u2CD3", "\u2CD5", "\u2CD7", "\u2CD9", "\u2CDB", "\u2CDD", "\u2CDF", "\u2CE1", ["\u2CE3", "\u2CE4"], "\u2CEC", "\u2CEE", "\u2CF3", ["\u2D00", "\u2D25"], "\u2D27", "\u2D2D", "\uA641", "\uA643", "\uA645", "\uA647", "\uA649", "\uA64B", "\uA64D", "\uA64F", "\uA651", "\uA653", "\uA655", "\uA657", "\uA659", "\uA65B", "\uA65D", "\uA65F", "\uA661", "\uA663", "\uA665", "\uA667", "\uA669", "\uA66B", "\uA66D", "\uA681", "\uA683", "\uA685", "\uA687", "\uA689", "\uA68B", "\uA68D", "\uA68F", "\uA691", "\uA693", "\uA695", "\uA697", "\uA699", "\uA69B", "\uA723", "\uA725", "\uA727", "\uA729", "\uA72B", "\uA72D", ["\uA72F", "\uA731"], "\uA733", "\uA735", "\uA737", "\uA739", "\uA73B", "\uA73D", "\uA73F", "\uA741", "\uA743", "\uA745", "\uA747", "\uA749", "\uA74B", "\uA74D", "\uA74F", "\uA751", "\uA753", "\uA755", "\uA757", "\uA759", "\uA75B", "\uA75D", "\uA75F", "\uA761", "\uA763", "\uA765", "\uA767", "\uA769", "\uA76B", "\uA76D", "\uA76F", ["\uA771", "\uA778"], "\uA77A", "\uA77C", "\uA77F", "\uA781", "\uA783", "\uA785", "\uA787", "\uA78C", "\uA78E", "\uA791", ["\uA793", "\uA795"], "\uA797", "\uA799", "\uA79B", "\uA79D", "\uA79F", "\uA7A1", "\uA7A3", "\uA7A5", "\uA7A7", "\uA7A9", "\uA7AF", "\uA7B5", "\uA7B7", "\uA7B9", "\uA7FA", ["\uAB30", "\uAB5A"], ["\uAB60", "\uAB65"], ["\uAB70", "\uABBF"], ["\uFB00", "\uFB06"], ["\uFB13", "\uFB17"], ["\uFF41", "\uFF5A"]], false, false), - peg$c575 = /^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/, - peg$c576 = peg$classExpectation([["\u02B0", "\u02C1"], ["\u02C6", "\u02D1"], ["\u02E0", "\u02E4"], "\u02EC", "\u02EE", "\u0374", "\u037A", "\u0559", "\u0640", ["\u06E5", "\u06E6"], ["\u07F4", "\u07F5"], "\u07FA", "\u081A", "\u0824", "\u0828", "\u0971", "\u0E46", "\u0EC6", "\u10FC", "\u17D7", "\u1843", "\u1AA7", ["\u1C78", "\u1C7D"], ["\u1D2C", "\u1D6A"], "\u1D78", ["\u1D9B", "\u1DBF"], "\u2071", "\u207F", ["\u2090", "\u209C"], ["\u2C7C", "\u2C7D"], "\u2D6F", "\u2E2F", "\u3005", ["\u3031", "\u3035"], "\u303B", ["\u309D", "\u309E"], ["\u30FC", "\u30FE"], "\uA015", ["\uA4F8", "\uA4FD"], "\uA60C", "\uA67F", ["\uA69C", "\uA69D"], ["\uA717", "\uA71F"], "\uA770", "\uA788", ["\uA7F8", "\uA7F9"], "\uA9CF", "\uA9E6", "\uAA70", "\uAADD", ["\uAAF3", "\uAAF4"], ["\uAB5C", "\uAB5F"], "\uFF70", ["\uFF9E", "\uFF9F"]], false, false), - peg$c577 = /^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05EF-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u09FC\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD-\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/, - peg$c578 = peg$classExpectation(["\xAA", "\xBA", "\u01BB", ["\u01C0", "\u01C3"], "\u0294", ["\u05D0", "\u05EA"], ["\u05EF", "\u05F2"], ["\u0620", "\u063F"], ["\u0641", "\u064A"], ["\u066E", "\u066F"], ["\u0671", "\u06D3"], "\u06D5", ["\u06EE", "\u06EF"], ["\u06FA", "\u06FC"], "\u06FF", "\u0710", ["\u0712", "\u072F"], ["\u074D", "\u07A5"], "\u07B1", ["\u07CA", "\u07EA"], ["\u0800", "\u0815"], ["\u0840", "\u0858"], ["\u0860", "\u086A"], ["\u08A0", "\u08B4"], ["\u08B6", "\u08BD"], ["\u0904", "\u0939"], "\u093D", "\u0950", ["\u0958", "\u0961"], ["\u0972", "\u0980"], ["\u0985", "\u098C"], ["\u098F", "\u0990"], ["\u0993", "\u09A8"], ["\u09AA", "\u09B0"], "\u09B2", ["\u09B6", "\u09B9"], "\u09BD", "\u09CE", ["\u09DC", "\u09DD"], ["\u09DF", "\u09E1"], ["\u09F0", "\u09F1"], "\u09FC", ["\u0A05", "\u0A0A"], ["\u0A0F", "\u0A10"], ["\u0A13", "\u0A28"], ["\u0A2A", "\u0A30"], ["\u0A32", "\u0A33"], ["\u0A35", "\u0A36"], ["\u0A38", "\u0A39"], ["\u0A59", "\u0A5C"], "\u0A5E", ["\u0A72", "\u0A74"], ["\u0A85", "\u0A8D"], ["\u0A8F", "\u0A91"], ["\u0A93", "\u0AA8"], ["\u0AAA", "\u0AB0"], ["\u0AB2", "\u0AB3"], ["\u0AB5", "\u0AB9"], "\u0ABD", "\u0AD0", ["\u0AE0", "\u0AE1"], "\u0AF9", ["\u0B05", "\u0B0C"], ["\u0B0F", "\u0B10"], ["\u0B13", "\u0B28"], ["\u0B2A", "\u0B30"], ["\u0B32", "\u0B33"], ["\u0B35", "\u0B39"], "\u0B3D", ["\u0B5C", "\u0B5D"], ["\u0B5F", "\u0B61"], "\u0B71", "\u0B83", ["\u0B85", "\u0B8A"], ["\u0B8E", "\u0B90"], ["\u0B92", "\u0B95"], ["\u0B99", "\u0B9A"], "\u0B9C", ["\u0B9E", "\u0B9F"], ["\u0BA3", "\u0BA4"], ["\u0BA8", "\u0BAA"], ["\u0BAE", "\u0BB9"], "\u0BD0", ["\u0C05", "\u0C0C"], ["\u0C0E", "\u0C10"], ["\u0C12", "\u0C28"], ["\u0C2A", "\u0C39"], "\u0C3D", ["\u0C58", "\u0C5A"], ["\u0C60", "\u0C61"], "\u0C80", ["\u0C85", "\u0C8C"], ["\u0C8E", "\u0C90"], ["\u0C92", "\u0CA8"], ["\u0CAA", "\u0CB3"], ["\u0CB5", "\u0CB9"], "\u0CBD", "\u0CDE", ["\u0CE0", "\u0CE1"], ["\u0CF1", "\u0CF2"], ["\u0D05", "\u0D0C"], ["\u0D0E", "\u0D10"], ["\u0D12", "\u0D3A"], "\u0D3D", "\u0D4E", ["\u0D54", "\u0D56"], ["\u0D5F", "\u0D61"], ["\u0D7A", "\u0D7F"], ["\u0D85", "\u0D96"], ["\u0D9A", "\u0DB1"], ["\u0DB3", "\u0DBB"], "\u0DBD", ["\u0DC0", "\u0DC6"], ["\u0E01", "\u0E30"], ["\u0E32", "\u0E33"], ["\u0E40", "\u0E45"], ["\u0E81", "\u0E82"], "\u0E84", ["\u0E87", "\u0E88"], "\u0E8A", "\u0E8D", ["\u0E94", "\u0E97"], ["\u0E99", "\u0E9F"], ["\u0EA1", "\u0EA3"], "\u0EA5", "\u0EA7", ["\u0EAA", "\u0EAB"], ["\u0EAD", "\u0EB0"], ["\u0EB2", "\u0EB3"], "\u0EBD", ["\u0EC0", "\u0EC4"], ["\u0EDC", "\u0EDF"], "\u0F00", ["\u0F40", "\u0F47"], ["\u0F49", "\u0F6C"], ["\u0F88", "\u0F8C"], ["\u1000", "\u102A"], "\u103F", ["\u1050", "\u1055"], ["\u105A", "\u105D"], "\u1061", ["\u1065", "\u1066"], ["\u106E", "\u1070"], ["\u1075", "\u1081"], "\u108E", ["\u1100", "\u1248"], ["\u124A", "\u124D"], ["\u1250", "\u1256"], "\u1258", ["\u125A", "\u125D"], ["\u1260", "\u1288"], ["\u128A", "\u128D"], ["\u1290", "\u12B0"], ["\u12B2", "\u12B5"], ["\u12B8", "\u12BE"], "\u12C0", ["\u12C2", "\u12C5"], ["\u12C8", "\u12D6"], ["\u12D8", "\u1310"], ["\u1312", "\u1315"], ["\u1318", "\u135A"], ["\u1380", "\u138F"], ["\u1401", "\u166C"], ["\u166F", "\u167F"], ["\u1681", "\u169A"], ["\u16A0", "\u16EA"], ["\u16F1", "\u16F8"], ["\u1700", "\u170C"], ["\u170E", "\u1711"], ["\u1720", "\u1731"], ["\u1740", "\u1751"], ["\u1760", "\u176C"], ["\u176E", "\u1770"], ["\u1780", "\u17B3"], "\u17DC", ["\u1820", "\u1842"], ["\u1844", "\u1878"], ["\u1880", "\u1884"], ["\u1887", "\u18A8"], "\u18AA", ["\u18B0", "\u18F5"], ["\u1900", "\u191E"], ["\u1950", "\u196D"], ["\u1970", "\u1974"], ["\u1980", "\u19AB"], ["\u19B0", "\u19C9"], ["\u1A00", "\u1A16"], ["\u1A20", "\u1A54"], ["\u1B05", "\u1B33"], ["\u1B45", "\u1B4B"], ["\u1B83", "\u1BA0"], ["\u1BAE", "\u1BAF"], ["\u1BBA", "\u1BE5"], ["\u1C00", "\u1C23"], ["\u1C4D", "\u1C4F"], ["\u1C5A", "\u1C77"], ["\u1CE9", "\u1CEC"], ["\u1CEE", "\u1CF1"], ["\u1CF5", "\u1CF6"], ["\u2135", "\u2138"], ["\u2D30", "\u2D67"], ["\u2D80", "\u2D96"], ["\u2DA0", "\u2DA6"], ["\u2DA8", "\u2DAE"], ["\u2DB0", "\u2DB6"], ["\u2DB8", "\u2DBE"], ["\u2DC0", "\u2DC6"], ["\u2DC8", "\u2DCE"], ["\u2DD0", "\u2DD6"], ["\u2DD8", "\u2DDE"], "\u3006", "\u303C", ["\u3041", "\u3096"], "\u309F", ["\u30A1", "\u30FA"], "\u30FF", ["\u3105", "\u312F"], ["\u3131", "\u318E"], ["\u31A0", "\u31BA"], ["\u31F0", "\u31FF"], ["\u3400", "\u4DB5"], ["\u4E00", "\u9FEF"], ["\uA000", "\uA014"], ["\uA016", "\uA48C"], ["\uA4D0", "\uA4F7"], ["\uA500", "\uA60B"], ["\uA610", "\uA61F"], ["\uA62A", "\uA62B"], "\uA66E", ["\uA6A0", "\uA6E5"], "\uA78F", "\uA7F7", ["\uA7FB", "\uA801"], ["\uA803", "\uA805"], ["\uA807", "\uA80A"], ["\uA80C", "\uA822"], ["\uA840", "\uA873"], ["\uA882", "\uA8B3"], ["\uA8F2", "\uA8F7"], "\uA8FB", ["\uA8FD", "\uA8FE"], ["\uA90A", "\uA925"], ["\uA930", "\uA946"], ["\uA960", "\uA97C"], ["\uA984", "\uA9B2"], ["\uA9E0", "\uA9E4"], ["\uA9E7", "\uA9EF"], ["\uA9FA", "\uA9FE"], ["\uAA00", "\uAA28"], ["\uAA40", "\uAA42"], ["\uAA44", "\uAA4B"], ["\uAA60", "\uAA6F"], ["\uAA71", "\uAA76"], "\uAA7A", ["\uAA7E", "\uAAAF"], "\uAAB1", ["\uAAB5", "\uAAB6"], ["\uAAB9", "\uAABD"], "\uAAC0", "\uAAC2", ["\uAADB", "\uAADC"], ["\uAAE0", "\uAAEA"], "\uAAF2", ["\uAB01", "\uAB06"], ["\uAB09", "\uAB0E"], ["\uAB11", "\uAB16"], ["\uAB20", "\uAB26"], ["\uAB28", "\uAB2E"], ["\uABC0", "\uABE2"], ["\uAC00", "\uD7A3"], ["\uD7B0", "\uD7C6"], ["\uD7CB", "\uD7FB"], ["\uF900", "\uFA6D"], ["\uFA70", "\uFAD9"], "\uFB1D", ["\uFB1F", "\uFB28"], ["\uFB2A", "\uFB36"], ["\uFB38", "\uFB3C"], "\uFB3E", ["\uFB40", "\uFB41"], ["\uFB43", "\uFB44"], ["\uFB46", "\uFBB1"], ["\uFBD3", "\uFD3D"], ["\uFD50", "\uFD8F"], ["\uFD92", "\uFDC7"], ["\uFDF0", "\uFDFB"], ["\uFE70", "\uFE74"], ["\uFE76", "\uFEFC"], ["\uFF66", "\uFF6F"], ["\uFF71", "\uFF9D"], ["\uFFA0", "\uFFBE"], ["\uFFC2", "\uFFC7"], ["\uFFCA", "\uFFCF"], ["\uFFD2", "\uFFD7"], ["\uFFDA", "\uFFDC"]], false, false), - peg$c579 = /^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/, - peg$c580 = peg$classExpectation(["\u01C5", "\u01C8", "\u01CB", "\u01F2", ["\u1F88", "\u1F8F"], ["\u1F98", "\u1F9F"], ["\u1FA8", "\u1FAF"], "\u1FBC", "\u1FCC", "\u1FFC"], false, false), - peg$c581 = /^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uFF21-\uFF3A]/, - peg$c582 = peg$classExpectation([["A", "Z"], ["\xC0", "\xD6"], ["\xD8", "\xDE"], "\u0100", "\u0102", "\u0104", "\u0106", "\u0108", "\u010A", "\u010C", "\u010E", "\u0110", "\u0112", "\u0114", "\u0116", "\u0118", "\u011A", "\u011C", "\u011E", "\u0120", "\u0122", "\u0124", "\u0126", "\u0128", "\u012A", "\u012C", "\u012E", "\u0130", "\u0132", "\u0134", "\u0136", "\u0139", "\u013B", "\u013D", "\u013F", "\u0141", "\u0143", "\u0145", "\u0147", "\u014A", "\u014C", "\u014E", "\u0150", "\u0152", "\u0154", "\u0156", "\u0158", "\u015A", "\u015C", "\u015E", "\u0160", "\u0162", "\u0164", "\u0166", "\u0168", "\u016A", "\u016C", "\u016E", "\u0170", "\u0172", "\u0174", "\u0176", ["\u0178", "\u0179"], "\u017B", "\u017D", ["\u0181", "\u0182"], "\u0184", ["\u0186", "\u0187"], ["\u0189", "\u018B"], ["\u018E", "\u0191"], ["\u0193", "\u0194"], ["\u0196", "\u0198"], ["\u019C", "\u019D"], ["\u019F", "\u01A0"], "\u01A2", "\u01A4", ["\u01A6", "\u01A7"], "\u01A9", "\u01AC", ["\u01AE", "\u01AF"], ["\u01B1", "\u01B3"], "\u01B5", ["\u01B7", "\u01B8"], "\u01BC", "\u01C4", "\u01C7", "\u01CA", "\u01CD", "\u01CF", "\u01D1", "\u01D3", "\u01D5", "\u01D7", "\u01D9", "\u01DB", "\u01DE", "\u01E0", "\u01E2", "\u01E4", "\u01E6", "\u01E8", "\u01EA", "\u01EC", "\u01EE", "\u01F1", "\u01F4", ["\u01F6", "\u01F8"], "\u01FA", "\u01FC", "\u01FE", "\u0200", "\u0202", "\u0204", "\u0206", "\u0208", "\u020A", "\u020C", "\u020E", "\u0210", "\u0212", "\u0214", "\u0216", "\u0218", "\u021A", "\u021C", "\u021E", "\u0220", "\u0222", "\u0224", "\u0226", "\u0228", "\u022A", "\u022C", "\u022E", "\u0230", "\u0232", ["\u023A", "\u023B"], ["\u023D", "\u023E"], "\u0241", ["\u0243", "\u0246"], "\u0248", "\u024A", "\u024C", "\u024E", "\u0370", "\u0372", "\u0376", "\u037F", "\u0386", ["\u0388", "\u038A"], "\u038C", ["\u038E", "\u038F"], ["\u0391", "\u03A1"], ["\u03A3", "\u03AB"], "\u03CF", ["\u03D2", "\u03D4"], "\u03D8", "\u03DA", "\u03DC", "\u03DE", "\u03E0", "\u03E2", "\u03E4", "\u03E6", "\u03E8", "\u03EA", "\u03EC", "\u03EE", "\u03F4", "\u03F7", ["\u03F9", "\u03FA"], ["\u03FD", "\u042F"], "\u0460", "\u0462", "\u0464", "\u0466", "\u0468", "\u046A", "\u046C", "\u046E", "\u0470", "\u0472", "\u0474", "\u0476", "\u0478", "\u047A", "\u047C", "\u047E", "\u0480", "\u048A", "\u048C", "\u048E", "\u0490", "\u0492", "\u0494", "\u0496", "\u0498", "\u049A", "\u049C", "\u049E", "\u04A0", "\u04A2", "\u04A4", "\u04A6", "\u04A8", "\u04AA", "\u04AC", "\u04AE", "\u04B0", "\u04B2", "\u04B4", "\u04B6", "\u04B8", "\u04BA", "\u04BC", "\u04BE", ["\u04C0", "\u04C1"], "\u04C3", "\u04C5", "\u04C7", "\u04C9", "\u04CB", "\u04CD", "\u04D0", "\u04D2", "\u04D4", "\u04D6", "\u04D8", "\u04DA", "\u04DC", "\u04DE", "\u04E0", "\u04E2", "\u04E4", "\u04E6", "\u04E8", "\u04EA", "\u04EC", "\u04EE", "\u04F0", "\u04F2", "\u04F4", "\u04F6", "\u04F8", "\u04FA", "\u04FC", "\u04FE", "\u0500", "\u0502", "\u0504", "\u0506", "\u0508", "\u050A", "\u050C", "\u050E", "\u0510", "\u0512", "\u0514", "\u0516", "\u0518", "\u051A", "\u051C", "\u051E", "\u0520", "\u0522", "\u0524", "\u0526", "\u0528", "\u052A", "\u052C", "\u052E", ["\u0531", "\u0556"], ["\u10A0", "\u10C5"], "\u10C7", "\u10CD", ["\u13A0", "\u13F5"], ["\u1C90", "\u1CBA"], ["\u1CBD", "\u1CBF"], "\u1E00", "\u1E02", "\u1E04", "\u1E06", "\u1E08", "\u1E0A", "\u1E0C", "\u1E0E", "\u1E10", "\u1E12", "\u1E14", "\u1E16", "\u1E18", "\u1E1A", "\u1E1C", "\u1E1E", "\u1E20", "\u1E22", "\u1E24", "\u1E26", "\u1E28", "\u1E2A", "\u1E2C", "\u1E2E", "\u1E30", "\u1E32", "\u1E34", "\u1E36", "\u1E38", "\u1E3A", "\u1E3C", "\u1E3E", "\u1E40", "\u1E42", "\u1E44", "\u1E46", "\u1E48", "\u1E4A", "\u1E4C", "\u1E4E", "\u1E50", "\u1E52", "\u1E54", "\u1E56", "\u1E58", "\u1E5A", "\u1E5C", "\u1E5E", "\u1E60", "\u1E62", "\u1E64", "\u1E66", "\u1E68", "\u1E6A", "\u1E6C", "\u1E6E", "\u1E70", "\u1E72", "\u1E74", "\u1E76", "\u1E78", "\u1E7A", "\u1E7C", "\u1E7E", "\u1E80", "\u1E82", "\u1E84", "\u1E86", "\u1E88", "\u1E8A", "\u1E8C", "\u1E8E", "\u1E90", "\u1E92", "\u1E94", "\u1E9E", "\u1EA0", "\u1EA2", "\u1EA4", "\u1EA6", "\u1EA8", "\u1EAA", "\u1EAC", "\u1EAE", "\u1EB0", "\u1EB2", "\u1EB4", "\u1EB6", "\u1EB8", "\u1EBA", "\u1EBC", "\u1EBE", "\u1EC0", "\u1EC2", "\u1EC4", "\u1EC6", "\u1EC8", "\u1ECA", "\u1ECC", "\u1ECE", "\u1ED0", "\u1ED2", "\u1ED4", "\u1ED6", "\u1ED8", "\u1EDA", "\u1EDC", "\u1EDE", "\u1EE0", "\u1EE2", "\u1EE4", "\u1EE6", "\u1EE8", "\u1EEA", "\u1EEC", "\u1EEE", "\u1EF0", "\u1EF2", "\u1EF4", "\u1EF6", "\u1EF8", "\u1EFA", "\u1EFC", "\u1EFE", ["\u1F08", "\u1F0F"], ["\u1F18", "\u1F1D"], ["\u1F28", "\u1F2F"], ["\u1F38", "\u1F3F"], ["\u1F48", "\u1F4D"], "\u1F59", "\u1F5B", "\u1F5D", "\u1F5F", ["\u1F68", "\u1F6F"], ["\u1FB8", "\u1FBB"], ["\u1FC8", "\u1FCB"], ["\u1FD8", "\u1FDB"], ["\u1FE8", "\u1FEC"], ["\u1FF8", "\u1FFB"], "\u2102", "\u2107", ["\u210B", "\u210D"], ["\u2110", "\u2112"], "\u2115", ["\u2119", "\u211D"], "\u2124", "\u2126", "\u2128", ["\u212A", "\u212D"], ["\u2130", "\u2133"], ["\u213E", "\u213F"], "\u2145", "\u2183", ["\u2C00", "\u2C2E"], "\u2C60", ["\u2C62", "\u2C64"], "\u2C67", "\u2C69", "\u2C6B", ["\u2C6D", "\u2C70"], "\u2C72", "\u2C75", ["\u2C7E", "\u2C80"], "\u2C82", "\u2C84", "\u2C86", "\u2C88", "\u2C8A", "\u2C8C", "\u2C8E", "\u2C90", "\u2C92", "\u2C94", "\u2C96", "\u2C98", "\u2C9A", "\u2C9C", "\u2C9E", "\u2CA0", "\u2CA2", "\u2CA4", "\u2CA6", "\u2CA8", "\u2CAA", "\u2CAC", "\u2CAE", "\u2CB0", "\u2CB2", "\u2CB4", "\u2CB6", "\u2CB8", "\u2CBA", "\u2CBC", "\u2CBE", "\u2CC0", "\u2CC2", "\u2CC4", "\u2CC6", "\u2CC8", "\u2CCA", "\u2CCC", "\u2CCE", "\u2CD0", "\u2CD2", "\u2CD4", "\u2CD6", "\u2CD8", "\u2CDA", "\u2CDC", "\u2CDE", "\u2CE0", "\u2CE2", "\u2CEB", "\u2CED", "\u2CF2", "\uA640", "\uA642", "\uA644", "\uA646", "\uA648", "\uA64A", "\uA64C", "\uA64E", "\uA650", "\uA652", "\uA654", "\uA656", "\uA658", "\uA65A", "\uA65C", "\uA65E", "\uA660", "\uA662", "\uA664", "\uA666", "\uA668", "\uA66A", "\uA66C", "\uA680", "\uA682", "\uA684", "\uA686", "\uA688", "\uA68A", "\uA68C", "\uA68E", "\uA690", "\uA692", "\uA694", "\uA696", "\uA698", "\uA69A", "\uA722", "\uA724", "\uA726", "\uA728", "\uA72A", "\uA72C", "\uA72E", "\uA732", "\uA734", "\uA736", "\uA738", "\uA73A", "\uA73C", "\uA73E", "\uA740", "\uA742", "\uA744", "\uA746", "\uA748", "\uA74A", "\uA74C", "\uA74E", "\uA750", "\uA752", "\uA754", "\uA756", "\uA758", "\uA75A", "\uA75C", "\uA75E", "\uA760", "\uA762", "\uA764", "\uA766", "\uA768", "\uA76A", "\uA76C", "\uA76E", "\uA779", "\uA77B", ["\uA77D", "\uA77E"], "\uA780", "\uA782", "\uA784", "\uA786", "\uA78B", "\uA78D", "\uA790", "\uA792", "\uA796", "\uA798", "\uA79A", "\uA79C", "\uA79E", "\uA7A0", "\uA7A2", "\uA7A4", "\uA7A6", "\uA7A8", ["\uA7AA", "\uA7AE"], ["\uA7B0", "\uA7B4"], "\uA7B6", "\uA7B8", ["\uFF21", "\uFF3A"]], false, false), - peg$c583 = /^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u1CF7\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/, - peg$c584 = peg$classExpectation(["\u0903", "\u093B", ["\u093E", "\u0940"], ["\u0949", "\u094C"], ["\u094E", "\u094F"], ["\u0982", "\u0983"], ["\u09BE", "\u09C0"], ["\u09C7", "\u09C8"], ["\u09CB", "\u09CC"], "\u09D7", "\u0A03", ["\u0A3E", "\u0A40"], "\u0A83", ["\u0ABE", "\u0AC0"], "\u0AC9", ["\u0ACB", "\u0ACC"], ["\u0B02", "\u0B03"], "\u0B3E", "\u0B40", ["\u0B47", "\u0B48"], ["\u0B4B", "\u0B4C"], "\u0B57", ["\u0BBE", "\u0BBF"], ["\u0BC1", "\u0BC2"], ["\u0BC6", "\u0BC8"], ["\u0BCA", "\u0BCC"], "\u0BD7", ["\u0C01", "\u0C03"], ["\u0C41", "\u0C44"], ["\u0C82", "\u0C83"], "\u0CBE", ["\u0CC0", "\u0CC4"], ["\u0CC7", "\u0CC8"], ["\u0CCA", "\u0CCB"], ["\u0CD5", "\u0CD6"], ["\u0D02", "\u0D03"], ["\u0D3E", "\u0D40"], ["\u0D46", "\u0D48"], ["\u0D4A", "\u0D4C"], "\u0D57", ["\u0D82", "\u0D83"], ["\u0DCF", "\u0DD1"], ["\u0DD8", "\u0DDF"], ["\u0DF2", "\u0DF3"], ["\u0F3E", "\u0F3F"], "\u0F7F", ["\u102B", "\u102C"], "\u1031", "\u1038", ["\u103B", "\u103C"], ["\u1056", "\u1057"], ["\u1062", "\u1064"], ["\u1067", "\u106D"], ["\u1083", "\u1084"], ["\u1087", "\u108C"], "\u108F", ["\u109A", "\u109C"], "\u17B6", ["\u17BE", "\u17C5"], ["\u17C7", "\u17C8"], ["\u1923", "\u1926"], ["\u1929", "\u192B"], ["\u1930", "\u1931"], ["\u1933", "\u1938"], ["\u1A19", "\u1A1A"], "\u1A55", "\u1A57", "\u1A61", ["\u1A63", "\u1A64"], ["\u1A6D", "\u1A72"], "\u1B04", "\u1B35", "\u1B3B", ["\u1B3D", "\u1B41"], ["\u1B43", "\u1B44"], "\u1B82", "\u1BA1", ["\u1BA6", "\u1BA7"], "\u1BAA", "\u1BE7", ["\u1BEA", "\u1BEC"], "\u1BEE", ["\u1BF2", "\u1BF3"], ["\u1C24", "\u1C2B"], ["\u1C34", "\u1C35"], "\u1CE1", ["\u1CF2", "\u1CF3"], "\u1CF7", ["\u302E", "\u302F"], ["\uA823", "\uA824"], "\uA827", ["\uA880", "\uA881"], ["\uA8B4", "\uA8C3"], ["\uA952", "\uA953"], "\uA983", ["\uA9B4", "\uA9B5"], ["\uA9BA", "\uA9BB"], ["\uA9BD", "\uA9C0"], ["\uAA2F", "\uAA30"], ["\uAA33", "\uAA34"], "\uAA4D", "\uAA7B", "\uAA7D", "\uAAEB", ["\uAAEE", "\uAAEF"], "\uAAF5", ["\uABE3", "\uABE4"], ["\uABE6", "\uABE7"], ["\uABE9", "\uABEA"], "\uABEC"], false, false), - peg$c585 = /^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u09FE\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D00-\u0D01\u0D3B-\u0D3C\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885-\u1886\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/, - peg$c586 = peg$classExpectation([["\u0300", "\u036F"], ["\u0483", "\u0487"], ["\u0591", "\u05BD"], "\u05BF", ["\u05C1", "\u05C2"], ["\u05C4", "\u05C5"], "\u05C7", ["\u0610", "\u061A"], ["\u064B", "\u065F"], "\u0670", ["\u06D6", "\u06DC"], ["\u06DF", "\u06E4"], ["\u06E7", "\u06E8"], ["\u06EA", "\u06ED"], "\u0711", ["\u0730", "\u074A"], ["\u07A6", "\u07B0"], ["\u07EB", "\u07F3"], "\u07FD", ["\u0816", "\u0819"], ["\u081B", "\u0823"], ["\u0825", "\u0827"], ["\u0829", "\u082D"], ["\u0859", "\u085B"], ["\u08D3", "\u08E1"], ["\u08E3", "\u0902"], "\u093A", "\u093C", ["\u0941", "\u0948"], "\u094D", ["\u0951", "\u0957"], ["\u0962", "\u0963"], "\u0981", "\u09BC", ["\u09C1", "\u09C4"], "\u09CD", ["\u09E2", "\u09E3"], "\u09FE", ["\u0A01", "\u0A02"], "\u0A3C", ["\u0A41", "\u0A42"], ["\u0A47", "\u0A48"], ["\u0A4B", "\u0A4D"], "\u0A51", ["\u0A70", "\u0A71"], "\u0A75", ["\u0A81", "\u0A82"], "\u0ABC", ["\u0AC1", "\u0AC5"], ["\u0AC7", "\u0AC8"], "\u0ACD", ["\u0AE2", "\u0AE3"], ["\u0AFA", "\u0AFF"], "\u0B01", "\u0B3C", "\u0B3F", ["\u0B41", "\u0B44"], "\u0B4D", "\u0B56", ["\u0B62", "\u0B63"], "\u0B82", "\u0BC0", "\u0BCD", "\u0C00", "\u0C04", ["\u0C3E", "\u0C40"], ["\u0C46", "\u0C48"], ["\u0C4A", "\u0C4D"], ["\u0C55", "\u0C56"], ["\u0C62", "\u0C63"], "\u0C81", "\u0CBC", "\u0CBF", "\u0CC6", ["\u0CCC", "\u0CCD"], ["\u0CE2", "\u0CE3"], ["\u0D00", "\u0D01"], ["\u0D3B", "\u0D3C"], ["\u0D41", "\u0D44"], "\u0D4D", ["\u0D62", "\u0D63"], "\u0DCA", ["\u0DD2", "\u0DD4"], "\u0DD6", "\u0E31", ["\u0E34", "\u0E3A"], ["\u0E47", "\u0E4E"], "\u0EB1", ["\u0EB4", "\u0EB9"], ["\u0EBB", "\u0EBC"], ["\u0EC8", "\u0ECD"], ["\u0F18", "\u0F19"], "\u0F35", "\u0F37", "\u0F39", ["\u0F71", "\u0F7E"], ["\u0F80", "\u0F84"], ["\u0F86", "\u0F87"], ["\u0F8D", "\u0F97"], ["\u0F99", "\u0FBC"], "\u0FC6", ["\u102D", "\u1030"], ["\u1032", "\u1037"], ["\u1039", "\u103A"], ["\u103D", "\u103E"], ["\u1058", "\u1059"], ["\u105E", "\u1060"], ["\u1071", "\u1074"], "\u1082", ["\u1085", "\u1086"], "\u108D", "\u109D", ["\u135D", "\u135F"], ["\u1712", "\u1714"], ["\u1732", "\u1734"], ["\u1752", "\u1753"], ["\u1772", "\u1773"], ["\u17B4", "\u17B5"], ["\u17B7", "\u17BD"], "\u17C6", ["\u17C9", "\u17D3"], "\u17DD", ["\u180B", "\u180D"], ["\u1885", "\u1886"], "\u18A9", ["\u1920", "\u1922"], ["\u1927", "\u1928"], "\u1932", ["\u1939", "\u193B"], ["\u1A17", "\u1A18"], "\u1A1B", "\u1A56", ["\u1A58", "\u1A5E"], "\u1A60", "\u1A62", ["\u1A65", "\u1A6C"], ["\u1A73", "\u1A7C"], "\u1A7F", ["\u1AB0", "\u1ABD"], ["\u1B00", "\u1B03"], "\u1B34", ["\u1B36", "\u1B3A"], "\u1B3C", "\u1B42", ["\u1B6B", "\u1B73"], ["\u1B80", "\u1B81"], ["\u1BA2", "\u1BA5"], ["\u1BA8", "\u1BA9"], ["\u1BAB", "\u1BAD"], "\u1BE6", ["\u1BE8", "\u1BE9"], "\u1BED", ["\u1BEF", "\u1BF1"], ["\u1C2C", "\u1C33"], ["\u1C36", "\u1C37"], ["\u1CD0", "\u1CD2"], ["\u1CD4", "\u1CE0"], ["\u1CE2", "\u1CE8"], "\u1CED", "\u1CF4", ["\u1CF8", "\u1CF9"], ["\u1DC0", "\u1DF9"], ["\u1DFB", "\u1DFF"], ["\u20D0", "\u20DC"], "\u20E1", ["\u20E5", "\u20F0"], ["\u2CEF", "\u2CF1"], "\u2D7F", ["\u2DE0", "\u2DFF"], ["\u302A", "\u302D"], ["\u3099", "\u309A"], "\uA66F", ["\uA674", "\uA67D"], ["\uA69E", "\uA69F"], ["\uA6F0", "\uA6F1"], "\uA802", "\uA806", "\uA80B", ["\uA825", "\uA826"], ["\uA8C4", "\uA8C5"], ["\uA8E0", "\uA8F1"], "\uA8FF", ["\uA926", "\uA92D"], ["\uA947", "\uA951"], ["\uA980", "\uA982"], "\uA9B3", ["\uA9B6", "\uA9B9"], "\uA9BC", "\uA9E5", ["\uAA29", "\uAA2E"], ["\uAA31", "\uAA32"], ["\uAA35", "\uAA36"], "\uAA43", "\uAA4C", "\uAA7C", "\uAAB0", ["\uAAB2", "\uAAB4"], ["\uAAB7", "\uAAB8"], ["\uAABE", "\uAABF"], "\uAAC1", ["\uAAEC", "\uAAED"], "\uAAF6", "\uABE5", "\uABE8", "\uABED", "\uFB1E", ["\uFE00", "\uFE0F"], ["\uFE20", "\uFE2F"]], false, false), - peg$c587 = /^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/, - peg$c588 = peg$classExpectation([["0", "9"], ["\u0660", "\u0669"], ["\u06F0", "\u06F9"], ["\u07C0", "\u07C9"], ["\u0966", "\u096F"], ["\u09E6", "\u09EF"], ["\u0A66", "\u0A6F"], ["\u0AE6", "\u0AEF"], ["\u0B66", "\u0B6F"], ["\u0BE6", "\u0BEF"], ["\u0C66", "\u0C6F"], ["\u0CE6", "\u0CEF"], ["\u0D66", "\u0D6F"], ["\u0DE6", "\u0DEF"], ["\u0E50", "\u0E59"], ["\u0ED0", "\u0ED9"], ["\u0F20", "\u0F29"], ["\u1040", "\u1049"], ["\u1090", "\u1099"], ["\u17E0", "\u17E9"], ["\u1810", "\u1819"], ["\u1946", "\u194F"], ["\u19D0", "\u19D9"], ["\u1A80", "\u1A89"], ["\u1A90", "\u1A99"], ["\u1B50", "\u1B59"], ["\u1BB0", "\u1BB9"], ["\u1C40", "\u1C49"], ["\u1C50", "\u1C59"], ["\uA620", "\uA629"], ["\uA8D0", "\uA8D9"], ["\uA900", "\uA909"], ["\uA9D0", "\uA9D9"], ["\uA9F0", "\uA9F9"], ["\uAA50", "\uAA59"], ["\uABF0", "\uABF9"], ["\uFF10", "\uFF19"]], false, false), - peg$c589 = /^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/, - peg$c590 = peg$classExpectation([["\u16EE", "\u16F0"], ["\u2160", "\u2182"], ["\u2185", "\u2188"], "\u3007", ["\u3021", "\u3029"], ["\u3038", "\u303A"], ["\uA6E6", "\uA6EF"]], false, false), - peg$c591 = /^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/, - peg$c592 = peg$classExpectation(["_", ["\u203F", "\u2040"], "\u2054", ["\uFE33", "\uFE34"], ["\uFE4D", "\uFE4F"], "\uFF3F"], false, false), - peg$c593 = /^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, - peg$c594 = peg$classExpectation([" ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false), - peg$c595 = peg$otherExpectation("whitespace"), - peg$c596 = "\t", - peg$c597 = peg$literalExpectation("\t", false), - peg$c598 = "\x0B", - peg$c599 = peg$literalExpectation("\x0B", false), - peg$c600 = "\f", - peg$c601 = peg$literalExpectation("\f", false), - peg$c602 = " ", - peg$c603 = peg$literalExpectation(" ", false), - peg$c604 = "\xA0", - peg$c605 = peg$literalExpectation("\xA0", false), - peg$c606 = "\uFEFF", - peg$c607 = peg$literalExpectation("\uFEFF", false), - peg$c608 = /^[\n\r\u2028\u2029]/, - peg$c609 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false), - peg$c610 = peg$otherExpectation("comment"), - peg$c611 = "/*", - peg$c612 = peg$literalExpectation("/*", false), - peg$c613 = "*/", - peg$c614 = peg$literalExpectation("*/", false), - peg$c615 = "//", - peg$c616 = peg$literalExpectation("//", false), - - peg$currPos = 0, - peg$savedPos = 0, - peg$posDetailsCache = [{ line: 1, column: 1 }], - peg$maxFailPos = 0, - peg$maxFailExpected = [], - peg$silentFails = 0, - - peg$result; - - if ("startRule" in options) { - if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); - } - - peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; - } - - function text() { - return input.substring(peg$savedPos, peg$currPos); - } - - function location() { - return peg$computeLocation(peg$savedPos, peg$currPos); - } - - function expected(description, location) { - location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos) - - throw peg$buildStructuredError( - [peg$otherExpectation(description)], - input.substring(peg$savedPos, peg$currPos), - location - ); - } - - function error(message, location) { - location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos) - - throw peg$buildSimpleError(message, location); - } - - function peg$literalExpectation(text, ignoreCase) { - return { type: "literal", text: text, ignoreCase: ignoreCase }; - } - - function peg$classExpectation(parts, inverted, ignoreCase) { - return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase }; - } - - function peg$anyExpectation() { - return { type: "any" }; - } - - function peg$endExpectation() { - return { type: "end" }; - } - - function peg$otherExpectation(description) { - return { type: "other", description: description }; - } - - function peg$computePosDetails(pos) { - var details = peg$posDetailsCache[pos], p; - - if (details) { - return details; - } else { - p = pos - 1; - while (!peg$posDetailsCache[p]) { - p--; - } - - details = peg$posDetailsCache[p]; - details = { - line: details.line, - column: details.column - }; - - while (p < pos) { - if (input.charCodeAt(p) === 10) { - details.line++; - details.column = 1; - } else { - details.column++; - } - - p++; - } - - peg$posDetailsCache[pos] = details; - return details; - } - } - - function peg$computeLocation(startPos, endPos) { - var startPosDetails = peg$computePosDetails(startPos), - endPosDetails = peg$computePosDetails(endPos); - - return { - start: { - offset: startPos, - line: startPosDetails.line, - column: startPosDetails.column - }, - end: { - offset: endPos, - line: endPosDetails.line, - column: endPosDetails.column - } - }; - } - - function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { return; } - - if (peg$currPos > peg$maxFailPos) { - peg$maxFailPos = peg$currPos; - peg$maxFailExpected = []; - } - - peg$maxFailExpected.push(expected); - } - - function peg$buildSimpleError(message, location) { - return new peg$SyntaxError(message, null, null, location); - } - - function peg$buildStructuredError(expected, found, location) { - return new peg$SyntaxError( - peg$SyntaxError.buildMessage(expected, found), - expected, - found, - location - ); - } - - function peg$parsestart() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseScope(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEOF(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c0(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseSeq(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEOF(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseScope() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseDecl(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseDecl(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseSeq(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c2(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSeq() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseOperation(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseSeqTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseSeqTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSeqTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePipe(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseOperation(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c4(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDecl() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parseConstDecl(); - if (s1 === peg$FAILED) { - s1 = peg$parseFuncDecl(); - if (s1 === peg$FAILED) { - s1 = peg$parseOpDecl(); - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseConstDecl() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c6) { - s1 = peg$c6; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c7); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s5 = peg$c8; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseConditionalExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c10(s3, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c11) { - s1 = peg$c11; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c12); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 === peg$FAILED) { - s3 = peg$parseQuotedString(); - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s5 = peg$c8; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseType(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c13(s3, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseFuncDecl() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c14) { - s1 = peg$c14; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c15); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierNames(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s9 = peg$c18; - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s11 = peg$c20; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parse__(); - if (s12 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s13 = peg$c16; - peg$currPos++; - } else { - s13 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s13 !== peg$FAILED) { - s14 = peg$parse__(); - if (s14 !== peg$FAILED) { - s15 = peg$parseConditionalExpr(); - if (s15 !== peg$FAILED) { - s16 = peg$parse__(); - if (s16 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s17 = peg$c18; - peg$currPos++; - } else { - s17 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s17 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c22(s3, s7, s15); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOpDecl() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16, s17; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c23) { - s1 = peg$c23; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c24); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseIdentifierName(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierNames(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s9 = peg$c18; - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s11 = peg$c20; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parse__(); - if (s12 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s13 = peg$c16; - peg$currPos++; - } else { - s13 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s13 !== peg$FAILED) { - s14 = peg$parse__(); - if (s14 !== peg$FAILED) { - s15 = peg$parseOpDeclBody(); - if (s15 !== peg$FAILED) { - s16 = peg$parse__(); - if (s16 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s17 = peg$c18; - peg$currPos++; - } else { - s17 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s17 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c25(s3, s7, s15); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOpDeclBody() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseScope(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c0(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSeq(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseOperation() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c26) { - s1 = peg$c26; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c27); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseLeg(); - if (s5 !== peg$FAILED) { - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseLeg(); - } - } else { - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c28(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c29) { - s1 = peg$c29; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c30); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s6 = []; - s7 = peg$parseSwitchLeg(); - if (s7 !== peg$FAILED) { - while (s7 !== peg$FAILED) { - s6.push(s7); - s7 = peg$parseSwitchLeg(); - } - } else { - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c31(s3, s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c29) { - s1 = peg$c29; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c30); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseSwitchLeg(); - if (s5 !== peg$FAILED) { - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseSwitchLeg(); - } - } else { - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c32(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c33) { - s1 = peg$c33; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c34); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseFromLeg(); - if (s5 !== peg$FAILED) { - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseFromLeg(); - } - } else { - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c35(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseScope(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c36(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseOperator(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseOpAssignment(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEndOfOp(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c37(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$currPos; - s3 = peg$parseFunction(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEndOfOp(); - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAggregation(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEndOfOp(); - peg$silentFails--; - if (s4 !== peg$FAILED) { - peg$currPos = s3; - s3 = void 0; - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c37(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c38) { - s1 = peg$c38; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c39); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseSearchBoolean(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c40(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSearchBoolean(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c41(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseCast(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c42(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c41(s1); - } - s0 = s1; - } - } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseEndOfOp() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePipe(); - if (s2 === peg$FAILED) { - s2 = peg$parseSearchKeywordGuard(); - if (s2 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s2 = peg$c18; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s2 === peg$FAILED) { - s2 = peg$parseEOF(); - } - } - } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePipe() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 124) { - s1 = peg$c45; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c46); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 123) { - s3 = peg$c47; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s3 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 91) { - s3 = peg$c49; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLeg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSeq(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSwitchLeg() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseCase(); - if (s2 !== peg$FAILED) { - s3 = peg$parseLeg(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c51(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseCase() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c52) { - s1 = peg$c52; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c53); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 7) === peg$c55) { - s1 = peg$c55; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c56); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFromLeg() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$parseFromSource(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s5 = peg$c43; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSeq(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c58(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFromSource() { - var s0; - - s0 = peg$parseFile(); - if (s0 === peg$FAILED) { - s0 = peg$parseGet(); - if (s0 === peg$FAILED) { - s0 = peg$parsePool(); - if (s0 === peg$FAILED) { - s0 = peg$parsePassOp(); - } - } - } - - return s0; - } - - function peg$parseExprGuard() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c43) { - s4 = peg$c43; - peg$currPos += 2; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseComparator(); - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = peg$parseAdditiveOperator(); - if (s2 === peg$FAILED) { - s2 = peg$parseMultiplicativeOperator(); - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s2 = peg$c20; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s2 = peg$c16; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 91) { - s2 = peg$c49; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s2 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 126) { - s2 = peg$c59; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c60); } - } - } - } - } - } - } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseComparator() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c61) { - s1 = peg$c61; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c62); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c63) { - s1 = peg$c63; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c64); } - } - if (s1 === peg$FAILED) { - s1 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c65) { - s2 = peg$c65; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c66); } - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c67) { - s1 = peg$c67; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c68); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 60) { - s1 = peg$c69; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c71) { - s1 = peg$c71; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c72); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s1 = peg$c73; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c74); } - } - } - } - } - } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseSearchBoolean() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseSearchAnd(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseSearchOrTerm(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseSearchOrTerm(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSearchOrTerm() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseOrToken(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSearchAnd(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c77(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSearchAnd() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseSearchFactor(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAndToken(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - peg$silentFails++; - s7 = peg$parseOrToken(); - if (s7 === peg$FAILED) { - s7 = peg$parseSearchKeywordGuard(); - } - peg$silentFails--; - if (s7 === peg$FAILED) { - s6 = void 0; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseSearchFactor(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c78(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAndToken(); - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - peg$silentFails++; - s7 = peg$parseOrToken(); - if (s7 === peg$FAILED) { - s7 = peg$parseSearchKeywordGuard(); - } - peg$silentFails--; - if (s7 === peg$FAILED) { - s6 = void 0; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseSearchFactor(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c78(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSearchKeywordGuard() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parseFromSource(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s3 = peg$c43; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s1 = [s1, s2, s3, s4]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseCase(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSearchFactor() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$currPos; - s2 = peg$parseNotToken(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s2 = peg$c79; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c80); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseSearchFactor(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c81(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseSearchBoolean(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseSearchExpr(); - } - } - - return s0; - } - - function peg$parseSearchExpr() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$parseRegexp(); - if (s0 === peg$FAILED) { - s0 = peg$parseGlob(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSearchValue(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseExprGuard(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseGlob(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c82(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseExprGuard(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c85(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseSearchPredicate(); - } - } - } - } - - return s0; - } - - function peg$parseSearchPredicate() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseAdditiveExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseComparator(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c86(s1, s3, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseFunction(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c87(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSearchValue() { - var s0, s1, s2; - - s0 = peg$parseLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseRegexpPattern(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseKeyWord(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c88(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseGlob() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseGlobPattern(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c89(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseRegexp() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseRegexpPattern(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c90(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseAggregation() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseSummarize(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseGroupByKeys(); - if (s2 !== peg$FAILED) { - s3 = peg$parseLimitArg(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c91(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSummarize(); - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAggAssignments(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseGroupByKeys(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseLimitArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c92(s2, s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSummarize() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 9) === peg$c93) { - s1 = peg$c93; - peg$currPos += 9; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c94); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGroupByKeys() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseByToken(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseFlexAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c95(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLimitArg() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c96) { - s2 = peg$c96; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c97); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c98) { - s4 = peg$c98; - peg$currPos += 6; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c99); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseUInt(); - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c100(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c102(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFlexAssignment() { - var s0, s1; - - s0 = peg$parseAssignment(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c103(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFlexAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseFlexAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseFlexAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseFlexAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAggAssignment() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseDerefExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c107) { - s3 = peg$c107; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c108); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAgg(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c109(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseAgg(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c110(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseAgg() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseFuncGuard(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAggName(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseOverExpr(); - if (s6 === peg$FAILED) { - s6 = peg$parseConditionalExpr(); - } - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - s9 = peg$currPos; - peg$silentFails++; - s10 = peg$currPos; - s11 = peg$parse__(); - if (s11 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s12 = peg$c111; - peg$currPos++; - } else { - s12 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s12 !== peg$FAILED) { - s11 = [s11, s12]; - s10 = s11; - } else { - peg$currPos = s10; - s10 = peg$FAILED; - } - } else { - peg$currPos = s10; - s10 = peg$FAILED; - } - peg$silentFails--; - if (s10 === peg$FAILED) { - s9 = void 0; - } else { - peg$currPos = s9; - s9 = peg$FAILED; - } - if (s9 !== peg$FAILED) { - s10 = peg$parseWhereClause(); - if (s10 === peg$FAILED) { - s10 = null; - } - if (s10 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c113(s2, s6, s10); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAggName() { - var s0; - - s0 = peg$parseIdentifierName(); - if (s0 === peg$FAILED) { - s0 = peg$parseAndToken(); - if (s0 === peg$FAILED) { - s0 = peg$parseOrToken(); - } - } - - return s0; - } - - function peg$parseWhereClause() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c114) { - s2 = peg$c114; - peg$currPos += 5; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c115); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLogicalOrExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAggAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseAggAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAggAssignment(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAggAssignment(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c116(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOperator() { - var s0; - - s0 = peg$parseAssertOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseSortOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseTopOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseCutOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseDropOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseHeadOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseTailOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseWhereOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseUniqOp(); - if (s0 === peg$FAILED) { - s0 = peg$parsePutOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseRenameOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseFuseOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseShapeOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseJoinOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseSampleOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseSQLOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseFromOp(); - if (s0 === peg$FAILED) { - s0 = peg$parsePassOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseExplodeOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseMergeOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseOverOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseYieldOp(); - if (s0 === peg$FAILED) { - s0 = peg$parseLoadOp(); - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseAssertOp() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c117) { - s1 = peg$c117; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c118); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c119(s4); - } - s3 = s4; - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c120(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSortOp() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c121) { - s1 = peg$c121; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c122); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseSortArgs(); - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseExprs(); - if (s6 !== peg$FAILED) { - peg$savedPos = s4; - s5 = peg$c123(s3, s6); - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c124(s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSortArgs() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = []; - s2 = peg$currPos; - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSortArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s2; - s3 = peg$c37(s4); - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$currPos; - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSortArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s2; - s3 = peg$c37(s4); - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c125(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseSortArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c126) { - s1 = peg$c126; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c127); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c128(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c129) { - s1 = peg$c129; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c130); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c131) { - s4 = peg$c131; - peg$currPos += 5; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c132); } - } - if (s4 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c133) { - s4 = peg$c133; - peg$currPos += 4; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c134); } - } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c75(); - } - s3 = s4; - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c135(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTopOp() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c136) { - s1 = peg$c136; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c137); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseUInt(); - if (s5 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c138(s5); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c139) { - s6 = peg$c139; - peg$currPos += 6; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c140); } - } - if (s6 !== peg$FAILED) { - s5 = [s5, s6]; - s4 = s5; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$currPos; - s6 = peg$parse_(); - if (s6 !== peg$FAILED) { - s7 = peg$parseFieldExprs(); - if (s7 !== peg$FAILED) { - peg$savedPos = s5; - s6 = peg$c141(s3, s4, s7); - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c142(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseCutOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c143) { - s1 = peg$c143; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c144); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseFlexAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c145(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDropOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c146) { - s1 = peg$c146; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c147); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseFieldExprs(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c148(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHeadOp() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c149) { - s1 = peg$c149; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c150); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEndOfOp(); - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c151(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c149) { - s1 = peg$c149; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c150); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c152(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTailOp() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c153) { - s1 = peg$c153; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c154); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEndOfOp(); - peg$silentFails--; - if (s4 === peg$FAILED) { - s3 = void 0; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c155(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c153) { - s1 = peg$c153; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c154); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c156(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseWhereOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c114) { - s1 = peg$c114; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c115); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c157(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseUniqOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c158) { - s1 = peg$c158; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c159); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c160) { - s3 = peg$c160; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c161); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c162(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c158) { - s1 = peg$c158; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c159); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c163(); - } - s0 = s1; - } - - return s0; - } - - function peg$parsePutOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c164) { - s1 = peg$c164; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c165); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c166(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRenameOp() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c167) { - s1 = peg$c167; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c168); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseAssignment(); - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$currPos; - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseAssignment(); - if (s9 !== peg$FAILED) { - peg$savedPos = s5; - s6 = peg$c169(s3, s9); - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$currPos; - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseAssignment(); - if (s9 !== peg$FAILED) { - peg$savedPos = s5; - s6 = peg$c169(s3, s9); - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c170(s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFuseOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c171) { - s1 = peg$c171; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c172); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEOKW(); - peg$silentFails--; - if (s4 !== peg$FAILED) { - peg$currPos = s3; - s3 = void 0; - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c173(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseShapeOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c174) { - s1 = peg$c174; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c175); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - peg$silentFails++; - s4 = peg$parseEOKW(); - peg$silentFails--; - if (s4 !== peg$FAILED) { - peg$currPos = s3; - s3 = void 0; - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c176(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseJoinOp() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; - - s0 = peg$currPos; - s1 = peg$parseJoinStyle(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c177) { - s2 = peg$c177; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c178); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseJoinRightInput(); - if (s3 !== peg$FAILED) { - s4 = peg$parseON(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseJoinKey(); - if (s6 !== peg$FAILED) { - s7 = peg$currPos; - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s9 = peg$c8; - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - s11 = peg$parseJoinKey(); - if (s11 !== peg$FAILED) { - s8 = [s8, s9, s10, s11]; - s7 = s8; - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$currPos; - s9 = peg$parse_(); - if (s9 !== peg$FAILED) { - s10 = peg$parseFlexAssignments(); - if (s10 !== peg$FAILED) { - s9 = [s9, s10]; - s8 = s9; - } else { - peg$currPos = s8; - s8 = peg$FAILED; - } - } else { - peg$currPos = s8; - s8 = peg$FAILED; - } - if (s8 === peg$FAILED) { - s8 = null; - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c179(s1, s3, s6, s7, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseJoinStyle() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c180) { - s1 = peg$c180; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c181); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c182(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c183) { - s1 = peg$c183; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c184); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c186) { - s1 = peg$c186; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c187); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c188(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c189) { - s1 = peg$c189; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c190); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c191(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - } - s0 = s1; - } - } - } - } - - return s0; - } - - function peg$parseJoinRightInput() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s2 = peg$c16; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseSeq(); - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s6 = peg$c18; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseJoinKey() { - var s0, s1, s2, s3; - - s0 = peg$parseDerefExpr(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseConditionalExpr(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s3 = peg$c18; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSampleOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c193) { - s1 = peg$c193; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c194); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseSampleExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c195(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOpAssignment() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseAssignments(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c196(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseSampleExpr() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseDerefExpr(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c197(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c198(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseLoadOp() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c199) { - s1 = peg$c199; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c200); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolNameString(); - if (s3 !== peg$FAILED) { - s4 = peg$parsePoolBranch(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseAuthorArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseMessageArg(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseMetaArg(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c201(s3, s4, s5, s6, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAuthorArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c202) { - s2 = peg$c202; - peg$currPos += 6; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c203); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseQuotedString(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMessageArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c205) { - s2 = peg$c205; - peg$currPos += 7; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c206); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseQuotedString(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMetaArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c207) { - s2 = peg$c207; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c208); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseQuotedString(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolBranch() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 64) { - s1 = peg$c209; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c210); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolIdentifier(); - if (s2 === peg$FAILED) { - s2 = peg$parseQuotedString(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c211(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFromOp() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseFromAny(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c212(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseFromAny() { - var s0; - - s0 = peg$parseFile(); - if (s0 === peg$FAILED) { - s0 = peg$parseGet(); - if (s0 === peg$FAILED) { - s0 = peg$parseFrom(); - } - } - - return s0; - } - - function peg$parseFile() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c213) { - s1 = peg$c213; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c214); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePath(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFormatArg(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSortKeyArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c215(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFrom() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c33) { - s1 = peg$c33; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c34); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolBody(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c216(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePool() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c217) { - s1 = peg$c217; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c218); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolBody(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c216(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolBody() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parsePoolSpec(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolAt(); - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c219(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGet() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c220) { - s1 = peg$c220; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c221); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parsePath(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFormatArg(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSortKeyArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseMethodArg(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseHeadersArg(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parseBodyArg(); - if (s8 === peg$FAILED) { - s8 = null; - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c222(s3, s4, s5, s6, s7, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMethodArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c223) { - s2 = peg$c223; - peg$currPos += 6; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c224); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseIdentifierName(); - if (s4 === peg$FAILED) { - s4 = peg$parseQuotedString(); - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHeadersArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c225) { - s2 = peg$c225; - peg$currPos += 7; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c226); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseRecord(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseBodyArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c227) { - s2 = peg$c227; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c228); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseIdentifierName(); - if (s4 === peg$FAILED) { - s4 = peg$parseQuotedString(); - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePath() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parseQuotedString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c229(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - if (peg$c230.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c231); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c230.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c231); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c232(); - } - s0 = s1; - } - - return s0; - } - - function peg$parsePoolAt() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c233) { - s2 = peg$c233; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c234); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseKSUID(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseKSUID() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - if (peg$c236.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c237); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c236.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c237); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parsePoolSpec() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parsePoolName(); - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolCommit(); - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s3 = peg$parsePoolMeta(); - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseTapArg(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c238(s1, s2, s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parsePoolMeta(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c239(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parsePoolCommit() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 64) { - s1 = peg$c209; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c210); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolNameString(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c240(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolMeta() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c20; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parsePoolIdentifier(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c241(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePoolName() { - var s0, s1, s2, s3; - - s0 = peg$parseRegexp(); - if (s0 === peg$FAILED) { - s0 = peg$parseGlob(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseExprGuard(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c242(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseQuotedString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c243(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parsePoolNameString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c244(s1); - } - s0 = s1; - } - } - } - } - - return s0; - } - - function peg$parsePoolNameString() { - var s0; - - s0 = peg$parsePoolIdentifier(); - if (s0 === peg$FAILED) { - s0 = peg$parseKSUID(); - if (s0 === peg$FAILED) { - s0 = peg$parseQuotedString(); - } - } - - return s0; - } - - function peg$parsePoolIdentifier() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIdentifierStart(); - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c111; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseIdentifierRest(); - if (s3 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseIdentifierRest(); - if (s3 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSortKeyArg() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c245) { - s2 = peg$c245; - peg$currPos += 5; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c246); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFieldExprs(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOrderSuffix(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c247(s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTapArg() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c248) { - s2 = peg$c248; - peg$currPos += 3; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c249); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c250(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c251(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFormatArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c252) { - s2 = peg$c252; - peg$currPos += 6; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c253); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseIdentifierName(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c204(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOrderSuffix() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c254) { - s1 = peg$c254; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c255); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c257) { - s1 = peg$c257; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c258); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c259(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - } - } - - return s0; - } - - function peg$parsePassOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c260) { - s1 = peg$c260; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c261); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseEOKW(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c262(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseExplodeOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 7) === peg$c263) { - s1 = peg$c263; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c264); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - s4 = peg$parseTypeArg(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAsArg(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c265(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMergeOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c266) { - s1 = peg$c266; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c267); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c268(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOverOp() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c269) { - s1 = peg$c269; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c270); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLocals(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseLateral(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c271(s3, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLateral() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseScope(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c0(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c43) { - s2 = peg$c43; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c44); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseSeq(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c1(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseLocals() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c96) { - s2 = peg$c96; - peg$currPos += 4; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c97); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLocalsAssignment(); - if (s4 !== peg$FAILED) { - s5 = []; - s6 = peg$currPos; - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s8 = peg$c104; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseLocalsAssignment(); - if (s10 !== peg$FAILED) { - peg$savedPos = s6; - s7 = peg$c272(s4, s10); - s6 = s7; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - while (s6 !== peg$FAILED) { - s5.push(s6); - s6 = peg$currPos; - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s8 = peg$c104; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseLocalsAssignment(); - if (s10 !== peg$FAILED) { - peg$savedPos = s6; - s7 = peg$c272(s4, s10); - s6 = s7; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLocalsAssignment() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s4 = peg$c8; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseConditionalExpr(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c273(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseYieldOp() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c274) { - s1 = peg$c274; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c275); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c276(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseBY(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseType(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c277(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAsArg() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseAS(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseDerefExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c278(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLvals() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseDerefExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseDerefExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c279(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseDerefExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c279(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFieldExprs() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseDerefExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseDerefExpr(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseDerefExpr(); - if (s7 !== peg$FAILED) { - s4 = [s4, s5, s6, s7]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c280(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c272(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c272(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAssignment() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseDerefExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c107) { - s3 = peg$c107; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c108); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c282(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseExpr() { - var s0; - - s0 = peg$parseConditionalExpr(); - - return s0; - } - - function peg$parseConditionalExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10; - - s0 = peg$currPos; - s1 = peg$parseLogicalOrExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 63) { - s4 = peg$c283; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c284); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseConditionalExpr(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s8 = peg$c20; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseConditionalExpr(); - if (s10 !== peg$FAILED) { - s3 = [s3, s4, s5, s6, s7, s8, s9, s10]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c285(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLogicalOrExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseLogicalAndExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOrToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseLogicalAndExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOrToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseLogicalAndExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseLogicalAndExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseComparisonExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAndToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseComparisonExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAndToken(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseComparisonExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseComparisonExpr() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parseAdditiveExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseComparator(); - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAdditiveExpr(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 126) { - s5 = peg$c59; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c60); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s4; - s5 = peg$c288(s1); - } - s4 = s5; - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseRegexp(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c289(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAdditiveExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseMultiplicativeExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseMultiplicativeExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseMultiplicativeExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseAdditiveOperator() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 43) { - s1 = peg$c290; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c291); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseMultiplicativeExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseNotExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseMultiplicativeOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseNotExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseMultiplicativeOperator(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseNotExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c286(s1, s5, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c287(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseMultiplicativeOperator() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c294; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 37) { - s1 = peg$c296; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c297); } - } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseNotExpr() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$currPos; - s2 = peg$parseNotToken(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 === peg$FAILED) { - s1 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 33) { - s2 = peg$c79; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c80); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s2 = [s2, s3]; - s1 = s2; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseNotExpr(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c298(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseNegationExpr(); - } - - return s0; - } - - function peg$parseNegationExpr() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseLiteral(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s2 = peg$c292; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseFuncExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c299(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseFuncExpr(); - } - - return s0; - } - - function peg$parseFuncExpr() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseCast(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseFunction(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$parseDerefExpr(); - } - } - - return s0; - } - - function peg$parseFuncGuard() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseNotFuncs(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s1 = [s1, s2, s3]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNotFuncs() { - var s0; - - if (input.substr(peg$currPos, 3) === peg$c300) { - s0 = peg$c300; - peg$currPos += 3; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c301); } - } - if (s0 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c302) { - s0 = peg$c302; - peg$currPos += 6; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c303); } - } - } - - return s0; - } - - function peg$parseCast() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseTypeLiteral(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseOverExpr(); - if (s5 === peg$FAILED) { - s5 = peg$parseConditionalExpr(); - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s7 = peg$c18; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c304(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFunction() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15, s16; - - s0 = peg$parseGrep(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 6) === peg$c305) { - s1 = peg$c305; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c306); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseRegexpPattern(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseConditionalExpr(); - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s11 = peg$c18; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parseWhereClause(); - if (s12 === peg$FAILED) { - s12 = null; - } - if (s12 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c307(s5, s9, s12); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 14) === peg$c308) { - s1 = peg$c308; - peg$currPos += 14; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c309); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s7 = peg$c104; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - s9 = peg$parseRegexpPattern(); - if (s9 !== peg$FAILED) { - s10 = peg$parse__(); - if (s10 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s11 = peg$c104; - peg$currPos++; - } else { - s11 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s11 !== peg$FAILED) { - s12 = peg$parse__(); - if (s12 !== peg$FAILED) { - s13 = peg$parseConditionalExpr(); - if (s13 !== peg$FAILED) { - s14 = peg$parse__(); - if (s14 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s15 = peg$c18; - peg$currPos++; - } else { - s15 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s15 !== peg$FAILED) { - s16 = peg$parseWhereClause(); - if (s16 === peg$FAILED) { - s16 = null; - } - if (s16 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c310(s5, s9, s13, s16); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseFuncGuard(); - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIdentifierName(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s4 = peg$c16; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseFunctionArgs(); - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parseWhereClause(); - if (s9 === peg$FAILED) { - s9 = null; - } - if (s9 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c311(s2, s6, s9); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - - return s0; - } - - function peg$parseFunctionArgs() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseOverExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c312(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$parseOptionalExprs(); - } - - return s0; - } - - function peg$parseGrep() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c313) { - s1 = peg$c313; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c314); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseRegexp(); - if (s5 === peg$FAILED) { - s5 = peg$parseGlob(); - if (s5 === peg$FAILED) { - s5 = peg$parseConditionalExpr(); - } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 44) { - s8 = peg$c104; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s8 !== peg$FAILED) { - s9 = peg$parse__(); - if (s9 !== peg$FAILED) { - s10 = peg$parseOverExpr(); - if (s10 === peg$FAILED) { - s10 = peg$parseConditionalExpr(); - } - if (s10 !== peg$FAILED) { - s11 = peg$parse__(); - if (s11 !== peg$FAILED) { - s8 = [s8, s9, s10, s11]; - s7 = s8; - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - } else { - peg$currPos = s7; - s7 = peg$FAILED; - } - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s8 = peg$c18; - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c315(s5, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOptionalExprs() { - var s0, s1; - - s0 = peg$parseExprs(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseExprs() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseConditionalExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseConditionalExpr(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDerefExpr() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parsePrimary(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDeref(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDeref(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c76(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDeref() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseAdditiveExpr(); - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s4 = peg$c20; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseAdditiveExpr(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s7 = peg$c318; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c320(s2, s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseAdditiveExpr(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s6 = peg$c318; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c321(s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseConditionalExpr(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s3 = peg$c318; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c322(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s1 = peg$c111; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIdentifier(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c323(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - - return s0; - } - - function peg$parsePrimary() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$parseRecord(); - if (s0 === peg$FAILED) { - s0 = peg$parseArray(); - if (s0 === peg$FAILED) { - s0 = peg$parseSet(); - if (s0 === peg$FAILED) { - s0 = peg$parseMap(); - if (s0 === peg$FAILED) { - s0 = peg$parseLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseIdentifier(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseOverExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s5 = peg$c18; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseOverExpr() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c269) { - s1 = peg$c269; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c270); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseExprs(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLocals(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 124) { - s6 = peg$c45; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c46); } - } - if (s6 !== peg$FAILED) { - s7 = peg$parse__(); - if (s7 !== peg$FAILED) { - s8 = peg$parseSeq(); - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c324(s3, s4, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRecord() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 123) { - s1 = peg$c47; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseRecordElems(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s5 = peg$c325; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c327(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRecordElems() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseRecordElem(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseRecordElemTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseRecordElemTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseRecordElemTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseRecordElem(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c328(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRecordElem() { - var s0; - - s0 = peg$parseSpread(); - if (s0 === peg$FAILED) { - s0 = peg$parseField(); - if (s0 === peg$FAILED) { - s0 = peg$parseIdentifier(); - } - } - - return s0; - } - - function peg$parseSpread() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c329) { - s1 = peg$c329; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c330); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c331(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseField() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseFieldName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c332(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseArray() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseVectorElems(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c318; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c333(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSet() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c334) { - s1 = peg$c334; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c335); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseVectorElems(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c336) { - s5 = peg$c336; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c337); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c338(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseVectorElems() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseVectorElem(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseVectorElem(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseVectorElem(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c317(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseVectorElem() { - var s0, s1; - - s0 = peg$parseSpread(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c339(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseMap() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c340) { - s1 = peg$c340; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c341); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseEntries(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c342) { - s5 = peg$c342; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c343); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c344(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEntries() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseEntry(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseEntryTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseEntryTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c316(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseEntryTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseEntry(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c345(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEntry() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c346(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLOp() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - s0 = peg$currPos; - s1 = peg$parseSQLSelect(); - if (s1 !== peg$FAILED) { - s2 = peg$parseSQLFrom(); - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseSQLJoins(); - if (s3 === peg$FAILED) { - s3 = null; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseSQLWhere(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSQLGroupBy(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseSQLHaving(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLOrderBy(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parseSQLLimit(); - if (s8 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c347(s1, s2, s3, s4, s5, s6, s7, s8); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLSelect() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseSELECT(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 42) { - s3 = peg$c83; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSELECT(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseSQLAssignments(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c348(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSQLAssignment() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parseConditionalExpr(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseAS(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseDerefExpr(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c349(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLAssignments() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseSQLAssignment(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLAssignment(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c106(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLFrom() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseFROM(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseConditionalExpr(); - if (s4 !== peg$FAILED) { - s5 = peg$parseSQLAlias(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c350(s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseFROM(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 42) { - s4 = peg$c83; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSQLAlias() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseAS(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseDerefExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parseSQLTokenSentinels(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseDerefExpr(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseSQLJoins() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parseSQLJoin(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parseSQLJoin(); - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c351(s1, s4); - } - s3 = s4; - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parseSQLJoin(); - if (s4 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c351(s1, s4); - } - s3 = s4; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c3(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLJoin() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14; - - s0 = peg$currPos; - s1 = peg$parseSQLJoinStyle(); - if (s1 !== peg$FAILED) { - s2 = peg$parse_(); - if (s2 !== peg$FAILED) { - s3 = peg$parseJOIN(); - if (s3 !== peg$FAILED) { - s4 = peg$parse_(); - if (s4 !== peg$FAILED) { - s5 = peg$parseConditionalExpr(); - if (s5 !== peg$FAILED) { - s6 = peg$parseSQLAlias(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parse_(); - if (s7 !== peg$FAILED) { - s8 = peg$parseON(); - if (s8 !== peg$FAILED) { - s9 = peg$parse_(); - if (s9 !== peg$FAILED) { - s10 = peg$parseJoinKey(); - if (s10 !== peg$FAILED) { - s11 = peg$parse__(); - if (s11 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s12 = peg$c8; - peg$currPos++; - } else { - s12 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s12 !== peg$FAILED) { - s13 = peg$parse__(); - if (s13 !== peg$FAILED) { - s14 = peg$parseJoinKey(); - if (s14 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c352(s1, s5, s6, s10, s14); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLJoinStyle() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseANTI(); - if (s2 === peg$FAILED) { - s2 = peg$parseINNER(); - if (s2 === peg$FAILED) { - s2 = peg$parseLEFT(); - if (s2 === peg$FAILED) { - s2 = peg$parseRIGHT(); - } - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c353(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseSQLWhere() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseWHERE(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLogicalOrExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLGroupBy() { - var s0, s1, s2, s3, s4, s5, s6; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseGROUP(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseBY(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseFieldExprs(); - if (s6 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c95(s6); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLHaving() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseHAVING(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseLogicalOrExpr(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c54(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLOrderBy() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseORDER(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseBY(); - if (s4 !== peg$FAILED) { - s5 = peg$parse_(); - if (s5 !== peg$FAILED) { - s6 = peg$parseExprs(); - if (s6 !== peg$FAILED) { - s7 = peg$parseSQLOrder(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c354(s6, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSQLOrder() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseASC(); - if (s2 === peg$FAILED) { - s2 = peg$parseDESC(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c355(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseSQLLimit() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse_(); - if (s1 !== peg$FAILED) { - s2 = peg$parseLIMIT(); - if (s2 !== peg$FAILED) { - s3 = peg$parse_(); - if (s3 !== peg$FAILED) { - s4 = peg$parseUInt(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c356(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c102(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseSELECT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6).toLowerCase() === peg$c302) { - s1 = input.substr(peg$currPos, 6); - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c357); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c358(); - } - s0 = s1; - - return s0; - } - - function peg$parseAS() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2).toLowerCase() === peg$c359) { - s1 = input.substr(peg$currPos, 2); - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c360); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c361(); - } - s0 = s1; - - return s0; - } - - function peg$parseFROM() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c33) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c362); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c363(); - } - s0 = s1; - - return s0; - } - - function peg$parseJOIN() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c177) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c364); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c365(); - } - s0 = s1; - - return s0; - } - - function peg$parseWHERE() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c114) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c366); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c367(); - } - s0 = s1; - - return s0; - } - - function peg$parseGROUP() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c368) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c369); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c370(); - } - s0 = s1; - - return s0; - } - - function peg$parseBY() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2).toLowerCase() === peg$c371) { - s1 = input.substr(peg$currPos, 2); - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c372); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c373(); - } - s0 = s1; - - return s0; - } - - function peg$parseHAVING() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 6).toLowerCase() === peg$c374) { - s1 = input.substr(peg$currPos, 6); - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c375); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c376(); - } - s0 = s1; - - return s0; - } - - function peg$parseORDER() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c245) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c377); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c378(); - } - s0 = s1; - - return s0; - } - - function peg$parseON() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2).toLowerCase() === peg$c379) { - s1 = input.substr(peg$currPos, 2); - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c380); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c381(); - } - s0 = s1; - - return s0; - } - - function peg$parseLIMIT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c382) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c383); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c384(); - } - s0 = s1; - - return s0; - } - - function peg$parseASC() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3).toLowerCase() === peg$c385) { - s1 = input.substr(peg$currPos, 3); - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c386); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c256(); - } - s0 = s1; - - return s0; - } - - function peg$parseDESC() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c387) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c388); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c259(); - } - s0 = s1; - - return s0; - } - - function peg$parseANTI() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c180) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c389); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c182(); - } - s0 = s1; - - return s0; - } - - function peg$parseLEFT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4).toLowerCase() === peg$c186) { - s1 = input.substr(peg$currPos, 4); - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c390); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c188(); - } - s0 = s1; - - return s0; - } - - function peg$parseRIGHT() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c189) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c391); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c191(); - } - s0 = s1; - - return s0; - } - - function peg$parseINNER() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5).toLowerCase() === peg$c183) { - s1 = input.substr(peg$currPos, 5); - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c392); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c185(); - } - s0 = s1; - - return s0; - } - - function peg$parseSQLTokenSentinels() { - var s0; - - s0 = peg$parseSELECT(); - if (s0 === peg$FAILED) { - s0 = peg$parseAS(); - if (s0 === peg$FAILED) { - s0 = peg$parseFROM(); - if (s0 === peg$FAILED) { - s0 = peg$parseJOIN(); - if (s0 === peg$FAILED) { - s0 = peg$parseWHERE(); - if (s0 === peg$FAILED) { - s0 = peg$parseGROUP(); - if (s0 === peg$FAILED) { - s0 = peg$parseHAVING(); - if (s0 === peg$FAILED) { - s0 = peg$parseORDER(); - if (s0 === peg$FAILED) { - s0 = peg$parseLIMIT(); - if (s0 === peg$FAILED) { - s0 = peg$parseON(); - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseLiteral() { - var s0; - - s0 = peg$parseTypeLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseTemplateLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseSubnetLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseAddressLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseBytesLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseDuration(); - if (s0 === peg$FAILED) { - s0 = peg$parseTime(); - if (s0 === peg$FAILED) { - s0 = peg$parseFloatLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseIntegerLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseBooleanLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseNullLiteral(); - } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseSubnetLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP6Net(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c393(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseIP4Net(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c393(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseAddressLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP6(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c394(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseIP(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c394(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseFloatLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseFloatString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c395(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseIntegerLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseIntString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c396(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseBooleanLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseTrueToken(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c397(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseFalseToken(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c398(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseNullLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseNullToken(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c399(); - } - s0 = s1; - - return s0; - } - - function peg$parseBytesLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c400) { - s1 = peg$c400; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c401); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseHexDigit(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseHexDigit(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c402(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeLiteral() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 60) { - s1 = peg$c69; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c70); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseType(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 62) { - s3 = peg$c73; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c74); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c403(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseType() { - var s0; - - s0 = peg$parseAmbiguousType(); - if (s0 === peg$FAILED) { - s0 = peg$parseComplexType(); - } - - return s0; - } - - function peg$parseAmbiguousType() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parsePrimitiveType(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c404(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c405) { - s1 = peg$c405; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c406); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s3 = peg$c16; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseType(); - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s7 = peg$c18; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c407(s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 61) { - s4 = peg$c8; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parse__(); - if (s5 !== peg$FAILED) { - s6 = peg$parseType(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c408(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseQuotedString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c409(s1); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 40) { - s1 = peg$c16; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseTypeUnion(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 41) { - s4 = peg$c18; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c19); } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c410(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - } - - return s0; - } - - function peg$parseTypeUnion() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseTypeList(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c411(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseTypeList() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseType(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTypeListTail(); - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTypeListTail(); - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeListTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseType(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c277(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseComplexType() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 123) { - s1 = peg$c47; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseTypeFieldList(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s5 = peg$c325; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c412(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 91) { - s1 = peg$c49; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c50); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseType(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 93) { - s5 = peg$c318; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c319); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c413(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c334) { - s1 = peg$c334; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c335); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseType(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c336) { - s5 = peg$c336; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c337); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c414(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c340) { - s1 = peg$c340; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c341); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseType(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s5 = peg$c20; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseType(); - if (s7 !== peg$FAILED) { - s8 = peg$parse__(); - if (s8 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c342) { - s9 = peg$c342; - peg$currPos += 2; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c343); } - } - if (s9 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c415(s3, s7); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - - return s0; - } - - function peg$parseTemplateLiteral() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseTemplateLiteralParts(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c416(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseTemplateLiteralParts() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c417; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTemplateDoubleQuotedPart(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTemplateDoubleQuotedPart(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c417; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c419; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTemplateSingleQuotedPart(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTemplateSingleQuotedPart(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c419; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTemplateDoubleQuotedPart() { - var s0, s1, s2; - - s0 = peg$parseTemplateExpr(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - s2 = peg$parseTemplateDoubleQuotedChar(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseTemplateDoubleQuotedChar(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c421(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTemplateDoubleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseDoubleQuotedChar(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTemplateSingleQuotedPart() { - var s0, s1, s2; - - s0 = peg$parseTemplateExpr(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - s2 = peg$parseTemplateSingleQuotedChar(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseTemplateSingleQuotedChar(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c421(s1); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTemplateSingleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c424) { - s2 = peg$c424; - peg$currPos += 2; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseSingleQuotedChar(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseTemplateExpr() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c424) { - s1 = peg$c424; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c425); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - s3 = peg$parseConditionalExpr(); - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s5 = peg$c325; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c426(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePrimitiveType() { - var s0, s1; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c427) { - s1 = peg$c427; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c428); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c429) { - s1 = peg$c429; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c430); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c431) { - s1 = peg$c431; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c432); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c433) { - s1 = peg$c433; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c434); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c435) { - s1 = peg$c435; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c436); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c437) { - s1 = peg$c437; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c438); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c439) { - s1 = peg$c439; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c440); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c441) { - s1 = peg$c441; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c442); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c443) { - s1 = peg$c443; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c444); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c445) { - s1 = peg$c445; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c446); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 7) === peg$c447) { - s1 = peg$c447; - peg$currPos += 7; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c448); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c449) { - s1 = peg$c449; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c450); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 6) === peg$c451) { - s1 = peg$c451; - peg$currPos += 6; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c452); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 8) === peg$c453) { - s1 = peg$c453; - peg$currPos += 8; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c454); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c455) { - s1 = peg$c455; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c456); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 5) === peg$c457) { - s1 = peg$c457; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c458); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c459) { - s1 = peg$c459; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c460); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c461) { - s1 = peg$c461; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c462); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c11) { - s1 = peg$c11; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c12); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 4) === peg$c463) { - s1 = peg$c463; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c464); } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c465(); - } - s0 = s1; - - return s0; - } - - function peg$parseTypeFieldList() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseTypeField(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseTypeFieldListTail(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseTypeFieldListTail(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$c101; - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c57(); - } - s0 = s1; - } - - return s0; - } - - function peg$parseTypeFieldListTail() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parse__(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s2 = peg$c104; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parse__(); - if (s3 !== peg$FAILED) { - s4 = peg$parseTypeField(); - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c277(s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTypeField() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseFieldName(); - if (s1 !== peg$FAILED) { - s2 = peg$parse__(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - s5 = peg$parseType(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c466(s1, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFieldName() { - var s0; - - s0 = peg$parseIdentifierName(); - if (s0 === peg$FAILED) { - s0 = peg$parseQuotedString(); - } - - return s0; - } - - function peg$parseAndToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c467) { - s1 = peg$c467; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c468); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c469) { - s1 = peg$c469; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c470); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c471(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseByToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c371) { - s1 = peg$c371; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c472); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFalseToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 5) === peg$c473) { - s1 = peg$c473; - peg$currPos += 5; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c474); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseInToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c65) { - s1 = peg$c65; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c66); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNotToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 3) === peg$c300) { - s1 = peg$c300; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c301); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c475) { - s1 = peg$c475; - peg$currPos += 3; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c476); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c477(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNullToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c463) { - s1 = peg$c463; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c464); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseOrToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c478) { - s1 = peg$c478; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c479); } - } - if (s1 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c480) { - s1 = peg$c480; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c481); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c482(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTrueToken() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c483) { - s1 = peg$c483; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c484); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s3 === peg$FAILED) { - s2 = void 0; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIdentifier() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c485(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseIdentifierName() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$currPos; - s3 = peg$parseIDGuard(); - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseIdentifierRest(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIdentifierStart(); - if (s2 !== peg$FAILED) { - s3 = []; - s4 = peg$parseIdentifierRest(); - while (s4 !== peg$FAILED) { - s3.push(s4); - s4 = peg$parseIdentifierRest(); - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 36) { - s1 = peg$c486; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c487); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIDGuard(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 4) === peg$c11) { - s1 = peg$c11; - peg$currPos += 4; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c12); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseSQLTokenSentinels(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 40) { - s5 = peg$c16; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c17); } - } - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c235(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - } - } - } - - return s0; - } - - function peg$parseIdentifierNames() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseIdentifierName(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierName(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c488(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parse__(); - if (s4 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 44) { - s5 = peg$c104; - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c105); } - } - if (s5 !== peg$FAILED) { - s6 = peg$parse__(); - if (s6 !== peg$FAILED) { - s7 = peg$parseIdentifierName(); - if (s7 !== peg$FAILED) { - peg$savedPos = s3; - s4 = peg$c488(s1, s7); - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c281(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIdentifierStart() { - var s0; - - s0 = peg$parseUnicodeLetter(); - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 36) { - s0 = peg$c486; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c487); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 95) { - s0 = peg$c489; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c490); } - } - } - } - - return s0; - } - - function peg$parseIdentifierRest() { - var s0; - - s0 = peg$parseIdentifierStart(); - if (s0 === peg$FAILED) { - s0 = peg$parseUnicodeCombiningMark(); - if (s0 === peg$FAILED) { - s0 = peg$parseNd(); - if (s0 === peg$FAILED) { - s0 = peg$parsePc(); - } - } - } - - return s0; - } - - function peg$parseIDGuard() { - var s0; - - s0 = peg$parseBooleanLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseNullLiteral(); - if (s0 === peg$FAILED) { - s0 = peg$parseNaN(); - if (s0 === peg$FAILED) { - s0 = peg$parseInfinity(); - } - } - } - - return s0; - } - - function peg$parseTime() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseFullDate(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 84) { - s2 = peg$c491; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c492); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseFullTime(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c493(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFullDate() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$parseD4(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s2 = peg$c292; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseD2(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s4 = peg$c292; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseD2(); - if (s5 !== peg$FAILED) { - s1 = [s1, s2, s3, s4, s5]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseD4() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - if (peg$c494.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s1 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s2 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s3 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s4 !== peg$FAILED) { - s1 = [s1, s2, s3, s4]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseD2() { - var s0, s1, s2; - - s0 = peg$currPos; - if (peg$c494.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s1 !== peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFullTime() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parsePartialTime(); - if (s1 !== peg$FAILED) { - s2 = peg$parseTimeOffset(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parsePartialTime() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - s1 = peg$parseD2(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s2 = peg$c20; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseD2(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s4 = peg$c20; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseD2(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s7 = peg$c111; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s7 !== peg$FAILED) { - s8 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s9 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s9 !== peg$FAILED) { - while (s9 !== peg$FAILED) { - s8.push(s9); - if (peg$c494.test(input.charAt(peg$currPos))) { - s9 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s9 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s8 = peg$FAILED; - } - if (s8 !== peg$FAILED) { - s7 = [s7, s8]; - s6 = s7; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s1 = [s1, s2, s3, s4, s5, s6]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTimeOffset() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8; - - if (input.charCodeAt(peg$currPos) === 90) { - s0 = peg$c496; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c497); } - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 43) { - s1 = peg$c290; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c291); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseD2(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s3 = peg$c20; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseD2(); - if (s4 !== peg$FAILED) { - s5 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s6 = peg$c111; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s6 !== peg$FAILED) { - s7 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s8 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s8 !== peg$FAILED) { - while (s8 !== peg$FAILED) { - s7.push(s8); - if (peg$c494.test(input.charAt(peg$currPos))) { - s8 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s8 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s7 = peg$FAILED; - } - if (s7 !== peg$FAILED) { - s6 = [s6, s7]; - s5 = s6; - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - } else { - peg$currPos = s5; - s5 = peg$FAILED; - } - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s1 = [s1, s2, s3, s4, s5]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseDuration() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$parseDecimal(); - if (s4 !== peg$FAILED) { - s5 = peg$parseTimeUnit(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$parseDecimal(); - if (s4 !== peg$FAILED) { - s5 = peg$parseTimeUnit(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c498(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseDecimal() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = peg$parseUInt(); - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s3 !== peg$FAILED) { - s4 = peg$parseUInt(); - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseTimeUnit() { - var s0; - - if (input.substr(peg$currPos, 2) === peg$c499) { - s0 = peg$c499; - peg$currPos += 2; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c500); } - } - if (s0 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c501) { - s0 = peg$c501; - peg$currPos += 2; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c502); } - } - if (s0 === peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c503) { - s0 = peg$c503; - peg$currPos += 2; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c504); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 115) { - s0 = peg$c505; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c506); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 109) { - s0 = peg$c507; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c508); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 104) { - s0 = peg$c509; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c510); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 100) { - s0 = peg$c511; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c512); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 119) { - s0 = peg$c513; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c514); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 121) { - s0 = peg$c515; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c516); } - } - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseIP() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$parseUInt(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s2 = peg$c111; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUInt(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s4 = peg$c111; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseUInt(); - if (s5 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s6 = peg$c111; - peg$currPos++; - } else { - s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s6 !== peg$FAILED) { - s7 = peg$parseUInt(); - if (s7 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP6() { - var s0, s1, s2, s3, s4, s5, s6, s7; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$currPos; - s3 = peg$parseHex(); - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s4 = peg$c20; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseHex(); - if (s5 !== peg$FAILED) { - s6 = peg$currPos; - peg$silentFails++; - s7 = peg$parseHexDigit(); - if (s7 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s7 = peg$c20; - peg$currPos++; - } else { - s7 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - } - peg$silentFails--; - if (s7 === peg$FAILED) { - s6 = void 0; - } else { - peg$currPos = s6; - s6 = peg$FAILED; - } - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIP6Variations(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c5(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP6Variations() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseHexColon(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseHexColon(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseIP6Tail(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c517(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseHex(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseColonHex(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseColonHex(); - } - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c518) { - s3 = peg$c518; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseHexColon(); - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseHexColon(); - } - if (s4 !== peg$FAILED) { - s5 = peg$parseIP6Tail(); - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c520(s1, s2, s4, s5); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c518) { - s1 = peg$c518; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseHexColon(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseHexColon(); - } - if (s2 !== peg$FAILED) { - s3 = peg$parseIP6Tail(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c521(s2, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseHex(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseColonHex(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseColonHex(); - } - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c518) { - s3 = peg$c518; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c522(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c518) { - s1 = peg$c518; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c519); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c523(); - } - s0 = s1; - } - } - } - } - - return s0; - } - - function peg$parseIP6Tail() { - var s0; - - s0 = peg$parseIP(); - if (s0 === peg$FAILED) { - s0 = peg$parseHex(); - } - - return s0; - } - - function peg$parseColonHex() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 58) { - s1 = peg$c20; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseHex(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c524(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHexColon() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$parseHex(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 58) { - s2 = peg$c20; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c21); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c525(s1); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP4Net() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s2 = peg$c294; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUIntString(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c526(s1, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseIP6Net() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseIP6(); - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s2 = peg$c294; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUIntString(); - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c526(s1, s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseUInt() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseUIntString(); - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c527(s1); - } - s0 = s1; - - return s0; - } - - function peg$parseIntString() { - var s0; - - s0 = peg$parseUIntString(); - if (s0 === peg$FAILED) { - s0 = peg$parseMinusIntString(); - } - - return s0; - } - - function peg$parseUIntString() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c494.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseMinusIntString() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseUIntString(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseFloatString() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - s2 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s3 !== peg$FAILED) { - while (s3 !== peg$FAILED) { - s2.push(s3); - if (peg$c494.test(input.charAt(peg$currPos))) { - s3 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s3 = peg$c111; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s3 !== peg$FAILED) { - s4 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - while (s5 !== peg$FAILED) { - s4.push(s5); - if (peg$c494.test(input.charAt(peg$currPos))) { - s5 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - if (s4 !== peg$FAILED) { - s5 = peg$parseExponentPart(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c528(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 46) { - s2 = peg$c111; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c112); } - } - if (s2 !== peg$FAILED) { - s3 = []; - if (peg$c494.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - if (s4 !== peg$FAILED) { - while (s4 !== peg$FAILED) { - s3.push(s4); - if (peg$c494.test(input.charAt(peg$currPos))) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - } else { - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - s4 = peg$parseExponentPart(); - if (s4 === peg$FAILED) { - s4 = null; - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c528(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = peg$parseNaN(); - if (s1 === peg$FAILED) { - s1 = peg$parseInfinity(); - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - } - } - - return s0; - } - - function peg$parseExponentPart() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 1).toLowerCase() === peg$c529) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c530); } - } - if (s1 !== peg$FAILED) { - if (peg$c531.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c532); } - } - if (s2 === peg$FAILED) { - s2 = null; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseUIntString(); - if (s3 !== peg$FAILED) { - s1 = [s1, s2, s3]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseNaN() { - var s0; - - if (input.substr(peg$currPos, 3) === peg$c533) { - s0 = peg$c533; - peg$currPos += 3; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c534); } - } - - return s0; - } - - function peg$parseInfinity() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 45) { - s1 = peg$c292; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c293); } - } - if (s1 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 43) { - s1 = peg$c290; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c291); } - } - } - if (s1 === peg$FAILED) { - s1 = null; - } - if (s1 !== peg$FAILED) { - if (input.substr(peg$currPos, 3) === peg$c535) { - s2 = peg$c535; - peg$currPos += 3; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c536); } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseHex() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseHexDigit(); - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseHexDigit(); - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseHexDigit() { - var s0; - - if (peg$c537.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c538); } - } - - return s0; - } - - function peg$parseQuotedString() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c417; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseDoubleQuotedChar(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseDoubleQuotedChar(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 34) { - s3 = peg$c417; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c539(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 39) { - s1 = peg$c419; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseSingleQuotedChar(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseSingleQuotedChar(); - } - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 39) { - s3 = peg$c419; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s3 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c539(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseDoubleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 34) { - s2 = peg$c417; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s2 === peg$FAILED) { - s2 = peg$parseEscapedChar(); - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - if (input.length > peg$currPos) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseEscapeSequence(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseKeyWord() { - var s0, s1, s2, s3; - - s0 = peg$currPos; - s1 = peg$parseKeyWordStart(); - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$parseKeyWordRest(); - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$parseKeyWordRest(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c541(s1, s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseKeyWordStart() { - var s0; - - s0 = peg$parseKeyWordChars(); - if (s0 === peg$FAILED) { - s0 = peg$parseKeyWordEsc(); - } - - return s0; - } - - function peg$parseKeyWordRest() { - var s0; - - s0 = peg$parseKeyWordStart(); - if (s0 === peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - - return s0; - } - - function peg$parseKeyWordChars() { - var s0, s1; - - s0 = peg$currPos; - s1 = peg$parseUnicodeLetter(); - if (s1 === peg$FAILED) { - if (peg$c542.test(input.charAt(peg$currPos))) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c543); } - } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseKeyWordEsc() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseKeywordEscape(); - if (s2 === peg$FAILED) { - s2 = peg$parseEscapeSequence(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobPattern() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - s2 = peg$parseGlobProperStart(); - peg$silentFails--; - if (s2 !== peg$FAILED) { - peg$currPos = s1; - s1 = void 0; - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - peg$silentFails++; - s3 = peg$parseGlobHasStar(); - peg$silentFails--; - if (s3 !== peg$FAILED) { - peg$currPos = s2; - s2 = void 0; - } else { - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - s3 = peg$parseGlobStart(); - if (s3 !== peg$FAILED) { - s4 = []; - s5 = peg$parseGlobRest(); - while (s5 !== peg$FAILED) { - s4.push(s5); - s5 = peg$parseGlobRest(); - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c544(s3, s4); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobProperStart() { - var s0, s1, s2; - - s0 = peg$parseKeyWordStart(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - s1 = []; - if (input.charCodeAt(peg$currPos) === 42) { - s2 = peg$c83; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (input.charCodeAt(peg$currPos) === 42) { - s2 = peg$c83; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - s2 = peg$parseKeyWordRest(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseGlobHasStar() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseKeyWordRest(); - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseKeyWordRest(); - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 42) { - s2 = peg$c83; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobStart() { - var s0, s1; - - s0 = peg$parseKeyWordChars(); - if (s0 === peg$FAILED) { - s0 = peg$parseGlobEsc(); - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c545(); - } - s0 = s1; - } - } - - return s0; - } - - function peg$parseGlobRest() { - var s0; - - s0 = peg$parseGlobStart(); - if (s0 === peg$FAILED) { - if (peg$c494.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c495); } - } - } - - return s0; - } - - function peg$parseGlobEsc() { - var s0, s1, s2; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseGlobEscape(); - if (s2 === peg$FAILED) { - s2 = peg$parseEscapeSequence(); - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseGlobEscape() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 61) { - s1 = peg$c8; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c546(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c547(); - } - s0 = s1; - if (s0 === peg$FAILED) { - if (peg$c531.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c532); } - } - } - } - - return s0; - } - - function peg$parseSingleQuotedChar() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = peg$currPos; - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 39) { - s2 = peg$c419; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s2 === peg$FAILED) { - s2 = peg$parseEscapedChar(); - } - peg$silentFails--; - if (s2 === peg$FAILED) { - s1 = void 0; - } else { - peg$currPos = s1; - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - if (input.length > peg$currPos) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c422; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseEscapeSequence(); - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c192(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseEscapeSequence() { - var s0; - - s0 = peg$parseSingleCharEscape(); - if (s0 === peg$FAILED) { - s0 = peg$parseUnicodeEscape(); - } - - return s0; - } - - function peg$parseSingleCharEscape() { - var s0, s1; - - if (input.charCodeAt(peg$currPos) === 39) { - s0 = peg$c419; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c420); } - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 34) { - s1 = peg$c417; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c418); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 92) { - s0 = peg$c422; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 98) { - s1 = peg$c548; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c549); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c550(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 102) { - s1 = peg$c551; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c552); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c553(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 110) { - s1 = peg$c554; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c555); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c556(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 114) { - s1 = peg$c557; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c558); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c559(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 116) { - s1 = peg$c560; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c561); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c562(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 118) { - s1 = peg$c563; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c564); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c565(); - } - s0 = s1; - } - } - } - } - } - } - } - } - - return s0; - } - - function peg$parseKeywordEscape() { - var s0, s1; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 61) { - s1 = peg$c8; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c9); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c546(); - } - s0 = s1; - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 42) { - s1 = peg$c83; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c84); } - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c545(); - } - s0 = s1; - if (s0 === peg$FAILED) { - if (peg$c531.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c532); } - } - } - } - - return s0; - } - - function peg$parseUnicodeEscape() { - var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 117) { - s1 = peg$c566; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c567); } - } - if (s1 !== peg$FAILED) { - s2 = peg$currPos; - s3 = peg$parseHexDigit(); - if (s3 !== peg$FAILED) { - s4 = peg$parseHexDigit(); - if (s4 !== peg$FAILED) { - s5 = peg$parseHexDigit(); - if (s5 !== peg$FAILED) { - s6 = peg$parseHexDigit(); - if (s6 !== peg$FAILED) { - s3 = [s3, s4, s5, s6]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - if (s2 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c568(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - if (s0 === peg$FAILED) { - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 117) { - s1 = peg$c566; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c567); } - } - if (s1 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 123) { - s2 = peg$c47; - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c48); } - } - if (s2 !== peg$FAILED) { - s3 = peg$currPos; - s4 = peg$parseHexDigit(); - if (s4 !== peg$FAILED) { - s5 = peg$parseHexDigit(); - if (s5 === peg$FAILED) { - s5 = null; - } - if (s5 !== peg$FAILED) { - s6 = peg$parseHexDigit(); - if (s6 === peg$FAILED) { - s6 = null; - } - if (s6 !== peg$FAILED) { - s7 = peg$parseHexDigit(); - if (s7 === peg$FAILED) { - s7 = null; - } - if (s7 !== peg$FAILED) { - s8 = peg$parseHexDigit(); - if (s8 === peg$FAILED) { - s8 = null; - } - if (s8 !== peg$FAILED) { - s9 = peg$parseHexDigit(); - if (s9 === peg$FAILED) { - s9 = null; - } - if (s9 !== peg$FAILED) { - s4 = [s4, s5, s6, s7, s8, s9]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - if (s3 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 125) { - s4 = peg$c325; - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c326); } - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c568(s3); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } - - return s0; - } - - function peg$parseRegexpPattern() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 47) { - s1 = peg$c294; - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s1 !== peg$FAILED) { - s2 = peg$parseRegexpBody(); - if (s2 !== peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 47) { - s3 = peg$c294; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c295); } - } - if (s3 !== peg$FAILED) { - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseKeyWordStart(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c216(s2); - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseRegexpBody() { - var s0, s1, s2, s3, s4; - - s0 = peg$currPos; - s1 = []; - if (peg$c569.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c570); } - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s3 = peg$c422; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s3 !== peg$FAILED) { - if (input.length > peg$currPos) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - while (s2 !== peg$FAILED) { - s1.push(s2); - if (peg$c569.test(input.charAt(peg$currPos))) { - s2 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c570); } - } - if (s2 === peg$FAILED) { - s2 = peg$currPos; - if (input.charCodeAt(peg$currPos) === 92) { - s3 = peg$c422; - peg$currPos++; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c423); } - } - if (s3 !== peg$FAILED) { - if (input.length > peg$currPos) { - s4 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - if (s4 !== peg$FAILED) { - s3 = [s3, s4]; - s2 = s3; - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } else { - peg$currPos = s2; - s2 = peg$FAILED; - } - } - } - } else { - s1 = peg$FAILED; - } - if (s1 !== peg$FAILED) { - peg$savedPos = s0; - s1 = peg$c75(); - } - s0 = s1; - - return s0; - } - - function peg$parseEscapedChar() { - var s0; - - if (peg$c571.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c572); } - } - - return s0; - } - - function peg$parse_() { - var s0, s1; - - s0 = []; - s1 = peg$parseAnySpace(); - if (s1 !== peg$FAILED) { - while (s1 !== peg$FAILED) { - s0.push(s1); - s1 = peg$parseAnySpace(); - } - } else { - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parse__() { - var s0, s1; - - s0 = []; - s1 = peg$parseAnySpace(); - while (s1 !== peg$FAILED) { - s0.push(s1); - s1 = peg$parseAnySpace(); - } - - return s0; - } - - function peg$parseAnySpace() { - var s0; - - s0 = peg$parseWhiteSpace(); - if (s0 === peg$FAILED) { - s0 = peg$parseLineTerminator(); - if (s0 === peg$FAILED) { - s0 = peg$parseComment(); - } - } - - return s0; - } - - function peg$parseUnicodeLetter() { - var s0; - - s0 = peg$parseLu(); - if (s0 === peg$FAILED) { - s0 = peg$parseLl(); - if (s0 === peg$FAILED) { - s0 = peg$parseLt(); - if (s0 === peg$FAILED) { - s0 = peg$parseLm(); - if (s0 === peg$FAILED) { - s0 = peg$parseLo(); - if (s0 === peg$FAILED) { - s0 = peg$parseNl(); - } - } - } - } - } - - return s0; - } - - function peg$parseUnicodeCombiningMark() { - var s0; - - s0 = peg$parseMn(); - if (s0 === peg$FAILED) { - s0 = peg$parseMc(); - } - - return s0; - } - - function peg$parseLl() { - var s0; - - if (peg$c573.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c574); } - } - - return s0; - } - - function peg$parseLm() { - var s0; - - if (peg$c575.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c576); } - } - - return s0; - } - - function peg$parseLo() { - var s0; - - if (peg$c577.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c578); } - } - - return s0; - } - - function peg$parseLt() { - var s0; - - if (peg$c579.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c580); } - } - - return s0; - } - - function peg$parseLu() { - var s0; - - if (peg$c581.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c582); } - } - - return s0; - } - - function peg$parseMc() { - var s0; - - if (peg$c583.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c584); } - } - - return s0; - } - - function peg$parseMn() { - var s0; - - if (peg$c585.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c586); } - } - - return s0; - } - - function peg$parseNd() { - var s0; - - if (peg$c587.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c588); } - } - - return s0; - } - - function peg$parseNl() { - var s0; - - if (peg$c589.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c590); } - } - - return s0; - } - - function peg$parsePc() { - var s0; - - if (peg$c591.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c592); } - } - - return s0; - } - - function peg$parseZs() { - var s0; - - if (peg$c593.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c594); } - } - - return s0; - } - - function peg$parseSourceCharacter() { - var s0; - - if (input.length > peg$currPos) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - - return s0; - } - - function peg$parseWhiteSpace() { - var s0, s1; - - peg$silentFails++; - if (input.charCodeAt(peg$currPos) === 9) { - s0 = peg$c596; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c597); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 11) { - s0 = peg$c598; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c599); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 12) { - s0 = peg$c600; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c601); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 32) { - s0 = peg$c602; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c603); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 160) { - s0 = peg$c604; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c605); } - } - if (s0 === peg$FAILED) { - if (input.charCodeAt(peg$currPos) === 65279) { - s0 = peg$c606; - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c607); } - } - if (s0 === peg$FAILED) { - s0 = peg$parseZs(); - } - } - } - } - } - } - peg$silentFails--; - if (s0 === peg$FAILED) { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c595); } - } - - return s0; - } - - function peg$parseLineTerminator() { - var s0; - - if (peg$c608.test(input.charAt(peg$currPos))) { - s0 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c609); } - } - - return s0; - } - - function peg$parseComment() { - var s0, s1; - - peg$silentFails++; - s0 = peg$parseSingleLineComment(); - peg$silentFails--; - if (s0 === peg$FAILED) { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c610); } - } - - return s0; - } - - function peg$parseMultiLineComment() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c611) { - s1 = peg$c611; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c612); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c613) { - s5 = peg$c613; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c614); } - } - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSourceCharacter(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$currPos; - peg$silentFails++; - if (input.substr(peg$currPos, 2) === peg$c613) { - s5 = peg$c613; - peg$currPos += 2; - } else { - s5 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c614); } - } - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSourceCharacter(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - if (input.substr(peg$currPos, 2) === peg$c613) { - s3 = peg$c613; - peg$currPos += 2; - } else { - s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c614); } - } - if (s3 !== peg$FAILED) { - s1 = [s1, s2, s3]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseSingleLineComment() { - var s0, s1, s2, s3, s4, s5; - - s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c615) { - s1 = peg$c615; - peg$currPos += 2; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c616); } - } - if (s1 !== peg$FAILED) { - s2 = []; - s3 = peg$currPos; - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseLineTerminator(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSourceCharacter(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - while (s3 !== peg$FAILED) { - s2.push(s3); - s3 = peg$currPos; - s4 = peg$currPos; - peg$silentFails++; - s5 = peg$parseLineTerminator(); - peg$silentFails--; - if (s5 === peg$FAILED) { - s4 = void 0; - } else { - peg$currPos = s4; - s4 = peg$FAILED; - } - if (s4 !== peg$FAILED) { - s5 = peg$parseSourceCharacter(); - if (s5 !== peg$FAILED) { - s4 = [s4, s5]; - s3 = s4; - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } else { - peg$currPos = s3; - s3 = peg$FAILED; - } - } - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEOL() { - var s0, s1, s2; - - s0 = peg$currPos; - s1 = []; - s2 = peg$parseWhiteSpace(); - while (s2 !== peg$FAILED) { - s1.push(s2); - s2 = peg$parseWhiteSpace(); - } - if (s1 !== peg$FAILED) { - s2 = peg$parseLineTerminator(); - if (s2 !== peg$FAILED) { - s1 = [s1, s2]; - s0 = s1; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEOT() { - var s0; - - s0 = peg$parse_(); - if (s0 === peg$FAILED) { - s0 = peg$parseEOF(); - } - - return s0; - } - - function peg$parseEOF() { - var s0, s1; - - s0 = peg$currPos; - peg$silentFails++; - if (input.length > peg$currPos) { - s1 = input.charAt(peg$currPos); - peg$currPos++; - } else { - s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$c540); } - } - peg$silentFails--; - if (s1 === peg$FAILED) { - s0 = void 0; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - function peg$parseEOKW() { - var s0, s1; - - s0 = peg$currPos; - peg$silentFails++; - s1 = peg$parseKeyWordChars(); - peg$silentFails--; - if (s1 === peg$FAILED) { - s0 = void 0; - } else { - peg$currPos = s0; - s0 = peg$FAILED; - } - - return s0; - } - - - - let reglob = require("../../pkg/reglob/reglob") - - function makeArgMap(args) { - let m = {}; - for (let arg of args) { - if (arg.name in m) { - throw new Error(`Duplicate argument -${arg.name}`); - } - m[arg.name] = arg.value - } - return m - } - - function makeBinaryExprChain(first, rest) { - let ret = first - for (let part of rest) { - ret = { kind: "BinaryExpr", op: part[0], lhs: ret, rhs: part[1] }; - } - return ret - } - - function makeTemplateExprChain(args) { - let ret = args[0] - for (let part of args.slice(1)) { - ret = { kind: "BinaryExpr", op: "+", lhs: ret, rhs: part }; - } - return ret - } - - function joinChars(chars) { - return chars.join(""); - } - - function OR(a, b) { - return a || b - } - - function makeUnicodeChar(chars) { - let n = parseInt(chars.join(""), 16); - if (n < 0x10000) { - return String.fromCharCode(n); - } - - // stupid JavaScript 16 bit code points... - n -= 0x10000; - let surrogate1 = 0xD800 + ((n >> 10) & 0x7ff); - let surrogate2 = 0xDC00 + (n & 0x3ff); - return String.fromCharCode(surrogate1) + String.fromCharCode(surrogate2); - } - - - - peg$result = peg$startRuleFunction(); - - if (peg$result !== peg$FAILED && peg$currPos === input.length) { - return peg$result; - } else { - if (peg$result !== peg$FAILED && peg$currPos < input.length) { - peg$fail(peg$endExpectation()); - } - - throw peg$buildStructuredError( - peg$maxFailExpected, - peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, - peg$maxFailPos < input.length - ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) - : peg$computeLocation(peg$maxFailPos, peg$maxFailPos) - ); - } -} - -module.exports = { - SyntaxError: peg$SyntaxError, - parse: peg$parse -}; diff --git a/compiler/parser/parser.peg b/compiler/parser/parser.peg index 4ae48e205b..b1a184fdc9 100644 --- a/compiler/parser/parser.peg +++ b/compiler/parser/parser.peg @@ -1,4 +1,3 @@ -#ifdef GO { package parser } @@ -20,29 +19,6 @@ #define RETURN(x) return x, nil #define TEXT string(c.text) #define VAR(x) var x -#else -{ -#include "support.js" -} -#define APPEND(arr, value) arr.push(value) -#define ARRAY(...) [__VA_ARGS__] -#define ARRAY_LEN(a) a.length -#define ASSERT_ARRAY(a) a -#define ASSERT_INT(i) i -#define ASSERT_MAP(m) m -#define ASSERT_STRING(s) s -#define FOREACH(arr, var) for(let var of arr) -#define HAS(m, k) (k in m) -#define ISNOTNULL(n) (n) -#define ISNULL(n) (!n) -#define MAP(...) {__VA_ARGS__} -#define NULL null -#define PREPEND(value, arr) [value, ...arr] -#define PRINT(...) console.log(__VAR_ARGS__) -#define RETURN(x) return x -#define TEXT text() -#define VAR(x) let x -#endif start = __ scope:Scope __ EOF { RETURN(ARRAY(scope)) } diff --git a/compiler/parser/parser_test.go b/compiler/parser/parser_test.go index 672da844b8..ee128afe0b 100644 --- a/compiler/parser/parser_test.go +++ b/compiler/parser/parser_test.go @@ -5,10 +5,8 @@ import ( "encoding/json" "fmt" "os" - "os/exec" "path/filepath" "regexp" - "runtime" "strings" "testing" @@ -41,12 +39,6 @@ func searchForZed() ([]string, error) { return zed, err } -func parsePEGjs(z string) ([]byte, error) { - cmd := exec.Command("node", "run.js", "-e", "start") - cmd.Stdin = strings.NewReader(z) - return cmd.Output() -} - func parseOp(z string) ([]byte, error) { o, err := compiler.Parse(z) if err != nil { @@ -76,12 +68,6 @@ func testZed(t *testing.T, line string) { assert.NoError(t, err, "parseOp: %q", line) assert.JSONEq(t, string(pigeonJSON), string(astJSON), "pigeon and AST mismatch: %q", line) - - if runtime.GOOS != "windows" { - pegJSON, err := parsePEGjs(line) - assert.NoError(t, err, "parsePEGjs: %q", line) - assert.JSONEq(t, string(pigeonJSON), string(pegJSON), "pigeon and PEGjs mismatch: %q", line) - } } func TestValid(t *testing.T) { diff --git a/compiler/parser/run.js b/compiler/parser/run.js deleted file mode 100644 index 0e284177e4..0000000000 --- a/compiler/parser/run.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -const fs = require('fs'); -const parser = require('./parser') - -let startRule = 'start'; - -function show(obj) { - console.log(JSON.stringify(obj, null, 4)); -} - -function wrap(e) { - return { op: 'Error', error: e }; -} - -function parse_query(line) { - try { - return parser.parse(line, {startRule}); - } catch (e) { - return wrap(e); - } -} - -let filename = '/dev/stdin'; -let argv = process.argv.slice(2); - -while (argv.length > 0) { - if (argv[0] === "-e" && argv.length > 1) { - startRule = argv[1]; - argv = argv.slice(2); - } else { - filename = argv.shift(); - } -} - -let zsrc; -try { - zsrc = fs.readFileSync(filename, 'utf8'); -} catch (e) { - show(wrap(e)); - process.exit(1); -} -show(parse_query(zsrc)); diff --git a/compiler/parser/support.js b/compiler/parser/support.js deleted file mode 100644 index d4939cf399..0000000000 --- a/compiler/parser/support.js +++ /dev/null @@ -1,49 +0,0 @@ -let reglob = require("../../pkg/reglob/reglob") - -function makeArgMap(args) { - let m = {}; - for (let arg of args) { - if (arg.name in m) { - throw new Error(`Duplicate argument -${arg.name}`); - } - m[arg.name] = arg.value - } - return m -} - -function makeBinaryExprChain(first, rest) { - let ret = first - for (let part of rest) { - ret = { kind: "BinaryExpr", op: part[0], lhs: ret, rhs: part[1] }; - } - return ret -} - -function makeTemplateExprChain(args) { - let ret = args[0] - for (let part of args.slice(1)) { - ret = { kind: "BinaryExpr", op: "+", lhs: ret, rhs: part }; - } - return ret -} - -function joinChars(chars) { - return chars.join(""); -} - -function OR(a, b) { - return a || b -} - -function makeUnicodeChar(chars) { - let n = parseInt(chars.join(""), 16); - if (n < 0x10000) { - return String.fromCharCode(n); - } - - // stupid JavaScript 16 bit code points... - n -= 0x10000; - let surrogate1 = 0xD800 + ((n >> 10) & 0x7ff); - let surrogate2 = 0xDC00 + (n & 0x3ff); - return String.fromCharCode(surrogate1) + String.fromCharCode(surrogate2); -}