2024-02-11 22:15:08 +02:00
|
|
|
// Code generated by pigeon; DO NOT EDIT.
|
|
|
|
|
|
|
|
package nosql
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"errors"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"math"
|
|
|
|
"os"
|
|
|
|
"sort"
|
|
|
|
"strconv"
|
|
|
|
"strings"
|
|
|
|
"sync"
|
|
|
|
"unicode"
|
|
|
|
"unicode/utf8"
|
|
|
|
|
2024-02-11 23:14:30 +02:00
|
|
|
"github.com/pikami/cosmium/parsers"
|
2024-02-11 22:15:08 +02:00
|
|
|
)
|
|
|
|
|
2024-02-27 21:10:03 +02:00
|
|
|
func makeSelectStmt(
|
2024-12-07 22:29:26 +02:00
|
|
|
columns, fromClause, joinItems,
|
2024-02-27 21:10:03 +02:00
|
|
|
whereClause interface{}, distinctClause interface{},
|
2024-03-11 17:50:20 +02:00
|
|
|
count interface{}, groupByClause interface{}, orderList interface{},
|
2024-03-11 22:02:10 +02:00
|
|
|
offsetClause interface{},
|
2024-02-27 21:10:03 +02:00
|
|
|
) (parsers.SelectStmt, error) {
|
2024-02-11 23:14:30 +02:00
|
|
|
selectStmt := parsers.SelectStmt{
|
2024-02-13 21:22:55 +02:00
|
|
|
SelectItems: columns.([]parsers.SelectItem),
|
2024-12-07 22:29:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
if fromTable, ok := fromClause.(parsers.Table); ok {
|
|
|
|
selectStmt.Table = fromTable
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-07-17 21:40:28 +03:00
|
|
|
if joinItemsArray, ok := joinItems.([]interface{}); ok && len(joinItemsArray) > 0 {
|
|
|
|
selectStmt.JoinItems = make([]parsers.JoinItem, len(joinItemsArray))
|
|
|
|
for i, joinItem := range joinItemsArray {
|
|
|
|
selectStmt.JoinItems[i] = joinItem.(parsers.JoinItem)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-25 22:13:04 +02:00
|
|
|
switch v := whereClause.(type) {
|
|
|
|
case parsers.ComparisonExpression, parsers.LogicalExpression, parsers.Constant, parsers.SelectItem:
|
|
|
|
selectStmt.Filters = v
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-27 21:10:03 +02:00
|
|
|
if distinctClause != nil {
|
|
|
|
selectStmt.Distinct = true
|
|
|
|
}
|
|
|
|
|
2024-02-14 21:03:49 +02:00
|
|
|
if n, ok := count.(int); ok {
|
|
|
|
selectStmt.Count = n
|
|
|
|
}
|
|
|
|
|
2024-03-11 22:02:10 +02:00
|
|
|
if offsetArr, ok := offsetClause.([]interface{}); ok && len(offsetArr) == 2 {
|
|
|
|
if n, ok := offsetArr[0].(int); ok {
|
|
|
|
selectStmt.Offset = n
|
|
|
|
}
|
|
|
|
|
|
|
|
if n, ok := offsetArr[1].(int); ok {
|
|
|
|
selectStmt.Count = n
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-17 22:26:30 +02:00
|
|
|
if orderExpressions, ok := orderList.([]parsers.OrderExpression); ok {
|
|
|
|
selectStmt.OrderExpressions = orderExpressions
|
|
|
|
}
|
|
|
|
|
2024-03-11 17:50:20 +02:00
|
|
|
if groupByClause != nil {
|
|
|
|
selectStmt.GroupBy = groupByClause.([]parsers.SelectItem)
|
|
|
|
}
|
|
|
|
|
2024-02-11 22:15:08 +02:00
|
|
|
return selectStmt, nil
|
|
|
|
}
|
|
|
|
|
2024-07-17 21:40:28 +03:00
|
|
|
func makeJoin(table interface{}, column interface{}) (parsers.JoinItem, error) {
|
2024-12-07 22:29:26 +02:00
|
|
|
joinItem := parsers.JoinItem{}
|
|
|
|
|
|
|
|
if selectItem, isSelectItem := column.(parsers.SelectItem); isSelectItem {
|
|
|
|
joinItem.SelectItem = selectItem
|
|
|
|
joinItem.Table.Value = selectItem.Alias
|
|
|
|
}
|
|
|
|
|
|
|
|
if tableTyped, isTable := table.(parsers.Table); isTable {
|
|
|
|
joinItem.Table = tableTyped
|
|
|
|
}
|
|
|
|
|
|
|
|
return joinItem, nil
|
2024-07-17 21:40:28 +03:00
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
func makeSelectItem(name interface{}, path interface{}, selectItemType parsers.SelectItemType) (parsers.SelectItem, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
ps := path.([]interface{})
|
|
|
|
|
|
|
|
paths := make([]string, 1)
|
|
|
|
paths[0] = name.(string)
|
|
|
|
for _, p := range ps {
|
2024-02-12 00:55:07 +02:00
|
|
|
paths = append(paths, p.(string))
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
return parsers.SelectItem{Path: paths, Type: selectItemType}, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-13 21:22:55 +02:00
|
|
|
func makeColumnList(column interface{}, other_columns interface{}) ([]parsers.SelectItem, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
collsAsArray := other_columns.([]interface{})
|
2024-02-13 21:22:55 +02:00
|
|
|
columnList := make([]parsers.SelectItem, len(collsAsArray)+1)
|
|
|
|
columnList[0] = column.(parsers.SelectItem)
|
2024-02-11 22:15:08 +02:00
|
|
|
|
|
|
|
for i, v := range collsAsArray {
|
2024-02-13 21:22:55 +02:00
|
|
|
if col, ok := v.(parsers.SelectItem); ok {
|
2024-02-11 22:15:08 +02:00
|
|
|
columnList[i+1] = col
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return columnList, nil
|
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
func makeSelectArray(columns interface{}) (parsers.SelectItem, error) {
|
|
|
|
return parsers.SelectItem{
|
2024-02-13 21:57:33 +02:00
|
|
|
SelectItems: columns.([]parsers.SelectItem),
|
|
|
|
Type: parsers.SelectItemTypeArray,
|
2024-02-13 22:42:18 +02:00
|
|
|
}, nil
|
|
|
|
}
|
2024-02-13 21:57:33 +02:00
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
func makeSelectObject(field interface{}, other_fields interface{}) (parsers.SelectItem, error) {
|
|
|
|
fieldsAsArray := other_fields.([]interface{})
|
|
|
|
fieldsList := make([]parsers.SelectItem, len(fieldsAsArray)+1)
|
|
|
|
fieldsList[0] = field.(parsers.SelectItem)
|
|
|
|
|
|
|
|
for i, v := range fieldsAsArray {
|
|
|
|
if col, ok := v.(parsers.SelectItem); ok {
|
|
|
|
fieldsList[i+1] = col
|
|
|
|
}
|
2024-02-13 21:57:33 +02:00
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
return parsers.SelectItem{
|
|
|
|
SelectItems: fieldsList,
|
|
|
|
Type: parsers.SelectItemTypeObject,
|
|
|
|
}, nil
|
2024-02-13 21:57:33 +02:00
|
|
|
}
|
|
|
|
|
2024-02-17 22:26:30 +02:00
|
|
|
func makeOrderByClause(ex1 interface{}, others interface{}) ([]parsers.OrderExpression, error) {
|
|
|
|
othersArray := others.([]interface{})
|
|
|
|
orderList := make([]parsers.OrderExpression, len(othersArray)+1)
|
|
|
|
orderList[0] = ex1.(parsers.OrderExpression)
|
|
|
|
|
|
|
|
for i, v := range othersArray {
|
|
|
|
if col, ok := v.(parsers.OrderExpression); ok {
|
|
|
|
orderList[i+1] = col
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return orderList, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func makeOrderExpression(field interface{}, order interface{}) (parsers.OrderExpression, error) {
|
|
|
|
value := parsers.OrderExpression{
|
|
|
|
SelectItem: field.(parsers.SelectItem),
|
|
|
|
Direction: parsers.OrderDirectionAsc,
|
|
|
|
}
|
|
|
|
|
|
|
|
if orderValue, ok := order.(parsers.OrderDirection); ok {
|
|
|
|
value.Direction = orderValue
|
|
|
|
}
|
|
|
|
|
|
|
|
return value, nil
|
|
|
|
}
|
|
|
|
|
2024-02-24 21:24:20 +02:00
|
|
|
func createFunctionCall(functionType parsers.FunctionCallType, arguments []interface{}) (parsers.FunctionCall, error) {
|
|
|
|
return parsers.FunctionCall{Type: functionType, Arguments: arguments}, nil
|
|
|
|
}
|
|
|
|
|
2024-02-11 22:15:08 +02:00
|
|
|
func joinStrings(array []interface{}) string {
|
|
|
|
var stringsArray []string
|
|
|
|
for _, elem := range array {
|
|
|
|
str, ok := elem.(string)
|
|
|
|
if !ok {
|
|
|
|
continue
|
|
|
|
}
|
|
|
|
stringsArray = append(stringsArray, str)
|
|
|
|
}
|
|
|
|
|
|
|
|
return strings.Join(stringsArray, "")
|
|
|
|
}
|
|
|
|
|
2024-02-11 23:14:30 +02:00
|
|
|
func combineExpressions(ex1 interface{}, exs interface{}, operation parsers.LogicalExpressionType) (interface{}, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
if exs == nil || len(exs.([]interface{})) < 1 {
|
|
|
|
return ex1, nil
|
|
|
|
}
|
|
|
|
|
2024-02-11 23:14:30 +02:00
|
|
|
return parsers.LogicalExpression{
|
2024-02-11 22:15:08 +02:00
|
|
|
Expressions: append([]interface{}{ex1}, exs.([]interface{})...),
|
|
|
|
Operation: operation,
|
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
var g = &grammar{
|
|
|
|
rules: []*rule{
|
|
|
|
{
|
|
|
|
name: "Input",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 183, col: 1, offset: 4923},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 183, col: 10, offset: 4932},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonInput1,
|
|
|
|
expr: &labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 183, col: 10, offset: 4932},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "selectStmt",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 183, col: 21, offset: 4943},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "SelectStmt",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SelectStmt",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 187, col: 1, offset: 4986},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 187, col: 15, offset: 5000},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonSelectStmt1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 187, col: 15, offset: 5000},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 187, col: 15, offset: 5000},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "Select",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 187, col: 22, offset: 5007},
|
2024-02-27 21:10:03 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 188, col: 5, offset: 5014},
|
2024-02-27 21:10:03 +02:00
|
|
|
label: "distinctClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 188, col: 20, offset: 5029},
|
2024-02-27 21:10:03 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 188, col: 20, offset: 5029},
|
2024-02-27 21:10:03 +02:00
|
|
|
name: "DistinctClause",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 188, col: 36, offset: 5045},
|
2024-02-14 21:03:49 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 189, col: 5, offset: 5052},
|
2024-02-14 21:03:49 +02:00
|
|
|
label: "topClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 189, col: 15, offset: 5062},
|
2024-02-14 21:03:49 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 189, col: 15, offset: 5062},
|
2024-02-14 21:03:49 +02:00
|
|
|
name: "TopClause",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 189, col: 26, offset: 5073},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 190, col: 5, offset: 5080},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "columns",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 190, col: 13, offset: 5088},
|
2024-02-13 21:22:55 +02:00
|
|
|
name: "Selection",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 190, col: 23, offset: 5098},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 191, col: 5, offset: 5105},
|
|
|
|
label: "fromClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
|
|
|
pos: position{line: 191, col: 16, offset: 5116},
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 191, col: 16, offset: 5116},
|
|
|
|
name: "FromClause",
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 191, col: 28, offset: 5128},
|
2024-07-17 21:40:28 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 192, col: 5, offset: 5135},
|
2024-07-17 21:40:28 +03:00
|
|
|
label: "joinClauses",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 192, col: 17, offset: 5147},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 192, col: 18, offset: 5148},
|
|
|
|
run: (*parser).callonSelectStmt22,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 192, col: 18, offset: 5148},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 192, col: 18, offset: 5148},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 192, col: 21, offset: 5151},
|
|
|
|
label: "join",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 192, col: 26, offset: 5156},
|
|
|
|
name: "JoinClause",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-07-17 21:40:28 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 192, col: 60, offset: 5190},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 5, offset: 5197},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "whereClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 17, offset: 5209},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 18, offset: 5210},
|
|
|
|
run: (*parser).callonSelectStmt30,
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 18, offset: 5210},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 18, offset: 5210},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 21, offset: 5213},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "Where",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 27, offset: 5219},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 30, offset: 5222},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "condition",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 193, col: 40, offset: 5232},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "Condition",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-17 22:26:30 +02:00
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 5, offset: 5274},
|
2024-03-11 17:50:20 +02:00
|
|
|
label: "groupByClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 19, offset: 5288},
|
2024-03-11 17:50:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 20, offset: 5289},
|
|
|
|
run: (*parser).callonSelectStmt39,
|
2024-03-11 17:50:20 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 20, offset: 5289},
|
2024-03-11 17:50:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 20, offset: 5289},
|
2024-03-11 17:50:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 23, offset: 5292},
|
2024-03-11 17:50:20 +02:00
|
|
|
name: "GroupBy",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 31, offset: 5300},
|
2024-03-11 17:50:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 34, offset: 5303},
|
2024-03-11 17:50:20 +02:00
|
|
|
label: "columns",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 194, col: 42, offset: 5311},
|
2024-03-11 17:50:20 +02:00
|
|
|
name: "ColumnList",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 195, col: 5, offset: 5352},
|
2024-02-17 22:26:30 +02:00
|
|
|
label: "orderByClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 195, col: 19, offset: 5366},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 195, col: 20, offset: 5367},
|
|
|
|
run: (*parser).callonSelectStmt48,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 195, col: 20, offset: 5367},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 195, col: 20, offset: 5367},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 195, col: 23, offset: 5370},
|
|
|
|
label: "order",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 195, col: 29, offset: 5376},
|
|
|
|
name: "OrderByClause",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-17 22:26:30 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-03-11 22:02:10 +02:00
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 196, col: 5, offset: 5418},
|
2024-03-11 22:02:10 +02:00
|
|
|
label: "offsetClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 196, col: 18, offset: 5431},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 196, col: 19, offset: 5432},
|
|
|
|
run: (*parser).callonSelectStmt55,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 196, col: 19, offset: 5432},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 196, col: 19, offset: 5432},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 196, col: 22, offset: 5435},
|
|
|
|
label: "offset",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 196, col: 29, offset: 5442},
|
|
|
|
name: "OffsetClause",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-03-11 22:02:10 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-27 21:10:03 +02:00
|
|
|
{
|
|
|
|
name: "DistinctClause",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 201, col: 1, offset: 5637},
|
2024-02-27 21:10:03 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 201, col: 19, offset: 5655},
|
2024-02-27 21:10:03 +02:00
|
|
|
val: "distinct",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"DISTINCT\"i",
|
|
|
|
},
|
|
|
|
},
|
2024-02-14 21:03:49 +02:00
|
|
|
{
|
|
|
|
name: "TopClause",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 203, col: 1, offset: 5668},
|
2024-02-14 21:03:49 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 203, col: 14, offset: 5681},
|
2024-02-14 21:03:49 +02:00
|
|
|
run: (*parser).callonTopClause1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 203, col: 14, offset: 5681},
|
2024-02-14 21:03:49 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 203, col: 14, offset: 5681},
|
2024-02-14 21:03:49 +02:00
|
|
|
name: "Top",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 203, col: 18, offset: 5685},
|
2024-02-14 21:03:49 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 203, col: 21, offset: 5688},
|
2024-02-14 21:03:49 +02:00
|
|
|
label: "count",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 203, col: 27, offset: 5694},
|
2024-02-14 21:03:49 +02:00
|
|
|
name: "Integer",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-07-17 21:40:28 +03:00
|
|
|
{
|
2024-12-07 22:29:26 +02:00
|
|
|
name: "FromClause",
|
|
|
|
pos: position{line: 207, col: 1, offset: 5729},
|
|
|
|
expr: &choiceExpr{
|
|
|
|
pos: position{line: 207, col: 15, offset: 5743},
|
|
|
|
alternatives: []any{
|
|
|
|
&actionExpr{
|
|
|
|
pos: position{line: 207, col: 15, offset: 5743},
|
|
|
|
run: (*parser).callonFromClause2,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 207, col: 15, offset: 5743},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 207, col: 15, offset: 5743},
|
|
|
|
name: "From",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 207, col: 20, offset: 5748},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 207, col: 23, offset: 5751},
|
|
|
|
label: "table",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 207, col: 29, offset: 5757},
|
|
|
|
name: "TableName",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 207, col: 39, offset: 5767},
|
|
|
|
label: "selectItem",
|
|
|
|
expr: &zeroOrOneExpr{
|
|
|
|
pos: position{line: 207, col: 50, offset: 5778},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 207, col: 51, offset: 5779},
|
|
|
|
run: (*parser).callonFromClause10,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 207, col: 51, offset: 5779},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 207, col: 51, offset: 5779},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 207, col: 54, offset: 5782},
|
|
|
|
val: "in",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 207, col: 60, offset: 5788},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 207, col: 63, offset: 5791},
|
|
|
|
label: "column",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 207, col: 70, offset: 5798},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&actionExpr{
|
|
|
|
pos: position{line: 215, col: 5, offset: 5997},
|
|
|
|
run: (*parser).callonFromClause17,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 215, col: 5, offset: 5997},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 215, col: 5, offset: 5997},
|
|
|
|
name: "From",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 215, col: 10, offset: 6002},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 215, col: 13, offset: 6005},
|
|
|
|
label: "subQuery",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 215, col: 22, offset: 6014},
|
|
|
|
name: "SubQuerySelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SubQuery",
|
|
|
|
pos: position{line: 224, col: 1, offset: 6195},
|
2024-07-17 21:40:28 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 224, col: 13, offset: 6207},
|
|
|
|
run: (*parser).callonSubQuery1,
|
2024-07-17 21:40:28 +03:00
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 224, col: 13, offset: 6207},
|
2024-07-17 21:40:28 +03:00
|
|
|
exprs: []any{
|
2024-12-07 22:29:26 +02:00
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 224, col: 13, offset: 6207},
|
|
|
|
label: "exists",
|
|
|
|
expr: &zeroOrOneExpr{
|
|
|
|
pos: position{line: 224, col: 20, offset: 6214},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 224, col: 21, offset: 6215},
|
|
|
|
run: (*parser).callonSubQuery5,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 224, col: 21, offset: 6215},
|
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 224, col: 21, offset: 6215},
|
|
|
|
label: "exists",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 224, col: 28, offset: 6222},
|
|
|
|
name: "Exists",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 224, col: 35, offset: 6229},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 224, col: 63, offset: 6257},
|
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
2024-07-17 21:40:28 +03:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 224, col: 67, offset: 6261},
|
2024-07-17 21:40:28 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 224, col: 70, offset: 6264},
|
|
|
|
label: "selectStmt",
|
2024-07-17 21:40:28 +03:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 224, col: 81, offset: 6275},
|
|
|
|
name: "SelectStmt",
|
2024-07-17 21:40:28 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 224, col: 92, offset: 6286},
|
2024-07-17 21:40:28 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 224, col: 95, offset: 6289},
|
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
2024-07-17 21:40:28 +03:00
|
|
|
},
|
2024-12-07 22:29:26 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SubQuerySelectItem",
|
|
|
|
pos: position{line: 233, col: 1, offset: 6501},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 233, col: 23, offset: 6523},
|
|
|
|
run: (*parser).callonSubQuerySelectItem1,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 233, col: 23, offset: 6523},
|
|
|
|
exprs: []any{
|
2024-07-17 21:40:28 +03:00
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 233, col: 23, offset: 6523},
|
|
|
|
label: "subQuery",
|
2024-07-17 21:40:28 +03:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 233, col: 32, offset: 6532},
|
|
|
|
name: "SubQuery",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 233, col: 41, offset: 6541},
|
|
|
|
label: "asClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
|
|
|
pos: position{line: 233, col: 50, offset: 6550},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 233, col: 51, offset: 6551},
|
|
|
|
run: (*parser).callonSubQuerySelectItem7,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 233, col: 51, offset: 6551},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 233, col: 51, offset: 6551},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 233, col: 54, offset: 6554},
|
|
|
|
label: "alias",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 233, col: 60, offset: 6560},
|
|
|
|
name: "AsClause",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "JoinClause",
|
|
|
|
pos: position{line: 246, col: 1, offset: 6845},
|
|
|
|
expr: &choiceExpr{
|
|
|
|
pos: position{line: 246, col: 15, offset: 6859},
|
|
|
|
alternatives: []any{
|
|
|
|
&actionExpr{
|
|
|
|
pos: position{line: 246, col: 15, offset: 6859},
|
|
|
|
run: (*parser).callonJoinClause2,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 246, col: 15, offset: 6859},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 246, col: 15, offset: 6859},
|
|
|
|
name: "Join",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 246, col: 20, offset: 6864},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 246, col: 23, offset: 6867},
|
|
|
|
label: "table",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 246, col: 29, offset: 6873},
|
|
|
|
name: "TableName",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 246, col: 39, offset: 6883},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 246, col: 42, offset: 6886},
|
|
|
|
val: "in",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 246, col: 48, offset: 6892},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 246, col: 51, offset: 6895},
|
|
|
|
label: "column",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 246, col: 58, offset: 6902},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&actionExpr{
|
|
|
|
pos: position{line: 248, col: 5, offset: 6954},
|
|
|
|
run: (*parser).callonJoinClause13,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 248, col: 5, offset: 6954},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 248, col: 5, offset: 6954},
|
|
|
|
name: "Join",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 248, col: 10, offset: 6959},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 248, col: 13, offset: 6962},
|
|
|
|
label: "subQuery",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 248, col: 22, offset: 6971},
|
|
|
|
name: "SubQuerySelectItem",
|
|
|
|
},
|
|
|
|
},
|
2024-07-17 21:40:28 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-03-11 22:02:10 +02:00
|
|
|
{
|
|
|
|
name: "OffsetClause",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 1, offset: 7030},
|
2024-03-11 22:02:10 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 17, offset: 7046},
|
2024-03-11 22:02:10 +02:00
|
|
|
run: (*parser).callonOffsetClause1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 17, offset: 7046},
|
2024-03-11 22:02:10 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 17, offset: 7046},
|
2024-03-11 22:02:10 +02:00
|
|
|
val: "offset",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"OFFSET\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 27, offset: 7056},
|
2024-03-11 22:02:10 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 30, offset: 7059},
|
2024-03-11 22:02:10 +02:00
|
|
|
label: "offset",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 37, offset: 7066},
|
2024-03-11 22:02:10 +02:00
|
|
|
name: "IntegerLiteral",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 52, offset: 7081},
|
2024-03-11 22:02:10 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 55, offset: 7084},
|
2024-03-11 22:02:10 +02:00
|
|
|
val: "limit",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"LIMIT\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 64, offset: 7093},
|
2024-03-11 22:02:10 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 67, offset: 7096},
|
2024-03-11 22:02:10 +02:00
|
|
|
label: "limit",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 252, col: 73, offset: 7102},
|
2024-03-11 22:02:10 +02:00
|
|
|
name: "IntegerLiteral",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 21:22:55 +02:00
|
|
|
{
|
|
|
|
name: "Selection",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 256, col: 1, offset: 7217},
|
2024-02-13 21:22:55 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 256, col: 14, offset: 7230},
|
2024-02-13 21:22:55 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 256, col: 14, offset: 7230},
|
2024-02-13 21:22:55 +02:00
|
|
|
name: "SelectValueSpec",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 256, col: 32, offset: 7248},
|
2024-02-13 21:22:55 +02:00
|
|
|
name: "ColumnList",
|
|
|
|
},
|
2024-02-15 23:11:46 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 256, col: 45, offset: 7261},
|
2024-02-15 23:11:46 +02:00
|
|
|
name: "SelectAsterisk",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SelectAsterisk",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 258, col: 1, offset: 7277},
|
2024-02-15 23:11:46 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 258, col: 19, offset: 7295},
|
2024-02-15 23:11:46 +02:00
|
|
|
run: (*parser).callonSelectAsterisk1,
|
|
|
|
expr: &litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 258, col: 19, offset: 7295},
|
2024-02-15 23:11:46 +02:00
|
|
|
val: "*",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"*\"",
|
2024-02-13 21:22:55 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "ColumnList",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 1, offset: 7490},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 15, offset: 7504},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonColumnList1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 15, offset: 7504},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 15, offset: 7504},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "column",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 22, offset: 7511},
|
2024-02-13 21:22:55 +02:00
|
|
|
name: "SelectItem",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 33, offset: 7522},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "other_columns",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 47, offset: 7536},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 48, offset: 7537},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonColumnList7,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 48, offset: 7537},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 48, offset: 7537},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 51, offset: 7540},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 55, offset: 7544},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 58, offset: 7547},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "coll",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 264, col: 63, offset: 7552},
|
2024-02-13 21:22:55 +02:00
|
|
|
name: "SelectItem",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 21:22:55 +02:00
|
|
|
{
|
|
|
|
name: "SelectValueSpec",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 268, col: 1, offset: 7639},
|
2024-02-13 21:22:55 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 268, col: 20, offset: 7658},
|
2024-02-13 21:22:55 +02:00
|
|
|
run: (*parser).callonSelectValueSpec1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 268, col: 20, offset: 7658},
|
2024-02-13 21:22:55 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 268, col: 20, offset: 7658},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "value",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"VALUE\"i",
|
2024-02-13 21:22:55 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 268, col: 29, offset: 7667},
|
2024-02-13 21:22:55 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 268, col: 32, offset: 7670},
|
2024-02-13 21:22:55 +02:00
|
|
|
label: "column",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 268, col: 39, offset: 7677},
|
2024-02-13 21:22:55 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "TableName",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 274, col: 1, offset: 7831},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 274, col: 14, offset: 7844},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonTableName1,
|
|
|
|
expr: &labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 274, col: 14, offset: 7844},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "key",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 274, col: 18, offset: 7848},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "Identifier",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "SelectArray",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 1, offset: 7915},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 16, offset: 7930},
|
2024-02-13 21:57:33 +02:00
|
|
|
run: (*parser).callonSelectArray1,
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 16, offset: 7930},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
2024-02-13 21:57:33 +02:00
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 16, offset: 7930},
|
2024-02-13 21:57:33 +02:00
|
|
|
val: "[",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"[\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 20, offset: 7934},
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 23, offset: 7937},
|
2024-02-13 21:57:33 +02:00
|
|
|
label: "columns",
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 31, offset: 7945},
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "ColumnList",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-13 21:57:33 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 42, offset: 7956},
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 278, col: 45, offset: 7959},
|
2024-02-13 21:57:33 +02:00
|
|
|
val: "]",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"]\"",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
2024-02-13 22:42:18 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SelectObject",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 1, offset: 8004},
|
2024-02-13 22:42:18 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 17, offset: 8020},
|
2024-02-13 22:42:18 +02:00
|
|
|
run: (*parser).callonSelectObject1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 17, offset: 8020},
|
2024-02-13 22:42:18 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 17, offset: 8020},
|
2024-02-13 22:42:18 +02:00
|
|
|
val: "{",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"{\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 21, offset: 8024},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 24, offset: 8027},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "field",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 30, offset: 8033},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "SelectObjectField",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 48, offset: 8051},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 51, offset: 8054},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "other_fields",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 64, offset: 8067},
|
2024-02-13 22:42:18 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 65, offset: 8068},
|
2024-02-13 22:42:18 +02:00
|
|
|
run: (*parser).callonSelectObject10,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 65, offset: 8068},
|
2024-02-13 22:42:18 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 65, offset: 8068},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 68, offset: 8071},
|
2024-02-13 22:42:18 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 72, offset: 8075},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 75, offset: 8078},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "coll",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 80, offset: 8083},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "SelectObjectField",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 21:57:33 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 22:42:18 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 120, offset: 8123},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 282, col: 123, offset: 8126},
|
2024-02-13 22:42:18 +02:00
|
|
|
val: "}",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"}\"",
|
|
|
|
},
|
2024-02-13 21:57:33 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "SelectObjectField",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 1, offset: 8184},
|
2024-02-13 22:42:18 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 22, offset: 8205},
|
2024-02-13 22:42:18 +02:00
|
|
|
run: (*parser).callonSelectObjectField1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 22, offset: 8205},
|
2024-02-13 22:42:18 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 22, offset: 8205},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "name",
|
2024-02-17 17:25:57 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 28, offset: 8211},
|
2024-02-17 17:25:57 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 28, offset: 8211},
|
2024-02-17 17:25:57 +02:00
|
|
|
name: "Identifier",
|
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 41, offset: 8224},
|
2024-02-17 17:25:57 +02:00
|
|
|
run: (*parser).callonSelectObjectField6,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 41, offset: 8224},
|
2024-02-17 17:25:57 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 41, offset: 8224},
|
2024-02-17 17:25:57 +02:00
|
|
|
val: "\"",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\"\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 46, offset: 8229},
|
2024-02-17 17:25:57 +02:00
|
|
|
label: "key",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 50, offset: 8233},
|
2024-02-17 17:25:57 +02:00
|
|
|
name: "Identifier",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 61, offset: 8244},
|
2024-02-17 17:25:57 +02:00
|
|
|
val: "\"",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\"\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 22:42:18 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 87, offset: 8270},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 90, offset: 8273},
|
2024-02-13 22:42:18 +02:00
|
|
|
val: ":",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\":\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 94, offset: 8277},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 97, offset: 8280},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "selectItem",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 286, col: 108, offset: 8291},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 21:57:33 +02:00
|
|
|
},
|
2024-02-13 22:42:18 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SelectProperty",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 1, offset: 8397},
|
2024-02-13 22:42:18 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 19, offset: 8415},
|
2024-02-13 22:42:18 +02:00
|
|
|
run: (*parser).callonSelectProperty1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 19, offset: 8415},
|
2024-02-13 22:42:18 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 19, offset: 8415},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "name",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 24, offset: 8420},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "Identifier",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 35, offset: 8431},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "path",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 40, offset: 8436},
|
2024-02-13 22:42:18 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 41, offset: 8437},
|
2024-02-13 22:42:18 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 41, offset: 8437},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "DotFieldAccess",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 292, col: 58, offset: 8454},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "ArrayFieldAccess",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 22:42:18 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SelectItem",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 1, offset: 8545},
|
2024-02-13 22:42:18 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 15, offset: 8559},
|
2024-02-13 22:42:18 +02:00
|
|
|
run: (*parser).callonSelectItem1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 15, offset: 8559},
|
2024-02-13 22:42:18 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 15, offset: 8559},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "selectItem",
|
|
|
|
expr: &choiceExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 27, offset: 8571},
|
2024-02-13 22:42:18 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 27, offset: 8571},
|
|
|
|
name: "SubQuerySelectItem",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 296, col: 48, offset: 8592},
|
2024-02-18 21:29:42 +02:00
|
|
|
name: "Literal",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 58, offset: 8602},
|
2024-02-19 00:08:51 +02:00
|
|
|
name: "FunctionCall",
|
2024-02-18 22:37:09 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 73, offset: 8617},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "SelectArray",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 87, offset: 8631},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "SelectObject",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 102, offset: 8646},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "SelectProperty",
|
2024-02-13 21:57:33 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 22:42:18 +02:00
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 118, offset: 8662},
|
2024-02-13 22:42:18 +02:00
|
|
|
label: "asClause",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 127, offset: 8671},
|
2024-02-13 22:42:18 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 296, col: 127, offset: 8671},
|
2024-02-13 22:42:18 +02:00
|
|
|
name: "AsClause",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-13 21:57:33 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "AsClause",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 1, offset: 9269},
|
2024-02-13 21:57:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 13, offset: 9281},
|
2024-02-13 21:57:33 +02:00
|
|
|
run: (*parser).callonAsClause1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 13, offset: 9281},
|
2024-02-13 21:57:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 13, offset: 9281},
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 16, offset: 9284},
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "As",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 19, offset: 9287},
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 22, offset: 9290},
|
2024-02-13 21:57:33 +02:00
|
|
|
label: "alias",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 320, col: 28, offset: 9296},
|
2024-02-13 21:57:33 +02:00
|
|
|
name: "Identifier",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-12 00:55:07 +02:00
|
|
|
{
|
|
|
|
name: "DotFieldAccess",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 322, col: 1, offset: 9330},
|
2024-02-12 00:55:07 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 322, col: 19, offset: 9348},
|
2024-02-12 00:55:07 +02:00
|
|
|
run: (*parser).callonDotFieldAccess1,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 322, col: 19, offset: 9348},
|
2024-02-12 00:55:07 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 322, col: 19, offset: 9348},
|
2024-02-12 00:55:07 +02:00
|
|
|
val: ".",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\".\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 322, col: 23, offset: 9352},
|
2024-02-12 00:55:07 +02:00
|
|
|
label: "id",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 322, col: 26, offset: 9355},
|
2024-02-12 00:55:07 +02:00
|
|
|
name: "Identifier",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ArrayFieldAccess",
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 1, offset: 9390},
|
2024-06-03 19:00:52 +03:00
|
|
|
expr: &choiceExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 21, offset: 9410},
|
2024-06-03 19:00:52 +03:00
|
|
|
alternatives: []any{
|
|
|
|
&actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 21, offset: 9410},
|
2024-06-03 19:00:52 +03:00
|
|
|
run: (*parser).callonArrayFieldAccess2,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 21, offset: 9410},
|
2024-06-03 19:00:52 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 21, offset: 9410},
|
2024-06-03 19:00:52 +03:00
|
|
|
val: "[\"",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"[\\\"\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 27, offset: 9416},
|
2024-06-03 19:00:52 +03:00
|
|
|
label: "id",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 30, offset: 9419},
|
2024-06-03 19:00:52 +03:00
|
|
|
name: "Identifier",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 326, col: 41, offset: 9430},
|
2024-06-03 19:00:52 +03:00
|
|
|
val: "\"]",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\"]\"",
|
|
|
|
},
|
2024-02-12 00:55:07 +02:00
|
|
|
},
|
|
|
|
},
|
2024-06-03 19:00:52 +03:00
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 327, col: 5, offset: 9459},
|
2024-06-03 19:00:52 +03:00
|
|
|
run: (*parser).callonArrayFieldAccess8,
|
|
|
|
expr: &seqExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 327, col: 5, offset: 9459},
|
2024-06-03 19:00:52 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 327, col: 5, offset: 9459},
|
2024-06-03 19:00:52 +03:00
|
|
|
val: "[",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"[\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 327, col: 9, offset: 9463},
|
2024-06-03 19:00:52 +03:00
|
|
|
label: "id",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 327, col: 12, offset: 9466},
|
2024-06-03 19:00:52 +03:00
|
|
|
name: "Integer",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-07 22:29:26 +02:00
|
|
|
pos: position{line: 327, col: 20, offset: 9474},
|
2024-06-03 19:00:52 +03:00
|
|
|
val: "]",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"]\"",
|
|
|
|
},
|
|
|
|
},
|
2024-02-12 00:55:07 +02:00
|
|
|
},
|
|
|
|
},
|
2024-12-25 21:28:42 +02:00
|
|
|
&actionExpr{
|
|
|
|
pos: position{line: 328, col: 5, offset: 9521},
|
|
|
|
run: (*parser).callonArrayFieldAccess14,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 328, col: 5, offset: 9521},
|
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 328, col: 5, offset: 9521},
|
|
|
|
val: "[",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"[\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 328, col: 9, offset: 9525},
|
|
|
|
label: "id",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 328, col: 12, offset: 9528},
|
|
|
|
name: "ParameterConstant",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 328, col: 30, offset: 9546},
|
|
|
|
val: "]",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"]\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-12 00:55:07 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "Identifier",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 330, col: 1, offset: 9604},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 330, col: 15, offset: 9618},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonIdentifier1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 330, col: 15, offset: 9618},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&charClassMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 330, col: 15, offset: 9618},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "[a-zA-Z_]",
|
|
|
|
chars: []rune{'_'},
|
|
|
|
ranges: []rune{'a', 'z', 'A', 'Z'},
|
|
|
|
ignoreCase: false,
|
|
|
|
inverted: false,
|
|
|
|
},
|
|
|
|
&zeroOrMoreExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 330, col: 24, offset: 9627},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &charClassMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 330, col: 24, offset: 9627},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "[a-zA-Z0-9_]",
|
|
|
|
chars: []rune{'_'},
|
|
|
|
ranges: []rune{'a', 'z', 'A', 'Z', '0', '9'},
|
|
|
|
ignoreCase: false,
|
|
|
|
inverted: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Condition",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 334, col: 1, offset: 9677},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 334, col: 14, offset: 9690},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonCondition1,
|
|
|
|
expr: &labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 334, col: 14, offset: 9690},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "expression",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 334, col: 25, offset: 9701},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "OrExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "OrExpression",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 1, offset: 9746},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 17, offset: 9762},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonOrExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 17, offset: 9762},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 17, offset: 9762},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 21, offset: 9766},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "AndExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 35, offset: 9780},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "ex2",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 39, offset: 9784},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 40, offset: 9785},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonOrExpression7,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 40, offset: 9785},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 40, offset: 9785},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-17 17:25:57 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 43, offset: 9788},
|
2024-02-17 17:25:57 +02:00
|
|
|
name: "Or",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 46, offset: 9791},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 49, offset: 9794},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 338, col: 52, offset: 9797},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "AndExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "AndExpression",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 1, offset: 9910},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 18, offset: 9927},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonAndExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 18, offset: 9927},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 18, offset: 9927},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 22, offset: 9931},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ComparisonExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 43, offset: 9952},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "ex2",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 47, offset: 9956},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 48, offset: 9957},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonAndExpression7,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 48, offset: 9957},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 48, offset: 9957},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-17 17:25:57 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 51, offset: 9960},
|
2024-02-17 17:25:57 +02:00
|
|
|
name: "And",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 55, offset: 9964},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 58, offset: 9967},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 342, col: 61, offset: 9970},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "ComparisonExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ComparisonExpression",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 1, offset: 10091},
|
2024-02-15 22:58:07 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 25, offset: 10115},
|
2024-02-15 22:58:07 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 25, offset: 10115},
|
2024-02-15 22:58:07 +02:00
|
|
|
run: (*parser).callonComparisonExpression2,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 25, offset: 10115},
|
2024-02-15 22:58:07 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 25, offset: 10115},
|
2024-02-15 22:58:07 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 29, offset: 10119},
|
2024-02-15 22:58:07 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 32, offset: 10122},
|
2024-02-15 22:58:07 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 35, offset: 10125},
|
2024-02-15 22:58:07 +02:00
|
|
|
name: "OrExpression",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-15 22:58:07 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 48, offset: 10138},
|
2024-02-15 22:58:07 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 346, col: 51, offset: 10141},
|
2024-02-15 22:58:07 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-15 22:58:07 +02:00
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 7, offset: 10170},
|
2024-02-15 22:58:07 +02:00
|
|
|
run: (*parser).callonComparisonExpression10,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 7, offset: 10170},
|
2024-02-15 22:58:07 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 7, offset: 10170},
|
2024-02-15 22:58:07 +02:00
|
|
|
label: "left",
|
2024-02-18 21:29:42 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 12, offset: 10175},
|
2024-02-18 21:29:42 +02:00
|
|
|
name: "SelectItem",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
2024-02-15 22:58:07 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 23, offset: 10186},
|
2024-02-15 22:58:07 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 26, offset: 10189},
|
2024-02-15 22:58:07 +02:00
|
|
|
label: "op",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 29, offset: 10192},
|
2024-02-15 22:58:07 +02:00
|
|
|
name: "ComparisonOperator",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 48, offset: 10211},
|
2024-02-15 22:58:07 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 51, offset: 10214},
|
2024-02-15 22:58:07 +02:00
|
|
|
label: "right",
|
2024-02-18 21:29:42 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 347, col: 57, offset: 10220},
|
2024-02-18 21:29:42 +02:00
|
|
|
name: "SelectItem",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-17 17:25:57 +02:00
|
|
|
&actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 349, col: 5, offset: 10327},
|
2024-02-18 21:29:42 +02:00
|
|
|
run: (*parser).callonComparisonExpression20,
|
2024-02-17 17:25:57 +02:00
|
|
|
expr: &labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 349, col: 5, offset: 10327},
|
2024-02-17 17:25:57 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 349, col: 8, offset: 10330},
|
2024-02-17 17:25:57 +02:00
|
|
|
name: "BooleanLiteral",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-19 00:08:51 +02:00
|
|
|
&actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 350, col: 5, offset: 10368},
|
2024-02-19 00:08:51 +02:00
|
|
|
run: (*parser).callonComparisonExpression23,
|
|
|
|
expr: &labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 350, col: 5, offset: 10368},
|
2024-02-19 00:08:51 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 350, col: 8, offset: 10371},
|
2024-02-19 00:08:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-17 22:26:30 +02:00
|
|
|
{
|
|
|
|
name: "OrderByClause",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 1, offset: 10402},
|
2024-02-17 22:26:30 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 18, offset: 10419},
|
2024-02-17 22:26:30 +02:00
|
|
|
run: (*parser).callonOrderByClause1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 18, offset: 10419},
|
2024-02-17 22:26:30 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 18, offset: 10419},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "OrderBy",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 26, offset: 10427},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 29, offset: 10430},
|
2024-02-17 22:26:30 +02:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 33, offset: 10434},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "OrderExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 49, offset: 10450},
|
2024-02-17 22:26:30 +02:00
|
|
|
label: "others",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 56, offset: 10457},
|
2024-02-17 22:26:30 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 57, offset: 10458},
|
2024-02-17 22:26:30 +02:00
|
|
|
run: (*parser).callonOrderByClause9,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 57, offset: 10458},
|
2024-02-17 22:26:30 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 57, offset: 10458},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 60, offset: 10461},
|
2024-02-17 22:26:30 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 64, offset: 10465},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 67, offset: 10468},
|
2024-02-17 22:26:30 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 352, col: 70, offset: 10471},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "OrderExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "OrderExpression",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 1, offset: 10555},
|
2024-02-17 22:26:30 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 20, offset: 10574},
|
2024-02-17 22:26:30 +02:00
|
|
|
run: (*parser).callonOrderExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 20, offset: 10574},
|
2024-02-17 22:26:30 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 20, offset: 10574},
|
2024-02-17 22:26:30 +02:00
|
|
|
label: "field",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 26, offset: 10580},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "SelectProperty",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 41, offset: 10595},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 44, offset: 10598},
|
2024-02-17 22:26:30 +02:00
|
|
|
label: "order",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 50, offset: 10604},
|
2024-02-17 22:26:30 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 356, col: 50, offset: 10604},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "OrderDirection",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "OrderDirection",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 360, col: 1, offset: 10670},
|
2024-02-17 22:26:30 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 360, col: 19, offset: 10688},
|
2024-02-17 22:26:30 +02:00
|
|
|
run: (*parser).callonOrderDirection1,
|
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 360, col: 20, offset: 10689},
|
2024-02-17 22:26:30 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 360, col: 20, offset: 10689},
|
2024-02-17 22:26:30 +02:00
|
|
|
val: "asc",
|
2024-02-18 22:37:09 +02:00
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ASC\"i",
|
2024-02-17 22:26:30 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 360, col: 29, offset: 10698},
|
2024-02-17 22:26:30 +02:00
|
|
|
val: "desc",
|
2024-02-18 22:37:09 +02:00
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"DESC\"i",
|
2024-02-17 22:26:30 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "Select",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 368, col: 1, offset: 10850},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 368, col: 11, offset: 10860},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "select",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SELECT\"i",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-14 21:03:49 +02:00
|
|
|
{
|
|
|
|
name: "Top",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 370, col: 1, offset: 10871},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 370, col: 8, offset: 10878},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "top",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"TOP\"i",
|
2024-02-14 21:03:49 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-13 21:57:33 +02:00
|
|
|
{
|
|
|
|
name: "As",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 372, col: 1, offset: 10886},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 372, col: 7, offset: 10892},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "as",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"AS\"i",
|
2024-02-13 21:57:33 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "From",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 374, col: 1, offset: 10899},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 374, col: 9, offset: 10907},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "from",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"FROM\"i",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
2024-07-17 21:40:28 +03:00
|
|
|
{
|
|
|
|
name: "Join",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 376, col: 1, offset: 10916},
|
2024-07-17 21:40:28 +03:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 376, col: 9, offset: 10924},
|
2024-07-17 21:40:28 +03:00
|
|
|
val: "join",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"JOIN\"i",
|
|
|
|
},
|
|
|
|
},
|
2024-12-07 22:29:26 +02:00
|
|
|
{
|
|
|
|
name: "Exists",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 378, col: 1, offset: 10933},
|
2024-12-07 22:29:26 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 378, col: 11, offset: 10943},
|
2024-12-07 22:29:26 +02:00
|
|
|
val: "exists",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"EXISTS\"i",
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "Where",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 380, col: 1, offset: 10954},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 380, col: 10, offset: 10963},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "where",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"WHERE\"i",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-17 17:25:57 +02:00
|
|
|
{
|
|
|
|
name: "And",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 382, col: 1, offset: 10973},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 382, col: 8, offset: 10980},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "and",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"AND\"i",
|
2024-02-17 17:25:57 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Or",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 384, col: 1, offset: 10988},
|
2024-12-07 22:29:26 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 384, col: 7, offset: 10994},
|
2024-12-07 22:29:26 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 384, col: 7, offset: 10994},
|
2024-12-07 22:29:26 +02:00
|
|
|
val: "or",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"OR\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 384, col: 13, offset: 11000},
|
2024-12-07 22:29:26 +02:00
|
|
|
name: "wss",
|
|
|
|
},
|
|
|
|
},
|
2024-02-17 17:25:57 +02:00
|
|
|
},
|
|
|
|
},
|
2024-03-11 17:50:20 +02:00
|
|
|
{
|
|
|
|
name: "GroupBy",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 386, col: 1, offset: 11005},
|
2024-03-11 17:50:20 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 386, col: 12, offset: 11016},
|
2024-03-11 17:50:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 386, col: 12, offset: 11016},
|
2024-03-11 17:50:20 +02:00
|
|
|
val: "group",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"GROUP\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 386, col: 21, offset: 11025},
|
2024-03-11 17:50:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 386, col: 24, offset: 11028},
|
2024-03-11 17:50:20 +02:00
|
|
|
val: "by",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"BY\"i",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-17 22:26:30 +02:00
|
|
|
{
|
|
|
|
name: "OrderBy",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 388, col: 1, offset: 11035},
|
2024-02-17 22:26:30 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 388, col: 12, offset: 11046},
|
2024-02-17 22:26:30 +02:00
|
|
|
exprs: []any{
|
2024-02-18 22:37:09 +02:00
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 388, col: 12, offset: 11046},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "order",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ORDER\"i",
|
2024-02-17 22:26:30 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 388, col: 21, offset: 11055},
|
2024-02-17 22:26:30 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-18 22:37:09 +02:00
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 388, col: 24, offset: 11058},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "by",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"BY\"i",
|
2024-02-17 22:26:30 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "ComparisonOperator",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 1, offset: 11065},
|
2024-02-22 22:12:52 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 23, offset: 11087},
|
2024-02-22 22:12:52 +02:00
|
|
|
run: (*parser).callonComparisonOperator1,
|
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 24, offset: 11088},
|
2024-02-22 22:12:52 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 24, offset: 11088},
|
2024-02-22 22:12:52 +02:00
|
|
|
val: "=",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"=\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 30, offset: 11094},
|
2024-02-22 22:12:52 +02:00
|
|
|
val: "!=",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"!=\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 37, offset: 11101},
|
2024-02-22 22:12:52 +02:00
|
|
|
val: "<",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"<\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 43, offset: 11107},
|
2024-02-22 22:12:52 +02:00
|
|
|
val: "<=",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"<=\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 50, offset: 11114},
|
2024-02-22 22:12:52 +02:00
|
|
|
val: ">",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\">\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 390, col: 56, offset: 11120},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: ">=",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\">=\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Literal",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 1, offset: 11162},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 12, offset: 11173},
|
2024-02-11 22:15:08 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 12, offset: 11173},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "FloatLiteral",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 27, offset: 11188},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "IntegerLiteral",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 44, offset: 11205},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "StringLiteral",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 60, offset: 11221},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "BooleanLiteral",
|
|
|
|
},
|
2024-02-16 00:13:11 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 77, offset: 11238},
|
2024-02-16 00:13:11 +02:00
|
|
|
name: "ParameterConstant",
|
|
|
|
},
|
2024-02-17 17:25:57 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 394, col: 97, offset: 11258},
|
2024-02-17 17:25:57 +02:00
|
|
|
name: "NullConstant",
|
|
|
|
},
|
2024-02-16 00:13:11 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ParameterConstant",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 396, col: 1, offset: 11272},
|
2024-02-16 00:13:11 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 396, col: 22, offset: 11293},
|
2024-02-16 00:13:11 +02:00
|
|
|
run: (*parser).callonParameterConstant1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 396, col: 22, offset: 11293},
|
2024-02-16 00:13:11 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 396, col: 22, offset: 11293},
|
2024-02-16 00:13:11 +02:00
|
|
|
val: "@",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"@\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 396, col: 26, offset: 11297},
|
2024-02-16 00:13:11 +02:00
|
|
|
name: "Identifier",
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-17 17:25:57 +02:00
|
|
|
{
|
|
|
|
name: "NullConstant",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 399, col: 1, offset: 11413},
|
2024-02-17 17:25:57 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 399, col: 17, offset: 11429},
|
2024-02-17 17:25:57 +02:00
|
|
|
run: (*parser).callonNullConstant1,
|
|
|
|
expr: &litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 399, col: 17, offset: 11429},
|
2024-02-17 17:25:57 +02:00
|
|
|
val: "null",
|
2024-02-25 22:13:04 +02:00
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"null\"i",
|
2024-02-17 17:25:57 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
|
|
|
name: "IntegerLiteral",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 403, col: 1, offset: 11487},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 403, col: 19, offset: 11505},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonIntegerLiteral1,
|
2024-02-14 21:03:49 +02:00
|
|
|
expr: &labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 403, col: 19, offset: 11505},
|
2024-02-14 21:03:49 +02:00
|
|
|
label: "number",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 403, col: 26, offset: 11512},
|
2024-02-14 21:03:49 +02:00
|
|
|
name: "Integer",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "StringLiteral",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 1, offset: 11613},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 18, offset: 11630},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonStringLiteral1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 18, offset: 11630},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 18, offset: 11630},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "\"",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\"\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 23, offset: 11635},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "chars",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 29, offset: 11641},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 29, offset: 11641},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "StringCharacter",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 406, col: 46, offset: 11658},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "\"",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\"\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "FloatLiteral",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 1, offset: 11776},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 17, offset: 11792},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonFloatLiteral1,
|
|
|
|
expr: &seqExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 17, offset: 11792},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&oneOrMoreExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 17, offset: 11792},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &charClassMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 17, offset: 11792},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "[0-9]",
|
|
|
|
ranges: []rune{'0', '9'},
|
|
|
|
ignoreCase: false,
|
|
|
|
inverted: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 23, offset: 11798},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: ".",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\".\"",
|
|
|
|
},
|
|
|
|
&oneOrMoreExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 26, offset: 11801},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &charClassMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 409, col: 26, offset: 11801},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "[0-9]",
|
|
|
|
ranges: []rune{'0', '9'},
|
|
|
|
ignoreCase: false,
|
|
|
|
inverted: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "BooleanLiteral",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 413, col: 1, offset: 11957},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 413, col: 19, offset: 11975},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonBooleanLiteral1,
|
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 413, col: 20, offset: 11976},
|
2024-02-11 22:15:08 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 413, col: 20, offset: 11976},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "true",
|
2024-02-18 22:37:09 +02:00
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"true\"i",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 413, col: 30, offset: 11986},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "false",
|
2024-02-18 22:37:09 +02:00
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"false\"i",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-19 00:08:51 +02:00
|
|
|
{
|
|
|
|
name: "FunctionCall",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 418, col: 1, offset: 12141},
|
2024-02-19 00:08:51 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 418, col: 17, offset: 12157},
|
2024-02-19 00:08:51 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 418, col: 17, offset: 12157},
|
2024-02-21 20:46:08 +02:00
|
|
|
name: "StringFunctions",
|
2024-02-19 00:08:51 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 419, col: 7, offset: 12179},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "TypeCheckingFunctions",
|
2024-02-21 20:16:52 +02:00
|
|
|
},
|
2024-02-24 17:26:16 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 420, col: 7, offset: 12207},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ArrayFunctions",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 421, col: 7, offset: 12228},
|
2024-02-24 17:26:16 +02:00
|
|
|
name: "InFunction",
|
|
|
|
},
|
2024-03-11 19:10:41 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 422, col: 7, offset: 12245},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "AggregateFunctions",
|
|
|
|
},
|
2024-06-19 00:44:46 +03:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 423, col: 7, offset: 12270},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathFunctions",
|
|
|
|
},
|
2024-02-21 20:46:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-24 22:29:33 +02:00
|
|
|
{
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "StringFunctions",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 425, col: 1, offset: 12285},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 425, col: 20, offset: 12304},
|
2024-02-24 22:29:33 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 425, col: 20, offset: 12304},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "StringEqualsExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 426, col: 7, offset: 12333},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ToStringExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 427, col: 7, offset: 12358},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ConcatExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 428, col: 7, offset: 12381},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ThreeArgumentStringFunctionExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 429, col: 7, offset: 12425},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "UpperExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 430, col: 7, offset: 12447},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "LowerExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 431, col: 7, offset: 12469},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "LeftExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 432, col: 7, offset: 12490},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "LengthExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 433, col: 7, offset: 12513},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "LTrimExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 434, col: 7, offset: 12535},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ReplaceExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 435, col: 7, offset: 12559},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ReplicateExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 436, col: 7, offset: 12585},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ReverseExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 437, col: 7, offset: 12609},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "RightExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 438, col: 7, offset: 12631},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "RTrimExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 439, col: 7, offset: 12653},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SubstringExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 440, col: 7, offset: 12679},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "TrimExpression",
|
2024-02-24 22:29:33 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-21 20:46:08 +02:00
|
|
|
{
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "TypeCheckingFunctions",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 442, col: 1, offset: 12695},
|
2024-02-21 20:46:08 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 442, col: 26, offset: 12720},
|
2024-02-21 20:46:08 +02:00
|
|
|
alternatives: []any{
|
2024-02-21 20:16:52 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 442, col: 26, offset: 12720},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsDefined",
|
2024-02-23 00:11:14 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 443, col: 7, offset: 12736},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsArray",
|
2024-02-21 20:46:08 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 444, col: 7, offset: 12750},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsBool",
|
2024-02-19 00:08:51 +02:00
|
|
|
},
|
2024-02-24 20:00:47 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 445, col: 7, offset: 12763},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsFiniteNumber",
|
2024-02-24 20:00:47 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 446, col: 7, offset: 12784},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsInteger",
|
2024-02-24 20:00:47 +02:00
|
|
|
},
|
2024-02-24 21:24:20 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 447, col: 7, offset: 12800},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsNull",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 448, col: 7, offset: 12813},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsNumber",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 449, col: 7, offset: 12828},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsObject",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 450, col: 7, offset: 12843},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsPrimitive",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 451, col: 7, offset: 12861},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "IsString",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
2024-02-25 00:25:51 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-03-11 19:10:41 +02:00
|
|
|
{
|
|
|
|
name: "AggregateFunctions",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 453, col: 1, offset: 12871},
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 453, col: 23, offset: 12893},
|
2024-03-11 19:10:41 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 453, col: 23, offset: 12893},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "AvgAggregateExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 454, col: 7, offset: 12922},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "CountAggregateExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 455, col: 7, offset: 12953},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "MaxAggregateExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 456, col: 7, offset: 12982},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "MinAggregateExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 457, col: 7, offset: 13011},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "SumAggregateExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-25 00:25:51 +02:00
|
|
|
{
|
|
|
|
name: "ArrayFunctions",
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 459, col: 1, offset: 13035},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 459, col: 19, offset: 13053},
|
2024-02-25 00:25:51 +02:00
|
|
|
alternatives: []any{
|
2024-02-24 21:24:20 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 459, col: 19, offset: 13053},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ArrayConcatExpression",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-25 21:28:42 +02:00
|
|
|
pos: position{line: 460, col: 7, offset: 13081},
|
2024-12-26 20:27:59 +02:00
|
|
|
name: "ArrayContainsExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 461, col: 7, offset: 13111},
|
|
|
|
name: "ArrayContainsAnyExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 462, col: 7, offset: 13144},
|
|
|
|
name: "ArrayContainsAllExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 463, col: 7, offset: 13177},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ArrayLengthExpression",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 464, col: 7, offset: 13205},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ArraySliceExpression",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 465, col: 7, offset: 13232},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SetIntersectExpression",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 466, col: 7, offset: 13261},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SetUnionExpression",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
2024-02-24 20:00:47 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-06-19 00:44:46 +03:00
|
|
|
{
|
|
|
|
name: "MathFunctions",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 468, col: 1, offset: 13281},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &choiceExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 468, col: 18, offset: 13298},
|
2024-06-19 00:44:46 +03:00
|
|
|
alternatives: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 468, col: 18, offset: 13298},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathAbsExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 469, col: 7, offset: 13322},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathAcosExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 470, col: 7, offset: 13347},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathAsinExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 471, col: 7, offset: 13372},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathAtanExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 472, col: 7, offset: 13397},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathCeilingExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 473, col: 7, offset: 13425},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathCosExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 474, col: 7, offset: 13449},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathCotExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 475, col: 7, offset: 13473},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathDegreesExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 476, col: 7, offset: 13501},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathExpExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 477, col: 7, offset: 13525},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathFloorExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 478, col: 7, offset: 13551},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntBitNotExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 479, col: 7, offset: 13581},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathLog10Expression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 480, col: 7, offset: 13607},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathRadiansExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 481, col: 7, offset: 13635},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathRoundExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 482, col: 7, offset: 13661},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathSignExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 483, col: 7, offset: 13686},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathSinExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 484, col: 7, offset: 13710},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathSqrtExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 485, col: 7, offset: 13735},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathSquareExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 486, col: 7, offset: 13762},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathTanExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 487, col: 7, offset: 13786},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathTruncExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 488, col: 7, offset: 13812},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathAtn2Expression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 489, col: 7, offset: 13837},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntAddExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 490, col: 7, offset: 13864},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntBitAndExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 491, col: 7, offset: 13894},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntBitLeftShiftExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 492, col: 7, offset: 13930},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntBitOrExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 493, col: 7, offset: 13959},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntBitRightShiftExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 494, col: 7, offset: 13996},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntBitXorExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 495, col: 7, offset: 14026},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntDivExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 496, col: 7, offset: 14053},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntModExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 497, col: 7, offset: 14080},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntMulExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 498, col: 7, offset: 14107},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathIntSubExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 499, col: 7, offset: 14134},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathPowerExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 500, col: 7, offset: 14160},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathLogExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 501, col: 7, offset: 14184},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathNumberBinExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 502, col: 7, offset: 14214},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathPiExpression",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 503, col: 7, offset: 14237},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathRandExpression",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-24 20:00:47 +02:00
|
|
|
{
|
|
|
|
name: "UpperExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 1, offset: 14257},
|
2024-02-24 20:00:47 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 20, offset: 14276},
|
2024-02-24 20:00:47 +02:00
|
|
|
run: (*parser).callonUpperExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 20, offset: 14276},
|
2024-02-24 20:00:47 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 20, offset: 14276},
|
2024-02-24 20:00:47 +02:00
|
|
|
val: "upper",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"UPPER\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 29, offset: 14285},
|
2024-02-24 20:00:47 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 32, offset: 14288},
|
2024-02-24 20:00:47 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 36, offset: 14292},
|
2024-02-24 20:00:47 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 39, offset: 14295},
|
2024-02-24 20:00:47 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 505, col: 50, offset: 14306},
|
2024-02-24 20:00:47 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "LowerExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 1, offset: 14391},
|
2024-02-24 20:00:47 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 20, offset: 14410},
|
2024-02-24 20:00:47 +02:00
|
|
|
run: (*parser).callonLowerExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 20, offset: 14410},
|
2024-02-24 20:00:47 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 20, offset: 14410},
|
2024-02-24 20:00:47 +02:00
|
|
|
val: "lower",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"LOWER\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 29, offset: 14419},
|
2024-02-24 20:00:47 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 32, offset: 14422},
|
2024-02-24 20:00:47 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 36, offset: 14426},
|
2024-02-24 20:00:47 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 39, offset: 14429},
|
2024-02-24 20:00:47 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 509, col: 50, offset: 14440},
|
2024-02-24 20:00:47 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
2024-02-19 00:08:51 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-18 22:37:09 +02:00
|
|
|
{
|
|
|
|
name: "StringEqualsExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 1, offset: 14525},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 27, offset: 14551},
|
2024-02-18 22:37:09 +02:00
|
|
|
run: (*parser).callonStringEqualsExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 27, offset: 14551},
|
2024-02-18 22:37:09 +02:00
|
|
|
exprs: []any{
|
2024-02-25 22:13:04 +02:00
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 27, offset: 14551},
|
2024-02-25 22:13:04 +02:00
|
|
|
val: "stringequals",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"STRINGEQUALS\"i",
|
2024-02-18 22:37:09 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 43, offset: 14567},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 46, offset: 14570},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 50, offset: 14574},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 53, offset: 14577},
|
2024-02-18 22:37:09 +02:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 57, offset: 14581},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 68, offset: 14592},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 71, offset: 14595},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: ",",
|
2024-02-11 22:15:08 +02:00
|
|
|
ignoreCase: false,
|
2024-02-18 22:37:09 +02:00
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 75, offset: 14599},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 78, offset: 14602},
|
2024-02-18 22:37:09 +02:00
|
|
|
label: "ex2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 82, offset: 14606},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 93, offset: 14617},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 96, offset: 14620},
|
2024-02-18 22:37:09 +02:00
|
|
|
label: "ignoreCase",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 107, offset: 14631},
|
2024-02-18 22:37:09 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 108, offset: 14632},
|
2024-02-18 22:37:09 +02:00
|
|
|
run: (*parser).callonStringEqualsExpression17,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 108, offset: 14632},
|
2024-02-18 22:37:09 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 108, offset: 14632},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 112, offset: 14636},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 115, offset: 14639},
|
2024-02-18 22:37:09 +02:00
|
|
|
label: "boolean",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 123, offset: 14647},
|
2024-02-21 20:16:52 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 513, col: 160, offset: 14684},
|
2024-02-23 00:11:14 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ToStringExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 1, offset: 14794},
|
2024-02-23 00:11:14 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 23, offset: 14816},
|
2024-02-23 00:11:14 +02:00
|
|
|
run: (*parser).callonToStringExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 23, offset: 14816},
|
2024-02-23 00:11:14 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 23, offset: 14816},
|
2024-02-23 00:11:14 +02:00
|
|
|
val: "tostring",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"TOSTRING\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 35, offset: 14828},
|
2024-02-23 00:11:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 38, offset: 14831},
|
2024-02-23 00:11:14 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 42, offset: 14835},
|
2024-02-23 00:11:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 45, offset: 14838},
|
2024-02-23 00:11:14 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 48, offset: 14841},
|
2024-02-23 00:11:14 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 59, offset: 14852},
|
2024-02-23 00:11:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 517, col: 62, offset: 14855},
|
2024-02-21 20:16:52 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ConcatExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 1, offset: 14943},
|
2024-02-21 20:16:52 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 21, offset: 14963},
|
2024-02-21 20:16:52 +02:00
|
|
|
run: (*parser).callonConcatExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 21, offset: 14963},
|
2024-02-21 20:16:52 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 21, offset: 14963},
|
2024-02-21 20:16:52 +02:00
|
|
|
val: "concat",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"CONCAT\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 31, offset: 14973},
|
2024-02-21 20:16:52 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 34, offset: 14976},
|
2024-02-21 20:16:52 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 38, offset: 14980},
|
2024-02-21 20:16:52 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 41, offset: 14983},
|
2024-02-21 20:16:52 +02:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 45, offset: 14987},
|
2024-02-21 20:16:52 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 56, offset: 14998},
|
2024-02-21 20:16:52 +02:00
|
|
|
label: "others",
|
|
|
|
expr: &oneOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 63, offset: 15005},
|
2024-02-21 20:16:52 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 64, offset: 15006},
|
2024-02-21 20:16:52 +02:00
|
|
|
run: (*parser).callonConcatExpression11,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 64, offset: 15006},
|
2024-02-21 20:16:52 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 64, offset: 15006},
|
2024-02-21 20:16:52 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 67, offset: 15009},
|
2024-02-21 20:16:52 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 71, offset: 15013},
|
2024-02-21 20:16:52 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 74, offset: 15016},
|
2024-02-21 20:16:52 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 77, offset: 15019},
|
2024-02-18 22:37:09 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-21 20:16:52 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 109, offset: 15051},
|
2024-02-21 20:16:52 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-18 22:37:09 +02:00
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 521, col: 112, offset: 15054},
|
2024-02-21 20:25:14 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "LeftExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 1, offset: 15203},
|
2024-02-21 20:25:14 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 19, offset: 15221},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonLeftExpression1,
|
2024-02-21 20:25:14 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 19, offset: 15221},
|
2024-02-21 20:25:14 +02:00
|
|
|
exprs: []any{
|
2024-02-24 21:24:20 +02:00
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 19, offset: 15221},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "left",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"LEFT\"i",
|
2024-02-21 20:25:14 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 27, offset: 15229},
|
2024-02-21 20:25:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 30, offset: 15232},
|
2024-02-21 20:25:14 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 34, offset: 15236},
|
2024-02-21 20:25:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 37, offset: 15239},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
2024-02-21 20:25:14 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 40, offset: 15242},
|
2024-02-21 20:25:14 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 51, offset: 15253},
|
2024-02-21 20:25:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 54, offset: 15256},
|
2024-02-21 20:25:14 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 58, offset: 15260},
|
2024-02-21 20:25:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 61, offset: 15263},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "length",
|
2024-02-21 20:25:14 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 68, offset: 15270},
|
2024-02-21 20:25:14 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 79, offset: 15281},
|
2024-02-21 20:25:14 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 526, col: 82, offset: 15284},
|
2024-02-19 00:08:51 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-21 20:46:08 +02:00
|
|
|
{
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "LengthExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 1, offset: 15376},
|
2024-02-22 22:12:52 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 21, offset: 15396},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonLengthExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 21, offset: 15396},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
2024-02-22 22:12:52 +02:00
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 21, offset: 15396},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "length",
|
2024-02-22 22:12:52 +02:00
|
|
|
ignoreCase: true,
|
2024-02-24 21:24:20 +02:00
|
|
|
want: "\"LENGTH\"i",
|
2024-02-22 22:12:52 +02:00
|
|
|
},
|
2024-02-24 21:24:20 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 31, offset: 15406},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
2024-02-22 22:12:52 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 34, offset: 15409},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 38, offset: 15413},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 41, offset: 15416},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 44, offset: 15419},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 55, offset: 15430},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
2024-02-22 22:12:52 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 530, col: 58, offset: 15433},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
2024-02-22 22:12:52 +02:00
|
|
|
},
|
2024-02-21 20:46:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-19 00:08:51 +02:00
|
|
|
{
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "LTrimExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 1, offset: 15519},
|
2024-02-19 00:08:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 20, offset: 15538},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonLTrimExpression1,
|
2024-02-19 00:08:51 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 20, offset: 15538},
|
2024-02-19 00:08:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 20, offset: 15538},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "ltrim",
|
2024-02-19 00:08:51 +02:00
|
|
|
ignoreCase: true,
|
2024-02-24 21:24:20 +02:00
|
|
|
want: "\"LTRIM\"i",
|
2024-02-19 00:08:51 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 29, offset: 15547},
|
2024-02-19 00:08:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 32, offset: 15550},
|
2024-02-19 00:08:51 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 36, offset: 15554},
|
2024-02-19 00:08:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 39, offset: 15557},
|
2024-02-19 00:08:51 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 42, offset: 15560},
|
2024-02-24 17:26:16 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 53, offset: 15571},
|
2024-02-24 17:26:16 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 534, col: 56, offset: 15574},
|
2024-02-24 17:26:16 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ReplaceExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 1, offset: 15659},
|
2024-02-24 17:26:16 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 22, offset: 15680},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonReplaceExpression1,
|
2024-02-24 17:26:16 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 22, offset: 15680},
|
2024-02-24 17:26:16 +02:00
|
|
|
exprs: []any{
|
2024-02-24 21:24:20 +02:00
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 22, offset: 15680},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "replace",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"REPLACE\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 33, offset: 15691},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 36, offset: 15694},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 40, offset: 15698},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-24 17:26:16 +02:00
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 43, offset: 15701},
|
2024-02-24 17:26:16 +02:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 47, offset: 15705},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
2024-02-24 17:26:16 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 58, offset: 15716},
|
2024-02-24 17:26:16 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 61, offset: 15719},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 65, offset: 15723},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 68, offset: 15726},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 72, offset: 15730},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 83, offset: 15741},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 86, offset: 15744},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 90, offset: 15748},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 93, offset: 15751},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex3",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 97, offset: 15755},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 108, offset: 15766},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 538, col: 111, offset: 15769},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ReplicateExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 1, offset: 15867},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 24, offset: 15890},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonReplicateExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 24, offset: 15890},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 24, offset: 15890},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "replicate",
|
2024-02-24 17:26:16 +02:00
|
|
|
ignoreCase: true,
|
2024-02-24 21:24:20 +02:00
|
|
|
want: "\"REPLICATE\"i",
|
2024-02-24 17:26:16 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 37, offset: 15903},
|
2024-02-24 17:26:16 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 40, offset: 15906},
|
2024-02-24 17:26:16 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 44, offset: 15910},
|
2024-02-24 17:26:16 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 47, offset: 15913},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex1",
|
2024-02-24 17:26:16 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 51, offset: 15917},
|
2024-02-19 00:08:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
2024-02-24 21:24:20 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 62, offset: 15928},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 65, offset: 15931},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 69, offset: 15935},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-24 17:26:16 +02:00
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 72, offset: 15938},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 76, offset: 15942},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
2024-02-24 17:26:16 +02:00
|
|
|
},
|
|
|
|
},
|
2024-02-19 00:08:51 +02:00
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 87, offset: 15953},
|
2024-02-19 00:08:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 542, col: 90, offset: 15956},
|
2024-02-18 22:37:09 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-14 21:03:49 +02:00
|
|
|
{
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ReverseExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 1, offset: 16051},
|
2024-02-14 21:03:49 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 22, offset: 16072},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonReverseExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 22, offset: 16072},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 22, offset: 16072},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "reverse",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"REVERSE\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 33, offset: 16083},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 36, offset: 16086},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 40, offset: 16090},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 43, offset: 16093},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 46, offset: 16096},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 57, offset: 16107},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 546, col: 60, offset: 16110},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
2024-02-14 21:03:49 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2024-02-11 22:15:08 +02:00
|
|
|
{
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "RightExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 1, offset: 16197},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 20, offset: 16216},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonRightExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 20, offset: 16216},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 20, offset: 16216},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "right",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"RIGHT\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 29, offset: 16225},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 32, offset: 16228},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 36, offset: 16232},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 39, offset: 16235},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 42, offset: 16238},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 53, offset: 16249},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 56, offset: 16252},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 60, offset: 16256},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 63, offset: 16259},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "length",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 70, offset: 16266},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 81, offset: 16277},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 550, col: 84, offset: 16280},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "RTrimExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 1, offset: 16373},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 20, offset: 16392},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonRTrimExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 20, offset: 16392},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 20, offset: 16392},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "rtrim",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"RTRIM\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 29, offset: 16401},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 32, offset: 16404},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 36, offset: 16408},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 39, offset: 16411},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 42, offset: 16414},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 53, offset: 16425},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 554, col: 56, offset: 16428},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SubstringExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 1, offset: 16513},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 24, offset: 16536},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonSubstringExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 24, offset: 16536},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 24, offset: 16536},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "substring",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SUBSTRING\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 37, offset: 16549},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 40, offset: 16552},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 44, offset: 16556},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 47, offset: 16559},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 50, offset: 16562},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 61, offset: 16573},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 64, offset: 16576},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 68, offset: 16580},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 71, offset: 16583},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "startPos",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 80, offset: 16592},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 91, offset: 16603},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 94, offset: 16606},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 98, offset: 16610},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 101, offset: 16613},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "length",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 108, offset: 16620},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 119, offset: 16631},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 558, col: 122, offset: 16634},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "TrimExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 1, offset: 16741},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 19, offset: 16759},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonTrimExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 19, offset: 16759},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 19, offset: 16759},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "trim",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"TRIM\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 27, offset: 16767},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 30, offset: 16770},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 34, offset: 16774},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 37, offset: 16777},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 40, offset: 16780},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 51, offset: 16791},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 562, col: 54, offset: 16794},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ThreeArgumentStringFunctionExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 1, offset: 16878},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 42, offset: 16919},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonThreeArgumentStringFunctionExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 42, offset: 16919},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 42, offset: 16919},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "function",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 51, offset: 16928},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ThreeArgumentStringFunction",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 79, offset: 16956},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 82, offset: 16959},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 86, offset: 16963},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 89, offset: 16966},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 93, offset: 16970},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 104, offset: 16981},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 107, offset: 16984},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 111, offset: 16988},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 114, offset: 16991},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 118, offset: 16995},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 129, offset: 17006},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 132, offset: 17009},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ignoreCase",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 143, offset: 17020},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 144, offset: 17021},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonThreeArgumentStringFunctionExpression18,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 144, offset: 17021},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 144, offset: 17021},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 148, offset: 17025},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 151, offset: 17028},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "boolean",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 159, offset: 17036},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 566, col: 196, offset: 17073},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ThreeArgumentStringFunction",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 584, col: 1, offset: 17595},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 584, col: 32, offset: 17626},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonThreeArgumentStringFunction1,
|
|
|
|
expr: &choiceExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 584, col: 33, offset: 17627},
|
2024-02-24 21:24:20 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 584, col: 33, offset: 17627},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "contains",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"CONTAINS\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 584, col: 47, offset: 17641},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "endswith",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ENDSWITH\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 584, col: 61, offset: 17655},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "startswith",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"STARTSWITH\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 584, col: 77, offset: 17671},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "index_of",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"INDEX_OF\"i",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsDefined",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 1, offset: 17720},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 14, offset: 17733},
|
2024-02-24 21:24:20 +02:00
|
|
|
run: (*parser).callonIsDefined1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 14, offset: 17733},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 14, offset: 17733},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "is_defined",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_DEFINED\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 28, offset: 17747},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 31, offset: 17750},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 35, offset: 17754},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 38, offset: 17757},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 41, offset: 17760},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 52, offset: 17771},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 588, col: 55, offset: 17774},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsArray",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 1, offset: 17863},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 12, offset: 17874},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsArray1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 12, offset: 17874},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 12, offset: 17874},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_array",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_ARRAY\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 24, offset: 17886},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 27, offset: 17889},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 31, offset: 17893},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 34, offset: 17896},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 37, offset: 17899},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 48, offset: 17910},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 592, col: 51, offset: 17913},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsBool",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 1, offset: 18000},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 11, offset: 18010},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsBool1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 11, offset: 18010},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 11, offset: 18010},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_bool",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_BOOL\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 22, offset: 18021},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 25, offset: 18024},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 29, offset: 18028},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 32, offset: 18031},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 35, offset: 18034},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 46, offset: 18045},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 596, col: 49, offset: 18048},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsFiniteNumber",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 1, offset: 18134},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 19, offset: 18152},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsFiniteNumber1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 19, offset: 18152},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 19, offset: 18152},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_finite_number",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_FINITE_NUMBER\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 39, offset: 18172},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 42, offset: 18175},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 46, offset: 18179},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 49, offset: 18182},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 52, offset: 18185},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 63, offset: 18196},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 600, col: 66, offset: 18199},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsInteger",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 1, offset: 18293},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 14, offset: 18306},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsInteger1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 14, offset: 18306},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 14, offset: 18306},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_integer",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_INTEGER\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 28, offset: 18320},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 31, offset: 18323},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 35, offset: 18327},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 38, offset: 18330},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 41, offset: 18333},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 52, offset: 18344},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 604, col: 55, offset: 18347},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsNull",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 1, offset: 18436},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 11, offset: 18446},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsNull1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 11, offset: 18446},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 11, offset: 18446},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_null",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_NULL\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 22, offset: 18457},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 25, offset: 18460},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 29, offset: 18464},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 32, offset: 18467},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 35, offset: 18470},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 46, offset: 18481},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 608, col: 49, offset: 18484},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsNumber",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 1, offset: 18570},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 13, offset: 18582},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsNumber1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 13, offset: 18582},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 13, offset: 18582},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_number",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_NUMBER\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 26, offset: 18595},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 29, offset: 18598},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 33, offset: 18602},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 36, offset: 18605},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 39, offset: 18608},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 50, offset: 18619},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 612, col: 53, offset: 18622},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsObject",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 1, offset: 18710},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 13, offset: 18722},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsObject1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 13, offset: 18722},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 13, offset: 18722},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_object",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_OBJECT\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 26, offset: 18735},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 29, offset: 18738},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 33, offset: 18742},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 36, offset: 18745},
|
2024-02-24 21:24:20 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 39, offset: 18748},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 50, offset: 18759},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 616, col: 53, offset: 18762},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsPrimitive",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 1, offset: 18850},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 16, offset: 18865},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsPrimitive1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 16, offset: 18865},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 16, offset: 18865},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_primitive",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_PRIMITIVE\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 32, offset: 18881},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 35, offset: 18884},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 39, offset: 18888},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 42, offset: 18891},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 45, offset: 18894},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 56, offset: 18905},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 620, col: 59, offset: 18908},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "IsString",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 1, offset: 18999},
|
2024-02-24 22:29:33 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 13, offset: 19011},
|
2024-02-24 22:29:33 +02:00
|
|
|
run: (*parser).callonIsString1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 13, offset: 19011},
|
2024-02-24 22:29:33 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 13, offset: 19011},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "is_string",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IS_STRING\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 26, offset: 19024},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 29, offset: 19027},
|
2024-02-24 22:29:33 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 33, offset: 19031},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 36, offset: 19034},
|
2024-02-24 22:29:33 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 39, offset: 19037},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 50, offset: 19048},
|
2024-02-24 22:29:33 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 624, col: 53, offset: 19051},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ArrayConcatExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 1, offset: 19139},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 26, offset: 19164},
|
2024-02-25 00:25:51 +02:00
|
|
|
run: (*parser).callonArrayConcatExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 26, offset: 19164},
|
2024-02-25 00:25:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 26, offset: 19164},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "array_concat",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ARRAY_CONCAT\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 42, offset: 19180},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 45, offset: 19183},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 49, offset: 19187},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 52, offset: 19190},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "arrays",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 59, offset: 19197},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 70, offset: 19208},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "others",
|
|
|
|
expr: &oneOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 77, offset: 19215},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 78, offset: 19216},
|
2024-02-25 00:25:51 +02:00
|
|
|
run: (*parser).callonArrayConcatExpression11,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 628, col: 78, offset: 19216},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 628, col: 78, offset: 19216},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 628, col: 81, offset: 19219},
|
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 628, col: 85, offset: 19223},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 628, col: 88, offset: 19226},
|
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 628, col: 91, offset: 19229},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 628, col: 123, offset: 19261},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 628, col: 126, offset: 19264},
|
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ArrayContainsExpression",
|
|
|
|
pos: position{line: 632, col: 1, offset: 19394},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 632, col: 28, offset: 19421},
|
|
|
|
run: (*parser).callonArrayContainsExpression1,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 632, col: 28, offset: 19421},
|
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 632, col: 28, offset: 19421},
|
|
|
|
val: "array_contains",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ARRAY_CONTAINS\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 46, offset: 19439},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 632, col: 49, offset: 19442},
|
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 53, offset: 19446},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 632, col: 56, offset: 19449},
|
|
|
|
label: "array",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 62, offset: 19455},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 73, offset: 19466},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 632, col: 76, offset: 19469},
|
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 80, offset: 19473},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 632, col: 83, offset: 19476},
|
|
|
|
label: "item",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 88, offset: 19481},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 632, col: 99, offset: 19492},
|
|
|
|
label: "partialMatch",
|
|
|
|
expr: &zeroOrOneExpr{
|
|
|
|
pos: position{line: 632, col: 112, offset: 19505},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 632, col: 113, offset: 19506},
|
|
|
|
run: (*parser).callonArrayContainsExpression16,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 632, col: 113, offset: 19506},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 113, offset: 19506},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 632, col: 116, offset: 19509},
|
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 120, offset: 19513},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 632, col: 123, offset: 19516},
|
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 126, offset: 19519},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 632, col: 158, offset: 19551},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 632, col: 161, offset: 19554},
|
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ArrayContainsAnyExpression",
|
|
|
|
pos: position{line: 636, col: 1, offset: 19670},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 636, col: 31, offset: 19700},
|
|
|
|
run: (*parser).callonArrayContainsAnyExpression1,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 636, col: 31, offset: 19700},
|
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 636, col: 31, offset: 19700},
|
|
|
|
val: "array_contains_any",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ARRAY_CONTAINS_ANY\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 636, col: 53, offset: 19722},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 636, col: 56, offset: 19725},
|
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 636, col: 60, offset: 19729},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 636, col: 63, offset: 19732},
|
|
|
|
label: "array",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 636, col: 69, offset: 19738},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 636, col: 80, offset: 19749},
|
|
|
|
label: "items",
|
|
|
|
expr: &oneOrMoreExpr{
|
|
|
|
pos: position{line: 636, col: 86, offset: 19755},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 636, col: 87, offset: 19756},
|
|
|
|
run: (*parser).callonArrayContainsAnyExpression11,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 636, col: 87, offset: 19756},
|
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 636, col: 87, offset: 19756},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 636, col: 90, offset: 19759},
|
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 636, col: 94, offset: 19763},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 636, col: 97, offset: 19766},
|
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 636, col: 100, offset: 19769},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 636, col: 132, offset: 19801},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 636, col: 135, offset: 19804},
|
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ArrayContainsAllExpression",
|
|
|
|
pos: position{line: 640, col: 1, offset: 19937},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 640, col: 31, offset: 19967},
|
|
|
|
run: (*parser).callonArrayContainsAllExpression1,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 640, col: 31, offset: 19967},
|
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 640, col: 31, offset: 19967},
|
|
|
|
val: "array_contains_all",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ARRAY_CONTAINS_ALL\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 640, col: 53, offset: 19989},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
|
|
|
pos: position{line: 640, col: 56, offset: 19992},
|
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
|
|
|
pos: position{line: 640, col: 60, offset: 19996},
|
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 640, col: 63, offset: 19999},
|
|
|
|
label: "array",
|
|
|
|
expr: &ruleRefExpr{
|
|
|
|
pos: position{line: 640, col: 69, offset: 20005},
|
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
|
|
|
pos: position{line: 640, col: 80, offset: 20016},
|
|
|
|
label: "items",
|
|
|
|
expr: &oneOrMoreExpr{
|
|
|
|
pos: position{line: 640, col: 86, offset: 20022},
|
|
|
|
expr: &actionExpr{
|
|
|
|
pos: position{line: 640, col: 87, offset: 20023},
|
|
|
|
run: (*parser).callonArrayContainsAllExpression11,
|
|
|
|
expr: &seqExpr{
|
|
|
|
pos: position{line: 640, col: 87, offset: 20023},
|
2024-02-25 00:25:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 640, col: 87, offset: 20023},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 640, col: 90, offset: 20026},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 640, col: 94, offset: 20030},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 640, col: 97, offset: 20033},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 640, col: 100, offset: 20036},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 640, col: 132, offset: 20068},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 640, col: 135, offset: 20071},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ArrayLengthExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 1, offset: 20204},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 26, offset: 20229},
|
2024-02-25 00:25:51 +02:00
|
|
|
run: (*parser).callonArrayLengthExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 26, offset: 20229},
|
2024-02-25 00:25:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 26, offset: 20229},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "array_length",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ARRAY_LENGTH\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 42, offset: 20245},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 45, offset: 20248},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 49, offset: 20252},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 52, offset: 20255},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "array",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 58, offset: 20261},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 69, offset: 20272},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 644, col: 72, offset: 20275},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ArraySliceExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 1, offset: 20369},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 25, offset: 20393},
|
2024-02-25 00:25:51 +02:00
|
|
|
run: (*parser).callonArraySliceExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 25, offset: 20393},
|
2024-02-25 00:25:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 25, offset: 20393},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "array_slice",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ARRAY_SLICE\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 40, offset: 20408},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 43, offset: 20411},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 47, offset: 20415},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 50, offset: 20418},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "array",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 56, offset: 20424},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 67, offset: 20435},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 70, offset: 20438},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 74, offset: 20442},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 77, offset: 20445},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "start",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 83, offset: 20451},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 94, offset: 20462},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "length",
|
|
|
|
expr: &zeroOrOneExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 101, offset: 20469},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 102, offset: 20470},
|
2024-02-25 00:25:51 +02:00
|
|
|
run: (*parser).callonArraySliceExpression16,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 102, offset: 20470},
|
2024-02-25 00:25:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 102, offset: 20470},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 105, offset: 20473},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 109, offset: 20477},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 112, offset: 20480},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 115, offset: 20483},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 147, offset: 20515},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 648, col: 150, offset: 20518},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SetIntersectExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 1, offset: 20626},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 27, offset: 20652},
|
2024-02-25 00:25:51 +02:00
|
|
|
run: (*parser).callonSetIntersectExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 27, offset: 20652},
|
2024-02-25 00:25:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 27, offset: 20652},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "setintersect",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SetIntersect\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 43, offset: 20668},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 46, offset: 20671},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 50, offset: 20675},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 53, offset: 20678},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 58, offset: 20683},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 69, offset: 20694},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 72, offset: 20697},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 76, offset: 20701},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 79, offset: 20704},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 84, offset: 20709},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 95, offset: 20720},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 652, col: 98, offset: 20723},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SetUnionExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 1, offset: 20823},
|
2024-02-25 00:25:51 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 23, offset: 20845},
|
2024-02-25 00:25:51 +02:00
|
|
|
run: (*parser).callonSetUnionExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 23, offset: 20845},
|
2024-02-25 00:25:51 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 23, offset: 20845},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "setunion",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SetUnion\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 35, offset: 20857},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 38, offset: 20860},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 42, offset: 20864},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 45, offset: 20867},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 50, offset: 20872},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 61, offset: 20883},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 64, offset: 20886},
|
2024-02-25 00:25:51 +02:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 68, offset: 20890},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 71, offset: 20893},
|
2024-02-25 00:25:51 +02:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 76, offset: 20898},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 87, offset: 20909},
|
2024-02-25 00:25:51 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 656, col: 90, offset: 20912},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathAbsExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 1, offset: 21008},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 22, offset: 21029},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathAbsExpression1,
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 22, offset: 21029},
|
2024-02-24 21:24:20 +02:00
|
|
|
exprs: []any{
|
2024-06-19 00:44:46 +03:00
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 22, offset: 21029},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "abs",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ABS\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 29, offset: 21036},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 32, offset: 21039},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 36, offset: 21043},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-24 21:24:20 +02:00
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 39, offset: 21046},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 42, offset: 21049},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 53, offset: 21060},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 660, col: 56, offset: 21063},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathAcosExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 1, offset: 21145},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 23, offset: 21167},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathAcosExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 23, offset: 21167},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 23, offset: 21167},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "acos",
|
2024-02-24 21:24:20 +02:00
|
|
|
ignoreCase: true,
|
2024-06-19 00:44:46 +03:00
|
|
|
want: "\"ACOS\"i",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 31, offset: 21175},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 34, offset: 21178},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 38, offset: 21182},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 41, offset: 21185},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 44, offset: 21188},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
2024-06-19 00:44:46 +03:00
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 55, offset: 21199},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 661, col: 58, offset: 21202},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathAsinExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 1, offset: 21285},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 23, offset: 21307},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathAsinExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 23, offset: 21307},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 23, offset: 21307},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "asin",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ASIN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 31, offset: 21315},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 34, offset: 21318},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 38, offset: 21322},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
2024-02-24 21:24:20 +02:00
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 41, offset: 21325},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 44, offset: 21328},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 55, offset: 21339},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 662, col: 58, offset: 21342},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathAtanExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 1, offset: 21425},
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 23, offset: 21447},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathAtanExpression1,
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 23, offset: 21447},
|
2024-03-11 19:10:41 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 23, offset: 21447},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "atan",
|
2024-03-11 19:10:41 +02:00
|
|
|
ignoreCase: true,
|
2024-06-19 00:44:46 +03:00
|
|
|
want: "\"ATAN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 31, offset: 21455},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
2024-03-11 19:10:41 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 34, offset: 21458},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 38, offset: 21462},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 41, offset: 21465},
|
2024-03-11 19:10:41 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 44, offset: 21468},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 55, offset: 21479},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 663, col: 58, offset: 21482},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathCeilingExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 1, offset: 21565},
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 26, offset: 21590},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathCeilingExpression1,
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 26, offset: 21590},
|
2024-03-11 19:10:41 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 26, offset: 21590},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "ceiling",
|
2024-03-11 19:10:41 +02:00
|
|
|
ignoreCase: true,
|
2024-06-19 00:44:46 +03:00
|
|
|
want: "\"CEILING\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 37, offset: 21601},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
2024-03-11 19:10:41 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 40, offset: 21604},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 44, offset: 21608},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 47, offset: 21611},
|
2024-03-11 19:10:41 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 50, offset: 21614},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 61, offset: 21625},
|
2024-02-24 21:24:20 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 664, col: 64, offset: 21628},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathCosExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 1, offset: 21714},
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 22, offset: 21735},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathCosExpression1,
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 22, offset: 21735},
|
2024-03-11 19:10:41 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 22, offset: 21735},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "cos",
|
2024-03-11 19:10:41 +02:00
|
|
|
ignoreCase: true,
|
2024-06-19 00:44:46 +03:00
|
|
|
want: "\"COS\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 29, offset: 21742},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
2024-03-11 19:10:41 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 32, offset: 21745},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 36, offset: 21749},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 39, offset: 21752},
|
2024-03-11 19:10:41 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 42, offset: 21755},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 53, offset: 21766},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 665, col: 56, offset: 21769},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathCotExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 1, offset: 21851},
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 22, offset: 21872},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathCotExpression1,
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 22, offset: 21872},
|
2024-03-11 19:10:41 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 22, offset: 21872},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "cot",
|
2024-03-11 19:10:41 +02:00
|
|
|
ignoreCase: true,
|
2024-06-19 00:44:46 +03:00
|
|
|
want: "\"COT\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 29, offset: 21879},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
2024-03-11 19:10:41 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 32, offset: 21882},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 36, offset: 21886},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 39, offset: 21889},
|
2024-03-11 19:10:41 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 42, offset: 21892},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 53, offset: 21903},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 666, col: 56, offset: 21906},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathDegreesExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 1, offset: 21988},
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 26, offset: 22013},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathDegreesExpression1,
|
2024-03-11 19:10:41 +02:00
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 26, offset: 22013},
|
2024-03-11 19:10:41 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 26, offset: 22013},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "degrees",
|
2024-03-11 19:10:41 +02:00
|
|
|
ignoreCase: true,
|
2024-06-19 00:44:46 +03:00
|
|
|
want: "\"DEGREES\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 37, offset: 22024},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
2024-03-11 19:10:41 +02:00
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 40, offset: 22027},
|
2024-03-11 19:10:41 +02:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 44, offset: 22031},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 47, offset: 22034},
|
2024-03-11 19:10:41 +02:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 50, offset: 22037},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 61, offset: 22048},
|
2024-03-11 19:10:41 +02:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 667, col: 64, offset: 22051},
|
2024-02-24 21:24:20 +02:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathExpExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 1, offset: 22137},
|
2024-02-24 21:24:20 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 22, offset: 22158},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathExpExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 22, offset: 22158},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 22, offset: 22158},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "exp",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"EXP\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 29, offset: 22165},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 32, offset: 22168},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 36, offset: 22172},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 39, offset: 22175},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 42, offset: 22178},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 53, offset: 22189},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 668, col: 56, offset: 22192},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
2024-02-24 21:24:20 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "MathFloorExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 1, offset: 22274},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 24, offset: 22297},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathFloorExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 24, offset: 22297},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 24, offset: 22297},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "floor",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"FLOOR\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 33, offset: 22306},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 36, offset: 22309},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 40, offset: 22313},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 43, offset: 22316},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 46, offset: 22319},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 57, offset: 22330},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 669, col: 60, offset: 22333},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntBitNotExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 1, offset: 22417},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 28, offset: 22444},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntBitNotExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 28, offset: 22444},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 28, offset: 22444},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intbitnot",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntBitNot\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 41, offset: 22457},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 44, offset: 22460},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 48, offset: 22464},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 51, offset: 22467},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 54, offset: 22470},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 65, offset: 22481},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 670, col: 68, offset: 22484},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathLog10Expression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 1, offset: 22572},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 24, offset: 22595},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathLog10Expression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 24, offset: 22595},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 24, offset: 22595},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "log10",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"LOG10\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 33, offset: 22604},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 36, offset: 22607},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 40, offset: 22611},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 43, offset: 22614},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 46, offset: 22617},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 57, offset: 22628},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 671, col: 60, offset: 22631},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathRadiansExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 1, offset: 22715},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 26, offset: 22740},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathRadiansExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 26, offset: 22740},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 26, offset: 22740},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "radians",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"RADIANS\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 37, offset: 22751},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 40, offset: 22754},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 44, offset: 22758},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 47, offset: 22761},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 50, offset: 22764},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 61, offset: 22775},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 672, col: 64, offset: 22778},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathRoundExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 1, offset: 22864},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 24, offset: 22887},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathRoundExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 24, offset: 22887},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 24, offset: 22887},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "round",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ROUND\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 33, offset: 22896},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 36, offset: 22899},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 40, offset: 22903},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 43, offset: 22906},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 46, offset: 22909},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 57, offset: 22920},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 673, col: 60, offset: 22923},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathSignExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 1, offset: 23007},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 23, offset: 23029},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathSignExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 23, offset: 23029},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 23, offset: 23029},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "sign",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SIGN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 31, offset: 23037},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 34, offset: 23040},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 38, offset: 23044},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 41, offset: 23047},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 44, offset: 23050},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 55, offset: 23061},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 674, col: 58, offset: 23064},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathSinExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 1, offset: 23147},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 22, offset: 23168},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathSinExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 22, offset: 23168},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 22, offset: 23168},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "sin",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SIN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 29, offset: 23175},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 32, offset: 23178},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 36, offset: 23182},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 39, offset: 23185},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 42, offset: 23188},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 53, offset: 23199},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 675, col: 56, offset: 23202},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathSqrtExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 1, offset: 23284},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 23, offset: 23306},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathSqrtExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 23, offset: 23306},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 23, offset: 23306},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "sqrt",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SQRT\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 31, offset: 23314},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 34, offset: 23317},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 38, offset: 23321},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 41, offset: 23324},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 44, offset: 23327},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 55, offset: 23338},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 676, col: 58, offset: 23341},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathSquareExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 1, offset: 23424},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 25, offset: 23448},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathSquareExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 25, offset: 23448},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 25, offset: 23448},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "square",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SQUARE\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 35, offset: 23458},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 38, offset: 23461},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 42, offset: 23465},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 45, offset: 23468},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 48, offset: 23471},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 59, offset: 23482},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 677, col: 62, offset: 23485},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathTanExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 1, offset: 23570},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 22, offset: 23591},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathTanExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 22, offset: 23591},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 22, offset: 23591},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "tan",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"TAN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 29, offset: 23598},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 32, offset: 23601},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 36, offset: 23605},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 39, offset: 23608},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 42, offset: 23611},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 53, offset: 23622},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 678, col: 56, offset: 23625},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathTruncExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 1, offset: 23707},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 24, offset: 23730},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathTruncExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 24, offset: 23730},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 24, offset: 23730},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "trunc",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"TRUNC\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 33, offset: 23739},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 36, offset: 23742},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 40, offset: 23746},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 43, offset: 23749},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 46, offset: 23752},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 57, offset: 23763},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 679, col: 60, offset: 23766},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathAtn2Expression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 1, offset: 23851},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 23, offset: 23873},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathAtn2Expression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 23, offset: 23873},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 23, offset: 23873},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "atn2",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"ATN2\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 31, offset: 23881},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 34, offset: 23884},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 38, offset: 23888},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 41, offset: 23891},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 46, offset: 23896},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 57, offset: 23907},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 60, offset: 23910},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 64, offset: 23914},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 67, offset: 23917},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 72, offset: 23922},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 83, offset: 23933},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 681, col: 86, offset: 23936},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntAddExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 1, offset: 24027},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 25, offset: 24051},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntAddExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 25, offset: 24051},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 25, offset: 24051},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intadd",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntAdd\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 35, offset: 24061},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 38, offset: 24064},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 42, offset: 24068},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 45, offset: 24071},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 50, offset: 24076},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 61, offset: 24087},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 64, offset: 24090},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 68, offset: 24094},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 71, offset: 24097},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 76, offset: 24102},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 87, offset: 24113},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 682, col: 90, offset: 24116},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntBitAndExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 1, offset: 24209},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 28, offset: 24236},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntBitAndExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 28, offset: 24236},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 28, offset: 24236},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intbitand",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntBitAnd\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 41, offset: 24249},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 44, offset: 24252},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 48, offset: 24256},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 51, offset: 24259},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 56, offset: 24264},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 67, offset: 24275},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 70, offset: 24278},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 74, offset: 24282},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 77, offset: 24285},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 82, offset: 24290},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 93, offset: 24301},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 683, col: 96, offset: 24304},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntBitLeftShiftExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 1, offset: 24400},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 34, offset: 24433},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntBitLeftShiftExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 34, offset: 24433},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 34, offset: 24433},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intbitleftshift",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntBitLeftShift\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 53, offset: 24452},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 56, offset: 24455},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 60, offset: 24459},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 63, offset: 24462},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 68, offset: 24467},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 79, offset: 24478},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 82, offset: 24481},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 86, offset: 24485},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 89, offset: 24488},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 94, offset: 24493},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 105, offset: 24504},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 684, col: 108, offset: 24507},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntBitOrExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 1, offset: 24609},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 27, offset: 24635},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntBitOrExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 27, offset: 24635},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 27, offset: 24635},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intbitor",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntBitOr\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 39, offset: 24647},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 42, offset: 24650},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 46, offset: 24654},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 49, offset: 24657},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 54, offset: 24662},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 65, offset: 24673},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 68, offset: 24676},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 72, offset: 24680},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 75, offset: 24683},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 80, offset: 24688},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 91, offset: 24699},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 685, col: 94, offset: 24702},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntBitRightShiftExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 1, offset: 24797},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 35, offset: 24831},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntBitRightShiftExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 35, offset: 24831},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 35, offset: 24831},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intbitrightshift",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntBitRightShift\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 55, offset: 24851},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 58, offset: 24854},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 62, offset: 24858},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 65, offset: 24861},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 70, offset: 24866},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 81, offset: 24877},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 84, offset: 24880},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 88, offset: 24884},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 91, offset: 24887},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 96, offset: 24892},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 107, offset: 24903},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 686, col: 110, offset: 24906},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntBitXorExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 1, offset: 25009},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 28, offset: 25036},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntBitXorExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 28, offset: 25036},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 28, offset: 25036},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intbitxor",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntBitXor\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 41, offset: 25049},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 44, offset: 25052},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 48, offset: 25056},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 51, offset: 25059},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 56, offset: 25064},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 67, offset: 25075},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 70, offset: 25078},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 74, offset: 25082},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 77, offset: 25085},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 82, offset: 25090},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 93, offset: 25101},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 687, col: 96, offset: 25104},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntDivExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 1, offset: 25200},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 25, offset: 25224},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntDivExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 25, offset: 25224},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 25, offset: 25224},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intdiv",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntDiv\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 35, offset: 25234},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 38, offset: 25237},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 42, offset: 25241},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 45, offset: 25244},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 50, offset: 25249},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 61, offset: 25260},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 64, offset: 25263},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 68, offset: 25267},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 71, offset: 25270},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 76, offset: 25275},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 87, offset: 25286},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 688, col: 90, offset: 25289},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntModExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 1, offset: 25382},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 25, offset: 25406},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntModExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 25, offset: 25406},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 25, offset: 25406},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intmod",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntMod\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 35, offset: 25416},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 38, offset: 25419},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 42, offset: 25423},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 45, offset: 25426},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 50, offset: 25431},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 61, offset: 25442},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 64, offset: 25445},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 68, offset: 25449},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 71, offset: 25452},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 76, offset: 25457},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 87, offset: 25468},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 689, col: 90, offset: 25471},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntMulExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 1, offset: 25564},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 25, offset: 25588},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntMulExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 25, offset: 25588},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 25, offset: 25588},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intmul",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntMul\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 35, offset: 25598},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 38, offset: 25601},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 42, offset: 25605},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 45, offset: 25608},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 50, offset: 25613},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 61, offset: 25624},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 64, offset: 25627},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 68, offset: 25631},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 71, offset: 25634},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 76, offset: 25639},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 87, offset: 25650},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 690, col: 90, offset: 25653},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathIntSubExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 1, offset: 25746},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 25, offset: 25770},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathIntSubExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 25, offset: 25770},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 25, offset: 25770},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "intsub",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IntSub\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 35, offset: 25780},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 38, offset: 25783},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 42, offset: 25787},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 45, offset: 25790},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 50, offset: 25795},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 61, offset: 25806},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 64, offset: 25809},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 68, offset: 25813},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 71, offset: 25816},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 76, offset: 25821},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 87, offset: 25832},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 691, col: 90, offset: 25835},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathPowerExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 1, offset: 25928},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 24, offset: 25951},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathPowerExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 24, offset: 25951},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 24, offset: 25951},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "power",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"POWER\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 33, offset: 25960},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 36, offset: 25963},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 40, offset: 25967},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 43, offset: 25970},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 48, offset: 25975},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 59, offset: 25986},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 62, offset: 25989},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 66, offset: 25993},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 69, offset: 25996},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "set2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 74, offset: 26001},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 85, offset: 26012},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 692, col: 88, offset: 26015},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathLogExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 1, offset: 26108},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 22, offset: 26129},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathLogExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 22, offset: 26129},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 22, offset: 26129},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "log",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"LOG\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 29, offset: 26136},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 32, offset: 26139},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 36, offset: 26143},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 39, offset: 26146},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 43, offset: 26150},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 54, offset: 26161},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "others",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 61, offset: 26168},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 62, offset: 26169},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathLogExpression11,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 62, offset: 26169},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 62, offset: 26169},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 65, offset: 26172},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 69, offset: 26176},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 72, offset: 26179},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 75, offset: 26182},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 107, offset: 26214},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 694, col: 110, offset: 26217},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathNumberBinExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 1, offset: 26339},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 28, offset: 26366},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathNumberBinExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 28, offset: 26366},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 28, offset: 26366},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "numberbin",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"NumberBin\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 41, offset: 26379},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 44, offset: 26382},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 48, offset: 26386},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 51, offset: 26389},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 55, offset: 26393},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 66, offset: 26404},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "others",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 73, offset: 26411},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 74, offset: 26412},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathNumberBinExpression11,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 74, offset: 26412},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 74, offset: 26412},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 77, offset: 26415},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 81, offset: 26419},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 84, offset: 26422},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 87, offset: 26425},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 119, offset: 26457},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 697, col: 122, offset: 26460},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathPiExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 1, offset: 26588},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 21, offset: 26608},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathPiExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 21, offset: 26608},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 21, offset: 26608},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "pi",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"PI\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 27, offset: 26614},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 30, offset: 26617},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 34, offset: 26621},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 700, col: 37, offset: 26624},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MathRandExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 1, offset: 26703},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 23, offset: 26725},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMathRandExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 23, offset: 26725},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 23, offset: 26725},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "rand",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"RAND\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 31, offset: 26733},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 34, offset: 26736},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 38, offset: 26740},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 701, col: 41, offset: 26743},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "InFunction",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 1, offset: 26825},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 15, offset: 26839},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonInFunction1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 15, offset: 26839},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 15, offset: 26839},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex1",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 19, offset: 26843},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectProperty",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 34, offset: 26858},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 37, offset: 26861},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "in",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"IN\"i",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 43, offset: 26867},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 46, offset: 26870},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 50, offset: 26874},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 53, offset: 26877},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex2",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 57, offset: 26881},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 68, offset: 26892},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "others",
|
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 75, offset: 26899},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 76, offset: 26900},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonInFunction14,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 76, offset: 26900},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 76, offset: 26900},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 79, offset: 26903},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ",",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\",\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 83, offset: 26907},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 86, offset: 26910},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 89, offset: 26913},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 121, offset: 26945},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 703, col: 124, offset: 26948},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "AvgAggregateExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 1, offset: 27071},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 29, offset: 27099},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonAvgAggregateExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 29, offset: 27099},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 29, offset: 27099},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "avg",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"AVG\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 36, offset: 27106},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 40, offset: 27110},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 43, offset: 27113},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 46, offset: 27116},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 58, offset: 27128},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 707, col: 61, offset: 27131},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "CountAggregateExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 1, offset: 27223},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 29, offset: 27251},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonCountAggregateExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 29, offset: 27251},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 29, offset: 27251},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "count",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"COUNT\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 38, offset: 27260},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 42, offset: 27264},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 45, offset: 27267},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 48, offset: 27270},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 59, offset: 27281},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 711, col: 62, offset: 27284},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MaxAggregateExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 1, offset: 27378},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 29, offset: 27406},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMaxAggregateExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 29, offset: 27406},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 29, offset: 27406},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "max",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"MAX\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 36, offset: 27413},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 40, offset: 27417},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 43, offset: 27420},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 46, offset: 27423},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 57, offset: 27434},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 715, col: 60, offset: 27437},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "MinAggregateExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 1, offset: 27529},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 29, offset: 27557},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonMinAggregateExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 29, offset: 27557},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 29, offset: 27557},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "min",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"MIN\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 36, offset: 27564},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 40, offset: 27568},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 43, offset: 27571},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 46, offset: 27574},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 57, offset: 27585},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 719, col: 60, offset: 27588},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "SumAggregateExpression",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 1, offset: 27680},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 29, offset: 27708},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonSumAggregateExpression1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 29, offset: 27708},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 29, offset: 27708},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "sum",
|
|
|
|
ignoreCase: true,
|
|
|
|
want: "\"SUM\"i",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 36, offset: 27715},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "(",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"(\"",
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 40, offset: 27719},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 43, offset: 27722},
|
2024-06-19 00:44:46 +03:00
|
|
|
label: "ex",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 46, offset: 27725},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "SelectItem",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 57, offset: 27736},
|
2024-06-19 00:44:46 +03:00
|
|
|
name: "ws",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 723, col: 60, offset: 27739},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: ")",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\")\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Integer",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 727, col: 1, offset: 27831},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 727, col: 12, offset: 27842},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonInteger1,
|
|
|
|
expr: &oneOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 727, col: 12, offset: 27842},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &charClassMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 727, col: 12, offset: 27842},
|
2024-06-19 00:44:46 +03:00
|
|
|
val: "[0-9]",
|
|
|
|
ranges: []rune{'0', '9'},
|
|
|
|
ignoreCase: false,
|
|
|
|
inverted: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "StringCharacter",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 1, offset: 27894},
|
2024-06-19 00:44:46 +03:00
|
|
|
expr: &choiceExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 20, offset: 27913},
|
2024-06-19 00:44:46 +03:00
|
|
|
alternatives: []any{
|
|
|
|
&actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 20, offset: 27913},
|
2024-06-19 00:44:46 +03:00
|
|
|
run: (*parser).callonStringCharacter2,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 20, offset: 27913},
|
2024-06-19 00:44:46 +03:00
|
|
|
exprs: []any{
|
2024-02-24 21:24:20 +02:00
|
|
|
¬Expr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 20, offset: 27913},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 22, offset: 27915},
|
2024-02-11 22:15:08 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 22, offset: 27915},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "\"",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\"\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 731, col: 28, offset: 27921},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "\\",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\\\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&anyMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
line: 731, col: 34, offset: 27927,
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 732, col: 5, offset: 27964},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonStringCharacter9,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 732, col: 5, offset: 27964},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 732, col: 5, offset: 27964},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "\\",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\\\"",
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 732, col: 10, offset: 27969},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "seq",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 732, col: 14, offset: 27973},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "EscapeSequenceCharacter",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "EscapeSequenceCharacter",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 734, col: 1, offset: 28018},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 734, col: 28, offset: 28045},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "char",
|
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 734, col: 33, offset: 28050},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "EscapeCharacter",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "EscapeCharacter",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 736, col: 1, offset: 28067},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &choiceExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 736, col: 20, offset: 28086},
|
2024-02-11 22:15:08 +02:00
|
|
|
alternatives: []any{
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 736, col: 20, offset: 28086},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "'",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"'\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 737, col: 5, offset: 28094},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "\"",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\"\"",
|
|
|
|
},
|
|
|
|
&litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 738, col: 5, offset: 28102},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "\\",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"\\\\\"",
|
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 739, col: 5, offset: 28111},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonEscapeCharacter5,
|
|
|
|
expr: &litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 739, col: 5, offset: 28111},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "b",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"b\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 740, col: 5, offset: 28140},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonEscapeCharacter7,
|
|
|
|
expr: &litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 740, col: 5, offset: 28140},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "f",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"f\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 741, col: 5, offset: 28169},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonEscapeCharacter9,
|
|
|
|
expr: &litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 741, col: 5, offset: 28169},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "n",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"n\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 742, col: 5, offset: 28198},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonEscapeCharacter11,
|
|
|
|
expr: &litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 742, col: 5, offset: 28198},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "r",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"r\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 743, col: 5, offset: 28227},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonEscapeCharacter13,
|
|
|
|
expr: &litMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 743, col: 5, offset: 28227},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "t",
|
|
|
|
ignoreCase: false,
|
|
|
|
want: "\"t\"",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "non_escape_character",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 745, col: 1, offset: 28253},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &actionExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 745, col: 25, offset: 28277},
|
2024-02-11 22:15:08 +02:00
|
|
|
run: (*parser).callonnon_escape_character1,
|
|
|
|
expr: &seqExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 745, col: 25, offset: 28277},
|
2024-02-11 22:15:08 +02:00
|
|
|
exprs: []any{
|
|
|
|
¬Expr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 745, col: 25, offset: 28277},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &ruleRefExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 745, col: 27, offset: 28279},
|
2024-02-11 22:15:08 +02:00
|
|
|
name: "escape_character",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
&labeledExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 745, col: 45, offset: 28297},
|
2024-02-11 22:15:08 +02:00
|
|
|
label: "char",
|
|
|
|
expr: &anyMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
line: 745, col: 50, offset: 28302,
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "ws",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 748, col: 1, offset: 28341},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &zeroOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 748, col: 7, offset: 28347},
|
2024-12-07 22:29:26 +02:00
|
|
|
expr: &charClassMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 748, col: 7, offset: 28347},
|
2024-12-07 22:29:26 +02:00
|
|
|
val: "[ \\t\\n\\r]",
|
|
|
|
chars: []rune{' ', '\t', '\n', '\r'},
|
|
|
|
ignoreCase: false,
|
|
|
|
inverted: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "wss",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 750, col: 1, offset: 28359},
|
2024-12-07 22:29:26 +02:00
|
|
|
expr: &oneOrMoreExpr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 750, col: 8, offset: 28366},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &charClassMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 750, col: 8, offset: 28366},
|
2024-02-11 22:15:08 +02:00
|
|
|
val: "[ \\t\\n\\r]",
|
|
|
|
chars: []rune{' ', '\t', '\n', '\r'},
|
|
|
|
ignoreCase: false,
|
|
|
|
inverted: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "EOF",
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 752, col: 1, offset: 28378},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: ¬Expr{
|
2024-12-26 20:27:59 +02:00
|
|
|
pos: position{line: 752, col: 8, offset: 28385},
|
2024-02-11 22:15:08 +02:00
|
|
|
expr: &anyMatcher{
|
2024-12-26 20:27:59 +02:00
|
|
|
line: 752, col: 9, offset: 28386,
|
2024-02-11 22:15:08 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onInput1(selectStmt any) (any, error) {
|
|
|
|
return selectStmt, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonInput1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onInput1(stack["selectStmt"])
|
|
|
|
}
|
|
|
|
|
2024-12-07 22:29:26 +02:00
|
|
|
func (c *current) onSelectStmt22(join any) (any, error) {
|
|
|
|
return join, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectStmt22() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectStmt22(stack["join"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSelectStmt30(condition any) (any, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
return condition, nil
|
|
|
|
}
|
|
|
|
|
2024-12-07 22:29:26 +02:00
|
|
|
func (p *parser) callonSelectStmt30() (any, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-12-07 22:29:26 +02:00
|
|
|
return p.cur.onSelectStmt30(stack["condition"])
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-12-07 22:29:26 +02:00
|
|
|
func (c *current) onSelectStmt39(columns any) (any, error) {
|
2024-03-11 17:50:20 +02:00
|
|
|
return columns, nil
|
|
|
|
}
|
|
|
|
|
2024-12-07 22:29:26 +02:00
|
|
|
func (p *parser) callonSelectStmt39() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectStmt39(stack["columns"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSelectStmt48(order any) (any, error) {
|
|
|
|
return order, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectStmt48() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectStmt48(stack["order"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSelectStmt55(offset any) (any, error) {
|
|
|
|
return offset, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectStmt55() (any, error) {
|
2024-03-11 17:50:20 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-12-07 22:29:26 +02:00
|
|
|
return p.cur.onSelectStmt55(stack["offset"])
|
2024-03-11 17:50:20 +02:00
|
|
|
}
|
|
|
|
|
2024-12-07 22:29:26 +02:00
|
|
|
func (c *current) onSelectStmt1(distinctClause, topClause, columns, fromClause, joinClauses, whereClause, groupByClause, orderByClause, offsetClause any) (any, error) {
|
|
|
|
return makeSelectStmt(columns, fromClause, joinClauses, whereClause,
|
2024-03-11 22:02:10 +02:00
|
|
|
distinctClause, topClause, groupByClause, orderByClause, offsetClause)
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectStmt1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-12-07 22:29:26 +02:00
|
|
|
return p.cur.onSelectStmt1(stack["distinctClause"], stack["topClause"], stack["columns"], stack["fromClause"], stack["joinClauses"], stack["whereClause"], stack["groupByClause"], stack["orderByClause"], stack["offsetClause"])
|
2024-02-14 21:03:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onTopClause1(count any) (any, error) {
|
|
|
|
return count, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonTopClause1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onTopClause1(stack["count"])
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-12-07 22:29:26 +02:00
|
|
|
func (c *current) onFromClause10(column any) (any, error) {
|
|
|
|
return column, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonFromClause10() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onFromClause10(stack["column"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onFromClause2(table, selectItem any) (any, error) {
|
|
|
|
tableTyped := table.(parsers.Table)
|
|
|
|
|
|
|
|
if selectItem != nil {
|
|
|
|
tableTyped.SelectItem = selectItem.(parsers.SelectItem)
|
|
|
|
}
|
|
|
|
|
|
|
|
return tableTyped, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonFromClause2() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onFromClause2(stack["table"], stack["selectItem"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onFromClause17(subQuery any) (any, error) {
|
|
|
|
subQueryTyped := subQuery.(parsers.SelectItem)
|
|
|
|
table := parsers.Table{
|
|
|
|
Value: subQueryTyped.Alias,
|
|
|
|
SelectItem: subQueryTyped,
|
|
|
|
}
|
|
|
|
return table, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonFromClause17() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onFromClause17(stack["subQuery"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSubQuery5(exists any) (any, error) {
|
|
|
|
return exists, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSubQuery5() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSubQuery5(stack["exists"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSubQuery1(exists, selectStmt any) (any, error) {
|
|
|
|
if selectStatement, isGoodValue := selectStmt.(parsers.SelectStmt); isGoodValue {
|
|
|
|
selectStatement.Exists = exists != nil
|
|
|
|
return selectStatement, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
return selectStmt, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSubQuery1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSubQuery1(stack["exists"], stack["selectStmt"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSubQuerySelectItem7(alias any) (any, error) {
|
|
|
|
return alias, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSubQuerySelectItem7() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSubQuerySelectItem7(stack["alias"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSubQuerySelectItem1(subQuery, asClause any) (any, error) {
|
|
|
|
selectItem := parsers.SelectItem{
|
|
|
|
Type: parsers.SelectItemTypeSubQuery,
|
|
|
|
Value: subQuery,
|
|
|
|
}
|
|
|
|
|
|
|
|
if tableName, isString := asClause.(string); isString {
|
|
|
|
selectItem.Alias = tableName
|
|
|
|
}
|
|
|
|
|
|
|
|
return selectItem, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSubQuerySelectItem1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSubQuerySelectItem1(stack["subQuery"], stack["asClause"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onJoinClause2(table, column any) (any, error) {
|
2024-07-17 21:40:28 +03:00
|
|
|
return makeJoin(table, column)
|
|
|
|
}
|
|
|
|
|
2024-12-07 22:29:26 +02:00
|
|
|
func (p *parser) callonJoinClause2() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onJoinClause2(stack["table"], stack["column"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onJoinClause13(subQuery any) (any, error) {
|
|
|
|
return makeJoin(nil, subQuery)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonJoinClause13() (any, error) {
|
2024-07-17 21:40:28 +03:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-12-07 22:29:26 +02:00
|
|
|
return p.cur.onJoinClause13(stack["subQuery"])
|
2024-07-17 21:40:28 +03:00
|
|
|
}
|
|
|
|
|
2024-03-11 22:02:10 +02:00
|
|
|
func (c *current) onOffsetClause1(offset, limit any) (any, error) {
|
|
|
|
return []interface{}{offset.(parsers.Constant).Value, limit.(parsers.Constant).Value}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonOffsetClause1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onOffsetClause1(stack["offset"], stack["limit"])
|
|
|
|
}
|
|
|
|
|
2024-02-15 23:11:46 +02:00
|
|
|
func (c *current) onSelectAsterisk1() (any, error) {
|
|
|
|
selectItem, _ := makeSelectItem("c", make([]interface{}, 0), parsers.SelectItemTypeField)
|
|
|
|
selectItem.IsTopLevel = true
|
|
|
|
return makeColumnList(selectItem, make([]interface{}, 0))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectAsterisk1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectAsterisk1()
|
|
|
|
}
|
|
|
|
|
2024-02-11 22:15:08 +02:00
|
|
|
func (c *current) onColumnList7(coll any) (any, error) {
|
|
|
|
return coll, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonColumnList7() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onColumnList7(stack["coll"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onColumnList1(column, other_columns any) (any, error) {
|
|
|
|
return makeColumnList(column, other_columns)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonColumnList1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onColumnList1(stack["column"], stack["other_columns"])
|
|
|
|
}
|
|
|
|
|
2024-02-13 21:22:55 +02:00
|
|
|
func (c *current) onSelectValueSpec1(column any) (any, error) {
|
|
|
|
selectItem := column.(parsers.SelectItem)
|
|
|
|
selectItem.IsTopLevel = true
|
|
|
|
return makeColumnList(selectItem, make([]interface{}, 0))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectValueSpec1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectValueSpec1(stack["column"])
|
|
|
|
}
|
|
|
|
|
2024-02-11 22:15:08 +02:00
|
|
|
func (c *current) onTableName1(key any) (any, error) {
|
2024-02-11 23:14:30 +02:00
|
|
|
return parsers.Table{Value: key.(string)}, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonTableName1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onTableName1(stack["key"])
|
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
func (c *current) onSelectArray1(columns any) (any, error) {
|
|
|
|
return makeSelectArray(columns)
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-13 21:57:33 +02:00
|
|
|
func (p *parser) callonSelectArray1() (any, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-13 22:42:18 +02:00
|
|
|
return p.cur.onSelectArray1(stack["columns"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSelectObject10(coll any) (any, error) {
|
|
|
|
return coll, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectObject10() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectObject10(stack["coll"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSelectObject1(field, other_fields any) (any, error) {
|
|
|
|
return makeSelectObject(field, other_fields)
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
func (p *parser) callonSelectObject1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectObject1(stack["field"], stack["other_fields"])
|
|
|
|
}
|
|
|
|
|
2024-02-17 17:25:57 +02:00
|
|
|
func (c *current) onSelectObjectField6(key any) (any, error) {
|
|
|
|
return key, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectObjectField6() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectObjectField6(stack["key"])
|
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
func (c *current) onSelectObjectField1(name, selectItem any) (any, error) {
|
|
|
|
item := selectItem.(parsers.SelectItem)
|
|
|
|
item.Alias = name.(string)
|
|
|
|
return item, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectObjectField1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectObjectField1(stack["name"], stack["selectItem"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSelectProperty1(name, path any) (any, error) {
|
|
|
|
return makeSelectItem(name, path, parsers.SelectItemTypeField)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSelectProperty1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSelectProperty1(stack["name"], stack["path"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSelectItem1(selectItem, asClause any) (any, error) {
|
2024-02-18 21:29:42 +02:00
|
|
|
var itemResult parsers.SelectItem
|
|
|
|
switch typedValue := selectItem.(type) {
|
|
|
|
case parsers.SelectItem:
|
|
|
|
itemResult = typedValue
|
|
|
|
case parsers.Constant:
|
|
|
|
itemResult = parsers.SelectItem{
|
|
|
|
Type: parsers.SelectItemTypeConstant,
|
|
|
|
Value: typedValue,
|
|
|
|
}
|
2024-02-18 22:37:09 +02:00
|
|
|
case parsers.FunctionCall:
|
|
|
|
itemResult = parsers.SelectItem{
|
|
|
|
Type: parsers.SelectItemTypeFunctionCall,
|
|
|
|
Value: typedValue,
|
|
|
|
}
|
2024-02-18 21:29:42 +02:00
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
if aliasValue, ok := asClause.(string); ok {
|
2024-02-18 21:29:42 +02:00
|
|
|
itemResult.Alias = aliasValue
|
2024-02-13 22:42:18 +02:00
|
|
|
}
|
2024-02-18 21:29:42 +02:00
|
|
|
|
|
|
|
return itemResult, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-13 22:42:18 +02:00
|
|
|
func (p *parser) callonSelectItem1() (any, error) {
|
2024-02-13 21:57:33 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-13 22:42:18 +02:00
|
|
|
return p.cur.onSelectItem1(stack["selectItem"], stack["asClause"])
|
2024-02-13 21:57:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onAsClause1(alias any) (any, error) {
|
|
|
|
return alias, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonAsClause1() (any, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-13 21:57:33 +02:00
|
|
|
return p.cur.onAsClause1(stack["alias"])
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-12 00:55:07 +02:00
|
|
|
func (c *current) onDotFieldAccess1(id any) (any, error) {
|
|
|
|
return id, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonDotFieldAccess1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onDotFieldAccess1(stack["id"])
|
|
|
|
}
|
|
|
|
|
2024-06-03 19:00:52 +03:00
|
|
|
func (c *current) onArrayFieldAccess2(id any) (any, error) {
|
2024-02-12 00:55:07 +02:00
|
|
|
return id, nil
|
|
|
|
}
|
|
|
|
|
2024-06-03 19:00:52 +03:00
|
|
|
func (p *parser) callonArrayFieldAccess2() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayFieldAccess2(stack["id"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArrayFieldAccess8(id any) (any, error) {
|
|
|
|
return strconv.Itoa(id.(int)), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayFieldAccess8() (any, error) {
|
2024-02-12 00:55:07 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-06-03 19:00:52 +03:00
|
|
|
return p.cur.onArrayFieldAccess8(stack["id"])
|
2024-02-12 00:55:07 +02:00
|
|
|
}
|
|
|
|
|
2024-12-25 21:28:42 +02:00
|
|
|
func (c *current) onArrayFieldAccess14(id any) (any, error) {
|
|
|
|
return id.(parsers.Constant).Value.(string), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayFieldAccess14() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayFieldAccess14(stack["id"])
|
|
|
|
}
|
|
|
|
|
2024-02-11 22:15:08 +02:00
|
|
|
func (c *current) onIdentifier1() (any, error) {
|
|
|
|
return string(c.text), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIdentifier1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIdentifier1()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onCondition1(expression any) (any, error) {
|
|
|
|
return expression, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonCondition1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onCondition1(stack["expression"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onOrExpression7(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonOrExpression7() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onOrExpression7(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onOrExpression1(ex1, ex2 any) (any, error) {
|
2024-02-11 23:14:30 +02:00
|
|
|
return combineExpressions(ex1, ex2, parsers.LogicalExpressionTypeOr)
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonOrExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onOrExpression1(stack["ex1"], stack["ex2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onAndExpression7(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonAndExpression7() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onAndExpression7(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onAndExpression1(ex1, ex2 any) (any, error) {
|
2024-02-11 23:14:30 +02:00
|
|
|
return combineExpressions(ex1, ex2, parsers.LogicalExpressionTypeAnd)
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonAndExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onAndExpression1(stack["ex1"], stack["ex2"])
|
|
|
|
}
|
|
|
|
|
2024-02-15 22:58:07 +02:00
|
|
|
func (c *current) onComparisonExpression2(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonComparisonExpression2() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onComparisonExpression2(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onComparisonExpression10(left, op, right any) (any, error) {
|
2024-02-22 22:12:52 +02:00
|
|
|
return parsers.ComparisonExpression{Left: left, Right: right, Operation: op.(string)}, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-15 22:58:07 +02:00
|
|
|
func (p *parser) callonComparisonExpression10() (any, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-15 22:58:07 +02:00
|
|
|
return p.cur.onComparisonExpression10(stack["left"], stack["op"], stack["right"])
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-18 21:29:42 +02:00
|
|
|
func (c *current) onComparisonExpression20(ex any) (any, error) {
|
2024-02-17 17:25:57 +02:00
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
2024-02-18 21:29:42 +02:00
|
|
|
func (p *parser) callonComparisonExpression20() (any, error) {
|
2024-02-17 17:25:57 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-18 21:29:42 +02:00
|
|
|
return p.cur.onComparisonExpression20(stack["ex"])
|
2024-02-17 17:25:57 +02:00
|
|
|
}
|
|
|
|
|
2024-02-19 00:08:51 +02:00
|
|
|
func (c *current) onComparisonExpression23(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonComparisonExpression23() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onComparisonExpression23(stack["ex"])
|
|
|
|
}
|
|
|
|
|
2024-02-17 22:26:30 +02:00
|
|
|
func (c *current) onOrderByClause9(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonOrderByClause9() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onOrderByClause9(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onOrderByClause1(ex1, others any) (any, error) {
|
|
|
|
return makeOrderByClause(ex1, others)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonOrderByClause1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onOrderByClause1(stack["ex1"], stack["others"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onOrderExpression1(field, order any) (any, error) {
|
|
|
|
return makeOrderExpression(field, order)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonOrderExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onOrderExpression1(stack["field"], stack["order"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onOrderDirection1() (any, error) {
|
2024-02-18 22:37:09 +02:00
|
|
|
if strings.EqualFold(string(c.text), "DESC") {
|
2024-02-17 22:26:30 +02:00
|
|
|
return parsers.OrderDirectionDesc, nil
|
|
|
|
}
|
2024-02-18 22:37:09 +02:00
|
|
|
|
2024-02-17 22:26:30 +02:00
|
|
|
return parsers.OrderDirectionAsc, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonOrderDirection1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onOrderDirection1()
|
|
|
|
}
|
|
|
|
|
2024-02-22 22:12:52 +02:00
|
|
|
func (c *current) onComparisonOperator1() (any, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
return string(c.text), nil
|
|
|
|
}
|
|
|
|
|
2024-02-22 22:12:52 +02:00
|
|
|
func (p *parser) callonComparisonOperator1() (any, error) {
|
2024-02-11 22:15:08 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-22 22:12:52 +02:00
|
|
|
return p.cur.onComparisonOperator1()
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-16 00:13:11 +02:00
|
|
|
func (c *current) onParameterConstant1() (any, error) {
|
|
|
|
return parsers.Constant{Type: parsers.ConstantTypeParameterConstant, Value: string(c.text)}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonParameterConstant1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onParameterConstant1()
|
|
|
|
}
|
|
|
|
|
2024-02-17 17:25:57 +02:00
|
|
|
func (c *current) onNullConstant1() (any, error) {
|
|
|
|
return parsers.Constant{Value: nil}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonNullConstant1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onNullConstant1()
|
|
|
|
}
|
|
|
|
|
2024-02-14 21:03:49 +02:00
|
|
|
func (c *current) onIntegerLiteral1(number any) (any, error) {
|
|
|
|
return parsers.Constant{Type: parsers.ConstantTypeInteger, Value: number.(int)}, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIntegerLiteral1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-14 21:03:49 +02:00
|
|
|
return p.cur.onIntegerLiteral1(stack["number"])
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onStringLiteral1(chars any) (any, error) {
|
2024-02-11 23:14:30 +02:00
|
|
|
return parsers.Constant{Type: parsers.ConstantTypeString, Value: joinStrings(chars.([]interface{}))}, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonStringLiteral1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onStringLiteral1(stack["chars"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onFloatLiteral1() (any, error) {
|
|
|
|
floatValue, _ := strconv.ParseFloat(string(c.text), 64)
|
2024-02-11 23:14:30 +02:00
|
|
|
return parsers.Constant{Type: parsers.ConstantTypeFloat, Value: floatValue}, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonFloatLiteral1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onFloatLiteral1()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onBooleanLiteral1() (any, error) {
|
|
|
|
boolValue, _ := strconv.ParseBool(string(c.text))
|
2024-02-11 23:14:30 +02:00
|
|
|
return parsers.Constant{Type: parsers.ConstantTypeBoolean, Value: boolValue}, nil
|
2024-02-11 22:15:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonBooleanLiteral1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onBooleanLiteral1()
|
|
|
|
}
|
|
|
|
|
2024-02-24 20:00:47 +02:00
|
|
|
func (c *current) onUpperExpression1(ex any) (any, error) {
|
2024-02-24 21:24:20 +02:00
|
|
|
return createFunctionCall(parsers.FunctionCallUpper, []interface{}{ex})
|
2024-02-24 20:00:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonUpperExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onUpperExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onLowerExpression1(ex any) (any, error) {
|
2024-02-24 21:24:20 +02:00
|
|
|
return createFunctionCall(parsers.FunctionCallLower, []interface{}{ex})
|
2024-02-24 20:00:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonLowerExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onLowerExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
2024-02-18 22:37:09 +02:00
|
|
|
func (c *current) onStringEqualsExpression17(boolean any) (any, error) {
|
|
|
|
return boolean, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonStringEqualsExpression17() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onStringEqualsExpression17(stack["boolean"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onStringEqualsExpression1(ex1, ex2, ignoreCase any) (any, error) {
|
2024-02-24 21:24:20 +02:00
|
|
|
return createFunctionCall(parsers.FunctionCallStringEquals, []interface{}{ex1, ex2, ignoreCase})
|
2024-02-18 22:37:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonStringEqualsExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onStringEqualsExpression1(stack["ex1"], stack["ex2"], stack["ignoreCase"])
|
|
|
|
}
|
|
|
|
|
2024-02-23 00:11:14 +02:00
|
|
|
func (c *current) onToStringExpression1(ex any) (any, error) {
|
2024-02-24 21:24:20 +02:00
|
|
|
return createFunctionCall(parsers.FunctionCallToString, []interface{}{ex})
|
2024-02-23 00:11:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonToStringExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onToStringExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
2024-02-21 20:16:52 +02:00
|
|
|
func (c *current) onConcatExpression11(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonConcatExpression11() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onConcatExpression11(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onConcatExpression1(ex1, others any) (any, error) {
|
|
|
|
arguments := append([]interface{}{ex1}, others.([]interface{})...)
|
2024-02-24 21:24:20 +02:00
|
|
|
return createFunctionCall(parsers.FunctionCallConcat, arguments)
|
2024-02-21 20:16:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonConcatExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onConcatExpression1(stack["ex1"], stack["others"])
|
|
|
|
}
|
|
|
|
|
2024-02-24 21:24:20 +02:00
|
|
|
func (c *current) onLeftExpression1(ex, length any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallLeft, []interface{}{ex, length})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonLeftExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onLeftExpression1(stack["ex"], stack["length"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onLengthExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallLength, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonLengthExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onLengthExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onLTrimExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallLTrim, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonLTrimExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onLTrimExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onReplaceExpression1(ex1, ex2, ex3 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallReplace, []interface{}{ex1, ex2, ex3})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonReplaceExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onReplaceExpression1(stack["ex1"], stack["ex2"], stack["ex3"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onReplicateExpression1(ex1, ex2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallReplicate, []interface{}{ex1, ex2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonReplicateExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onReplicateExpression1(stack["ex1"], stack["ex2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onReverseExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallReverse, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonReverseExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onReverseExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onRightExpression1(ex, length any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallRight, []interface{}{ex, length})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonRightExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onRightExpression1(stack["ex"], stack["length"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onRTrimExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallRTrim, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonRTrimExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onRTrimExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSubstringExpression1(ex, startPos, length any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallSubstring, []interface{}{ex, startPos, length})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSubstringExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSubstringExpression1(stack["ex"], stack["startPos"], stack["length"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onTrimExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallTrim, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonTrimExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onTrimExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
2024-02-21 20:46:08 +02:00
|
|
|
func (c *current) onThreeArgumentStringFunctionExpression18(boolean any) (any, error) {
|
2024-02-21 20:25:14 +02:00
|
|
|
return boolean, nil
|
|
|
|
}
|
|
|
|
|
2024-02-21 20:46:08 +02:00
|
|
|
func (p *parser) callonThreeArgumentStringFunctionExpression18() (any, error) {
|
2024-02-21 20:25:14 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-21 20:46:08 +02:00
|
|
|
return p.cur.onThreeArgumentStringFunctionExpression18(stack["boolean"])
|
2024-02-21 20:25:14 +02:00
|
|
|
}
|
|
|
|
|
2024-02-21 20:46:08 +02:00
|
|
|
func (c *current) onThreeArgumentStringFunctionExpression1(function, ex1, ex2, ignoreCase any) (any, error) {
|
|
|
|
var functionType parsers.FunctionCallType
|
|
|
|
|
|
|
|
lowerFunction := strings.ToUpper(function.(string))
|
|
|
|
switch lowerFunction {
|
|
|
|
case "CONTAINS":
|
|
|
|
functionType = parsers.FunctionCallContains
|
|
|
|
case "ENDSWITH":
|
|
|
|
functionType = parsers.FunctionCallEndsWith
|
|
|
|
case "STARTSWITH":
|
|
|
|
functionType = parsers.FunctionCallStartsWith
|
2024-02-22 22:12:52 +02:00
|
|
|
case "INDEX_OF":
|
|
|
|
functionType = parsers.FunctionCallIndexOf
|
2024-02-21 20:46:08 +02:00
|
|
|
}
|
|
|
|
|
2024-02-25 22:13:04 +02:00
|
|
|
return createFunctionCall(functionType, []interface{}{ex1, ex2, ignoreCase})
|
2024-02-21 20:25:14 +02:00
|
|
|
}
|
|
|
|
|
2024-02-21 20:46:08 +02:00
|
|
|
func (p *parser) callonThreeArgumentStringFunctionExpression1() (any, error) {
|
2024-02-21 20:25:14 +02:00
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
2024-02-21 20:46:08 +02:00
|
|
|
return p.cur.onThreeArgumentStringFunctionExpression1(stack["function"], stack["ex1"], stack["ex2"], stack["ignoreCase"])
|
2024-02-21 20:25:14 +02:00
|
|
|
}
|
|
|
|
|
2024-02-22 22:12:52 +02:00
|
|
|
func (c *current) onThreeArgumentStringFunction1() (any, error) {
|
|
|
|
return string(c.text), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonThreeArgumentStringFunction1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onThreeArgumentStringFunction1()
|
|
|
|
}
|
|
|
|
|
2024-02-19 00:08:51 +02:00
|
|
|
func (c *current) onIsDefined1(ex any) (any, error) {
|
2024-02-24 22:29:33 +02:00
|
|
|
return createFunctionCall(parsers.FunctionCallIsDefined, []interface{}{ex})
|
2024-02-19 00:08:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsDefined1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsDefined1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
2024-02-24 22:29:33 +02:00
|
|
|
func (c *current) onIsArray1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsArray, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsArray1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsArray1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsBool1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsBool, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsBool1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsBool1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsFiniteNumber1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsFiniteNumber, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsFiniteNumber1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsFiniteNumber1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsInteger1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsInteger, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsInteger1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsInteger1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsNull1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsNull, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsNull1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsNull1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsNumber1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsNumber, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsNumber1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsNumber1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsObject1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsObject, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsObject1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsObject1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsPrimitive1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsPrimitive, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsPrimitive1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsPrimitive1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onIsString1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallIsString, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonIsString1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onIsString1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
2024-02-25 00:25:51 +02:00
|
|
|
func (c *current) onArrayConcatExpression11(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayConcatExpression11() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayConcatExpression11(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArrayConcatExpression1(arrays, others any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallArrayConcat, append([]interface{}{arrays}, others.([]interface{})...))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayConcatExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayConcatExpression1(stack["arrays"], stack["others"])
|
|
|
|
}
|
|
|
|
|
2024-12-26 20:27:59 +02:00
|
|
|
func (c *current) onArrayContainsExpression16(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayContainsExpression16() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayContainsExpression16(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArrayContainsExpression1(array, item, partialMatch any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallArrayContains, []interface{}{array, item, partialMatch})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayContainsExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayContainsExpression1(stack["array"], stack["item"], stack["partialMatch"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArrayContainsAnyExpression11(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayContainsAnyExpression11() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayContainsAnyExpression11(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArrayContainsAnyExpression1(array, items any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallArrayContainsAny, append([]interface{}{array}, items.([]interface{})...))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayContainsAnyExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayContainsAnyExpression1(stack["array"], stack["items"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArrayContainsAllExpression11(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayContainsAllExpression11() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayContainsAllExpression11(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArrayContainsAllExpression1(array, items any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallArrayContainsAll, append([]interface{}{array}, items.([]interface{})...))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayContainsAllExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayContainsAllExpression1(stack["array"], stack["items"])
|
|
|
|
}
|
|
|
|
|
2024-02-25 00:25:51 +02:00
|
|
|
func (c *current) onArrayLengthExpression1(array any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallArrayLength, []interface{}{array})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArrayLengthExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArrayLengthExpression1(stack["array"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArraySliceExpression16(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArraySliceExpression16() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArraySliceExpression16(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onArraySliceExpression1(array, start, length any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallArraySlice, []interface{}{array, start, length})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonArraySliceExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onArraySliceExpression1(stack["array"], stack["start"], stack["length"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSetIntersectExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallSetIntersect, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSetIntersectExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSetIntersectExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSetUnionExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallSetUnion, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSetUnionExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSetUnionExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
2024-06-19 00:44:46 +03:00
|
|
|
func (c *current) onMathAbsExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathAbs, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathAbsExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathAbsExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathAcosExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathAcos, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathAcosExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathAcosExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathAsinExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathAsin, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathAsinExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathAsinExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathAtanExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathAtan, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathAtanExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathAtanExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathCeilingExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathCeiling, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathCeilingExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathCeilingExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathCosExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathCos, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathCosExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathCosExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathCotExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathCot, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathCotExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathCotExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathDegreesExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathDegrees, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathDegreesExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathDegreesExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathExpExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathExp, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathExpExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathExpExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathFloorExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathFloor, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathFloorExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathFloorExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntBitNotExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntBitNot, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntBitNotExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntBitNotExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathLog10Expression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathLog10, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathLog10Expression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathLog10Expression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathRadiansExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathRadians, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathRadiansExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathRadiansExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathRoundExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathRound, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathRoundExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathRoundExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathSignExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathSign, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathSignExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathSignExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathSinExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathSin, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathSinExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathSinExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathSqrtExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathSqrt, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathSqrtExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathSqrtExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathSquareExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathSquare, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathSquareExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathSquareExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathTanExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathTan, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathTanExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathTanExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathTruncExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathTrunc, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathTruncExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathTruncExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathAtn2Expression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathAtn2, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathAtn2Expression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathAtn2Expression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntAddExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntAdd, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntAddExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntAddExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntBitAndExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntBitAnd, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntBitAndExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntBitAndExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntBitLeftShiftExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntBitLeftShift, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntBitLeftShiftExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntBitLeftShiftExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntBitOrExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntBitOr, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntBitOrExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntBitOrExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntBitRightShiftExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntBitRightShift, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntBitRightShiftExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntBitRightShiftExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntBitXorExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntBitXor, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntBitXorExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntBitXorExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntDivExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntDiv, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntDivExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntDivExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntModExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntMod, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntModExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntModExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntMulExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntMul, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntMulExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntMulExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathIntSubExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathIntSub, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathIntSubExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathIntSubExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathPowerExpression1(set1, set2 any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathPower, []interface{}{set1, set2})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathPowerExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathPowerExpression1(stack["set1"], stack["set2"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathLogExpression11(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathLogExpression11() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathLogExpression11(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathLogExpression1(ex1, others any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathLog, append([]interface{}{ex1}, others.([]interface{})...))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathLogExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathLogExpression1(stack["ex1"], stack["others"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathNumberBinExpression11(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathNumberBinExpression11() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathNumberBinExpression11(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathNumberBinExpression1(ex1, others any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathNumberBin, append([]interface{}{ex1}, others.([]interface{})...))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathNumberBinExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathNumberBinExpression1(stack["ex1"], stack["others"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathPiExpression1() (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathPi, []interface{}{})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathPiExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathPiExpression1()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMathRandExpression1() (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallMathRand, []interface{}{})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMathRandExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMathRandExpression1()
|
|
|
|
}
|
|
|
|
|
2024-02-24 17:26:16 +02:00
|
|
|
func (c *current) onInFunction14(ex any) (any, error) {
|
|
|
|
return ex, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonInFunction14() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onInFunction14(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onInFunction1(ex1, ex2, others any) (any, error) {
|
2024-02-25 22:13:04 +02:00
|
|
|
return createFunctionCall(parsers.FunctionCallIn, append([]interface{}{ex1, ex2}, others.([]interface{})...))
|
2024-02-24 17:26:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonInFunction1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onInFunction1(stack["ex1"], stack["ex2"], stack["others"])
|
|
|
|
}
|
|
|
|
|
2024-03-11 19:10:41 +02:00
|
|
|
func (c *current) onAvgAggregateExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallAggregateAvg, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonAvgAggregateExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onAvgAggregateExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onCountAggregateExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallAggregateCount, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonCountAggregateExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onCountAggregateExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMaxAggregateExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallAggregateMax, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMaxAggregateExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMaxAggregateExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onMinAggregateExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallAggregateMin, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonMinAggregateExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onMinAggregateExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onSumAggregateExpression1(ex any) (any, error) {
|
|
|
|
return createFunctionCall(parsers.FunctionCallAggregateSum, []interface{}{ex})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonSumAggregateExpression1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onSumAggregateExpression1(stack["ex"])
|
|
|
|
}
|
|
|
|
|
2024-02-14 21:03:49 +02:00
|
|
|
func (c *current) onInteger1() (any, error) {
|
|
|
|
return strconv.Atoi(string(c.text))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonInteger1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onInteger1()
|
|
|
|
}
|
|
|
|
|
2024-02-11 22:15:08 +02:00
|
|
|
func (c *current) onStringCharacter2() (any, error) {
|
|
|
|
return string(c.text), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonStringCharacter2() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onStringCharacter2()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onStringCharacter9(seq any) (any, error) {
|
|
|
|
return seq, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonStringCharacter9() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onStringCharacter9(stack["seq"])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onEscapeCharacter5() (any, error) {
|
|
|
|
return "\b", nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonEscapeCharacter5() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onEscapeCharacter5()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onEscapeCharacter7() (any, error) {
|
|
|
|
return "\f", nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonEscapeCharacter7() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onEscapeCharacter7()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onEscapeCharacter9() (any, error) {
|
|
|
|
return "\n", nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonEscapeCharacter9() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onEscapeCharacter9()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onEscapeCharacter11() (any, error) {
|
|
|
|
return "\r", nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonEscapeCharacter11() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onEscapeCharacter11()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onEscapeCharacter13() (any, error) {
|
|
|
|
return "\t", nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonEscapeCharacter13() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onEscapeCharacter13()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *current) onnon_escape_character1(char any) (any, error) {
|
|
|
|
return string(c.text), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) callonnon_escape_character1() (any, error) {
|
|
|
|
stack := p.vstack[len(p.vstack)-1]
|
|
|
|
_ = stack
|
|
|
|
return p.cur.onnon_escape_character1(stack["char"])
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
// errNoRule is returned when the grammar to parse has no rule.
|
|
|
|
errNoRule = errors.New("grammar has no rule")
|
|
|
|
|
|
|
|
// errInvalidEntrypoint is returned when the specified entrypoint rule
|
|
|
|
// does not exit.
|
|
|
|
errInvalidEntrypoint = errors.New("invalid entrypoint")
|
|
|
|
|
|
|
|
// errInvalidEncoding is returned when the source is not properly
|
|
|
|
// utf8-encoded.
|
|
|
|
errInvalidEncoding = errors.New("invalid encoding")
|
|
|
|
|
|
|
|
// errMaxExprCnt is used to signal that the maximum number of
|
|
|
|
// expressions have been parsed.
|
2024-12-25 21:28:42 +02:00
|
|
|
errMaxExprCnt = errors.New("max number of expressions parsed")
|
2024-02-11 22:15:08 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Option is a function that can set an option on the parser. It returns
|
|
|
|
// the previous setting as an Option.
|
|
|
|
type Option func(*parser) Option
|
|
|
|
|
|
|
|
// MaxExpressions creates an Option to stop parsing after the provided
|
|
|
|
// number of expressions have been parsed, if the value is 0 then the parser will
|
|
|
|
// parse for as many steps as needed (possibly an infinite number).
|
|
|
|
//
|
|
|
|
// The default for maxExprCnt is 0.
|
|
|
|
func MaxExpressions(maxExprCnt uint64) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
oldMaxExprCnt := p.maxExprCnt
|
|
|
|
p.maxExprCnt = maxExprCnt
|
|
|
|
return MaxExpressions(oldMaxExprCnt)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Entrypoint creates an Option to set the rule name to use as entrypoint.
|
|
|
|
// The rule name must have been specified in the -alternate-entrypoints
|
|
|
|
// if generating the parser with the -optimize-grammar flag, otherwise
|
|
|
|
// it may have been optimized out. Passing an empty string sets the
|
|
|
|
// entrypoint to the first rule in the grammar.
|
|
|
|
//
|
|
|
|
// The default is to start parsing at the first rule in the grammar.
|
|
|
|
func Entrypoint(ruleName string) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
oldEntrypoint := p.entrypoint
|
|
|
|
p.entrypoint = ruleName
|
|
|
|
if ruleName == "" {
|
|
|
|
p.entrypoint = g.rules[0].name
|
|
|
|
}
|
|
|
|
return Entrypoint(oldEntrypoint)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Statistics adds a user provided Stats struct to the parser to allow
|
|
|
|
// the user to process the results after the parsing has finished.
|
|
|
|
// Also the key for the "no match" counter is set.
|
|
|
|
//
|
|
|
|
// Example usage:
|
|
|
|
//
|
|
|
|
// input := "input"
|
|
|
|
// stats := Stats{}
|
|
|
|
// _, err := Parse("input-file", []byte(input), Statistics(&stats, "no match"))
|
|
|
|
// if err != nil {
|
|
|
|
// log.Panicln(err)
|
|
|
|
// }
|
|
|
|
// b, err := json.MarshalIndent(stats.ChoiceAltCnt, "", " ")
|
|
|
|
// if err != nil {
|
|
|
|
// log.Panicln(err)
|
|
|
|
// }
|
|
|
|
// fmt.Println(string(b))
|
|
|
|
func Statistics(stats *Stats, choiceNoMatch string) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
oldStats := p.Stats
|
|
|
|
p.Stats = stats
|
|
|
|
oldChoiceNoMatch := p.choiceNoMatch
|
|
|
|
p.choiceNoMatch = choiceNoMatch
|
|
|
|
if p.Stats.ChoiceAltCnt == nil {
|
|
|
|
p.Stats.ChoiceAltCnt = make(map[string]map[string]int)
|
|
|
|
}
|
|
|
|
return Statistics(oldStats, oldChoiceNoMatch)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Debug creates an Option to set the debug flag to b. When set to true,
|
|
|
|
// debugging information is printed to stdout while parsing.
|
|
|
|
//
|
|
|
|
// The default is false.
|
|
|
|
func Debug(b bool) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
old := p.debug
|
|
|
|
p.debug = b
|
|
|
|
return Debug(old)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Memoize creates an Option to set the memoize flag to b. When set to true,
|
|
|
|
// the parser will cache all results so each expression is evaluated only
|
|
|
|
// once. This guarantees linear parsing time even for pathological cases,
|
|
|
|
// at the expense of more memory and slower times for typical cases.
|
|
|
|
//
|
|
|
|
// The default is false.
|
|
|
|
func Memoize(b bool) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
old := p.memoize
|
|
|
|
p.memoize = b
|
|
|
|
return Memoize(old)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// AllowInvalidUTF8 creates an Option to allow invalid UTF-8 bytes.
|
|
|
|
// Every invalid UTF-8 byte is treated as a utf8.RuneError (U+FFFD)
|
|
|
|
// by character class matchers and is matched by the any matcher.
|
|
|
|
// The returned matched value, c.text and c.offset are NOT affected.
|
|
|
|
//
|
|
|
|
// The default is false.
|
|
|
|
func AllowInvalidUTF8(b bool) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
old := p.allowInvalidUTF8
|
|
|
|
p.allowInvalidUTF8 = b
|
|
|
|
return AllowInvalidUTF8(old)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Recover creates an Option to set the recover flag to b. When set to
|
|
|
|
// true, this causes the parser to recover from panics and convert it
|
|
|
|
// to an error. Setting it to false can be useful while debugging to
|
|
|
|
// access the full stack trace.
|
|
|
|
//
|
|
|
|
// The default is true.
|
|
|
|
func Recover(b bool) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
old := p.recover
|
|
|
|
p.recover = b
|
|
|
|
return Recover(old)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// GlobalStore creates an Option to set a key to a certain value in
|
|
|
|
// the globalStore.
|
|
|
|
func GlobalStore(key string, value any) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
old := p.cur.globalStore[key]
|
|
|
|
p.cur.globalStore[key] = value
|
|
|
|
return GlobalStore(key, old)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// InitState creates an Option to set a key to a certain value in
|
|
|
|
// the global "state" store.
|
|
|
|
func InitState(key string, value any) Option {
|
|
|
|
return func(p *parser) Option {
|
|
|
|
old := p.cur.state[key]
|
|
|
|
p.cur.state[key] = value
|
|
|
|
return InitState(key, old)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// ParseFile parses the file identified by filename.
|
|
|
|
func ParseFile(filename string, opts ...Option) (i any, err error) {
|
|
|
|
f, err := os.Open(filename)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
defer func() {
|
|
|
|
if closeErr := f.Close(); closeErr != nil {
|
|
|
|
err = closeErr
|
|
|
|
}
|
|
|
|
}()
|
|
|
|
return ParseReader(filename, f, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// ParseReader parses the data from r using filename as information in the
|
|
|
|
// error messages.
|
|
|
|
func ParseReader(filename string, r io.Reader, opts ...Option) (any, error) {
|
|
|
|
b, err := io.ReadAll(r)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
return Parse(filename, b, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Parse parses the data from b using filename as information in the
|
|
|
|
// error messages.
|
|
|
|
func Parse(filename string, b []byte, opts ...Option) (any, error) {
|
|
|
|
return newParser(filename, b, opts...).parse(g)
|
|
|
|
}
|
|
|
|
|
|
|
|
// position records a position in the text.
|
|
|
|
type position struct {
|
|
|
|
line, col, offset int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p position) String() string {
|
|
|
|
return strconv.Itoa(p.line) + ":" + strconv.Itoa(p.col) + " [" + strconv.Itoa(p.offset) + "]"
|
|
|
|
}
|
|
|
|
|
|
|
|
// savepoint stores all state required to go back to this point in the
|
|
|
|
// parser.
|
|
|
|
type savepoint struct {
|
|
|
|
position
|
|
|
|
rn rune
|
|
|
|
w int
|
|
|
|
}
|
|
|
|
|
|
|
|
type current struct {
|
|
|
|
pos position // start position of the match
|
|
|
|
text []byte // raw text of the match
|
|
|
|
|
|
|
|
// state is a store for arbitrary key,value pairs that the user wants to be
|
|
|
|
// tied to the backtracking of the parser.
|
|
|
|
// This is always rolled back if a parsing rule fails.
|
|
|
|
state storeDict
|
|
|
|
|
|
|
|
// globalStore is a general store for the user to store arbitrary key-value
|
|
|
|
// pairs that they need to manage and that they do not want tied to the
|
|
|
|
// backtracking of the parser. This is only modified by the user and never
|
|
|
|
// rolled back by the parser. It is always up to the user to keep this in a
|
|
|
|
// consistent state.
|
|
|
|
globalStore storeDict
|
|
|
|
}
|
|
|
|
|
|
|
|
type storeDict map[string]any
|
|
|
|
|
|
|
|
// the AST types...
|
|
|
|
|
|
|
|
type grammar struct {
|
|
|
|
pos position
|
|
|
|
rules []*rule
|
|
|
|
}
|
|
|
|
|
|
|
|
type rule struct {
|
|
|
|
pos position
|
|
|
|
name string
|
|
|
|
displayName string
|
|
|
|
expr any
|
|
|
|
}
|
|
|
|
|
|
|
|
type choiceExpr struct {
|
|
|
|
pos position
|
|
|
|
alternatives []any
|
|
|
|
}
|
|
|
|
|
|
|
|
type actionExpr struct {
|
|
|
|
pos position
|
|
|
|
expr any
|
|
|
|
run func(*parser) (any, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type recoveryExpr struct {
|
|
|
|
pos position
|
|
|
|
expr any
|
|
|
|
recoverExpr any
|
|
|
|
failureLabel []string
|
|
|
|
}
|
|
|
|
|
|
|
|
type seqExpr struct {
|
|
|
|
pos position
|
|
|
|
exprs []any
|
|
|
|
}
|
|
|
|
|
|
|
|
type throwExpr struct {
|
|
|
|
pos position
|
|
|
|
label string
|
|
|
|
}
|
|
|
|
|
|
|
|
type labeledExpr struct {
|
|
|
|
pos position
|
|
|
|
label string
|
|
|
|
expr any
|
|
|
|
}
|
|
|
|
|
|
|
|
type expr struct {
|
|
|
|
pos position
|
|
|
|
expr any
|
|
|
|
}
|
|
|
|
|
|
|
|
type (
|
|
|
|
andExpr expr
|
|
|
|
notExpr expr
|
|
|
|
zeroOrOneExpr expr
|
|
|
|
zeroOrMoreExpr expr
|
|
|
|
oneOrMoreExpr expr
|
|
|
|
)
|
|
|
|
|
|
|
|
type ruleRefExpr struct {
|
|
|
|
pos position
|
|
|
|
name string
|
|
|
|
}
|
|
|
|
|
|
|
|
type stateCodeExpr struct {
|
|
|
|
pos position
|
|
|
|
run func(*parser) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type andCodeExpr struct {
|
|
|
|
pos position
|
|
|
|
run func(*parser) (bool, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type notCodeExpr struct {
|
|
|
|
pos position
|
|
|
|
run func(*parser) (bool, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type litMatcher struct {
|
|
|
|
pos position
|
|
|
|
val string
|
|
|
|
ignoreCase bool
|
|
|
|
want string
|
|
|
|
}
|
|
|
|
|
|
|
|
type charClassMatcher struct {
|
|
|
|
pos position
|
|
|
|
val string
|
|
|
|
basicLatinChars [128]bool
|
|
|
|
chars []rune
|
|
|
|
ranges []rune
|
|
|
|
classes []*unicode.RangeTable
|
|
|
|
ignoreCase bool
|
|
|
|
inverted bool
|
|
|
|
}
|
|
|
|
|
|
|
|
type anyMatcher position
|
|
|
|
|
|
|
|
// errList cumulates the errors found by the parser.
|
|
|
|
type errList []error
|
|
|
|
|
|
|
|
func (e *errList) add(err error) {
|
|
|
|
*e = append(*e, err)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e errList) err() error {
|
|
|
|
if len(e) == 0 {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
e.dedupe()
|
|
|
|
return e
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *errList) dedupe() {
|
|
|
|
var cleaned []error
|
|
|
|
set := make(map[string]bool)
|
|
|
|
for _, err := range *e {
|
|
|
|
if msg := err.Error(); !set[msg] {
|
|
|
|
set[msg] = true
|
|
|
|
cleaned = append(cleaned, err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*e = cleaned
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e errList) Error() string {
|
|
|
|
switch len(e) {
|
|
|
|
case 0:
|
|
|
|
return ""
|
|
|
|
case 1:
|
|
|
|
return e[0].Error()
|
|
|
|
default:
|
|
|
|
var buf bytes.Buffer
|
|
|
|
|
|
|
|
for i, err := range e {
|
|
|
|
if i > 0 {
|
|
|
|
buf.WriteRune('\n')
|
|
|
|
}
|
|
|
|
buf.WriteString(err.Error())
|
|
|
|
}
|
|
|
|
return buf.String()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// parserError wraps an error with a prefix indicating the rule in which
|
|
|
|
// the error occurred. The original error is stored in the Inner field.
|
|
|
|
type parserError struct {
|
|
|
|
Inner error
|
|
|
|
pos position
|
|
|
|
prefix string
|
|
|
|
expected []string
|
|
|
|
}
|
|
|
|
|
|
|
|
// Error returns the error message.
|
|
|
|
func (p *parserError) Error() string {
|
|
|
|
return p.prefix + ": " + p.Inner.Error()
|
|
|
|
}
|
|
|
|
|
|
|
|
// newParser creates a parser with the specified input source and options.
|
|
|
|
func newParser(filename string, b []byte, opts ...Option) *parser {
|
|
|
|
stats := Stats{
|
|
|
|
ChoiceAltCnt: make(map[string]map[string]int),
|
|
|
|
}
|
|
|
|
|
|
|
|
p := &parser{
|
|
|
|
filename: filename,
|
|
|
|
errs: new(errList),
|
|
|
|
data: b,
|
|
|
|
pt: savepoint{position: position{line: 1}},
|
|
|
|
recover: true,
|
|
|
|
cur: current{
|
|
|
|
state: make(storeDict),
|
|
|
|
globalStore: make(storeDict),
|
|
|
|
},
|
|
|
|
maxFailPos: position{col: 1, line: 1},
|
|
|
|
maxFailExpected: make([]string, 0, 20),
|
|
|
|
Stats: &stats,
|
|
|
|
// start rule is rule [0] unless an alternate entrypoint is specified
|
|
|
|
entrypoint: g.rules[0].name,
|
|
|
|
}
|
|
|
|
p.setOptions(opts)
|
|
|
|
|
|
|
|
if p.maxExprCnt == 0 {
|
|
|
|
p.maxExprCnt = math.MaxUint64
|
|
|
|
}
|
|
|
|
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
// setOptions applies the options to the parser.
|
|
|
|
func (p *parser) setOptions(opts []Option) {
|
|
|
|
for _, opt := range opts {
|
|
|
|
opt(p)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
type resultTuple struct {
|
|
|
|
v any
|
|
|
|
b bool
|
|
|
|
end savepoint
|
|
|
|
}
|
|
|
|
|
|
|
|
const choiceNoMatch = -1
|
|
|
|
|
|
|
|
// Stats stores some statistics, gathered during parsing
|
|
|
|
type Stats struct {
|
|
|
|
// ExprCnt counts the number of expressions processed during parsing
|
|
|
|
// This value is compared to the maximum number of expressions allowed
|
|
|
|
// (set by the MaxExpressions option).
|
|
|
|
ExprCnt uint64
|
|
|
|
|
|
|
|
// ChoiceAltCnt is used to count for each ordered choice expression,
|
|
|
|
// which alternative is used how may times.
|
|
|
|
// These numbers allow to optimize the order of the ordered choice expression
|
|
|
|
// to increase the performance of the parser
|
|
|
|
//
|
|
|
|
// The outer key of ChoiceAltCnt is composed of the name of the rule as well
|
|
|
|
// as the line and the column of the ordered choice.
|
|
|
|
// The inner key of ChoiceAltCnt is the number (one-based) of the matching alternative.
|
|
|
|
// For each alternative the number of matches are counted. If an ordered choice does not
|
|
|
|
// match, a special counter is incremented. The name of this counter is set with
|
|
|
|
// the parser option Statistics.
|
|
|
|
// For an alternative to be included in ChoiceAltCnt, it has to match at least once.
|
|
|
|
ChoiceAltCnt map[string]map[string]int
|
|
|
|
}
|
|
|
|
|
|
|
|
type parser struct {
|
|
|
|
filename string
|
|
|
|
pt savepoint
|
|
|
|
cur current
|
|
|
|
|
|
|
|
data []byte
|
|
|
|
errs *errList
|
|
|
|
|
|
|
|
depth int
|
|
|
|
recover bool
|
|
|
|
debug bool
|
|
|
|
|
|
|
|
memoize bool
|
|
|
|
// memoization table for the packrat algorithm:
|
|
|
|
// map[offset in source] map[expression or rule] {value, match}
|
|
|
|
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]any
|
|
|
|
// rule stack, allows identification of the current rule in errors
|
|
|
|
rstack []*rule
|
|
|
|
|
|
|
|
// parse fail
|
|
|
|
maxFailPos position
|
|
|
|
maxFailExpected []string
|
|
|
|
maxFailInvertExpected bool
|
|
|
|
|
|
|
|
// max number of expressions to be parsed
|
|
|
|
maxExprCnt uint64
|
|
|
|
// entrypoint for the parser
|
|
|
|
entrypoint string
|
|
|
|
|
|
|
|
allowInvalidUTF8 bool
|
|
|
|
|
|
|
|
*Stats
|
|
|
|
|
|
|
|
choiceNoMatch string
|
|
|
|
// recovery expression stack, keeps track of the currently available recovery expression, these are traversed in reverse
|
|
|
|
recoveryStack []map[string]any
|
|
|
|
}
|
|
|
|
|
|
|
|
// push a variable set on the vstack.
|
|
|
|
func (p *parser) pushV() {
|
|
|
|
if cap(p.vstack) == len(p.vstack) {
|
|
|
|
// create new empty slot in the stack
|
|
|
|
p.vstack = append(p.vstack, nil)
|
|
|
|
} else {
|
|
|
|
// slice to 1 more
|
|
|
|
p.vstack = p.vstack[:len(p.vstack)+1]
|
|
|
|
}
|
|
|
|
|
|
|
|
// get the last args set
|
|
|
|
m := p.vstack[len(p.vstack)-1]
|
|
|
|
if m != nil && len(m) == 0 {
|
|
|
|
// empty map, all good
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
m = make(map[string]any)
|
|
|
|
p.vstack[len(p.vstack)-1] = m
|
|
|
|
}
|
|
|
|
|
|
|
|
// pop a variable set from the vstack.
|
|
|
|
func (p *parser) popV() {
|
|
|
|
// if the map is not empty, clear it
|
|
|
|
m := p.vstack[len(p.vstack)-1]
|
|
|
|
if len(m) > 0 {
|
|
|
|
// GC that map
|
|
|
|
p.vstack[len(p.vstack)-1] = nil
|
|
|
|
}
|
|
|
|
p.vstack = p.vstack[:len(p.vstack)-1]
|
|
|
|
}
|
|
|
|
|
|
|
|
// push a recovery expression with its labels to the recoveryStack
|
|
|
|
func (p *parser) pushRecovery(labels []string, expr any) {
|
|
|
|
if cap(p.recoveryStack) == len(p.recoveryStack) {
|
|
|
|
// create new empty slot in the stack
|
|
|
|
p.recoveryStack = append(p.recoveryStack, nil)
|
|
|
|
} else {
|
|
|
|
// slice to 1 more
|
|
|
|
p.recoveryStack = p.recoveryStack[:len(p.recoveryStack)+1]
|
|
|
|
}
|
|
|
|
|
|
|
|
m := make(map[string]any, len(labels))
|
|
|
|
for _, fl := range labels {
|
|
|
|
m[fl] = expr
|
|
|
|
}
|
|
|
|
p.recoveryStack[len(p.recoveryStack)-1] = m
|
|
|
|
}
|
|
|
|
|
|
|
|
// pop a recovery expression from the recoveryStack
|
|
|
|
func (p *parser) popRecovery() {
|
|
|
|
// GC that map
|
|
|
|
p.recoveryStack[len(p.recoveryStack)-1] = nil
|
|
|
|
|
|
|
|
p.recoveryStack = p.recoveryStack[:len(p.recoveryStack)-1]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) print(prefix, s string) string {
|
|
|
|
if !p.debug {
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
fmt.Printf("%s %d:%d:%d: %s [%#U]\n",
|
|
|
|
prefix, p.pt.line, p.pt.col, p.pt.offset, s, p.pt.rn)
|
|
|
|
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 res
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) out(s string) string {
|
|
|
|
p.depth--
|
|
|
|
return p.printIndent("<", s)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) addErr(err error) {
|
|
|
|
p.addErrAt(err, p.pt.position, []string{})
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) addErrAt(err error, pos position, expected []string) {
|
|
|
|
var buf bytes.Buffer
|
|
|
|
if p.filename != "" {
|
|
|
|
buf.WriteString(p.filename)
|
|
|
|
}
|
|
|
|
if buf.Len() > 0 {
|
|
|
|
buf.WriteString(":")
|
|
|
|
}
|
|
|
|
buf.WriteString(fmt.Sprintf("%d:%d (%d)", pos.line, pos.col, pos.offset))
|
|
|
|
if len(p.rstack) > 0 {
|
|
|
|
if buf.Len() > 0 {
|
|
|
|
buf.WriteString(": ")
|
|
|
|
}
|
|
|
|
rule := p.rstack[len(p.rstack)-1]
|
|
|
|
if rule.displayName != "" {
|
|
|
|
buf.WriteString("rule " + rule.displayName)
|
|
|
|
} else {
|
|
|
|
buf.WriteString("rule " + rule.name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pe := &parserError{Inner: err, pos: pos, prefix: buf.String(), expected: expected}
|
|
|
|
p.errs.add(pe)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) failAt(fail bool, pos position, want string) {
|
|
|
|
// process fail if parsing fails and not inverted or parsing succeeds and invert is set
|
|
|
|
if fail == p.maxFailInvertExpected {
|
|
|
|
if pos.offset < p.maxFailPos.offset {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if pos.offset > p.maxFailPos.offset {
|
|
|
|
p.maxFailPos = pos
|
|
|
|
p.maxFailExpected = p.maxFailExpected[:0]
|
|
|
|
}
|
|
|
|
|
|
|
|
if p.maxFailInvertExpected {
|
|
|
|
want = "!" + want
|
|
|
|
}
|
|
|
|
p.maxFailExpected = append(p.maxFailExpected, want)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// read advances the parser to the next rune.
|
|
|
|
func (p *parser) read() {
|
|
|
|
p.pt.offset += p.pt.w
|
|
|
|
rn, n := utf8.DecodeRune(p.data[p.pt.offset:])
|
|
|
|
p.pt.rn = rn
|
|
|
|
p.pt.w = n
|
|
|
|
p.pt.col++
|
|
|
|
if rn == '\n' {
|
|
|
|
p.pt.line++
|
|
|
|
p.pt.col = 0
|
|
|
|
}
|
|
|
|
|
|
|
|
if rn == utf8.RuneError && n == 1 { // see utf8.DecodeRune
|
|
|
|
if !p.allowInvalidUTF8 {
|
|
|
|
p.addErr(errInvalidEncoding)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// restore parser position to the savepoint pt.
|
|
|
|
func (p *parser) restore(pt savepoint) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("restore"))
|
|
|
|
}
|
|
|
|
if pt.offset == p.pt.offset {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
p.pt = pt
|
|
|
|
}
|
|
|
|
|
|
|
|
// Cloner is implemented by any value that has a Clone method, which returns a
|
|
|
|
// copy of the value. This is mainly used for types which are not passed by
|
|
|
|
// value (e.g map, slice, chan) or structs that contain such types.
|
|
|
|
//
|
|
|
|
// This is used in conjunction with the global state feature to create proper
|
|
|
|
// copies of the state to allow the parser to properly restore the state in
|
|
|
|
// the case of backtracking.
|
|
|
|
type Cloner 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.
|
|
|
|
func (p *parser) cloneState() storeDict {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("cloneState"))
|
|
|
|
}
|
|
|
|
|
|
|
|
state := statePool.Get().(storeDict)
|
|
|
|
for k, v := range p.cur.state {
|
|
|
|
if c, ok := v.(Cloner); ok {
|
|
|
|
state[k] = c.Clone()
|
|
|
|
} else {
|
|
|
|
state[k] = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return state
|
|
|
|
}
|
|
|
|
|
|
|
|
// restore parser current state to the state storeDict.
|
|
|
|
// every restoreState should applied only one time for every cloned state
|
|
|
|
func (p *parser) restoreState(state storeDict) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("restoreState"))
|
|
|
|
}
|
|
|
|
p.cur.state.Discard()
|
|
|
|
p.cur.state = state
|
|
|
|
}
|
|
|
|
|
|
|
|
// get the slice of bytes from the savepoint start to the current position.
|
|
|
|
func (p *parser) sliceFrom(start savepoint) []byte {
|
|
|
|
return p.data[start.position.offset:p.pt.position.offset]
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) getMemoized(node any) (resultTuple, bool) {
|
|
|
|
if len(p.memo) == 0 {
|
|
|
|
return resultTuple{}, false
|
|
|
|
}
|
|
|
|
m := p.memo[p.pt.offset]
|
|
|
|
if len(m) == 0 {
|
|
|
|
return resultTuple{}, false
|
|
|
|
}
|
|
|
|
res, ok := m[node]
|
|
|
|
return res, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) setMemoized(pt savepoint, node any, tuple resultTuple) {
|
|
|
|
if p.memo == nil {
|
|
|
|
p.memo = make(map[int]map[any]resultTuple)
|
|
|
|
}
|
|
|
|
m := p.memo[pt.offset]
|
|
|
|
if m == nil {
|
|
|
|
m = make(map[any]resultTuple)
|
|
|
|
p.memo[pt.offset] = m
|
|
|
|
}
|
|
|
|
m[node] = tuple
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) buildRulesTable(g *grammar) {
|
|
|
|
p.rules = make(map[string]*rule, len(g.rules))
|
|
|
|
for _, r := range g.rules {
|
|
|
|
p.rules[r.name] = r
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parse(g *grammar) (val any, err error) {
|
|
|
|
if len(g.rules) == 0 {
|
|
|
|
p.addErr(errNoRule)
|
|
|
|
return nil, p.errs.err()
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO : not super critical but this could be generated
|
|
|
|
p.buildRulesTable(g)
|
|
|
|
|
|
|
|
if p.recover {
|
|
|
|
// panic can be used in action code to stop parsing immediately
|
|
|
|
// and return the panic as an error.
|
|
|
|
defer func() {
|
|
|
|
if e := recover(); e != nil {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("panic handler"))
|
|
|
|
}
|
|
|
|
val = nil
|
|
|
|
switch e := e.(type) {
|
|
|
|
case error:
|
|
|
|
p.addErr(e)
|
|
|
|
default:
|
|
|
|
p.addErr(fmt.Errorf("%v", e))
|
|
|
|
}
|
|
|
|
err = p.errs.err()
|
|
|
|
}
|
|
|
|
}()
|
|
|
|
}
|
|
|
|
|
|
|
|
startRule, ok := p.rules[p.entrypoint]
|
|
|
|
if !ok {
|
|
|
|
p.addErr(errInvalidEntrypoint)
|
|
|
|
return nil, p.errs.err()
|
|
|
|
}
|
|
|
|
|
|
|
|
p.read() // advance to first rune
|
|
|
|
val, ok = p.parseRuleWrap(startRule)
|
|
|
|
if !ok {
|
|
|
|
if len(*p.errs) == 0 {
|
|
|
|
// If parsing fails, but no errors have been recorded, the expected values
|
|
|
|
// for the farthest parser position are returned as error.
|
|
|
|
maxFailExpectedMap := make(map[string]struct{}, len(p.maxFailExpected))
|
|
|
|
for _, v := range p.maxFailExpected {
|
|
|
|
maxFailExpectedMap[v] = struct{}{}
|
|
|
|
}
|
|
|
|
expected := make([]string, 0, len(maxFailExpectedMap))
|
|
|
|
eof := false
|
|
|
|
if _, ok := maxFailExpectedMap["!."]; ok {
|
|
|
|
delete(maxFailExpectedMap, "!.")
|
|
|
|
eof = true
|
|
|
|
}
|
|
|
|
for k := range maxFailExpectedMap {
|
|
|
|
expected = append(expected, k)
|
|
|
|
}
|
|
|
|
sort.Strings(expected)
|
|
|
|
if eof {
|
|
|
|
expected = append(expected, "EOF")
|
|
|
|
}
|
|
|
|
p.addErrAt(errors.New("no match found, expected: "+listJoin(expected, ", ", "or")), p.maxFailPos, expected)
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil, p.errs.err()
|
|
|
|
}
|
|
|
|
return val, p.errs.err()
|
|
|
|
}
|
|
|
|
|
|
|
|
func listJoin(list []string, sep string, lastSep string) string {
|
|
|
|
switch len(list) {
|
|
|
|
case 0:
|
|
|
|
return ""
|
|
|
|
case 1:
|
|
|
|
return list[0]
|
|
|
|
default:
|
|
|
|
return strings.Join(list[:len(list)-1], sep) + " " + lastSep + " " + list[len(list)-1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) 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 {
|
|
|
|
val, ok = p.parseRuleMemoize(rule)
|
|
|
|
} else {
|
|
|
|
val, ok = p.parseRule(rule)
|
|
|
|
}
|
|
|
|
|
|
|
|
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.parseExprWrap(rule.expr)
|
|
|
|
p.popV()
|
|
|
|
p.rstack = p.rstack[:len(p.rstack)-1]
|
|
|
|
return val, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseExprWrap(expr any) (any, bool) {
|
|
|
|
var pt savepoint
|
|
|
|
|
|
|
|
if p.memoize {
|
|
|
|
res, ok := p.getMemoized(expr)
|
|
|
|
if ok {
|
|
|
|
p.restore(res.end)
|
|
|
|
return res.v, res.b
|
|
|
|
}
|
|
|
|
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 any
|
|
|
|
var ok bool
|
|
|
|
switch expr := expr.(type) {
|
|
|
|
case *actionExpr:
|
|
|
|
val, ok = p.parseActionExpr(expr)
|
|
|
|
case *andCodeExpr:
|
|
|
|
val, ok = p.parseAndCodeExpr(expr)
|
|
|
|
case *andExpr:
|
|
|
|
val, ok = p.parseAndExpr(expr)
|
|
|
|
case *anyMatcher:
|
|
|
|
val, ok = p.parseAnyMatcher(expr)
|
|
|
|
case *charClassMatcher:
|
|
|
|
val, ok = p.parseCharClassMatcher(expr)
|
|
|
|
case *choiceExpr:
|
|
|
|
val, ok = p.parseChoiceExpr(expr)
|
|
|
|
case *labeledExpr:
|
|
|
|
val, ok = p.parseLabeledExpr(expr)
|
|
|
|
case *litMatcher:
|
|
|
|
val, ok = p.parseLitMatcher(expr)
|
|
|
|
case *notCodeExpr:
|
|
|
|
val, ok = p.parseNotCodeExpr(expr)
|
|
|
|
case *notExpr:
|
|
|
|
val, ok = p.parseNotExpr(expr)
|
|
|
|
case *oneOrMoreExpr:
|
|
|
|
val, ok = p.parseOneOrMoreExpr(expr)
|
|
|
|
case *recoveryExpr:
|
|
|
|
val, ok = p.parseRecoveryExpr(expr)
|
|
|
|
case *ruleRefExpr:
|
|
|
|
val, ok = p.parseRuleRefExpr(expr)
|
|
|
|
case *seqExpr:
|
|
|
|
val, ok = p.parseSeqExpr(expr)
|
|
|
|
case *stateCodeExpr:
|
|
|
|
val, ok = p.parseStateCodeExpr(expr)
|
|
|
|
case *throwExpr:
|
|
|
|
val, ok = p.parseThrowExpr(expr)
|
|
|
|
case *zeroOrMoreExpr:
|
|
|
|
val, ok = p.parseZeroOrMoreExpr(expr)
|
|
|
|
case *zeroOrOneExpr:
|
|
|
|
val, ok = p.parseZeroOrOneExpr(expr)
|
|
|
|
default:
|
|
|
|
panic(fmt.Sprintf("unknown expression type %T", expr))
|
|
|
|
}
|
|
|
|
return val, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseActionExpr(act *actionExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseActionExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
start := p.pt
|
|
|
|
val, ok := p.parseExprWrap(act.expr)
|
|
|
|
if ok {
|
|
|
|
p.cur.pos = start.position
|
|
|
|
p.cur.text = p.sliceFrom(start)
|
|
|
|
state := p.cloneState()
|
|
|
|
actVal, err := act.run(p)
|
|
|
|
if err != nil {
|
|
|
|
p.addErrAt(err, start.position, []string{})
|
|
|
|
}
|
|
|
|
p.restoreState(state)
|
|
|
|
|
|
|
|
val = actVal
|
|
|
|
}
|
|
|
|
if ok && p.debug {
|
|
|
|
p.printIndent("MATCH", string(p.sliceFrom(start)))
|
|
|
|
}
|
|
|
|
return val, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseAndCodeExpr(and *andCodeExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseAndCodeExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
state := p.cloneState()
|
|
|
|
|
|
|
|
ok, err := and.run(p)
|
|
|
|
if err != nil {
|
|
|
|
p.addErr(err)
|
|
|
|
}
|
|
|
|
p.restoreState(state)
|
|
|
|
|
|
|
|
return nil, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseAndExpr(and *andExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseAndExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
pt := p.pt
|
|
|
|
state := p.cloneState()
|
|
|
|
p.pushV()
|
|
|
|
_, ok := p.parseExprWrap(and.expr)
|
|
|
|
p.popV()
|
|
|
|
p.restoreState(state)
|
|
|
|
p.restore(pt)
|
|
|
|
|
|
|
|
return nil, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseAnyMatcher(any *anyMatcher) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseAnyMatcher"))
|
|
|
|
}
|
|
|
|
|
|
|
|
if p.pt.rn == utf8.RuneError && p.pt.w == 0 {
|
|
|
|
// EOF - see utf8.DecodeRune
|
|
|
|
p.failAt(false, p.pt.position, ".")
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
start := p.pt
|
|
|
|
p.read()
|
|
|
|
p.failAt(true, start.position, ".")
|
|
|
|
return p.sliceFrom(start), true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseCharClassMatcher(chr *charClassMatcher) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseCharClassMatcher"))
|
|
|
|
}
|
|
|
|
|
|
|
|
cur := p.pt.rn
|
|
|
|
start := p.pt
|
|
|
|
|
|
|
|
// can't match EOF
|
|
|
|
if cur == utf8.RuneError && p.pt.w == 0 { // see utf8.DecodeRune
|
|
|
|
p.failAt(false, start.position, chr.val)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
if chr.ignoreCase {
|
|
|
|
cur = unicode.ToLower(cur)
|
|
|
|
}
|
|
|
|
|
|
|
|
// try to match in the list of available chars
|
|
|
|
for _, rn := range chr.chars {
|
|
|
|
if rn == cur {
|
|
|
|
if chr.inverted {
|
|
|
|
p.failAt(false, start.position, chr.val)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
p.read()
|
|
|
|
p.failAt(true, start.position, chr.val)
|
|
|
|
return p.sliceFrom(start), true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// try to match in the list of ranges
|
|
|
|
for i := 0; i < len(chr.ranges); i += 2 {
|
|
|
|
if cur >= chr.ranges[i] && cur <= chr.ranges[i+1] {
|
|
|
|
if chr.inverted {
|
|
|
|
p.failAt(false, start.position, chr.val)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
p.read()
|
|
|
|
p.failAt(true, start.position, chr.val)
|
|
|
|
return p.sliceFrom(start), true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// try to match in the list of Unicode classes
|
|
|
|
for _, cl := range chr.classes {
|
|
|
|
if unicode.Is(cl, cur) {
|
|
|
|
if chr.inverted {
|
|
|
|
p.failAt(false, start.position, chr.val)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
p.read()
|
|
|
|
p.failAt(true, start.position, chr.val)
|
|
|
|
return p.sliceFrom(start), true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if chr.inverted {
|
|
|
|
p.read()
|
|
|
|
p.failAt(true, start.position, chr.val)
|
|
|
|
return p.sliceFrom(start), true
|
|
|
|
}
|
|
|
|
p.failAt(false, start.position, chr.val)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) incChoiceAltCnt(ch *choiceExpr, altI int) {
|
|
|
|
choiceIdent := fmt.Sprintf("%s %d:%d", p.rstack[len(p.rstack)-1].name, ch.pos.line, ch.pos.col)
|
|
|
|
m := p.ChoiceAltCnt[choiceIdent]
|
|
|
|
if m == nil {
|
|
|
|
m = make(map[string]int)
|
|
|
|
p.ChoiceAltCnt[choiceIdent] = m
|
|
|
|
}
|
|
|
|
// We increment altI by 1, so the keys do not start at 0
|
|
|
|
alt := strconv.Itoa(altI + 1)
|
|
|
|
if altI == choiceNoMatch {
|
|
|
|
alt = p.choiceNoMatch
|
|
|
|
}
|
|
|
|
m[alt]++
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseChoiceExpr(ch *choiceExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseChoiceExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
for altI, alt := range ch.alternatives {
|
|
|
|
// dummy assignment to prevent compile error if optimized
|
|
|
|
_ = altI
|
|
|
|
|
|
|
|
state := p.cloneState()
|
|
|
|
|
|
|
|
p.pushV()
|
|
|
|
val, ok := p.parseExprWrap(alt)
|
|
|
|
p.popV()
|
|
|
|
if ok {
|
|
|
|
p.incChoiceAltCnt(ch, altI)
|
|
|
|
return val, ok
|
|
|
|
}
|
|
|
|
p.restoreState(state)
|
|
|
|
}
|
|
|
|
p.incChoiceAltCnt(ch, choiceNoMatch)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseLabeledExpr(lab *labeledExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseLabeledExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
p.pushV()
|
|
|
|
val, ok := p.parseExprWrap(lab.expr)
|
|
|
|
p.popV()
|
|
|
|
if ok && lab.label != "" {
|
|
|
|
m := p.vstack[len(p.vstack)-1]
|
|
|
|
m[lab.label] = val
|
|
|
|
}
|
|
|
|
return val, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseLitMatcher(lit *litMatcher) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseLitMatcher"))
|
|
|
|
}
|
|
|
|
|
|
|
|
start := p.pt
|
|
|
|
for _, want := range lit.val {
|
|
|
|
cur := p.pt.rn
|
|
|
|
if lit.ignoreCase {
|
|
|
|
cur = unicode.ToLower(cur)
|
|
|
|
}
|
|
|
|
if cur != want {
|
|
|
|
p.failAt(false, start.position, lit.want)
|
|
|
|
p.restore(start)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
p.read()
|
|
|
|
}
|
|
|
|
p.failAt(true, start.position, lit.want)
|
|
|
|
return p.sliceFrom(start), true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseNotCodeExpr(not *notCodeExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseNotCodeExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
state := p.cloneState()
|
|
|
|
|
|
|
|
ok, err := not.run(p)
|
|
|
|
if err != nil {
|
|
|
|
p.addErr(err)
|
|
|
|
}
|
|
|
|
p.restoreState(state)
|
|
|
|
|
|
|
|
return nil, !ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseNotExpr(not *notExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseNotExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
pt := p.pt
|
|
|
|
state := p.cloneState()
|
|
|
|
p.pushV()
|
|
|
|
p.maxFailInvertExpected = !p.maxFailInvertExpected
|
|
|
|
_, ok := p.parseExprWrap(not.expr)
|
|
|
|
p.maxFailInvertExpected = !p.maxFailInvertExpected
|
|
|
|
p.popV()
|
|
|
|
p.restoreState(state)
|
|
|
|
p.restore(pt)
|
|
|
|
|
|
|
|
return nil, !ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseOneOrMoreExpr(expr *oneOrMoreExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseOneOrMoreExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
var vals []any
|
|
|
|
|
|
|
|
for {
|
|
|
|
p.pushV()
|
|
|
|
val, ok := p.parseExprWrap(expr.expr)
|
|
|
|
p.popV()
|
|
|
|
if !ok {
|
|
|
|
if len(vals) == 0 {
|
|
|
|
// did not match once, no match
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
return vals, true
|
|
|
|
}
|
|
|
|
vals = append(vals, val)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseRecoveryExpr(recover *recoveryExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseRecoveryExpr (" + strings.Join(recover.failureLabel, ",") + ")"))
|
|
|
|
}
|
|
|
|
|
|
|
|
p.pushRecovery(recover.failureLabel, recover.recoverExpr)
|
|
|
|
val, ok := p.parseExprWrap(recover.expr)
|
|
|
|
p.popRecovery()
|
|
|
|
|
|
|
|
return val, ok
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseRuleRefExpr(ref *ruleRefExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseRuleRefExpr " + ref.name))
|
|
|
|
}
|
|
|
|
|
|
|
|
if ref.name == "" {
|
|
|
|
panic(fmt.Sprintf("%s: invalid rule: missing name", ref.pos))
|
|
|
|
}
|
|
|
|
|
|
|
|
rule := p.rules[ref.name]
|
|
|
|
if rule == nil {
|
|
|
|
p.addErr(fmt.Errorf("undefined rule: %s", ref.name))
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
return p.parseRuleWrap(rule)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseSeqExpr(seq *seqExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseSeqExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
vals := make([]any, 0, len(seq.exprs))
|
|
|
|
|
|
|
|
pt := p.pt
|
|
|
|
state := p.cloneState()
|
|
|
|
for _, expr := range seq.exprs {
|
|
|
|
val, ok := p.parseExprWrap(expr)
|
|
|
|
if !ok {
|
|
|
|
p.restoreState(state)
|
|
|
|
p.restore(pt)
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
vals = append(vals, val)
|
|
|
|
}
|
|
|
|
return vals, true
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseStateCodeExpr(state *stateCodeExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseStateCodeExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
err := state.run(p)
|
|
|
|
if err != nil {
|
|
|
|
p.addErr(err)
|
|
|
|
}
|
|
|
|
return nil, true
|
|
|
|
}
|
|
|
|
|
|
|
|
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.parseExprWrap(recoverExpr); ok {
|
|
|
|
return val, ok
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil, false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseZeroOrMoreExpr(expr *zeroOrMoreExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseZeroOrMoreExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
var vals []any
|
|
|
|
|
|
|
|
for {
|
|
|
|
p.pushV()
|
|
|
|
val, ok := p.parseExprWrap(expr.expr)
|
|
|
|
p.popV()
|
|
|
|
if !ok {
|
|
|
|
return vals, true
|
|
|
|
}
|
|
|
|
vals = append(vals, val)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *parser) parseZeroOrOneExpr(expr *zeroOrOneExpr) (any, bool) {
|
|
|
|
if p.debug {
|
|
|
|
defer p.out(p.in("parseZeroOrOneExpr"))
|
|
|
|
}
|
|
|
|
|
|
|
|
p.pushV()
|
|
|
|
val, _ := p.parseExprWrap(expr.expr)
|
|
|
|
p.popV()
|
|
|
|
// whether it matched or not, consider it a match
|
|
|
|
return val, true
|
|
|
|
}
|