diff --git a/core/types/schema.go b/core/types/schema.go index 6284fec44..69d8b7132 100644 --- a/core/types/schema.go +++ b/core/types/schema.go @@ -381,11 +381,11 @@ type Attribute struct { func (a *Attribute) Clean(col *Column) error { switch a.Type { case MIN, MAX: - if !col.Type.Equals(IntType) { + if !col.Type.EqualsStrict(IntType) { return fmt.Errorf("attribute %s is only valid for int columns", a.Type) } case MIN_LENGTH, MAX_LENGTH: - if !col.Type.Equals(TextType) { + if !col.Type.EqualsStrict(TextType) { return fmt.Errorf("attribute %s is only valid for text columns", a.Type) } } @@ -1208,10 +1208,11 @@ func (c *DataType) Copy() *DataType { } } -// Equals returns true if the type is equal to the other type. -// If either type is Unknown, it will return true. -func (c *DataType) Equals(other *DataType) bool { - // if unknown, return true +// EqualsStrict returns true if the type is equal to the other type. +// The types must be exactly the same, including metadata. +func (c *DataType) EqualsStrict(other *DataType) bool { + // if unknown, return true. unknown is a special case used + // internally when type checking is disabled. if c.Name == unknownStr || other.Name == unknownStr { return true } @@ -1227,6 +1228,15 @@ func (c *DataType) Equals(other *DataType) bool { return strings.EqualFold(c.Name, other.Name) } +// Equals returns true if the type is equal to the other type, or if either type is null. +func (c *DataType) Equals(other *DataType) bool { + if c.Name == nullStr || other.Name == nullStr { + return true + } + + return c.EqualsStrict(other) +} + func (c *DataType) IsNumeric() bool { return c.Name == intStr || c.Name == DecimalStr || c.Name == uint256Str || c.Name == unknownStr } @@ -1263,6 +1273,19 @@ var ( } ) +// ArrayType creates an array type of the given type. +// It panics if the type is already an array. +func ArrayType(t *DataType) *DataType { + if t.IsArray { + panic("cannot create an array of an array") + } + return &DataType{ + Name: t.Name, + IsArray: true, + Metadata: t.Metadata, + } +} + const ( textStr = "text" intStr = "int" diff --git a/internal/engine/execution/procedure.go b/internal/engine/execution/procedure.go index 27da7240e..bc66da434 100644 --- a/internal/engine/execution/procedure.go +++ b/internal/engine/execution/procedure.go @@ -506,15 +506,15 @@ func (p *preparedProcedure) coerceInputs(inputs []any) ([]any, error) { panic("passed array to coerceScalar") } - if typ.Equals(types.IntType) { + if typ.EqualsStrict(types.IntType) { return conv.Int(val) - } else if typ.Equals(types.TextType) { + } else if typ.EqualsStrict(types.TextType) { return conv.String(val) - } else if typ.Equals(types.BoolType) { + } else if typ.EqualsStrict(types.BoolType) { return conv.Bool(val) - } else if typ.Equals(types.BlobType) { + } else if typ.EqualsStrict(types.BlobType) { return conv.Blob(val) - } else if typ.Equals(types.UUIDType) { + } else if typ.EqualsStrict(types.UUIDType) { return conv.UUID(val) } diff --git a/parse/actions.go b/parse/actions.go index e4f85e575..d2f23b9aa 100644 --- a/parse/actions.go +++ b/parse/actions.go @@ -2,10 +2,6 @@ package parse import "github.com/kwilteam/kwil-db/core/types" -// TODO: this does not actually do what we think it does. -// Recursive calls in the embedded sqlAnalyzer will call local sqlAnalyzer methods. -// This means that users can call unallowed expressions in actions. -// actionAnalyzer analyzes actions. type actionAnalyzer struct { sqlAnalyzer // Mutative is true if the action mutates state. diff --git a/parse/analyze.go b/parse/analyze.go index c6749e59b..0dc5e6269 100644 --- a/parse/analyze.go +++ b/parse/analyze.go @@ -364,6 +364,13 @@ type sqlAnalyzer struct { sqlResult sqlAnalyzeResult } +// reset resets the sqlAnalyzer. +func (s *sqlAnalyzer) reset() { + // we don't need to touch the block context, since it does not change here. + s.sqlCtx = newSQLContext() + s.sqlResult = sqlAnalyzeResult{} +} + type sqlAnalyzeResult struct { Mutative bool } @@ -1133,9 +1140,15 @@ func (s *sqlAnalyzer) VisitExpressionCase(p0 *ExpressionCase) any { return s.expressionTypeErr(w[1]) } + // if return type is not set, set it to the first then if returnType == nil { returnType = then } + // if the return type is of type null, we should keep trying + // to reset until we get a non-null type + if returnType.EqualsStrict(types.NullType) { + returnType = then + } if !then.Equals(returnType) { return s.typeErr(w[1], then, returnType) @@ -1763,11 +1776,11 @@ func (s *sqlAnalyzer) VisitResultColumnExpression(p0 *ResultColumnExpression) an // is a column. if attr.Name == "" { col, ok := p0.Expression.(*ExpressionColumn) - if !ok { - s.errs.AddErr(p0, ErrUnnamedResultColumn, "results must either be column references or have an alias") + // if returning a column and not aliased, we give it the column name. + // otherwise, we simply leave the name blank. It will not be referenceable + if ok { + attr.Name = col.Column } - - attr.Name = col.Column } return []*Attribute{attr} @@ -2155,7 +2168,7 @@ func (p *procedureAnalyzer) VisitProcedureStmtCall(p0 *ProcedureStmtCall) any { returns1, ok := p0.Call.Accept(p).(*types.DataType) if ok { // if it returns null, then we do not need to assign it to a variable. - if !returns1.Equals(types.NullType) { + if !returns1.EqualsStrict(types.NullType) { callReturns = append(callReturns, returns1) } } else { @@ -2178,7 +2191,7 @@ func (p *procedureAnalyzer) VisitProcedureStmtCall(p0 *ProcedureStmtCall) any { // we do not have to capture all return values, but we need to ensure // we do not have more receivers than return values. if len(p0.Receivers) != len(callReturns) { - p.errs.AddErr(p0, ErrResultShape, `function/procedure "%s" returns %d value(s), statement has %d receiver(s)`, p0.Call.FunctionName(), len(callReturns), len(p0.Receivers)) + p.errs.AddErr(p0, ErrResultShape, `function/procedure "%s" returns %d value(s), statement expects %d value(s)`, p0.Call.FunctionName(), len(callReturns), len(p0.Receivers)) return nil } diff --git a/parse/antlr.go b/parse/antlr.go index 8e8af574e..3c8522f08 100644 --- a/parse/antlr.go +++ b/parse/antlr.go @@ -1397,13 +1397,10 @@ func (s *schemaVisitor) VisitCase_expr(ctx *gen.Case_exprContext) any { e.Case = ctx.GetCase_clause().Accept(s).(Expression) } - for i := range ctx.AllWHEN() { - when := ctx.WHEN(i).Accept(s).(Expression) - then := ctx.THEN(i).Accept(s).(Expression) + for i := range ctx.AllWhen_then_clause() { + wt := ctx.AllWhen_then_clause()[i].Accept(s).([2]Expression) - e.WhenThen = append(e.WhenThen, [2]Expression{ - when, then, - }) + e.WhenThen = append(e.WhenThen, wt) } if ctx.GetElse_clause() != nil { @@ -1414,6 +1411,12 @@ func (s *schemaVisitor) VisitCase_expr(ctx *gen.Case_exprContext) any { return e } +func (s *schemaVisitor) VisitWhen_then_clause(ctx *gen.When_then_clauseContext) any { + when := ctx.Sql_expr(0).Accept(s).(Expression) + then := ctx.Sql_expr(1).Accept(s).(Expression) + return [2]Expression{when, then} +} + func (s *schemaVisitor) VisitIn_sql_expr(ctx *gen.In_sql_exprContext) any { e := &ExpressionIn{ Expression: ctx.Sql_expr().Accept(s).(Expression), diff --git a/parse/functions.go b/parse/functions.go index d43861899..fe14247f6 100644 --- a/parse/functions.go +++ b/parse/functions.go @@ -15,7 +15,7 @@ var ( return nil, wrapErrArgumentNumber(1, len(args)) } - if !args[0].Equals(types.IntType) { + if !args[0].EqualsStrict(types.IntType) { return nil, wrapErrArgumentType(types.IntType, args[0]) } @@ -38,7 +38,7 @@ var ( return nil, wrapErrArgumentNumber(1, len(args)) } - if !args[0].Equals(types.TextType) { + if !args[0].EqualsStrict(types.TextType) { return nil, wrapErrArgumentType(types.TextType, args[0]) } @@ -61,7 +61,7 @@ var ( return nil, wrapErrArgumentNumber(1, len(args)) } - if !args[0].Equals(types.TextType) { + if !args[0].EqualsStrict(types.TextType) { return nil, wrapErrArgumentType(types.TextType, args[0]) } @@ -84,7 +84,7 @@ var ( return nil, wrapErrArgumentNumber(1, len(args)) } - if !args[0].Equals(types.TextType) { + if !args[0].EqualsStrict(types.TextType) { return nil, wrapErrArgumentType(types.TextType, args[0]) } @@ -107,7 +107,7 @@ var ( return nil, wrapErrArgumentNumber(1, len(args)) } - if !args[0].Equals(types.TextType) { + if !args[0].EqualsStrict(types.TextType) { return nil, wrapErrArgumentType(types.TextType, args[0]) } @@ -130,7 +130,7 @@ var ( return nil, fmt.Errorf("invalid number of arguments: expected at least 1, got %d", len(args)) } - if !args[0].Equals(types.TextType) { + if !args[0].EqualsStrict(types.TextType) { return nil, wrapErrArgumentType(types.TextType, args[0]) } @@ -154,11 +154,11 @@ var ( return nil, wrapErrArgumentNumber(2, len(args)) } - if !args[0].Equals(types.UUIDType) { + if !args[0].EqualsStrict(types.UUIDType) { return nil, wrapErrArgumentType(types.UUIDType, args[0]) } - if !args[1].Equals(types.TextType) { + if !args[1].EqualsStrict(types.TextType) { return nil, wrapErrArgumentType(types.TextType, args[1]) } @@ -320,7 +320,7 @@ var ( return nil, wrapErrArgumentNumber(1, len(args)) } - if !args[0].Equals(types.IntType) { + if !args[0].EqualsStrict(types.IntType) { return nil, wrapErrArgumentType(types.IntType, args[0]) } diff --git a/parse/gen/kuneiform_parser.go b/parse/gen/kuneiform_parser.go index c9f121bb0..4030cbe86 100644 --- a/parse/gen/kuneiform_parser.go +++ b/parse/gen/kuneiform_parser.go @@ -82,14 +82,14 @@ func kuneiformparserParserInit() { "common_table_expression", "select_statement", "compound_operator", "ordering_term", "select_core", "relation", "join", "result_column", "update_statement", "update_set_clause", "insert_statement", "upsert_clause", - "delete_statement", "sql_expr", "sql_expr_list", "sql_function_call", - "action_block", "action_statement", "procedure_block", "procedure_expr", - "procedure_expr_list", "proc_statement", "variable_or_underscore", "procedure_function_call", - "if_then_block", "range", + "delete_statement", "sql_expr", "when_then_clause", "sql_expr_list", + "sql_function_call", "action_block", "action_statement", "procedure_block", + "procedure_expr", "procedure_expr_list", "proc_statement", "variable_or_underscore", + "procedure_function_call", "if_then_block", "range", } staticData.PredictionContextCache = antlr.NewPredictionContextCache() staticData.serializedATN = []int32{ - 4, 1, 136, 1122, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, + 4, 1, 136, 1125, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, @@ -99,535 +99,536 @@ func kuneiformparserParserInit() { 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, - 7, 52, 2, 53, 7, 53, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 113, 8, 0, 1, 0, 1, - 0, 1, 1, 1, 1, 3, 1, 119, 8, 1, 1, 1, 1, 1, 3, 1, 123, 8, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 131, 8, 1, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, - 137, 8, 2, 1, 3, 1, 3, 1, 3, 5, 3, 142, 8, 3, 10, 3, 12, 3, 145, 9, 3, - 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 153, 8, 4, 1, 4, 1, 4, 3, 4, - 157, 8, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 5, 7, 167, 8, - 7, 10, 7, 12, 7, 170, 9, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 5, 8, 178, - 8, 8, 10, 8, 12, 8, 181, 9, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, - 1, 9, 1, 9, 5, 9, 192, 8, 9, 10, 9, 12, 9, 195, 9, 9, 3, 9, 197, 8, 9, - 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, - 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 215, 8, 11, 10, 11, 12, 11, - 218, 9, 11, 1, 11, 1, 11, 3, 11, 222, 8, 11, 1, 11, 1, 11, 1, 11, 1, 11, - 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 236, 8, - 12, 5, 12, 238, 8, 12, 10, 12, 12, 12, 241, 9, 12, 1, 12, 1, 12, 1, 13, - 1, 13, 1, 13, 5, 13, 248, 8, 13, 10, 13, 12, 13, 251, 9, 13, 1, 14, 1, - 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 3, 15, 262, 8, 15, - 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 273, - 8, 15, 10, 15, 12, 15, 276, 9, 15, 1, 16, 1, 16, 1, 16, 3, 16, 281, 8, - 16, 1, 16, 1, 16, 1, 16, 3, 16, 286, 8, 16, 3, 16, 288, 8, 16, 1, 16, 3, - 16, 291, 8, 16, 1, 16, 1, 16, 1, 16, 3, 16, 296, 8, 16, 1, 16, 1, 16, 1, - 16, 1, 16, 3, 16, 302, 8, 16, 1, 16, 1, 16, 1, 16, 3, 16, 307, 8, 16, 1, - 16, 3, 16, 310, 8, 16, 1, 17, 1, 17, 1, 17, 5, 17, 315, 8, 17, 10, 17, - 12, 17, 318, 9, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 325, 8, 18, - 10, 18, 12, 18, 328, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, - 19, 336, 8, 19, 10, 19, 12, 19, 339, 9, 19, 1, 20, 1, 20, 1, 20, 1, 20, + 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 115, 8, + 0, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 121, 8, 1, 1, 1, 1, 1, 3, 1, 125, 8, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 133, 8, 1, 1, 2, 1, 2, 1, 2, + 1, 2, 3, 2, 139, 8, 2, 1, 3, 1, 3, 1, 3, 5, 3, 144, 8, 3, 10, 3, 12, 3, + 147, 9, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 155, 8, 4, 1, 4, 1, + 4, 3, 4, 159, 8, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 5, + 7, 169, 8, 7, 10, 7, 12, 7, 172, 9, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, + 8, 5, 8, 180, 8, 8, 10, 8, 12, 8, 183, 9, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, + 9, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 194, 8, 9, 10, 9, 12, 9, 197, 9, 9, 3, + 9, 199, 8, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, + 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 217, 8, 11, + 10, 11, 12, 11, 220, 9, 11, 1, 11, 1, 11, 3, 11, 224, 8, 11, 1, 11, 1, + 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, + 3, 12, 238, 8, 12, 5, 12, 240, 8, 12, 10, 12, 12, 12, 243, 9, 12, 1, 12, + 1, 12, 1, 13, 1, 13, 1, 13, 5, 13, 250, 8, 13, 10, 13, 12, 13, 253, 9, + 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 3, 15, + 264, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, + 15, 5, 15, 275, 8, 15, 10, 15, 12, 15, 278, 9, 15, 1, 16, 1, 16, 1, 16, + 3, 16, 283, 8, 16, 1, 16, 1, 16, 1, 16, 3, 16, 288, 8, 16, 3, 16, 290, + 8, 16, 1, 16, 3, 16, 293, 8, 16, 1, 16, 1, 16, 1, 16, 3, 16, 298, 8, 16, + 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 304, 8, 16, 1, 16, 1, 16, 1, 16, 3, + 16, 309, 8, 16, 1, 16, 3, 16, 312, 8, 16, 1, 17, 1, 17, 1, 17, 5, 17, 317, + 8, 17, 10, 17, 12, 17, 320, 9, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, + 18, 327, 8, 18, 10, 18, 12, 18, 330, 9, 18, 1, 19, 1, 19, 1, 19, 1, 19, + 1, 19, 1, 19, 5, 19, 338, 8, 19, 10, 19, 12, 19, 341, 9, 19, 1, 20, 1, + 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, - 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 364, - 8, 20, 1, 20, 1, 20, 1, 20, 3, 20, 369, 8, 20, 3, 20, 371, 8, 20, 1, 20, - 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 379, 8, 20, 1, 21, 1, 21, 1, - 22, 5, 22, 384, 8, 22, 10, 22, 12, 22, 387, 9, 22, 1, 22, 1, 22, 1, 22, - 1, 22, 3, 22, 393, 8, 22, 1, 22, 1, 22, 4, 22, 397, 8, 22, 11, 22, 12, - 22, 398, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 5, 23, 406, 8, 23, 10, 23, - 12, 23, 409, 9, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 415, 8, 23, 1, 23, - 1, 23, 4, 23, 419, 8, 23, 11, 23, 12, 23, 420, 1, 23, 3, 23, 424, 8, 23, - 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 3, - 24, 436, 8, 24, 1, 24, 1, 24, 3, 24, 440, 8, 24, 1, 25, 1, 25, 3, 25, 444, - 8, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 454, - 8, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 5, 27, 463, 8, - 27, 10, 27, 12, 27, 466, 9, 27, 3, 27, 468, 8, 27, 1, 27, 1, 27, 1, 27, - 1, 27, 3, 27, 474, 8, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 5, 28, 481, - 8, 28, 10, 28, 12, 28, 484, 9, 28, 3, 28, 486, 8, 28, 1, 28, 1, 28, 1, - 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 5, 29, 498, 8, 29, - 10, 29, 12, 29, 501, 9, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 5, 29, 508, - 8, 29, 10, 29, 12, 29, 511, 9, 29, 3, 29, 513, 8, 29, 1, 29, 1, 29, 3, - 29, 517, 8, 29, 1, 29, 1, 29, 3, 29, 521, 8, 29, 1, 30, 1, 30, 3, 30, 525, - 8, 30, 1, 30, 1, 30, 3, 30, 529, 8, 30, 1, 31, 1, 31, 3, 31, 533, 8, 31, - 1, 31, 1, 31, 3, 31, 537, 8, 31, 1, 32, 1, 32, 3, 32, 541, 8, 32, 1, 32, - 1, 32, 1, 32, 5, 32, 546, 8, 32, 10, 32, 12, 32, 549, 9, 32, 1, 32, 1, - 32, 1, 32, 5, 32, 554, 8, 32, 10, 32, 12, 32, 557, 9, 32, 3, 32, 559, 8, - 32, 1, 32, 1, 32, 3, 32, 563, 8, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, - 3, 32, 570, 8, 32, 3, 32, 572, 8, 32, 1, 33, 1, 33, 3, 33, 576, 8, 33, - 1, 33, 3, 33, 579, 8, 33, 1, 33, 1, 33, 1, 33, 1, 33, 3, 33, 585, 8, 33, - 1, 33, 3, 33, 588, 8, 33, 1, 33, 1, 33, 3, 33, 592, 8, 33, 1, 33, 3, 33, - 595, 8, 33, 3, 33, 597, 8, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, - 1, 35, 1, 35, 3, 35, 607, 8, 35, 1, 35, 3, 35, 610, 8, 35, 1, 35, 1, 35, - 1, 35, 3, 35, 615, 8, 35, 1, 35, 3, 35, 618, 8, 35, 1, 36, 1, 36, 1, 36, - 1, 36, 3, 36, 624, 8, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 630, 8, 36, - 10, 36, 12, 36, 633, 9, 36, 1, 36, 1, 36, 1, 36, 5, 36, 638, 8, 36, 10, - 36, 12, 36, 641, 9, 36, 3, 36, 643, 8, 36, 1, 36, 1, 36, 3, 36, 647, 8, - 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, - 658, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 664, 8, 38, 1, 38, 1, 38, - 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 5, 38, 675, 8, 38, 10, - 38, 12, 38, 678, 9, 38, 1, 38, 3, 38, 681, 8, 38, 1, 39, 1, 39, 1, 39, - 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 690, 8, 39, 3, 39, 692, 8, 39, 1, 39, - 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 5, 39, 701, 8, 39, 10, 39, 12, - 39, 704, 9, 39, 1, 39, 1, 39, 3, 39, 708, 8, 39, 3, 39, 710, 8, 39, 1, - 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 717, 8, 40, 1, 40, 1, 40, 3, 40, - 721, 8, 40, 1, 41, 1, 41, 1, 41, 3, 41, 726, 8, 41, 1, 41, 1, 41, 3, 41, - 730, 8, 41, 1, 41, 1, 41, 3, 41, 734, 8, 41, 1, 41, 1, 41, 1, 41, 3, 41, - 739, 8, 41, 1, 41, 1, 41, 3, 41, 743, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, - 3, 41, 749, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 755, 8, 41, 1, 41, - 1, 41, 1, 41, 1, 41, 1, 41, 4, 41, 762, 8, 41, 11, 41, 12, 41, 763, 1, - 41, 1, 41, 3, 41, 768, 8, 41, 1, 41, 1, 41, 1, 41, 3, 41, 773, 8, 41, 1, - 41, 3, 41, 776, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 782, 8, 41, 3, - 41, 784, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 791, 8, 41, 1, - 41, 1, 41, 1, 41, 1, 41, 3, 41, 797, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, - 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, + 20, 3, 20, 366, 8, 20, 1, 20, 1, 20, 1, 20, 3, 20, 371, 8, 20, 3, 20, 373, + 8, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 381, 8, 20, 1, + 21, 1, 21, 1, 22, 5, 22, 386, 8, 22, 10, 22, 12, 22, 389, 9, 22, 1, 22, + 1, 22, 1, 22, 1, 22, 3, 22, 395, 8, 22, 1, 22, 1, 22, 4, 22, 399, 8, 22, + 11, 22, 12, 22, 400, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 5, 23, 408, 8, + 23, 10, 23, 12, 23, 411, 9, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 417, + 8, 23, 1, 23, 1, 23, 4, 23, 421, 8, 23, 11, 23, 12, 23, 422, 1, 23, 3, + 23, 426, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, + 1, 24, 1, 24, 3, 24, 438, 8, 24, 1, 24, 1, 24, 3, 24, 442, 8, 24, 1, 25, + 1, 25, 3, 25, 446, 8, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, + 25, 1, 25, 3, 25, 456, 8, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, + 1, 27, 5, 27, 465, 8, 27, 10, 27, 12, 27, 468, 9, 27, 3, 27, 470, 8, 27, + 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 476, 8, 27, 1, 28, 1, 28, 1, 28, 1, + 28, 1, 28, 5, 28, 483, 8, 28, 10, 28, 12, 28, 486, 9, 28, 3, 28, 488, 8, + 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, + 5, 29, 500, 8, 29, 10, 29, 12, 29, 503, 9, 29, 1, 29, 1, 29, 1, 29, 1, + 29, 1, 29, 5, 29, 510, 8, 29, 10, 29, 12, 29, 513, 9, 29, 3, 29, 515, 8, + 29, 1, 29, 1, 29, 3, 29, 519, 8, 29, 1, 29, 1, 29, 3, 29, 523, 8, 29, 1, + 30, 1, 30, 3, 30, 527, 8, 30, 1, 30, 1, 30, 3, 30, 531, 8, 30, 1, 31, 1, + 31, 3, 31, 535, 8, 31, 1, 31, 1, 31, 3, 31, 539, 8, 31, 1, 32, 1, 32, 3, + 32, 543, 8, 32, 1, 32, 1, 32, 1, 32, 5, 32, 548, 8, 32, 10, 32, 12, 32, + 551, 9, 32, 1, 32, 1, 32, 1, 32, 5, 32, 556, 8, 32, 10, 32, 12, 32, 559, + 9, 32, 3, 32, 561, 8, 32, 1, 32, 1, 32, 3, 32, 565, 8, 32, 1, 32, 1, 32, + 1, 32, 1, 32, 1, 32, 3, 32, 572, 8, 32, 3, 32, 574, 8, 32, 1, 33, 1, 33, + 3, 33, 578, 8, 33, 1, 33, 3, 33, 581, 8, 33, 1, 33, 1, 33, 1, 33, 1, 33, + 3, 33, 587, 8, 33, 1, 33, 3, 33, 590, 8, 33, 1, 33, 1, 33, 3, 33, 594, + 8, 33, 1, 33, 3, 33, 597, 8, 33, 3, 33, 599, 8, 33, 1, 34, 1, 34, 1, 34, + 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 3, 35, 609, 8, 35, 1, 35, 3, 35, 612, + 8, 35, 1, 35, 1, 35, 1, 35, 3, 35, 617, 8, 35, 1, 35, 3, 35, 620, 8, 35, + 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 626, 8, 36, 1, 36, 1, 36, 1, 36, 1, + 36, 5, 36, 632, 8, 36, 10, 36, 12, 36, 635, 9, 36, 1, 36, 1, 36, 1, 36, + 5, 36, 640, 8, 36, 10, 36, 12, 36, 643, 9, 36, 3, 36, 645, 8, 36, 1, 36, + 1, 36, 3, 36, 649, 8, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, + 38, 1, 38, 1, 38, 3, 38, 660, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, + 666, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, + 38, 5, 38, 677, 8, 38, 10, 38, 12, 38, 680, 9, 38, 1, 38, 3, 38, 683, 8, + 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 692, 8, 39, + 3, 39, 694, 8, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 5, + 39, 703, 8, 39, 10, 39, 12, 39, 706, 9, 39, 1, 39, 1, 39, 3, 39, 710, 8, + 39, 3, 39, 712, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 719, 8, + 40, 1, 40, 1, 40, 3, 40, 723, 8, 40, 1, 41, 1, 41, 1, 41, 3, 41, 728, 8, + 41, 1, 41, 1, 41, 3, 41, 732, 8, 41, 1, 41, 1, 41, 3, 41, 736, 8, 41, 1, + 41, 1, 41, 1, 41, 3, 41, 741, 8, 41, 1, 41, 1, 41, 3, 41, 745, 8, 41, 1, + 41, 1, 41, 1, 41, 1, 41, 3, 41, 751, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, + 3, 41, 757, 8, 41, 1, 41, 4, 41, 760, 8, 41, 11, 41, 12, 41, 761, 1, 41, + 1, 41, 3, 41, 766, 8, 41, 1, 41, 1, 41, 1, 41, 3, 41, 771, 8, 41, 1, 41, + 3, 41, 774, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 780, 8, 41, 3, 41, + 782, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 789, 8, 41, 1, 41, + 1, 41, 1, 41, 1, 41, 3, 41, 795, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, - 3, 41, 824, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 830, 8, 41, 1, 41, - 1, 41, 3, 41, 834, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 840, 8, 41, - 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 847, 8, 41, 1, 41, 1, 41, 1, - 41, 1, 41, 1, 41, 1, 41, 3, 41, 855, 8, 41, 1, 41, 1, 41, 1, 41, 5, 41, - 860, 8, 41, 10, 41, 12, 41, 863, 9, 41, 1, 42, 1, 42, 1, 42, 5, 42, 868, - 8, 42, 10, 42, 12, 42, 871, 9, 42, 1, 43, 1, 43, 1, 43, 3, 43, 876, 8, - 43, 1, 43, 1, 43, 3, 43, 880, 8, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, - 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 892, 8, 43, 1, 43, 1, 43, 3, - 43, 896, 8, 43, 1, 44, 1, 44, 1, 44, 5, 44, 901, 8, 44, 10, 44, 12, 44, - 904, 9, 44, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 910, 8, 45, 1, 45, 1, 45, - 1, 45, 1, 45, 3, 45, 916, 8, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, - 45, 923, 8, 45, 1, 45, 3, 45, 926, 8, 45, 1, 46, 5, 46, 929, 8, 46, 10, - 46, 12, 46, 932, 9, 46, 1, 47, 1, 47, 1, 47, 3, 47, 937, 8, 47, 1, 47, - 1, 47, 3, 47, 941, 8, 47, 1, 47, 1, 47, 3, 47, 945, 8, 47, 1, 47, 1, 47, - 3, 47, 949, 8, 47, 1, 47, 1, 47, 3, 47, 953, 8, 47, 1, 47, 1, 47, 1, 47, - 1, 47, 3, 47, 959, 8, 47, 1, 47, 1, 47, 3, 47, 963, 8, 47, 1, 47, 1, 47, - 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, - 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 982, 8, 47, 1, 47, 1, 47, 1, 47, - 1, 47, 3, 47, 988, 8, 47, 5, 47, 990, 8, 47, 10, 47, 12, 47, 993, 9, 47, - 1, 48, 1, 48, 1, 48, 5, 48, 998, 8, 48, 10, 48, 12, 48, 1001, 9, 48, 1, - 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 5, 49, 1010, 8, 49, 10, 49, - 12, 49, 1013, 9, 49, 1, 49, 1, 49, 3, 49, 1017, 8, 49, 1, 49, 1, 49, 1, - 49, 1, 49, 1, 49, 3, 49, 1024, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, - 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 1036, 8, 49, 1, 49, 1, 49, 5, - 49, 1040, 8, 49, 10, 49, 12, 49, 1043, 9, 49, 1, 49, 1, 49, 1, 49, 1, 49, - 1, 49, 1, 49, 5, 49, 1051, 8, 49, 10, 49, 12, 49, 1054, 9, 49, 1, 49, 1, - 49, 1, 49, 5, 49, 1059, 8, 49, 10, 49, 12, 49, 1062, 9, 49, 1, 49, 3, 49, - 1065, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, - 49, 1075, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, - 1084, 8, 49, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 3, 51, 1091, 8, 51, 1, - 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 1102, - 8, 51, 1, 51, 1, 51, 3, 51, 1106, 8, 51, 1, 52, 1, 52, 1, 52, 5, 52, 1111, - 8, 52, 10, 52, 12, 52, 1114, 9, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, - 1, 53, 1, 53, 0, 2, 82, 94, 54, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, - 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, - 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, - 94, 96, 98, 100, 102, 104, 106, 0, 14, 1, 0, 20, 21, 1, 0, 119, 120, 1, - 0, 131, 132, 3, 0, 46, 46, 48, 48, 62, 62, 1, 0, 59, 60, 1, 0, 38, 41, - 1, 0, 77, 78, 1, 0, 105, 106, 2, 0, 73, 75, 100, 100, 2, 0, 20, 21, 61, - 61, 2, 0, 15, 16, 23, 27, 3, 0, 14, 14, 19, 19, 22, 22, 2, 0, 11, 11, 20, - 21, 2, 0, 29, 29, 131, 131, 1282, 0, 112, 1, 0, 0, 0, 2, 130, 1, 0, 0, - 0, 4, 136, 1, 0, 0, 0, 6, 138, 1, 0, 0, 0, 8, 146, 1, 0, 0, 0, 10, 158, - 1, 0, 0, 0, 12, 161, 1, 0, 0, 0, 14, 163, 1, 0, 0, 0, 16, 171, 1, 0, 0, - 0, 18, 182, 1, 0, 0, 0, 20, 200, 1, 0, 0, 0, 22, 204, 1, 0, 0, 0, 24, 227, - 1, 0, 0, 0, 26, 244, 1, 0, 0, 0, 28, 252, 1, 0, 0, 0, 30, 261, 1, 0, 0, - 0, 32, 287, 1, 0, 0, 0, 34, 311, 1, 0, 0, 0, 36, 319, 1, 0, 0, 0, 38, 329, - 1, 0, 0, 0, 40, 378, 1, 0, 0, 0, 42, 380, 1, 0, 0, 0, 44, 385, 1, 0, 0, - 0, 46, 407, 1, 0, 0, 0, 48, 429, 1, 0, 0, 0, 50, 441, 1, 0, 0, 0, 52, 455, - 1, 0, 0, 0, 54, 467, 1, 0, 0, 0, 56, 475, 1, 0, 0, 0, 58, 493, 1, 0, 0, - 0, 60, 528, 1, 0, 0, 0, 62, 530, 1, 0, 0, 0, 64, 538, 1, 0, 0, 0, 66, 596, - 1, 0, 0, 0, 68, 598, 1, 0, 0, 0, 70, 617, 1, 0, 0, 0, 72, 619, 1, 0, 0, - 0, 74, 648, 1, 0, 0, 0, 76, 652, 1, 0, 0, 0, 78, 682, 1, 0, 0, 0, 80, 711, - 1, 0, 0, 0, 82, 783, 1, 0, 0, 0, 84, 864, 1, 0, 0, 0, 86, 895, 1, 0, 0, - 0, 88, 902, 1, 0, 0, 0, 90, 925, 1, 0, 0, 0, 92, 930, 1, 0, 0, 0, 94, 962, - 1, 0, 0, 0, 96, 994, 1, 0, 0, 0, 98, 1083, 1, 0, 0, 0, 100, 1085, 1, 0, - 0, 0, 102, 1105, 1, 0, 0, 0, 104, 1107, 1, 0, 0, 0, 106, 1117, 1, 0, 0, - 0, 108, 113, 3, 16, 8, 0, 109, 113, 3, 52, 26, 0, 110, 113, 3, 88, 44, - 0, 111, 113, 3, 92, 46, 0, 112, 108, 1, 0, 0, 0, 112, 109, 1, 0, 0, 0, - 112, 110, 1, 0, 0, 0, 112, 111, 1, 0, 0, 0, 113, 114, 1, 0, 0, 0, 114, - 115, 5, 0, 0, 1, 115, 1, 1, 0, 0, 0, 116, 131, 5, 118, 0, 0, 117, 119, - 7, 0, 0, 0, 118, 117, 1, 0, 0, 0, 118, 119, 1, 0, 0, 0, 119, 120, 1, 0, - 0, 0, 120, 131, 5, 121, 0, 0, 121, 123, 7, 0, 0, 0, 122, 121, 1, 0, 0, - 0, 122, 123, 1, 0, 0, 0, 123, 124, 1, 0, 0, 0, 124, 125, 5, 121, 0, 0, - 125, 126, 5, 12, 0, 0, 126, 131, 5, 121, 0, 0, 127, 131, 7, 1, 0, 0, 128, - 131, 5, 56, 0, 0, 129, 131, 5, 122, 0, 0, 130, 116, 1, 0, 0, 0, 130, 118, - 1, 0, 0, 0, 130, 122, 1, 0, 0, 0, 130, 127, 1, 0, 0, 0, 130, 128, 1, 0, - 0, 0, 130, 129, 1, 0, 0, 0, 131, 3, 1, 0, 0, 0, 132, 133, 5, 32, 0, 0, - 133, 134, 5, 130, 0, 0, 134, 137, 5, 32, 0, 0, 135, 137, 5, 130, 0, 0, - 136, 132, 1, 0, 0, 0, 136, 135, 1, 0, 0, 0, 137, 5, 1, 0, 0, 0, 138, 143, - 3, 4, 2, 0, 139, 140, 5, 9, 0, 0, 140, 142, 3, 4, 2, 0, 141, 139, 1, 0, - 0, 0, 142, 145, 1, 0, 0, 0, 143, 141, 1, 0, 0, 0, 143, 144, 1, 0, 0, 0, - 144, 7, 1, 0, 0, 0, 145, 143, 1, 0, 0, 0, 146, 152, 5, 130, 0, 0, 147, - 148, 5, 7, 0, 0, 148, 149, 5, 121, 0, 0, 149, 150, 5, 9, 0, 0, 150, 151, - 5, 121, 0, 0, 151, 153, 5, 8, 0, 0, 152, 147, 1, 0, 0, 0, 152, 153, 1, - 0, 0, 0, 153, 156, 1, 0, 0, 0, 154, 155, 5, 3, 0, 0, 155, 157, 5, 4, 0, - 0, 156, 154, 1, 0, 0, 0, 156, 157, 1, 0, 0, 0, 157, 9, 1, 0, 0, 0, 158, - 159, 5, 28, 0, 0, 159, 160, 3, 8, 4, 0, 160, 11, 1, 0, 0, 0, 161, 162, - 7, 2, 0, 0, 162, 13, 1, 0, 0, 0, 163, 168, 3, 12, 6, 0, 164, 165, 5, 9, - 0, 0, 165, 167, 3, 12, 6, 0, 166, 164, 1, 0, 0, 0, 167, 170, 1, 0, 0, 0, - 168, 166, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 15, 1, 0, 0, 0, 170, 168, - 1, 0, 0, 0, 171, 179, 3, 20, 10, 0, 172, 178, 3, 22, 11, 0, 173, 178, 3, - 24, 12, 0, 174, 178, 3, 44, 22, 0, 175, 178, 3, 46, 23, 0, 176, 178, 3, - 48, 24, 0, 177, 172, 1, 0, 0, 0, 177, 173, 1, 0, 0, 0, 177, 174, 1, 0, - 0, 0, 177, 175, 1, 0, 0, 0, 177, 176, 1, 0, 0, 0, 178, 181, 1, 0, 0, 0, - 179, 177, 1, 0, 0, 0, 179, 180, 1, 0, 0, 0, 180, 17, 1, 0, 0, 0, 181, 179, - 1, 0, 0, 0, 182, 183, 5, 132, 0, 0, 183, 196, 5, 7, 0, 0, 184, 185, 5, - 130, 0, 0, 185, 186, 5, 15, 0, 0, 186, 193, 3, 2, 1, 0, 187, 188, 5, 9, - 0, 0, 188, 189, 5, 130, 0, 0, 189, 190, 5, 15, 0, 0, 190, 192, 3, 2, 1, - 0, 191, 187, 1, 0, 0, 0, 192, 195, 1, 0, 0, 0, 193, 191, 1, 0, 0, 0, 193, - 194, 1, 0, 0, 0, 194, 197, 1, 0, 0, 0, 195, 193, 1, 0, 0, 0, 196, 184, - 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 198, 1, 0, 0, 0, 198, 199, 5, 8, - 0, 0, 199, 19, 1, 0, 0, 0, 200, 201, 5, 33, 0, 0, 201, 202, 5, 130, 0, - 0, 202, 203, 5, 6, 0, 0, 203, 21, 1, 0, 0, 0, 204, 205, 5, 34, 0, 0, 205, - 221, 5, 130, 0, 0, 206, 207, 5, 1, 0, 0, 207, 208, 5, 130, 0, 0, 208, 209, - 5, 5, 0, 0, 209, 216, 3, 2, 1, 0, 210, 211, 5, 9, 0, 0, 211, 212, 5, 130, - 0, 0, 212, 213, 5, 5, 0, 0, 213, 215, 3, 2, 1, 0, 214, 210, 1, 0, 0, 0, - 215, 218, 1, 0, 0, 0, 216, 214, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, - 219, 1, 0, 0, 0, 218, 216, 1, 0, 0, 0, 219, 220, 5, 2, 0, 0, 220, 222, - 1, 0, 0, 0, 221, 206, 1, 0, 0, 0, 221, 222, 1, 0, 0, 0, 222, 223, 1, 0, - 0, 0, 223, 224, 5, 76, 0, 0, 224, 225, 5, 130, 0, 0, 225, 226, 5, 6, 0, - 0, 226, 23, 1, 0, 0, 0, 227, 228, 5, 35, 0, 0, 228, 229, 5, 130, 0, 0, - 229, 230, 5, 1, 0, 0, 230, 239, 3, 26, 13, 0, 231, 235, 5, 9, 0, 0, 232, - 236, 3, 26, 13, 0, 233, 236, 3, 28, 14, 0, 234, 236, 3, 30, 15, 0, 235, - 232, 1, 0, 0, 0, 235, 233, 1, 0, 0, 0, 235, 234, 1, 0, 0, 0, 236, 238, - 1, 0, 0, 0, 237, 231, 1, 0, 0, 0, 238, 241, 1, 0, 0, 0, 239, 237, 1, 0, - 0, 0, 239, 240, 1, 0, 0, 0, 240, 242, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, - 242, 243, 5, 2, 0, 0, 243, 25, 1, 0, 0, 0, 244, 245, 5, 130, 0, 0, 245, - 249, 3, 8, 4, 0, 246, 248, 3, 40, 20, 0, 247, 246, 1, 0, 0, 0, 248, 251, - 1, 0, 0, 0, 249, 247, 1, 0, 0, 0, 249, 250, 1, 0, 0, 0, 250, 27, 1, 0, - 0, 0, 251, 249, 1, 0, 0, 0, 252, 253, 5, 133, 0, 0, 253, 254, 7, 3, 0, - 0, 254, 255, 5, 7, 0, 0, 255, 256, 3, 6, 3, 0, 256, 257, 5, 8, 0, 0, 257, - 29, 1, 0, 0, 0, 258, 259, 5, 47, 0, 0, 259, 262, 5, 49, 0, 0, 260, 262, - 5, 124, 0, 0, 261, 258, 1, 0, 0, 0, 261, 260, 1, 0, 0, 0, 262, 263, 1, - 0, 0, 0, 263, 264, 5, 7, 0, 0, 264, 265, 3, 6, 3, 0, 265, 266, 5, 8, 0, - 0, 266, 267, 7, 4, 0, 0, 267, 268, 5, 130, 0, 0, 268, 269, 5, 7, 0, 0, - 269, 270, 3, 6, 3, 0, 270, 274, 5, 8, 0, 0, 271, 273, 3, 32, 16, 0, 272, - 271, 1, 0, 0, 0, 273, 276, 1, 0, 0, 0, 274, 272, 1, 0, 0, 0, 274, 275, - 1, 0, 0, 0, 275, 31, 1, 0, 0, 0, 276, 274, 1, 0, 0, 0, 277, 278, 5, 50, - 0, 0, 278, 281, 5, 58, 0, 0, 279, 281, 5, 125, 0, 0, 280, 277, 1, 0, 0, - 0, 280, 279, 1, 0, 0, 0, 281, 288, 1, 0, 0, 0, 282, 283, 5, 50, 0, 0, 283, - 286, 5, 57, 0, 0, 284, 286, 5, 126, 0, 0, 285, 282, 1, 0, 0, 0, 285, 284, - 1, 0, 0, 0, 286, 288, 1, 0, 0, 0, 287, 280, 1, 0, 0, 0, 287, 285, 1, 0, - 0, 0, 288, 290, 1, 0, 0, 0, 289, 291, 5, 51, 0, 0, 290, 289, 1, 0, 0, 0, - 290, 291, 1, 0, 0, 0, 291, 309, 1, 0, 0, 0, 292, 293, 5, 86, 0, 0, 293, - 296, 5, 36, 0, 0, 294, 296, 5, 129, 0, 0, 295, 292, 1, 0, 0, 0, 295, 294, - 1, 0, 0, 0, 296, 310, 1, 0, 0, 0, 297, 310, 5, 52, 0, 0, 298, 299, 5, 54, - 0, 0, 299, 302, 5, 56, 0, 0, 300, 302, 5, 128, 0, 0, 301, 298, 1, 0, 0, - 0, 301, 300, 1, 0, 0, 0, 302, 310, 1, 0, 0, 0, 303, 304, 5, 54, 0, 0, 304, - 307, 5, 55, 0, 0, 305, 307, 5, 127, 0, 0, 306, 303, 1, 0, 0, 0, 306, 305, - 1, 0, 0, 0, 307, 310, 1, 0, 0, 0, 308, 310, 5, 53, 0, 0, 309, 295, 1, 0, - 0, 0, 309, 297, 1, 0, 0, 0, 309, 301, 1, 0, 0, 0, 309, 306, 1, 0, 0, 0, - 309, 308, 1, 0, 0, 0, 310, 33, 1, 0, 0, 0, 311, 316, 3, 8, 4, 0, 312, 313, - 5, 9, 0, 0, 313, 315, 3, 8, 4, 0, 314, 312, 1, 0, 0, 0, 315, 318, 1, 0, - 0, 0, 316, 314, 1, 0, 0, 0, 316, 317, 1, 0, 0, 0, 317, 35, 1, 0, 0, 0, - 318, 316, 1, 0, 0, 0, 319, 320, 5, 130, 0, 0, 320, 326, 3, 8, 4, 0, 321, - 322, 5, 9, 0, 0, 322, 323, 5, 130, 0, 0, 323, 325, 3, 8, 4, 0, 324, 321, - 1, 0, 0, 0, 325, 328, 1, 0, 0, 0, 326, 324, 1, 0, 0, 0, 326, 327, 1, 0, - 0, 0, 327, 37, 1, 0, 0, 0, 328, 326, 1, 0, 0, 0, 329, 330, 3, 12, 6, 0, - 330, 337, 3, 8, 4, 0, 331, 332, 5, 9, 0, 0, 332, 333, 3, 12, 6, 0, 333, - 334, 3, 8, 4, 0, 334, 336, 1, 0, 0, 0, 335, 331, 1, 0, 0, 0, 336, 339, - 1, 0, 0, 0, 337, 335, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 39, 1, 0, - 0, 0, 339, 337, 1, 0, 0, 0, 340, 341, 5, 42, 0, 0, 341, 342, 5, 7, 0, 0, - 342, 343, 3, 2, 1, 0, 343, 344, 5, 8, 0, 0, 344, 379, 1, 0, 0, 0, 345, - 346, 5, 43, 0, 0, 346, 347, 5, 7, 0, 0, 347, 348, 3, 2, 1, 0, 348, 349, - 5, 8, 0, 0, 349, 379, 1, 0, 0, 0, 350, 351, 5, 44, 0, 0, 351, 352, 5, 7, - 0, 0, 352, 353, 3, 2, 1, 0, 353, 354, 5, 8, 0, 0, 354, 379, 1, 0, 0, 0, - 355, 356, 5, 45, 0, 0, 356, 357, 5, 7, 0, 0, 357, 358, 3, 2, 1, 0, 358, - 359, 5, 8, 0, 0, 359, 379, 1, 0, 0, 0, 360, 364, 5, 87, 0, 0, 361, 362, - 5, 61, 0, 0, 362, 364, 5, 56, 0, 0, 363, 360, 1, 0, 0, 0, 363, 361, 1, - 0, 0, 0, 364, 379, 1, 0, 0, 0, 365, 371, 5, 123, 0, 0, 366, 368, 5, 48, - 0, 0, 367, 369, 5, 49, 0, 0, 368, 367, 1, 0, 0, 0, 368, 369, 1, 0, 0, 0, - 369, 371, 1, 0, 0, 0, 370, 365, 1, 0, 0, 0, 370, 366, 1, 0, 0, 0, 371, - 379, 1, 0, 0, 0, 372, 373, 5, 55, 0, 0, 373, 374, 5, 7, 0, 0, 374, 375, - 3, 2, 1, 0, 375, 376, 5, 8, 0, 0, 376, 379, 1, 0, 0, 0, 377, 379, 5, 46, - 0, 0, 378, 340, 1, 0, 0, 0, 378, 345, 1, 0, 0, 0, 378, 350, 1, 0, 0, 0, - 378, 355, 1, 0, 0, 0, 378, 363, 1, 0, 0, 0, 378, 370, 1, 0, 0, 0, 378, - 372, 1, 0, 0, 0, 378, 377, 1, 0, 0, 0, 379, 41, 1, 0, 0, 0, 380, 381, 7, - 5, 0, 0, 381, 43, 1, 0, 0, 0, 382, 384, 3, 18, 9, 0, 383, 382, 1, 0, 0, - 0, 384, 387, 1, 0, 0, 0, 385, 383, 1, 0, 0, 0, 385, 386, 1, 0, 0, 0, 386, - 388, 1, 0, 0, 0, 387, 385, 1, 0, 0, 0, 388, 389, 5, 36, 0, 0, 389, 390, - 5, 130, 0, 0, 390, 392, 5, 7, 0, 0, 391, 393, 3, 14, 7, 0, 392, 391, 1, - 0, 0, 0, 392, 393, 1, 0, 0, 0, 393, 394, 1, 0, 0, 0, 394, 396, 5, 8, 0, - 0, 395, 397, 3, 42, 21, 0, 396, 395, 1, 0, 0, 0, 397, 398, 1, 0, 0, 0, - 398, 396, 1, 0, 0, 0, 398, 399, 1, 0, 0, 0, 399, 400, 1, 0, 0, 0, 400, - 401, 5, 1, 0, 0, 401, 402, 3, 88, 44, 0, 402, 403, 5, 2, 0, 0, 403, 45, - 1, 0, 0, 0, 404, 406, 3, 18, 9, 0, 405, 404, 1, 0, 0, 0, 406, 409, 1, 0, - 0, 0, 407, 405, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 410, 1, 0, 0, 0, - 409, 407, 1, 0, 0, 0, 410, 411, 5, 37, 0, 0, 411, 412, 5, 130, 0, 0, 412, - 414, 5, 7, 0, 0, 413, 415, 3, 38, 19, 0, 414, 413, 1, 0, 0, 0, 414, 415, - 1, 0, 0, 0, 415, 416, 1, 0, 0, 0, 416, 418, 5, 8, 0, 0, 417, 419, 3, 42, - 21, 0, 418, 417, 1, 0, 0, 0, 419, 420, 1, 0, 0, 0, 420, 418, 1, 0, 0, 0, - 420, 421, 1, 0, 0, 0, 421, 423, 1, 0, 0, 0, 422, 424, 3, 50, 25, 0, 423, - 422, 1, 0, 0, 0, 423, 424, 1, 0, 0, 0, 424, 425, 1, 0, 0, 0, 425, 426, - 5, 1, 0, 0, 426, 427, 3, 92, 46, 0, 427, 428, 5, 2, 0, 0, 428, 47, 1, 0, - 0, 0, 429, 430, 5, 47, 0, 0, 430, 431, 5, 37, 0, 0, 431, 432, 5, 130, 0, - 0, 432, 435, 5, 7, 0, 0, 433, 436, 3, 34, 17, 0, 434, 436, 3, 38, 19, 0, - 435, 433, 1, 0, 0, 0, 435, 434, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, - 437, 1, 0, 0, 0, 437, 439, 5, 8, 0, 0, 438, 440, 3, 50, 25, 0, 439, 438, - 1, 0, 0, 0, 439, 440, 1, 0, 0, 0, 440, 49, 1, 0, 0, 0, 441, 453, 5, 85, - 0, 0, 442, 444, 5, 35, 0, 0, 443, 442, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, - 444, 445, 1, 0, 0, 0, 445, 446, 5, 7, 0, 0, 446, 447, 3, 36, 18, 0, 447, - 448, 5, 8, 0, 0, 448, 454, 1, 0, 0, 0, 449, 450, 5, 7, 0, 0, 450, 451, - 3, 34, 17, 0, 451, 452, 5, 8, 0, 0, 452, 454, 1, 0, 0, 0, 453, 443, 1, - 0, 0, 0, 453, 449, 1, 0, 0, 0, 454, 51, 1, 0, 0, 0, 455, 456, 3, 54, 27, - 0, 456, 457, 5, 6, 0, 0, 457, 53, 1, 0, 0, 0, 458, 459, 5, 88, 0, 0, 459, - 464, 3, 56, 28, 0, 460, 461, 5, 9, 0, 0, 461, 463, 3, 56, 28, 0, 462, 460, - 1, 0, 0, 0, 463, 466, 1, 0, 0, 0, 464, 462, 1, 0, 0, 0, 464, 465, 1, 0, - 0, 0, 465, 468, 1, 0, 0, 0, 466, 464, 1, 0, 0, 0, 467, 458, 1, 0, 0, 0, - 467, 468, 1, 0, 0, 0, 468, 473, 1, 0, 0, 0, 469, 474, 3, 58, 29, 0, 470, - 474, 3, 72, 36, 0, 471, 474, 3, 76, 38, 0, 472, 474, 3, 80, 40, 0, 473, - 469, 1, 0, 0, 0, 473, 470, 1, 0, 0, 0, 473, 471, 1, 0, 0, 0, 473, 472, - 1, 0, 0, 0, 474, 55, 1, 0, 0, 0, 475, 476, 3, 4, 2, 0, 476, 485, 5, 7, - 0, 0, 477, 482, 3, 4, 2, 0, 478, 479, 5, 9, 0, 0, 479, 481, 3, 4, 2, 0, - 480, 478, 1, 0, 0, 0, 481, 484, 1, 0, 0, 0, 482, 480, 1, 0, 0, 0, 482, - 483, 1, 0, 0, 0, 483, 486, 1, 0, 0, 0, 484, 482, 1, 0, 0, 0, 485, 477, - 1, 0, 0, 0, 485, 486, 1, 0, 0, 0, 486, 487, 1, 0, 0, 0, 487, 488, 5, 8, - 0, 0, 488, 489, 5, 76, 0, 0, 489, 490, 5, 7, 0, 0, 490, 491, 3, 58, 29, - 0, 491, 492, 5, 8, 0, 0, 492, 57, 1, 0, 0, 0, 493, 499, 3, 64, 32, 0, 494, - 495, 3, 60, 30, 0, 495, 496, 3, 64, 32, 0, 496, 498, 1, 0, 0, 0, 497, 494, - 1, 0, 0, 0, 498, 501, 1, 0, 0, 0, 499, 497, 1, 0, 0, 0, 499, 500, 1, 0, - 0, 0, 500, 512, 1, 0, 0, 0, 501, 499, 1, 0, 0, 0, 502, 503, 5, 81, 0, 0, - 503, 504, 5, 82, 0, 0, 504, 509, 3, 62, 31, 0, 505, 506, 5, 9, 0, 0, 506, - 508, 3, 62, 31, 0, 507, 505, 1, 0, 0, 0, 508, 511, 1, 0, 0, 0, 509, 507, - 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 513, 1, 0, 0, 0, 511, 509, 1, 0, - 0, 0, 512, 502, 1, 0, 0, 0, 512, 513, 1, 0, 0, 0, 513, 516, 1, 0, 0, 0, - 514, 515, 5, 79, 0, 0, 515, 517, 3, 82, 41, 0, 516, 514, 1, 0, 0, 0, 516, - 517, 1, 0, 0, 0, 517, 520, 1, 0, 0, 0, 518, 519, 5, 80, 0, 0, 519, 521, - 3, 82, 41, 0, 520, 518, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 59, 1, 0, - 0, 0, 522, 524, 5, 101, 0, 0, 523, 525, 5, 70, 0, 0, 524, 523, 1, 0, 0, - 0, 524, 525, 1, 0, 0, 0, 525, 529, 1, 0, 0, 0, 526, 529, 5, 102, 0, 0, - 527, 529, 5, 103, 0, 0, 528, 522, 1, 0, 0, 0, 528, 526, 1, 0, 0, 0, 528, - 527, 1, 0, 0, 0, 529, 61, 1, 0, 0, 0, 530, 532, 3, 82, 41, 0, 531, 533, - 7, 6, 0, 0, 532, 531, 1, 0, 0, 0, 532, 533, 1, 0, 0, 0, 533, 536, 1, 0, - 0, 0, 534, 535, 5, 104, 0, 0, 535, 537, 7, 7, 0, 0, 536, 534, 1, 0, 0, - 0, 536, 537, 1, 0, 0, 0, 537, 63, 1, 0, 0, 0, 538, 540, 5, 97, 0, 0, 539, - 541, 5, 93, 0, 0, 540, 539, 1, 0, 0, 0, 540, 541, 1, 0, 0, 0, 541, 542, - 1, 0, 0, 0, 542, 547, 3, 70, 35, 0, 543, 544, 5, 9, 0, 0, 544, 546, 3, - 70, 35, 0, 545, 543, 1, 0, 0, 0, 546, 549, 1, 0, 0, 0, 547, 545, 1, 0, - 0, 0, 547, 548, 1, 0, 0, 0, 548, 558, 1, 0, 0, 0, 549, 547, 1, 0, 0, 0, - 550, 551, 5, 94, 0, 0, 551, 555, 3, 66, 33, 0, 552, 554, 3, 68, 34, 0, - 553, 552, 1, 0, 0, 0, 554, 557, 1, 0, 0, 0, 555, 553, 1, 0, 0, 0, 555, - 556, 1, 0, 0, 0, 556, 559, 1, 0, 0, 0, 557, 555, 1, 0, 0, 0, 558, 550, - 1, 0, 0, 0, 558, 559, 1, 0, 0, 0, 559, 562, 1, 0, 0, 0, 560, 561, 5, 95, - 0, 0, 561, 563, 3, 82, 41, 0, 562, 560, 1, 0, 0, 0, 562, 563, 1, 0, 0, - 0, 563, 571, 1, 0, 0, 0, 564, 565, 5, 83, 0, 0, 565, 566, 5, 82, 0, 0, - 566, 569, 3, 84, 42, 0, 567, 568, 5, 84, 0, 0, 568, 570, 3, 82, 41, 0, - 569, 567, 1, 0, 0, 0, 569, 570, 1, 0, 0, 0, 570, 572, 1, 0, 0, 0, 571, - 564, 1, 0, 0, 0, 571, 572, 1, 0, 0, 0, 572, 65, 1, 0, 0, 0, 573, 578, 3, - 4, 2, 0, 574, 576, 5, 76, 0, 0, 575, 574, 1, 0, 0, 0, 575, 576, 1, 0, 0, - 0, 576, 577, 1, 0, 0, 0, 577, 579, 3, 4, 2, 0, 578, 575, 1, 0, 0, 0, 578, - 579, 1, 0, 0, 0, 579, 597, 1, 0, 0, 0, 580, 581, 5, 7, 0, 0, 581, 582, - 3, 58, 29, 0, 582, 587, 5, 8, 0, 0, 583, 585, 5, 76, 0, 0, 584, 583, 1, - 0, 0, 0, 584, 585, 1, 0, 0, 0, 585, 586, 1, 0, 0, 0, 586, 588, 3, 4, 2, - 0, 587, 584, 1, 0, 0, 0, 587, 588, 1, 0, 0, 0, 588, 597, 1, 0, 0, 0, 589, - 591, 3, 86, 43, 0, 590, 592, 5, 76, 0, 0, 591, 590, 1, 0, 0, 0, 591, 592, - 1, 0, 0, 0, 592, 594, 1, 0, 0, 0, 593, 595, 3, 4, 2, 0, 594, 593, 1, 0, - 0, 0, 594, 595, 1, 0, 0, 0, 595, 597, 1, 0, 0, 0, 596, 573, 1, 0, 0, 0, - 596, 580, 1, 0, 0, 0, 596, 589, 1, 0, 0, 0, 597, 67, 1, 0, 0, 0, 598, 599, - 7, 8, 0, 0, 599, 600, 5, 72, 0, 0, 600, 601, 3, 66, 33, 0, 601, 602, 5, - 50, 0, 0, 602, 603, 3, 82, 41, 0, 603, 69, 1, 0, 0, 0, 604, 609, 3, 82, - 41, 0, 605, 607, 5, 76, 0, 0, 606, 605, 1, 0, 0, 0, 606, 607, 1, 0, 0, - 0, 607, 608, 1, 0, 0, 0, 608, 610, 3, 4, 2, 0, 609, 606, 1, 0, 0, 0, 609, - 610, 1, 0, 0, 0, 610, 618, 1, 0, 0, 0, 611, 612, 3, 4, 2, 0, 612, 613, - 5, 12, 0, 0, 613, 615, 1, 0, 0, 0, 614, 611, 1, 0, 0, 0, 614, 615, 1, 0, - 0, 0, 615, 616, 1, 0, 0, 0, 616, 618, 5, 14, 0, 0, 617, 604, 1, 0, 0, 0, - 617, 614, 1, 0, 0, 0, 618, 71, 1, 0, 0, 0, 619, 620, 5, 58, 0, 0, 620, - 623, 3, 4, 2, 0, 621, 622, 5, 76, 0, 0, 622, 624, 3, 4, 2, 0, 623, 621, - 1, 0, 0, 0, 623, 624, 1, 0, 0, 0, 624, 625, 1, 0, 0, 0, 625, 626, 5, 54, - 0, 0, 626, 631, 3, 74, 37, 0, 627, 628, 5, 9, 0, 0, 628, 630, 3, 74, 37, - 0, 629, 627, 1, 0, 0, 0, 630, 633, 1, 0, 0, 0, 631, 629, 1, 0, 0, 0, 631, - 632, 1, 0, 0, 0, 632, 642, 1, 0, 0, 0, 633, 631, 1, 0, 0, 0, 634, 635, - 5, 94, 0, 0, 635, 639, 3, 66, 33, 0, 636, 638, 3, 68, 34, 0, 637, 636, - 1, 0, 0, 0, 638, 641, 1, 0, 0, 0, 639, 637, 1, 0, 0, 0, 639, 640, 1, 0, - 0, 0, 640, 643, 1, 0, 0, 0, 641, 639, 1, 0, 0, 0, 642, 634, 1, 0, 0, 0, - 642, 643, 1, 0, 0, 0, 643, 646, 1, 0, 0, 0, 644, 645, 5, 95, 0, 0, 645, - 647, 3, 82, 41, 0, 646, 644, 1, 0, 0, 0, 646, 647, 1, 0, 0, 0, 647, 73, - 1, 0, 0, 0, 648, 649, 3, 4, 2, 0, 649, 650, 5, 15, 0, 0, 650, 651, 3, 82, - 41, 0, 651, 75, 1, 0, 0, 0, 652, 653, 5, 98, 0, 0, 653, 654, 5, 108, 0, - 0, 654, 657, 3, 4, 2, 0, 655, 656, 5, 76, 0, 0, 656, 658, 3, 4, 2, 0, 657, - 655, 1, 0, 0, 0, 657, 658, 1, 0, 0, 0, 658, 663, 1, 0, 0, 0, 659, 660, - 5, 7, 0, 0, 660, 661, 3, 6, 3, 0, 661, 662, 5, 8, 0, 0, 662, 664, 1, 0, - 0, 0, 663, 659, 1, 0, 0, 0, 663, 664, 1, 0, 0, 0, 664, 665, 1, 0, 0, 0, - 665, 666, 5, 99, 0, 0, 666, 667, 5, 7, 0, 0, 667, 668, 3, 84, 42, 0, 668, - 676, 5, 8, 0, 0, 669, 670, 5, 9, 0, 0, 670, 671, 5, 7, 0, 0, 671, 672, - 3, 84, 42, 0, 672, 673, 5, 8, 0, 0, 673, 675, 1, 0, 0, 0, 674, 669, 1, - 0, 0, 0, 675, 678, 1, 0, 0, 0, 676, 674, 1, 0, 0, 0, 676, 677, 1, 0, 0, - 0, 677, 680, 1, 0, 0, 0, 678, 676, 1, 0, 0, 0, 679, 681, 3, 78, 39, 0, - 680, 679, 1, 0, 0, 0, 680, 681, 1, 0, 0, 0, 681, 77, 1, 0, 0, 0, 682, 683, - 5, 50, 0, 0, 683, 691, 5, 109, 0, 0, 684, 685, 5, 7, 0, 0, 685, 686, 3, - 6, 3, 0, 686, 689, 5, 8, 0, 0, 687, 688, 5, 95, 0, 0, 688, 690, 3, 82, - 41, 0, 689, 687, 1, 0, 0, 0, 689, 690, 1, 0, 0, 0, 690, 692, 1, 0, 0, 0, - 691, 684, 1, 0, 0, 0, 691, 692, 1, 0, 0, 0, 692, 693, 1, 0, 0, 0, 693, - 709, 5, 51, 0, 0, 694, 710, 5, 110, 0, 0, 695, 696, 5, 58, 0, 0, 696, 697, - 5, 54, 0, 0, 697, 702, 3, 74, 37, 0, 698, 699, 5, 9, 0, 0, 699, 701, 3, - 74, 37, 0, 700, 698, 1, 0, 0, 0, 701, 704, 1, 0, 0, 0, 702, 700, 1, 0, - 0, 0, 702, 703, 1, 0, 0, 0, 703, 707, 1, 0, 0, 0, 704, 702, 1, 0, 0, 0, - 705, 706, 5, 95, 0, 0, 706, 708, 3, 82, 41, 0, 707, 705, 1, 0, 0, 0, 707, - 708, 1, 0, 0, 0, 708, 710, 1, 0, 0, 0, 709, 694, 1, 0, 0, 0, 709, 695, - 1, 0, 0, 0, 710, 79, 1, 0, 0, 0, 711, 712, 5, 57, 0, 0, 712, 713, 5, 94, - 0, 0, 713, 716, 3, 4, 2, 0, 714, 715, 5, 76, 0, 0, 715, 717, 3, 4, 2, 0, - 716, 714, 1, 0, 0, 0, 716, 717, 1, 0, 0, 0, 717, 720, 1, 0, 0, 0, 718, - 719, 5, 95, 0, 0, 719, 721, 3, 82, 41, 0, 720, 718, 1, 0, 0, 0, 720, 721, - 1, 0, 0, 0, 721, 81, 1, 0, 0, 0, 722, 723, 6, 41, -1, 0, 723, 725, 3, 2, - 1, 0, 724, 726, 3, 10, 5, 0, 725, 724, 1, 0, 0, 0, 725, 726, 1, 0, 0, 0, - 726, 784, 1, 0, 0, 0, 727, 729, 3, 86, 43, 0, 728, 730, 3, 10, 5, 0, 729, - 728, 1, 0, 0, 0, 729, 730, 1, 0, 0, 0, 730, 784, 1, 0, 0, 0, 731, 733, - 3, 12, 6, 0, 732, 734, 3, 10, 5, 0, 733, 732, 1, 0, 0, 0, 733, 734, 1, - 0, 0, 0, 734, 784, 1, 0, 0, 0, 735, 736, 3, 4, 2, 0, 736, 737, 5, 12, 0, - 0, 737, 739, 1, 0, 0, 0, 738, 735, 1, 0, 0, 0, 738, 739, 1, 0, 0, 0, 739, - 740, 1, 0, 0, 0, 740, 742, 3, 4, 2, 0, 741, 743, 3, 10, 5, 0, 742, 741, - 1, 0, 0, 0, 742, 743, 1, 0, 0, 0, 743, 784, 1, 0, 0, 0, 744, 745, 5, 7, - 0, 0, 745, 746, 3, 82, 41, 0, 746, 748, 5, 8, 0, 0, 747, 749, 3, 10, 5, - 0, 748, 747, 1, 0, 0, 0, 748, 749, 1, 0, 0, 0, 749, 784, 1, 0, 0, 0, 750, - 751, 7, 9, 0, 0, 751, 784, 3, 82, 41, 11, 752, 754, 5, 89, 0, 0, 753, 755, - 3, 82, 41, 0, 754, 753, 1, 0, 0, 0, 754, 755, 1, 0, 0, 0, 755, 761, 1, - 0, 0, 0, 756, 757, 5, 90, 0, 0, 757, 758, 3, 82, 41, 0, 758, 759, 5, 91, - 0, 0, 759, 760, 3, 82, 41, 0, 760, 762, 1, 0, 0, 0, 761, 756, 1, 0, 0, - 0, 762, 763, 1, 0, 0, 0, 763, 761, 1, 0, 0, 0, 763, 764, 1, 0, 0, 0, 764, - 767, 1, 0, 0, 0, 765, 766, 5, 114, 0, 0, 766, 768, 3, 82, 41, 0, 767, 765, - 1, 0, 0, 0, 767, 768, 1, 0, 0, 0, 768, 769, 1, 0, 0, 0, 769, 770, 5, 92, - 0, 0, 770, 784, 1, 0, 0, 0, 771, 773, 5, 61, 0, 0, 772, 771, 1, 0, 0, 0, - 772, 773, 1, 0, 0, 0, 773, 774, 1, 0, 0, 0, 774, 776, 5, 69, 0, 0, 775, - 772, 1, 0, 0, 0, 775, 776, 1, 0, 0, 0, 776, 777, 1, 0, 0, 0, 777, 778, - 5, 7, 0, 0, 778, 779, 3, 58, 29, 0, 779, 781, 5, 8, 0, 0, 780, 782, 3, - 10, 5, 0, 781, 780, 1, 0, 0, 0, 781, 782, 1, 0, 0, 0, 782, 784, 1, 0, 0, - 0, 783, 722, 1, 0, 0, 0, 783, 727, 1, 0, 0, 0, 783, 731, 1, 0, 0, 0, 783, - 738, 1, 0, 0, 0, 783, 744, 1, 0, 0, 0, 783, 750, 1, 0, 0, 0, 783, 752, - 1, 0, 0, 0, 783, 775, 1, 0, 0, 0, 784, 861, 1, 0, 0, 0, 785, 786, 10, 14, - 0, 0, 786, 787, 7, 10, 0, 0, 787, 860, 3, 82, 41, 15, 788, 790, 10, 12, - 0, 0, 789, 791, 5, 61, 0, 0, 790, 789, 1, 0, 0, 0, 790, 791, 1, 0, 0, 0, - 791, 792, 1, 0, 0, 0, 792, 793, 5, 65, 0, 0, 793, 860, 3, 82, 41, 13, 794, - 796, 10, 10, 0, 0, 795, 797, 5, 61, 0, 0, 796, 795, 1, 0, 0, 0, 796, 797, - 1, 0, 0, 0, 797, 798, 1, 0, 0, 0, 798, 799, 5, 67, 0, 0, 799, 800, 3, 82, - 41, 0, 800, 801, 5, 63, 0, 0, 801, 802, 3, 82, 41, 11, 802, 860, 1, 0, - 0, 0, 803, 804, 10, 5, 0, 0, 804, 805, 5, 13, 0, 0, 805, 860, 3, 82, 41, - 6, 806, 807, 10, 4, 0, 0, 807, 808, 7, 11, 0, 0, 808, 860, 3, 82, 41, 5, - 809, 810, 10, 3, 0, 0, 810, 811, 7, 0, 0, 0, 811, 860, 3, 82, 41, 4, 812, - 813, 10, 2, 0, 0, 813, 814, 5, 63, 0, 0, 814, 860, 3, 82, 41, 3, 815, 816, - 10, 1, 0, 0, 816, 817, 5, 64, 0, 0, 817, 860, 3, 82, 41, 2, 818, 819, 10, - 17, 0, 0, 819, 820, 5, 3, 0, 0, 820, 821, 3, 82, 41, 0, 821, 823, 5, 4, - 0, 0, 822, 824, 3, 10, 5, 0, 823, 822, 1, 0, 0, 0, 823, 824, 1, 0, 0, 0, - 824, 860, 1, 0, 0, 0, 825, 826, 10, 16, 0, 0, 826, 827, 5, 12, 0, 0, 827, - 829, 3, 4, 2, 0, 828, 830, 3, 10, 5, 0, 829, 828, 1, 0, 0, 0, 829, 830, - 1, 0, 0, 0, 830, 860, 1, 0, 0, 0, 831, 833, 10, 13, 0, 0, 832, 834, 5, - 61, 0, 0, 833, 832, 1, 0, 0, 0, 833, 834, 1, 0, 0, 0, 834, 835, 1, 0, 0, - 0, 835, 836, 5, 66, 0, 0, 836, 839, 5, 7, 0, 0, 837, 840, 3, 84, 42, 0, - 838, 840, 3, 58, 29, 0, 839, 837, 1, 0, 0, 0, 839, 838, 1, 0, 0, 0, 840, - 841, 1, 0, 0, 0, 841, 842, 5, 8, 0, 0, 842, 860, 1, 0, 0, 0, 843, 844, - 10, 9, 0, 0, 844, 846, 5, 68, 0, 0, 845, 847, 5, 61, 0, 0, 846, 845, 1, - 0, 0, 0, 846, 847, 1, 0, 0, 0, 847, 854, 1, 0, 0, 0, 848, 849, 5, 93, 0, - 0, 849, 850, 5, 94, 0, 0, 850, 855, 3, 82, 41, 0, 851, 855, 5, 56, 0, 0, - 852, 855, 5, 119, 0, 0, 853, 855, 5, 120, 0, 0, 854, 848, 1, 0, 0, 0, 854, - 851, 1, 0, 0, 0, 854, 852, 1, 0, 0, 0, 854, 853, 1, 0, 0, 0, 855, 860, - 1, 0, 0, 0, 856, 857, 10, 8, 0, 0, 857, 858, 5, 96, 0, 0, 858, 860, 3, - 4, 2, 0, 859, 785, 1, 0, 0, 0, 859, 788, 1, 0, 0, 0, 859, 794, 1, 0, 0, - 0, 859, 803, 1, 0, 0, 0, 859, 806, 1, 0, 0, 0, 859, 809, 1, 0, 0, 0, 859, - 812, 1, 0, 0, 0, 859, 815, 1, 0, 0, 0, 859, 818, 1, 0, 0, 0, 859, 825, - 1, 0, 0, 0, 859, 831, 1, 0, 0, 0, 859, 843, 1, 0, 0, 0, 859, 856, 1, 0, - 0, 0, 860, 863, 1, 0, 0, 0, 861, 859, 1, 0, 0, 0, 861, 862, 1, 0, 0, 0, - 862, 83, 1, 0, 0, 0, 863, 861, 1, 0, 0, 0, 864, 869, 3, 82, 41, 0, 865, - 866, 5, 9, 0, 0, 866, 868, 3, 82, 41, 0, 867, 865, 1, 0, 0, 0, 868, 871, - 1, 0, 0, 0, 869, 867, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 85, 1, 0, - 0, 0, 871, 869, 1, 0, 0, 0, 872, 873, 3, 4, 2, 0, 873, 879, 5, 7, 0, 0, - 874, 876, 5, 93, 0, 0, 875, 874, 1, 0, 0, 0, 875, 876, 1, 0, 0, 0, 876, - 877, 1, 0, 0, 0, 877, 880, 3, 84, 42, 0, 878, 880, 5, 14, 0, 0, 879, 875, - 1, 0, 0, 0, 879, 878, 1, 0, 0, 0, 879, 880, 1, 0, 0, 0, 880, 881, 1, 0, - 0, 0, 881, 882, 5, 8, 0, 0, 882, 896, 1, 0, 0, 0, 883, 884, 3, 4, 2, 0, - 884, 885, 5, 3, 0, 0, 885, 886, 3, 82, 41, 0, 886, 887, 5, 9, 0, 0, 887, - 888, 3, 82, 41, 0, 888, 889, 5, 4, 0, 0, 889, 891, 5, 7, 0, 0, 890, 892, - 3, 84, 42, 0, 891, 890, 1, 0, 0, 0, 891, 892, 1, 0, 0, 0, 892, 893, 1, - 0, 0, 0, 893, 894, 5, 8, 0, 0, 894, 896, 1, 0, 0, 0, 895, 872, 1, 0, 0, - 0, 895, 883, 1, 0, 0, 0, 896, 87, 1, 0, 0, 0, 897, 898, 3, 90, 45, 0, 898, - 899, 5, 6, 0, 0, 899, 901, 1, 0, 0, 0, 900, 897, 1, 0, 0, 0, 901, 904, - 1, 0, 0, 0, 902, 900, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 89, 1, 0, - 0, 0, 904, 902, 1, 0, 0, 0, 905, 926, 3, 54, 27, 0, 906, 907, 5, 130, 0, - 0, 907, 909, 5, 7, 0, 0, 908, 910, 3, 96, 48, 0, 909, 908, 1, 0, 0, 0, - 909, 910, 1, 0, 0, 0, 910, 911, 1, 0, 0, 0, 911, 926, 5, 8, 0, 0, 912, - 913, 3, 14, 7, 0, 913, 914, 5, 15, 0, 0, 914, 916, 1, 0, 0, 0, 915, 912, - 1, 0, 0, 0, 915, 916, 1, 0, 0, 0, 916, 917, 1, 0, 0, 0, 917, 918, 5, 130, - 0, 0, 918, 919, 5, 12, 0, 0, 919, 920, 5, 130, 0, 0, 920, 922, 5, 7, 0, - 0, 921, 923, 3, 96, 48, 0, 922, 921, 1, 0, 0, 0, 922, 923, 1, 0, 0, 0, - 923, 924, 1, 0, 0, 0, 924, 926, 5, 8, 0, 0, 925, 905, 1, 0, 0, 0, 925, - 906, 1, 0, 0, 0, 925, 915, 1, 0, 0, 0, 926, 91, 1, 0, 0, 0, 927, 929, 3, - 98, 49, 0, 928, 927, 1, 0, 0, 0, 929, 932, 1, 0, 0, 0, 930, 928, 1, 0, - 0, 0, 930, 931, 1, 0, 0, 0, 931, 93, 1, 0, 0, 0, 932, 930, 1, 0, 0, 0, - 933, 934, 6, 47, -1, 0, 934, 936, 3, 2, 1, 0, 935, 937, 3, 10, 5, 0, 936, - 935, 1, 0, 0, 0, 936, 937, 1, 0, 0, 0, 937, 963, 1, 0, 0, 0, 938, 940, - 3, 102, 51, 0, 939, 941, 3, 10, 5, 0, 940, 939, 1, 0, 0, 0, 940, 941, 1, - 0, 0, 0, 941, 963, 1, 0, 0, 0, 942, 944, 3, 12, 6, 0, 943, 945, 3, 10, - 5, 0, 944, 943, 1, 0, 0, 0, 944, 945, 1, 0, 0, 0, 945, 963, 1, 0, 0, 0, - 946, 948, 5, 3, 0, 0, 947, 949, 3, 96, 48, 0, 948, 947, 1, 0, 0, 0, 948, - 949, 1, 0, 0, 0, 949, 950, 1, 0, 0, 0, 950, 952, 5, 4, 0, 0, 951, 953, - 3, 10, 5, 0, 952, 951, 1, 0, 0, 0, 952, 953, 1, 0, 0, 0, 953, 963, 1, 0, - 0, 0, 954, 955, 5, 7, 0, 0, 955, 956, 3, 94, 47, 0, 956, 958, 5, 8, 0, - 0, 957, 959, 3, 10, 5, 0, 958, 957, 1, 0, 0, 0, 958, 959, 1, 0, 0, 0, 959, - 963, 1, 0, 0, 0, 960, 961, 7, 12, 0, 0, 961, 963, 3, 94, 47, 4, 962, 933, - 1, 0, 0, 0, 962, 938, 1, 0, 0, 0, 962, 942, 1, 0, 0, 0, 962, 946, 1, 0, - 0, 0, 962, 954, 1, 0, 0, 0, 962, 960, 1, 0, 0, 0, 963, 991, 1, 0, 0, 0, - 964, 965, 10, 5, 0, 0, 965, 966, 7, 10, 0, 0, 966, 990, 3, 94, 47, 6, 967, - 968, 10, 3, 0, 0, 968, 969, 5, 13, 0, 0, 969, 990, 3, 94, 47, 4, 970, 971, - 10, 2, 0, 0, 971, 972, 7, 11, 0, 0, 972, 990, 3, 94, 47, 3, 973, 974, 10, - 1, 0, 0, 974, 975, 7, 0, 0, 0, 975, 990, 3, 94, 47, 2, 976, 977, 10, 8, - 0, 0, 977, 978, 5, 3, 0, 0, 978, 979, 3, 94, 47, 0, 979, 981, 5, 4, 0, - 0, 980, 982, 3, 10, 5, 0, 981, 980, 1, 0, 0, 0, 981, 982, 1, 0, 0, 0, 982, - 990, 1, 0, 0, 0, 983, 984, 10, 6, 0, 0, 984, 985, 5, 12, 0, 0, 985, 987, - 5, 130, 0, 0, 986, 988, 3, 10, 5, 0, 987, 986, 1, 0, 0, 0, 987, 988, 1, - 0, 0, 0, 988, 990, 1, 0, 0, 0, 989, 964, 1, 0, 0, 0, 989, 967, 1, 0, 0, - 0, 989, 970, 1, 0, 0, 0, 989, 973, 1, 0, 0, 0, 989, 976, 1, 0, 0, 0, 989, - 983, 1, 0, 0, 0, 990, 993, 1, 0, 0, 0, 991, 989, 1, 0, 0, 0, 991, 992, - 1, 0, 0, 0, 992, 95, 1, 0, 0, 0, 993, 991, 1, 0, 0, 0, 994, 999, 3, 94, - 47, 0, 995, 996, 5, 9, 0, 0, 996, 998, 3, 94, 47, 0, 997, 995, 1, 0, 0, - 0, 998, 1001, 1, 0, 0, 0, 999, 997, 1, 0, 0, 0, 999, 1000, 1, 0, 0, 0, - 1000, 97, 1, 0, 0, 0, 1001, 999, 1, 0, 0, 0, 1002, 1003, 5, 131, 0, 0, - 1003, 1004, 3, 8, 4, 0, 1004, 1005, 5, 6, 0, 0, 1005, 1084, 1, 0, 0, 0, - 1006, 1011, 3, 100, 50, 0, 1007, 1008, 5, 9, 0, 0, 1008, 1010, 3, 100, - 50, 0, 1009, 1007, 1, 0, 0, 0, 1010, 1013, 1, 0, 0, 0, 1011, 1009, 1, 0, - 0, 0, 1011, 1012, 1, 0, 0, 0, 1012, 1014, 1, 0, 0, 0, 1013, 1011, 1, 0, - 0, 0, 1014, 1015, 5, 30, 0, 0, 1015, 1017, 1, 0, 0, 0, 1016, 1006, 1, 0, - 0, 0, 1016, 1017, 1, 0, 0, 0, 1017, 1018, 1, 0, 0, 0, 1018, 1019, 3, 102, - 51, 0, 1019, 1020, 5, 6, 0, 0, 1020, 1084, 1, 0, 0, 0, 1021, 1023, 5, 131, - 0, 0, 1022, 1024, 3, 8, 4, 0, 1023, 1022, 1, 0, 0, 0, 1023, 1024, 1, 0, - 0, 0, 1024, 1025, 1, 0, 0, 0, 1025, 1026, 5, 30, 0, 0, 1026, 1027, 3, 94, - 47, 0, 1027, 1028, 5, 6, 0, 0, 1028, 1084, 1, 0, 0, 0, 1029, 1030, 5, 111, - 0, 0, 1030, 1031, 5, 131, 0, 0, 1031, 1035, 5, 66, 0, 0, 1032, 1036, 3, - 106, 53, 0, 1033, 1036, 3, 12, 6, 0, 1034, 1036, 3, 54, 27, 0, 1035, 1032, - 1, 0, 0, 0, 1035, 1033, 1, 0, 0, 0, 1035, 1034, 1, 0, 0, 0, 1036, 1037, - 1, 0, 0, 0, 1037, 1041, 5, 1, 0, 0, 1038, 1040, 3, 98, 49, 0, 1039, 1038, - 1, 0, 0, 0, 1040, 1043, 1, 0, 0, 0, 1041, 1039, 1, 0, 0, 0, 1041, 1042, - 1, 0, 0, 0, 1042, 1044, 1, 0, 0, 0, 1043, 1041, 1, 0, 0, 0, 1044, 1045, - 5, 2, 0, 0, 1045, 1084, 1, 0, 0, 0, 1046, 1047, 5, 112, 0, 0, 1047, 1052, - 3, 104, 52, 0, 1048, 1049, 5, 113, 0, 0, 1049, 1051, 3, 104, 52, 0, 1050, - 1048, 1, 0, 0, 0, 1051, 1054, 1, 0, 0, 0, 1052, 1050, 1, 0, 0, 0, 1052, - 1053, 1, 0, 0, 0, 1053, 1064, 1, 0, 0, 0, 1054, 1052, 1, 0, 0, 0, 1055, - 1056, 5, 114, 0, 0, 1056, 1060, 5, 1, 0, 0, 1057, 1059, 3, 98, 49, 0, 1058, - 1057, 1, 0, 0, 0, 1059, 1062, 1, 0, 0, 0, 1060, 1058, 1, 0, 0, 0, 1060, - 1061, 1, 0, 0, 0, 1061, 1063, 1, 0, 0, 0, 1062, 1060, 1, 0, 0, 0, 1063, - 1065, 5, 2, 0, 0, 1064, 1055, 1, 0, 0, 0, 1064, 1065, 1, 0, 0, 0, 1065, - 1084, 1, 0, 0, 0, 1066, 1067, 3, 54, 27, 0, 1067, 1068, 5, 6, 0, 0, 1068, - 1084, 1, 0, 0, 0, 1069, 1070, 5, 115, 0, 0, 1070, 1084, 5, 6, 0, 0, 1071, - 1074, 5, 116, 0, 0, 1072, 1075, 3, 96, 48, 0, 1073, 1075, 3, 54, 27, 0, - 1074, 1072, 1, 0, 0, 0, 1074, 1073, 1, 0, 0, 0, 1075, 1076, 1, 0, 0, 0, - 1076, 1077, 5, 6, 0, 0, 1077, 1084, 1, 0, 0, 0, 1078, 1079, 5, 116, 0, - 0, 1079, 1080, 5, 117, 0, 0, 1080, 1081, 3, 96, 48, 0, 1081, 1082, 5, 6, - 0, 0, 1082, 1084, 1, 0, 0, 0, 1083, 1002, 1, 0, 0, 0, 1083, 1016, 1, 0, - 0, 0, 1083, 1021, 1, 0, 0, 0, 1083, 1029, 1, 0, 0, 0, 1083, 1046, 1, 0, - 0, 0, 1083, 1066, 1, 0, 0, 0, 1083, 1069, 1, 0, 0, 0, 1083, 1071, 1, 0, - 0, 0, 1083, 1078, 1, 0, 0, 0, 1084, 99, 1, 0, 0, 0, 1085, 1086, 7, 13, - 0, 0, 1086, 101, 1, 0, 0, 0, 1087, 1088, 5, 130, 0, 0, 1088, 1090, 5, 7, - 0, 0, 1089, 1091, 3, 96, 48, 0, 1090, 1089, 1, 0, 0, 0, 1090, 1091, 1, - 0, 0, 0, 1091, 1092, 1, 0, 0, 0, 1092, 1106, 5, 8, 0, 0, 1093, 1094, 5, - 130, 0, 0, 1094, 1095, 5, 3, 0, 0, 1095, 1096, 3, 94, 47, 0, 1096, 1097, - 5, 9, 0, 0, 1097, 1098, 3, 94, 47, 0, 1098, 1099, 5, 4, 0, 0, 1099, 1101, - 5, 7, 0, 0, 1100, 1102, 3, 96, 48, 0, 1101, 1100, 1, 0, 0, 0, 1101, 1102, - 1, 0, 0, 0, 1102, 1103, 1, 0, 0, 0, 1103, 1104, 5, 8, 0, 0, 1104, 1106, - 1, 0, 0, 0, 1105, 1087, 1, 0, 0, 0, 1105, 1093, 1, 0, 0, 0, 1106, 103, - 1, 0, 0, 0, 1107, 1108, 3, 94, 47, 0, 1108, 1112, 5, 1, 0, 0, 1109, 1111, - 3, 98, 49, 0, 1110, 1109, 1, 0, 0, 0, 1111, 1114, 1, 0, 0, 0, 1112, 1110, - 1, 0, 0, 0, 1112, 1113, 1, 0, 0, 0, 1113, 1115, 1, 0, 0, 0, 1114, 1112, - 1, 0, 0, 0, 1115, 1116, 5, 2, 0, 0, 1116, 105, 1, 0, 0, 0, 1117, 1118, - 3, 94, 47, 0, 1118, 1119, 5, 31, 0, 0, 1119, 1120, 3, 94, 47, 0, 1120, - 107, 1, 0, 0, 0, 154, 112, 118, 122, 130, 136, 143, 152, 156, 168, 177, - 179, 193, 196, 216, 221, 235, 239, 249, 261, 274, 280, 285, 287, 290, 295, - 301, 306, 309, 316, 326, 337, 363, 368, 370, 378, 385, 392, 398, 407, 414, - 420, 423, 435, 439, 443, 453, 464, 467, 473, 482, 485, 499, 509, 512, 516, - 520, 524, 528, 532, 536, 540, 547, 555, 558, 562, 569, 571, 575, 578, 584, - 587, 591, 594, 596, 606, 609, 614, 617, 623, 631, 639, 642, 646, 657, 663, - 676, 680, 689, 691, 702, 707, 709, 716, 720, 725, 729, 733, 738, 742, 748, - 754, 763, 767, 772, 775, 781, 783, 790, 796, 823, 829, 833, 839, 846, 854, - 859, 861, 869, 875, 879, 891, 895, 902, 909, 915, 922, 925, 930, 936, 940, - 944, 948, 952, 958, 962, 981, 987, 989, 991, 999, 1011, 1016, 1023, 1035, - 1041, 1052, 1060, 1064, 1074, 1083, 1090, 1101, 1105, 1112, + 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, + 41, 1, 41, 1, 41, 3, 41, 825, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, + 831, 8, 41, 1, 41, 1, 41, 3, 41, 835, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, + 3, 41, 841, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 848, 8, 41, + 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 856, 8, 41, 5, 41, 858, + 8, 41, 10, 41, 12, 41, 861, 9, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, + 43, 1, 43, 1, 43, 5, 43, 871, 8, 43, 10, 43, 12, 43, 874, 9, 43, 1, 44, + 1, 44, 1, 44, 3, 44, 879, 8, 44, 1, 44, 1, 44, 3, 44, 883, 8, 44, 1, 44, + 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 895, + 8, 44, 1, 44, 1, 44, 3, 44, 899, 8, 44, 1, 45, 1, 45, 1, 45, 5, 45, 904, + 8, 45, 10, 45, 12, 45, 907, 9, 45, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 913, + 8, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 919, 8, 46, 1, 46, 1, 46, 1, + 46, 1, 46, 1, 46, 3, 46, 926, 8, 46, 1, 46, 3, 46, 929, 8, 46, 1, 47, 5, + 47, 932, 8, 47, 10, 47, 12, 47, 935, 9, 47, 1, 48, 1, 48, 1, 48, 3, 48, + 940, 8, 48, 1, 48, 1, 48, 3, 48, 944, 8, 48, 1, 48, 1, 48, 3, 48, 948, + 8, 48, 1, 48, 1, 48, 3, 48, 952, 8, 48, 1, 48, 1, 48, 3, 48, 956, 8, 48, + 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 962, 8, 48, 1, 48, 1, 48, 3, 48, 966, + 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, + 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 985, 8, 48, + 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 991, 8, 48, 5, 48, 993, 8, 48, 10, 48, + 12, 48, 996, 9, 48, 1, 49, 1, 49, 1, 49, 5, 49, 1001, 8, 49, 10, 49, 12, + 49, 1004, 9, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 5, 50, + 1013, 8, 50, 10, 50, 12, 50, 1016, 9, 50, 1, 50, 1, 50, 3, 50, 1020, 8, + 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 1027, 8, 50, 1, 50, 1, 50, + 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 1039, 8, + 50, 1, 50, 1, 50, 5, 50, 1043, 8, 50, 10, 50, 12, 50, 1046, 9, 50, 1, 50, + 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 5, 50, 1054, 8, 50, 10, 50, 12, 50, + 1057, 9, 50, 1, 50, 1, 50, 1, 50, 5, 50, 1062, 8, 50, 10, 50, 12, 50, 1065, + 9, 50, 1, 50, 3, 50, 1068, 8, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, + 50, 1, 50, 1, 50, 3, 50, 1078, 8, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, + 1, 50, 1, 50, 3, 50, 1087, 8, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 3, + 52, 1094, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, + 1, 52, 3, 52, 1105, 8, 52, 1, 52, 1, 52, 3, 52, 1109, 8, 52, 1, 53, 1, + 53, 1, 53, 5, 53, 1114, 8, 53, 10, 53, 12, 53, 1117, 9, 53, 1, 53, 1, 53, + 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 0, 2, 82, 96, 55, 0, 2, 4, 6, 8, 10, + 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, + 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, + 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 0, 14, 1, 0, 20, + 21, 1, 0, 119, 120, 1, 0, 131, 132, 3, 0, 46, 46, 48, 48, 62, 62, 1, 0, + 59, 60, 1, 0, 38, 41, 1, 0, 77, 78, 1, 0, 105, 106, 2, 0, 73, 75, 100, + 100, 2, 0, 20, 21, 61, 61, 2, 0, 15, 16, 23, 27, 3, 0, 14, 14, 19, 19, + 22, 22, 2, 0, 11, 11, 20, 21, 2, 0, 29, 29, 131, 131, 1284, 0, 114, 1, + 0, 0, 0, 2, 132, 1, 0, 0, 0, 4, 138, 1, 0, 0, 0, 6, 140, 1, 0, 0, 0, 8, + 148, 1, 0, 0, 0, 10, 160, 1, 0, 0, 0, 12, 163, 1, 0, 0, 0, 14, 165, 1, + 0, 0, 0, 16, 173, 1, 0, 0, 0, 18, 184, 1, 0, 0, 0, 20, 202, 1, 0, 0, 0, + 22, 206, 1, 0, 0, 0, 24, 229, 1, 0, 0, 0, 26, 246, 1, 0, 0, 0, 28, 254, + 1, 0, 0, 0, 30, 263, 1, 0, 0, 0, 32, 289, 1, 0, 0, 0, 34, 313, 1, 0, 0, + 0, 36, 321, 1, 0, 0, 0, 38, 331, 1, 0, 0, 0, 40, 380, 1, 0, 0, 0, 42, 382, + 1, 0, 0, 0, 44, 387, 1, 0, 0, 0, 46, 409, 1, 0, 0, 0, 48, 431, 1, 0, 0, + 0, 50, 443, 1, 0, 0, 0, 52, 457, 1, 0, 0, 0, 54, 469, 1, 0, 0, 0, 56, 477, + 1, 0, 0, 0, 58, 495, 1, 0, 0, 0, 60, 530, 1, 0, 0, 0, 62, 532, 1, 0, 0, + 0, 64, 540, 1, 0, 0, 0, 66, 598, 1, 0, 0, 0, 68, 600, 1, 0, 0, 0, 70, 619, + 1, 0, 0, 0, 72, 621, 1, 0, 0, 0, 74, 650, 1, 0, 0, 0, 76, 654, 1, 0, 0, + 0, 78, 684, 1, 0, 0, 0, 80, 713, 1, 0, 0, 0, 82, 781, 1, 0, 0, 0, 84, 862, + 1, 0, 0, 0, 86, 867, 1, 0, 0, 0, 88, 898, 1, 0, 0, 0, 90, 905, 1, 0, 0, + 0, 92, 928, 1, 0, 0, 0, 94, 933, 1, 0, 0, 0, 96, 965, 1, 0, 0, 0, 98, 997, + 1, 0, 0, 0, 100, 1086, 1, 0, 0, 0, 102, 1088, 1, 0, 0, 0, 104, 1108, 1, + 0, 0, 0, 106, 1110, 1, 0, 0, 0, 108, 1120, 1, 0, 0, 0, 110, 115, 3, 16, + 8, 0, 111, 115, 3, 52, 26, 0, 112, 115, 3, 90, 45, 0, 113, 115, 3, 94, + 47, 0, 114, 110, 1, 0, 0, 0, 114, 111, 1, 0, 0, 0, 114, 112, 1, 0, 0, 0, + 114, 113, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 117, 5, 0, 0, 1, 117, + 1, 1, 0, 0, 0, 118, 133, 5, 118, 0, 0, 119, 121, 7, 0, 0, 0, 120, 119, + 1, 0, 0, 0, 120, 121, 1, 0, 0, 0, 121, 122, 1, 0, 0, 0, 122, 133, 5, 121, + 0, 0, 123, 125, 7, 0, 0, 0, 124, 123, 1, 0, 0, 0, 124, 125, 1, 0, 0, 0, + 125, 126, 1, 0, 0, 0, 126, 127, 5, 121, 0, 0, 127, 128, 5, 12, 0, 0, 128, + 133, 5, 121, 0, 0, 129, 133, 7, 1, 0, 0, 130, 133, 5, 56, 0, 0, 131, 133, + 5, 122, 0, 0, 132, 118, 1, 0, 0, 0, 132, 120, 1, 0, 0, 0, 132, 124, 1, + 0, 0, 0, 132, 129, 1, 0, 0, 0, 132, 130, 1, 0, 0, 0, 132, 131, 1, 0, 0, + 0, 133, 3, 1, 0, 0, 0, 134, 135, 5, 32, 0, 0, 135, 136, 5, 130, 0, 0, 136, + 139, 5, 32, 0, 0, 137, 139, 5, 130, 0, 0, 138, 134, 1, 0, 0, 0, 138, 137, + 1, 0, 0, 0, 139, 5, 1, 0, 0, 0, 140, 145, 3, 4, 2, 0, 141, 142, 5, 9, 0, + 0, 142, 144, 3, 4, 2, 0, 143, 141, 1, 0, 0, 0, 144, 147, 1, 0, 0, 0, 145, + 143, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146, 7, 1, 0, 0, 0, 147, 145, 1, + 0, 0, 0, 148, 154, 5, 130, 0, 0, 149, 150, 5, 7, 0, 0, 150, 151, 5, 121, + 0, 0, 151, 152, 5, 9, 0, 0, 152, 153, 5, 121, 0, 0, 153, 155, 5, 8, 0, + 0, 154, 149, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 155, 158, 1, 0, 0, 0, 156, + 157, 5, 3, 0, 0, 157, 159, 5, 4, 0, 0, 158, 156, 1, 0, 0, 0, 158, 159, + 1, 0, 0, 0, 159, 9, 1, 0, 0, 0, 160, 161, 5, 28, 0, 0, 161, 162, 3, 8, + 4, 0, 162, 11, 1, 0, 0, 0, 163, 164, 7, 2, 0, 0, 164, 13, 1, 0, 0, 0, 165, + 170, 3, 12, 6, 0, 166, 167, 5, 9, 0, 0, 167, 169, 3, 12, 6, 0, 168, 166, + 1, 0, 0, 0, 169, 172, 1, 0, 0, 0, 170, 168, 1, 0, 0, 0, 170, 171, 1, 0, + 0, 0, 171, 15, 1, 0, 0, 0, 172, 170, 1, 0, 0, 0, 173, 181, 3, 20, 10, 0, + 174, 180, 3, 22, 11, 0, 175, 180, 3, 24, 12, 0, 176, 180, 3, 44, 22, 0, + 177, 180, 3, 46, 23, 0, 178, 180, 3, 48, 24, 0, 179, 174, 1, 0, 0, 0, 179, + 175, 1, 0, 0, 0, 179, 176, 1, 0, 0, 0, 179, 177, 1, 0, 0, 0, 179, 178, + 1, 0, 0, 0, 180, 183, 1, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 182, 1, 0, + 0, 0, 182, 17, 1, 0, 0, 0, 183, 181, 1, 0, 0, 0, 184, 185, 5, 132, 0, 0, + 185, 198, 5, 7, 0, 0, 186, 187, 5, 130, 0, 0, 187, 188, 5, 15, 0, 0, 188, + 195, 3, 2, 1, 0, 189, 190, 5, 9, 0, 0, 190, 191, 5, 130, 0, 0, 191, 192, + 5, 15, 0, 0, 192, 194, 3, 2, 1, 0, 193, 189, 1, 0, 0, 0, 194, 197, 1, 0, + 0, 0, 195, 193, 1, 0, 0, 0, 195, 196, 1, 0, 0, 0, 196, 199, 1, 0, 0, 0, + 197, 195, 1, 0, 0, 0, 198, 186, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, + 200, 1, 0, 0, 0, 200, 201, 5, 8, 0, 0, 201, 19, 1, 0, 0, 0, 202, 203, 5, + 33, 0, 0, 203, 204, 5, 130, 0, 0, 204, 205, 5, 6, 0, 0, 205, 21, 1, 0, + 0, 0, 206, 207, 5, 34, 0, 0, 207, 223, 5, 130, 0, 0, 208, 209, 5, 1, 0, + 0, 209, 210, 5, 130, 0, 0, 210, 211, 5, 5, 0, 0, 211, 218, 3, 2, 1, 0, + 212, 213, 5, 9, 0, 0, 213, 214, 5, 130, 0, 0, 214, 215, 5, 5, 0, 0, 215, + 217, 3, 2, 1, 0, 216, 212, 1, 0, 0, 0, 217, 220, 1, 0, 0, 0, 218, 216, + 1, 0, 0, 0, 218, 219, 1, 0, 0, 0, 219, 221, 1, 0, 0, 0, 220, 218, 1, 0, + 0, 0, 221, 222, 5, 2, 0, 0, 222, 224, 1, 0, 0, 0, 223, 208, 1, 0, 0, 0, + 223, 224, 1, 0, 0, 0, 224, 225, 1, 0, 0, 0, 225, 226, 5, 76, 0, 0, 226, + 227, 5, 130, 0, 0, 227, 228, 5, 6, 0, 0, 228, 23, 1, 0, 0, 0, 229, 230, + 5, 35, 0, 0, 230, 231, 5, 130, 0, 0, 231, 232, 5, 1, 0, 0, 232, 241, 3, + 26, 13, 0, 233, 237, 5, 9, 0, 0, 234, 238, 3, 26, 13, 0, 235, 238, 3, 28, + 14, 0, 236, 238, 3, 30, 15, 0, 237, 234, 1, 0, 0, 0, 237, 235, 1, 0, 0, + 0, 237, 236, 1, 0, 0, 0, 238, 240, 1, 0, 0, 0, 239, 233, 1, 0, 0, 0, 240, + 243, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 244, + 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 244, 245, 5, 2, 0, 0, 245, 25, 1, 0, + 0, 0, 246, 247, 5, 130, 0, 0, 247, 251, 3, 8, 4, 0, 248, 250, 3, 40, 20, + 0, 249, 248, 1, 0, 0, 0, 250, 253, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 251, + 252, 1, 0, 0, 0, 252, 27, 1, 0, 0, 0, 253, 251, 1, 0, 0, 0, 254, 255, 5, + 133, 0, 0, 255, 256, 7, 3, 0, 0, 256, 257, 5, 7, 0, 0, 257, 258, 3, 6, + 3, 0, 258, 259, 5, 8, 0, 0, 259, 29, 1, 0, 0, 0, 260, 261, 5, 47, 0, 0, + 261, 264, 5, 49, 0, 0, 262, 264, 5, 124, 0, 0, 263, 260, 1, 0, 0, 0, 263, + 262, 1, 0, 0, 0, 264, 265, 1, 0, 0, 0, 265, 266, 5, 7, 0, 0, 266, 267, + 3, 6, 3, 0, 267, 268, 5, 8, 0, 0, 268, 269, 7, 4, 0, 0, 269, 270, 5, 130, + 0, 0, 270, 271, 5, 7, 0, 0, 271, 272, 3, 6, 3, 0, 272, 276, 5, 8, 0, 0, + 273, 275, 3, 32, 16, 0, 274, 273, 1, 0, 0, 0, 275, 278, 1, 0, 0, 0, 276, + 274, 1, 0, 0, 0, 276, 277, 1, 0, 0, 0, 277, 31, 1, 0, 0, 0, 278, 276, 1, + 0, 0, 0, 279, 280, 5, 50, 0, 0, 280, 283, 5, 58, 0, 0, 281, 283, 5, 125, + 0, 0, 282, 279, 1, 0, 0, 0, 282, 281, 1, 0, 0, 0, 283, 290, 1, 0, 0, 0, + 284, 285, 5, 50, 0, 0, 285, 288, 5, 57, 0, 0, 286, 288, 5, 126, 0, 0, 287, + 284, 1, 0, 0, 0, 287, 286, 1, 0, 0, 0, 288, 290, 1, 0, 0, 0, 289, 282, + 1, 0, 0, 0, 289, 287, 1, 0, 0, 0, 290, 292, 1, 0, 0, 0, 291, 293, 5, 51, + 0, 0, 292, 291, 1, 0, 0, 0, 292, 293, 1, 0, 0, 0, 293, 311, 1, 0, 0, 0, + 294, 295, 5, 86, 0, 0, 295, 298, 5, 36, 0, 0, 296, 298, 5, 129, 0, 0, 297, + 294, 1, 0, 0, 0, 297, 296, 1, 0, 0, 0, 298, 312, 1, 0, 0, 0, 299, 312, + 5, 52, 0, 0, 300, 301, 5, 54, 0, 0, 301, 304, 5, 56, 0, 0, 302, 304, 5, + 128, 0, 0, 303, 300, 1, 0, 0, 0, 303, 302, 1, 0, 0, 0, 304, 312, 1, 0, + 0, 0, 305, 306, 5, 54, 0, 0, 306, 309, 5, 55, 0, 0, 307, 309, 5, 127, 0, + 0, 308, 305, 1, 0, 0, 0, 308, 307, 1, 0, 0, 0, 309, 312, 1, 0, 0, 0, 310, + 312, 5, 53, 0, 0, 311, 297, 1, 0, 0, 0, 311, 299, 1, 0, 0, 0, 311, 303, + 1, 0, 0, 0, 311, 308, 1, 0, 0, 0, 311, 310, 1, 0, 0, 0, 312, 33, 1, 0, + 0, 0, 313, 318, 3, 8, 4, 0, 314, 315, 5, 9, 0, 0, 315, 317, 3, 8, 4, 0, + 316, 314, 1, 0, 0, 0, 317, 320, 1, 0, 0, 0, 318, 316, 1, 0, 0, 0, 318, + 319, 1, 0, 0, 0, 319, 35, 1, 0, 0, 0, 320, 318, 1, 0, 0, 0, 321, 322, 5, + 130, 0, 0, 322, 328, 3, 8, 4, 0, 323, 324, 5, 9, 0, 0, 324, 325, 5, 130, + 0, 0, 325, 327, 3, 8, 4, 0, 326, 323, 1, 0, 0, 0, 327, 330, 1, 0, 0, 0, + 328, 326, 1, 0, 0, 0, 328, 329, 1, 0, 0, 0, 329, 37, 1, 0, 0, 0, 330, 328, + 1, 0, 0, 0, 331, 332, 3, 12, 6, 0, 332, 339, 3, 8, 4, 0, 333, 334, 5, 9, + 0, 0, 334, 335, 3, 12, 6, 0, 335, 336, 3, 8, 4, 0, 336, 338, 1, 0, 0, 0, + 337, 333, 1, 0, 0, 0, 338, 341, 1, 0, 0, 0, 339, 337, 1, 0, 0, 0, 339, + 340, 1, 0, 0, 0, 340, 39, 1, 0, 0, 0, 341, 339, 1, 0, 0, 0, 342, 343, 5, + 42, 0, 0, 343, 344, 5, 7, 0, 0, 344, 345, 3, 2, 1, 0, 345, 346, 5, 8, 0, + 0, 346, 381, 1, 0, 0, 0, 347, 348, 5, 43, 0, 0, 348, 349, 5, 7, 0, 0, 349, + 350, 3, 2, 1, 0, 350, 351, 5, 8, 0, 0, 351, 381, 1, 0, 0, 0, 352, 353, + 5, 44, 0, 0, 353, 354, 5, 7, 0, 0, 354, 355, 3, 2, 1, 0, 355, 356, 5, 8, + 0, 0, 356, 381, 1, 0, 0, 0, 357, 358, 5, 45, 0, 0, 358, 359, 5, 7, 0, 0, + 359, 360, 3, 2, 1, 0, 360, 361, 5, 8, 0, 0, 361, 381, 1, 0, 0, 0, 362, + 366, 5, 87, 0, 0, 363, 364, 5, 61, 0, 0, 364, 366, 5, 56, 0, 0, 365, 362, + 1, 0, 0, 0, 365, 363, 1, 0, 0, 0, 366, 381, 1, 0, 0, 0, 367, 373, 5, 123, + 0, 0, 368, 370, 5, 48, 0, 0, 369, 371, 5, 49, 0, 0, 370, 369, 1, 0, 0, + 0, 370, 371, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 367, 1, 0, 0, 0, 372, + 368, 1, 0, 0, 0, 373, 381, 1, 0, 0, 0, 374, 375, 5, 55, 0, 0, 375, 376, + 5, 7, 0, 0, 376, 377, 3, 2, 1, 0, 377, 378, 5, 8, 0, 0, 378, 381, 1, 0, + 0, 0, 379, 381, 5, 46, 0, 0, 380, 342, 1, 0, 0, 0, 380, 347, 1, 0, 0, 0, + 380, 352, 1, 0, 0, 0, 380, 357, 1, 0, 0, 0, 380, 365, 1, 0, 0, 0, 380, + 372, 1, 0, 0, 0, 380, 374, 1, 0, 0, 0, 380, 379, 1, 0, 0, 0, 381, 41, 1, + 0, 0, 0, 382, 383, 7, 5, 0, 0, 383, 43, 1, 0, 0, 0, 384, 386, 3, 18, 9, + 0, 385, 384, 1, 0, 0, 0, 386, 389, 1, 0, 0, 0, 387, 385, 1, 0, 0, 0, 387, + 388, 1, 0, 0, 0, 388, 390, 1, 0, 0, 0, 389, 387, 1, 0, 0, 0, 390, 391, + 5, 36, 0, 0, 391, 392, 5, 130, 0, 0, 392, 394, 5, 7, 0, 0, 393, 395, 3, + 14, 7, 0, 394, 393, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 396, 1, 0, 0, + 0, 396, 398, 5, 8, 0, 0, 397, 399, 3, 42, 21, 0, 398, 397, 1, 0, 0, 0, + 399, 400, 1, 0, 0, 0, 400, 398, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, + 402, 1, 0, 0, 0, 402, 403, 5, 1, 0, 0, 403, 404, 3, 90, 45, 0, 404, 405, + 5, 2, 0, 0, 405, 45, 1, 0, 0, 0, 406, 408, 3, 18, 9, 0, 407, 406, 1, 0, + 0, 0, 408, 411, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, + 410, 412, 1, 0, 0, 0, 411, 409, 1, 0, 0, 0, 412, 413, 5, 37, 0, 0, 413, + 414, 5, 130, 0, 0, 414, 416, 5, 7, 0, 0, 415, 417, 3, 38, 19, 0, 416, 415, + 1, 0, 0, 0, 416, 417, 1, 0, 0, 0, 417, 418, 1, 0, 0, 0, 418, 420, 5, 8, + 0, 0, 419, 421, 3, 42, 21, 0, 420, 419, 1, 0, 0, 0, 421, 422, 1, 0, 0, + 0, 422, 420, 1, 0, 0, 0, 422, 423, 1, 0, 0, 0, 423, 425, 1, 0, 0, 0, 424, + 426, 3, 50, 25, 0, 425, 424, 1, 0, 0, 0, 425, 426, 1, 0, 0, 0, 426, 427, + 1, 0, 0, 0, 427, 428, 5, 1, 0, 0, 428, 429, 3, 94, 47, 0, 429, 430, 5, + 2, 0, 0, 430, 47, 1, 0, 0, 0, 431, 432, 5, 47, 0, 0, 432, 433, 5, 37, 0, + 0, 433, 434, 5, 130, 0, 0, 434, 437, 5, 7, 0, 0, 435, 438, 3, 34, 17, 0, + 436, 438, 3, 38, 19, 0, 437, 435, 1, 0, 0, 0, 437, 436, 1, 0, 0, 0, 437, + 438, 1, 0, 0, 0, 438, 439, 1, 0, 0, 0, 439, 441, 5, 8, 0, 0, 440, 442, + 3, 50, 25, 0, 441, 440, 1, 0, 0, 0, 441, 442, 1, 0, 0, 0, 442, 49, 1, 0, + 0, 0, 443, 455, 5, 85, 0, 0, 444, 446, 5, 35, 0, 0, 445, 444, 1, 0, 0, + 0, 445, 446, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 448, 5, 7, 0, 0, 448, + 449, 3, 36, 18, 0, 449, 450, 5, 8, 0, 0, 450, 456, 1, 0, 0, 0, 451, 452, + 5, 7, 0, 0, 452, 453, 3, 34, 17, 0, 453, 454, 5, 8, 0, 0, 454, 456, 1, + 0, 0, 0, 455, 445, 1, 0, 0, 0, 455, 451, 1, 0, 0, 0, 456, 51, 1, 0, 0, + 0, 457, 458, 3, 54, 27, 0, 458, 459, 5, 6, 0, 0, 459, 53, 1, 0, 0, 0, 460, + 461, 5, 88, 0, 0, 461, 466, 3, 56, 28, 0, 462, 463, 5, 9, 0, 0, 463, 465, + 3, 56, 28, 0, 464, 462, 1, 0, 0, 0, 465, 468, 1, 0, 0, 0, 466, 464, 1, + 0, 0, 0, 466, 467, 1, 0, 0, 0, 467, 470, 1, 0, 0, 0, 468, 466, 1, 0, 0, + 0, 469, 460, 1, 0, 0, 0, 469, 470, 1, 0, 0, 0, 470, 475, 1, 0, 0, 0, 471, + 476, 3, 58, 29, 0, 472, 476, 3, 72, 36, 0, 473, 476, 3, 76, 38, 0, 474, + 476, 3, 80, 40, 0, 475, 471, 1, 0, 0, 0, 475, 472, 1, 0, 0, 0, 475, 473, + 1, 0, 0, 0, 475, 474, 1, 0, 0, 0, 476, 55, 1, 0, 0, 0, 477, 478, 3, 4, + 2, 0, 478, 487, 5, 7, 0, 0, 479, 484, 3, 4, 2, 0, 480, 481, 5, 9, 0, 0, + 481, 483, 3, 4, 2, 0, 482, 480, 1, 0, 0, 0, 483, 486, 1, 0, 0, 0, 484, + 482, 1, 0, 0, 0, 484, 485, 1, 0, 0, 0, 485, 488, 1, 0, 0, 0, 486, 484, + 1, 0, 0, 0, 487, 479, 1, 0, 0, 0, 487, 488, 1, 0, 0, 0, 488, 489, 1, 0, + 0, 0, 489, 490, 5, 8, 0, 0, 490, 491, 5, 76, 0, 0, 491, 492, 5, 7, 0, 0, + 492, 493, 3, 58, 29, 0, 493, 494, 5, 8, 0, 0, 494, 57, 1, 0, 0, 0, 495, + 501, 3, 64, 32, 0, 496, 497, 3, 60, 30, 0, 497, 498, 3, 64, 32, 0, 498, + 500, 1, 0, 0, 0, 499, 496, 1, 0, 0, 0, 500, 503, 1, 0, 0, 0, 501, 499, + 1, 0, 0, 0, 501, 502, 1, 0, 0, 0, 502, 514, 1, 0, 0, 0, 503, 501, 1, 0, + 0, 0, 504, 505, 5, 81, 0, 0, 505, 506, 5, 82, 0, 0, 506, 511, 3, 62, 31, + 0, 507, 508, 5, 9, 0, 0, 508, 510, 3, 62, 31, 0, 509, 507, 1, 0, 0, 0, + 510, 513, 1, 0, 0, 0, 511, 509, 1, 0, 0, 0, 511, 512, 1, 0, 0, 0, 512, + 515, 1, 0, 0, 0, 513, 511, 1, 0, 0, 0, 514, 504, 1, 0, 0, 0, 514, 515, + 1, 0, 0, 0, 515, 518, 1, 0, 0, 0, 516, 517, 5, 79, 0, 0, 517, 519, 3, 82, + 41, 0, 518, 516, 1, 0, 0, 0, 518, 519, 1, 0, 0, 0, 519, 522, 1, 0, 0, 0, + 520, 521, 5, 80, 0, 0, 521, 523, 3, 82, 41, 0, 522, 520, 1, 0, 0, 0, 522, + 523, 1, 0, 0, 0, 523, 59, 1, 0, 0, 0, 524, 526, 5, 101, 0, 0, 525, 527, + 5, 70, 0, 0, 526, 525, 1, 0, 0, 0, 526, 527, 1, 0, 0, 0, 527, 531, 1, 0, + 0, 0, 528, 531, 5, 102, 0, 0, 529, 531, 5, 103, 0, 0, 530, 524, 1, 0, 0, + 0, 530, 528, 1, 0, 0, 0, 530, 529, 1, 0, 0, 0, 531, 61, 1, 0, 0, 0, 532, + 534, 3, 82, 41, 0, 533, 535, 7, 6, 0, 0, 534, 533, 1, 0, 0, 0, 534, 535, + 1, 0, 0, 0, 535, 538, 1, 0, 0, 0, 536, 537, 5, 104, 0, 0, 537, 539, 7, + 7, 0, 0, 538, 536, 1, 0, 0, 0, 538, 539, 1, 0, 0, 0, 539, 63, 1, 0, 0, + 0, 540, 542, 5, 97, 0, 0, 541, 543, 5, 93, 0, 0, 542, 541, 1, 0, 0, 0, + 542, 543, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 549, 3, 70, 35, 0, 545, + 546, 5, 9, 0, 0, 546, 548, 3, 70, 35, 0, 547, 545, 1, 0, 0, 0, 548, 551, + 1, 0, 0, 0, 549, 547, 1, 0, 0, 0, 549, 550, 1, 0, 0, 0, 550, 560, 1, 0, + 0, 0, 551, 549, 1, 0, 0, 0, 552, 553, 5, 94, 0, 0, 553, 557, 3, 66, 33, + 0, 554, 556, 3, 68, 34, 0, 555, 554, 1, 0, 0, 0, 556, 559, 1, 0, 0, 0, + 557, 555, 1, 0, 0, 0, 557, 558, 1, 0, 0, 0, 558, 561, 1, 0, 0, 0, 559, + 557, 1, 0, 0, 0, 560, 552, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 564, + 1, 0, 0, 0, 562, 563, 5, 95, 0, 0, 563, 565, 3, 82, 41, 0, 564, 562, 1, + 0, 0, 0, 564, 565, 1, 0, 0, 0, 565, 573, 1, 0, 0, 0, 566, 567, 5, 83, 0, + 0, 567, 568, 5, 82, 0, 0, 568, 571, 3, 86, 43, 0, 569, 570, 5, 84, 0, 0, + 570, 572, 3, 82, 41, 0, 571, 569, 1, 0, 0, 0, 571, 572, 1, 0, 0, 0, 572, + 574, 1, 0, 0, 0, 573, 566, 1, 0, 0, 0, 573, 574, 1, 0, 0, 0, 574, 65, 1, + 0, 0, 0, 575, 580, 3, 4, 2, 0, 576, 578, 5, 76, 0, 0, 577, 576, 1, 0, 0, + 0, 577, 578, 1, 0, 0, 0, 578, 579, 1, 0, 0, 0, 579, 581, 3, 4, 2, 0, 580, + 577, 1, 0, 0, 0, 580, 581, 1, 0, 0, 0, 581, 599, 1, 0, 0, 0, 582, 583, + 5, 7, 0, 0, 583, 584, 3, 58, 29, 0, 584, 589, 5, 8, 0, 0, 585, 587, 5, + 76, 0, 0, 586, 585, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 588, 1, 0, 0, + 0, 588, 590, 3, 4, 2, 0, 589, 586, 1, 0, 0, 0, 589, 590, 1, 0, 0, 0, 590, + 599, 1, 0, 0, 0, 591, 593, 3, 88, 44, 0, 592, 594, 5, 76, 0, 0, 593, 592, + 1, 0, 0, 0, 593, 594, 1, 0, 0, 0, 594, 596, 1, 0, 0, 0, 595, 597, 3, 4, + 2, 0, 596, 595, 1, 0, 0, 0, 596, 597, 1, 0, 0, 0, 597, 599, 1, 0, 0, 0, + 598, 575, 1, 0, 0, 0, 598, 582, 1, 0, 0, 0, 598, 591, 1, 0, 0, 0, 599, + 67, 1, 0, 0, 0, 600, 601, 7, 8, 0, 0, 601, 602, 5, 72, 0, 0, 602, 603, + 3, 66, 33, 0, 603, 604, 5, 50, 0, 0, 604, 605, 3, 82, 41, 0, 605, 69, 1, + 0, 0, 0, 606, 611, 3, 82, 41, 0, 607, 609, 5, 76, 0, 0, 608, 607, 1, 0, + 0, 0, 608, 609, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 612, 3, 4, 2, 0, + 611, 608, 1, 0, 0, 0, 611, 612, 1, 0, 0, 0, 612, 620, 1, 0, 0, 0, 613, + 614, 3, 4, 2, 0, 614, 615, 5, 12, 0, 0, 615, 617, 1, 0, 0, 0, 616, 613, + 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 1, 0, 0, 0, 618, 620, 5, 14, + 0, 0, 619, 606, 1, 0, 0, 0, 619, 616, 1, 0, 0, 0, 620, 71, 1, 0, 0, 0, + 621, 622, 5, 58, 0, 0, 622, 625, 3, 4, 2, 0, 623, 624, 5, 76, 0, 0, 624, + 626, 3, 4, 2, 0, 625, 623, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 627, + 1, 0, 0, 0, 627, 628, 5, 54, 0, 0, 628, 633, 3, 74, 37, 0, 629, 630, 5, + 9, 0, 0, 630, 632, 3, 74, 37, 0, 631, 629, 1, 0, 0, 0, 632, 635, 1, 0, + 0, 0, 633, 631, 1, 0, 0, 0, 633, 634, 1, 0, 0, 0, 634, 644, 1, 0, 0, 0, + 635, 633, 1, 0, 0, 0, 636, 637, 5, 94, 0, 0, 637, 641, 3, 66, 33, 0, 638, + 640, 3, 68, 34, 0, 639, 638, 1, 0, 0, 0, 640, 643, 1, 0, 0, 0, 641, 639, + 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 645, 1, 0, 0, 0, 643, 641, 1, 0, + 0, 0, 644, 636, 1, 0, 0, 0, 644, 645, 1, 0, 0, 0, 645, 648, 1, 0, 0, 0, + 646, 647, 5, 95, 0, 0, 647, 649, 3, 82, 41, 0, 648, 646, 1, 0, 0, 0, 648, + 649, 1, 0, 0, 0, 649, 73, 1, 0, 0, 0, 650, 651, 3, 4, 2, 0, 651, 652, 5, + 15, 0, 0, 652, 653, 3, 82, 41, 0, 653, 75, 1, 0, 0, 0, 654, 655, 5, 98, + 0, 0, 655, 656, 5, 108, 0, 0, 656, 659, 3, 4, 2, 0, 657, 658, 5, 76, 0, + 0, 658, 660, 3, 4, 2, 0, 659, 657, 1, 0, 0, 0, 659, 660, 1, 0, 0, 0, 660, + 665, 1, 0, 0, 0, 661, 662, 5, 7, 0, 0, 662, 663, 3, 6, 3, 0, 663, 664, + 5, 8, 0, 0, 664, 666, 1, 0, 0, 0, 665, 661, 1, 0, 0, 0, 665, 666, 1, 0, + 0, 0, 666, 667, 1, 0, 0, 0, 667, 668, 5, 99, 0, 0, 668, 669, 5, 7, 0, 0, + 669, 670, 3, 86, 43, 0, 670, 678, 5, 8, 0, 0, 671, 672, 5, 9, 0, 0, 672, + 673, 5, 7, 0, 0, 673, 674, 3, 86, 43, 0, 674, 675, 5, 8, 0, 0, 675, 677, + 1, 0, 0, 0, 676, 671, 1, 0, 0, 0, 677, 680, 1, 0, 0, 0, 678, 676, 1, 0, + 0, 0, 678, 679, 1, 0, 0, 0, 679, 682, 1, 0, 0, 0, 680, 678, 1, 0, 0, 0, + 681, 683, 3, 78, 39, 0, 682, 681, 1, 0, 0, 0, 682, 683, 1, 0, 0, 0, 683, + 77, 1, 0, 0, 0, 684, 685, 5, 50, 0, 0, 685, 693, 5, 109, 0, 0, 686, 687, + 5, 7, 0, 0, 687, 688, 3, 6, 3, 0, 688, 691, 5, 8, 0, 0, 689, 690, 5, 95, + 0, 0, 690, 692, 3, 82, 41, 0, 691, 689, 1, 0, 0, 0, 691, 692, 1, 0, 0, + 0, 692, 694, 1, 0, 0, 0, 693, 686, 1, 0, 0, 0, 693, 694, 1, 0, 0, 0, 694, + 695, 1, 0, 0, 0, 695, 711, 5, 51, 0, 0, 696, 712, 5, 110, 0, 0, 697, 698, + 5, 58, 0, 0, 698, 699, 5, 54, 0, 0, 699, 704, 3, 74, 37, 0, 700, 701, 5, + 9, 0, 0, 701, 703, 3, 74, 37, 0, 702, 700, 1, 0, 0, 0, 703, 706, 1, 0, + 0, 0, 704, 702, 1, 0, 0, 0, 704, 705, 1, 0, 0, 0, 705, 709, 1, 0, 0, 0, + 706, 704, 1, 0, 0, 0, 707, 708, 5, 95, 0, 0, 708, 710, 3, 82, 41, 0, 709, + 707, 1, 0, 0, 0, 709, 710, 1, 0, 0, 0, 710, 712, 1, 0, 0, 0, 711, 696, + 1, 0, 0, 0, 711, 697, 1, 0, 0, 0, 712, 79, 1, 0, 0, 0, 713, 714, 5, 57, + 0, 0, 714, 715, 5, 94, 0, 0, 715, 718, 3, 4, 2, 0, 716, 717, 5, 76, 0, + 0, 717, 719, 3, 4, 2, 0, 718, 716, 1, 0, 0, 0, 718, 719, 1, 0, 0, 0, 719, + 722, 1, 0, 0, 0, 720, 721, 5, 95, 0, 0, 721, 723, 3, 82, 41, 0, 722, 720, + 1, 0, 0, 0, 722, 723, 1, 0, 0, 0, 723, 81, 1, 0, 0, 0, 724, 725, 6, 41, + -1, 0, 725, 727, 3, 2, 1, 0, 726, 728, 3, 10, 5, 0, 727, 726, 1, 0, 0, + 0, 727, 728, 1, 0, 0, 0, 728, 782, 1, 0, 0, 0, 729, 731, 3, 88, 44, 0, + 730, 732, 3, 10, 5, 0, 731, 730, 1, 0, 0, 0, 731, 732, 1, 0, 0, 0, 732, + 782, 1, 0, 0, 0, 733, 735, 3, 12, 6, 0, 734, 736, 3, 10, 5, 0, 735, 734, + 1, 0, 0, 0, 735, 736, 1, 0, 0, 0, 736, 782, 1, 0, 0, 0, 737, 738, 3, 4, + 2, 0, 738, 739, 5, 12, 0, 0, 739, 741, 1, 0, 0, 0, 740, 737, 1, 0, 0, 0, + 740, 741, 1, 0, 0, 0, 741, 742, 1, 0, 0, 0, 742, 744, 3, 4, 2, 0, 743, + 745, 3, 10, 5, 0, 744, 743, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 782, + 1, 0, 0, 0, 746, 747, 5, 7, 0, 0, 747, 748, 3, 82, 41, 0, 748, 750, 5, + 8, 0, 0, 749, 751, 3, 10, 5, 0, 750, 749, 1, 0, 0, 0, 750, 751, 1, 0, 0, + 0, 751, 782, 1, 0, 0, 0, 752, 753, 7, 9, 0, 0, 753, 782, 3, 82, 41, 10, + 754, 756, 5, 89, 0, 0, 755, 757, 3, 82, 41, 0, 756, 755, 1, 0, 0, 0, 756, + 757, 1, 0, 0, 0, 757, 759, 1, 0, 0, 0, 758, 760, 3, 84, 42, 0, 759, 758, + 1, 0, 0, 0, 760, 761, 1, 0, 0, 0, 761, 759, 1, 0, 0, 0, 761, 762, 1, 0, + 0, 0, 762, 765, 1, 0, 0, 0, 763, 764, 5, 114, 0, 0, 764, 766, 3, 82, 41, + 0, 765, 763, 1, 0, 0, 0, 765, 766, 1, 0, 0, 0, 766, 767, 1, 0, 0, 0, 767, + 768, 5, 92, 0, 0, 768, 782, 1, 0, 0, 0, 769, 771, 5, 61, 0, 0, 770, 769, + 1, 0, 0, 0, 770, 771, 1, 0, 0, 0, 771, 772, 1, 0, 0, 0, 772, 774, 5, 69, + 0, 0, 773, 770, 1, 0, 0, 0, 773, 774, 1, 0, 0, 0, 774, 775, 1, 0, 0, 0, + 775, 776, 5, 7, 0, 0, 776, 777, 3, 58, 29, 0, 777, 779, 5, 8, 0, 0, 778, + 780, 3, 10, 5, 0, 779, 778, 1, 0, 0, 0, 779, 780, 1, 0, 0, 0, 780, 782, + 1, 0, 0, 0, 781, 724, 1, 0, 0, 0, 781, 729, 1, 0, 0, 0, 781, 733, 1, 0, + 0, 0, 781, 740, 1, 0, 0, 0, 781, 746, 1, 0, 0, 0, 781, 752, 1, 0, 0, 0, + 781, 754, 1, 0, 0, 0, 781, 773, 1, 0, 0, 0, 782, 859, 1, 0, 0, 0, 783, + 784, 10, 13, 0, 0, 784, 785, 7, 10, 0, 0, 785, 858, 3, 82, 41, 14, 786, + 788, 10, 11, 0, 0, 787, 789, 5, 61, 0, 0, 788, 787, 1, 0, 0, 0, 788, 789, + 1, 0, 0, 0, 789, 790, 1, 0, 0, 0, 790, 791, 5, 65, 0, 0, 791, 858, 3, 82, + 41, 12, 792, 794, 10, 9, 0, 0, 793, 795, 5, 61, 0, 0, 794, 793, 1, 0, 0, + 0, 794, 795, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 797, 5, 67, 0, 0, 797, + 798, 3, 82, 41, 0, 798, 799, 5, 63, 0, 0, 799, 800, 3, 82, 41, 10, 800, + 858, 1, 0, 0, 0, 801, 802, 10, 5, 0, 0, 802, 803, 5, 13, 0, 0, 803, 858, + 3, 82, 41, 6, 804, 805, 10, 4, 0, 0, 805, 806, 7, 11, 0, 0, 806, 858, 3, + 82, 41, 5, 807, 808, 10, 3, 0, 0, 808, 809, 7, 0, 0, 0, 809, 858, 3, 82, + 41, 4, 810, 811, 10, 2, 0, 0, 811, 812, 5, 63, 0, 0, 812, 858, 3, 82, 41, + 3, 813, 814, 10, 1, 0, 0, 814, 815, 5, 64, 0, 0, 815, 858, 3, 82, 41, 2, + 816, 817, 10, 20, 0, 0, 817, 818, 5, 96, 0, 0, 818, 858, 3, 4, 2, 0, 819, + 820, 10, 16, 0, 0, 820, 821, 5, 3, 0, 0, 821, 822, 3, 82, 41, 0, 822, 824, + 5, 4, 0, 0, 823, 825, 3, 10, 5, 0, 824, 823, 1, 0, 0, 0, 824, 825, 1, 0, + 0, 0, 825, 858, 1, 0, 0, 0, 826, 827, 10, 15, 0, 0, 827, 828, 5, 12, 0, + 0, 828, 830, 3, 4, 2, 0, 829, 831, 3, 10, 5, 0, 830, 829, 1, 0, 0, 0, 830, + 831, 1, 0, 0, 0, 831, 858, 1, 0, 0, 0, 832, 834, 10, 12, 0, 0, 833, 835, + 5, 61, 0, 0, 834, 833, 1, 0, 0, 0, 834, 835, 1, 0, 0, 0, 835, 836, 1, 0, + 0, 0, 836, 837, 5, 66, 0, 0, 837, 840, 5, 7, 0, 0, 838, 841, 3, 86, 43, + 0, 839, 841, 3, 58, 29, 0, 840, 838, 1, 0, 0, 0, 840, 839, 1, 0, 0, 0, + 841, 842, 1, 0, 0, 0, 842, 843, 5, 8, 0, 0, 843, 858, 1, 0, 0, 0, 844, + 845, 10, 8, 0, 0, 845, 847, 5, 68, 0, 0, 846, 848, 5, 61, 0, 0, 847, 846, + 1, 0, 0, 0, 847, 848, 1, 0, 0, 0, 848, 855, 1, 0, 0, 0, 849, 850, 5, 93, + 0, 0, 850, 851, 5, 94, 0, 0, 851, 856, 3, 82, 41, 0, 852, 856, 5, 56, 0, + 0, 853, 856, 5, 119, 0, 0, 854, 856, 5, 120, 0, 0, 855, 849, 1, 0, 0, 0, + 855, 852, 1, 0, 0, 0, 855, 853, 1, 0, 0, 0, 855, 854, 1, 0, 0, 0, 856, + 858, 1, 0, 0, 0, 857, 783, 1, 0, 0, 0, 857, 786, 1, 0, 0, 0, 857, 792, + 1, 0, 0, 0, 857, 801, 1, 0, 0, 0, 857, 804, 1, 0, 0, 0, 857, 807, 1, 0, + 0, 0, 857, 810, 1, 0, 0, 0, 857, 813, 1, 0, 0, 0, 857, 816, 1, 0, 0, 0, + 857, 819, 1, 0, 0, 0, 857, 826, 1, 0, 0, 0, 857, 832, 1, 0, 0, 0, 857, + 844, 1, 0, 0, 0, 858, 861, 1, 0, 0, 0, 859, 857, 1, 0, 0, 0, 859, 860, + 1, 0, 0, 0, 860, 83, 1, 0, 0, 0, 861, 859, 1, 0, 0, 0, 862, 863, 5, 90, + 0, 0, 863, 864, 3, 82, 41, 0, 864, 865, 5, 91, 0, 0, 865, 866, 3, 82, 41, + 0, 866, 85, 1, 0, 0, 0, 867, 872, 3, 82, 41, 0, 868, 869, 5, 9, 0, 0, 869, + 871, 3, 82, 41, 0, 870, 868, 1, 0, 0, 0, 871, 874, 1, 0, 0, 0, 872, 870, + 1, 0, 0, 0, 872, 873, 1, 0, 0, 0, 873, 87, 1, 0, 0, 0, 874, 872, 1, 0, + 0, 0, 875, 876, 3, 4, 2, 0, 876, 882, 5, 7, 0, 0, 877, 879, 5, 93, 0, 0, + 878, 877, 1, 0, 0, 0, 878, 879, 1, 0, 0, 0, 879, 880, 1, 0, 0, 0, 880, + 883, 3, 86, 43, 0, 881, 883, 5, 14, 0, 0, 882, 878, 1, 0, 0, 0, 882, 881, + 1, 0, 0, 0, 882, 883, 1, 0, 0, 0, 883, 884, 1, 0, 0, 0, 884, 885, 5, 8, + 0, 0, 885, 899, 1, 0, 0, 0, 886, 887, 3, 4, 2, 0, 887, 888, 5, 3, 0, 0, + 888, 889, 3, 82, 41, 0, 889, 890, 5, 9, 0, 0, 890, 891, 3, 82, 41, 0, 891, + 892, 5, 4, 0, 0, 892, 894, 5, 7, 0, 0, 893, 895, 3, 86, 43, 0, 894, 893, + 1, 0, 0, 0, 894, 895, 1, 0, 0, 0, 895, 896, 1, 0, 0, 0, 896, 897, 5, 8, + 0, 0, 897, 899, 1, 0, 0, 0, 898, 875, 1, 0, 0, 0, 898, 886, 1, 0, 0, 0, + 899, 89, 1, 0, 0, 0, 900, 901, 3, 92, 46, 0, 901, 902, 5, 6, 0, 0, 902, + 904, 1, 0, 0, 0, 903, 900, 1, 0, 0, 0, 904, 907, 1, 0, 0, 0, 905, 903, + 1, 0, 0, 0, 905, 906, 1, 0, 0, 0, 906, 91, 1, 0, 0, 0, 907, 905, 1, 0, + 0, 0, 908, 929, 3, 54, 27, 0, 909, 910, 5, 130, 0, 0, 910, 912, 5, 7, 0, + 0, 911, 913, 3, 98, 49, 0, 912, 911, 1, 0, 0, 0, 912, 913, 1, 0, 0, 0, + 913, 914, 1, 0, 0, 0, 914, 929, 5, 8, 0, 0, 915, 916, 3, 14, 7, 0, 916, + 917, 5, 15, 0, 0, 917, 919, 1, 0, 0, 0, 918, 915, 1, 0, 0, 0, 918, 919, + 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 921, 5, 130, 0, 0, 921, 922, 5, + 12, 0, 0, 922, 923, 5, 130, 0, 0, 923, 925, 5, 7, 0, 0, 924, 926, 3, 98, + 49, 0, 925, 924, 1, 0, 0, 0, 925, 926, 1, 0, 0, 0, 926, 927, 1, 0, 0, 0, + 927, 929, 5, 8, 0, 0, 928, 908, 1, 0, 0, 0, 928, 909, 1, 0, 0, 0, 928, + 918, 1, 0, 0, 0, 929, 93, 1, 0, 0, 0, 930, 932, 3, 100, 50, 0, 931, 930, + 1, 0, 0, 0, 932, 935, 1, 0, 0, 0, 933, 931, 1, 0, 0, 0, 933, 934, 1, 0, + 0, 0, 934, 95, 1, 0, 0, 0, 935, 933, 1, 0, 0, 0, 936, 937, 6, 48, -1, 0, + 937, 939, 3, 2, 1, 0, 938, 940, 3, 10, 5, 0, 939, 938, 1, 0, 0, 0, 939, + 940, 1, 0, 0, 0, 940, 966, 1, 0, 0, 0, 941, 943, 3, 104, 52, 0, 942, 944, + 3, 10, 5, 0, 943, 942, 1, 0, 0, 0, 943, 944, 1, 0, 0, 0, 944, 966, 1, 0, + 0, 0, 945, 947, 3, 12, 6, 0, 946, 948, 3, 10, 5, 0, 947, 946, 1, 0, 0, + 0, 947, 948, 1, 0, 0, 0, 948, 966, 1, 0, 0, 0, 949, 951, 5, 3, 0, 0, 950, + 952, 3, 98, 49, 0, 951, 950, 1, 0, 0, 0, 951, 952, 1, 0, 0, 0, 952, 953, + 1, 0, 0, 0, 953, 955, 5, 4, 0, 0, 954, 956, 3, 10, 5, 0, 955, 954, 1, 0, + 0, 0, 955, 956, 1, 0, 0, 0, 956, 966, 1, 0, 0, 0, 957, 958, 5, 7, 0, 0, + 958, 959, 3, 96, 48, 0, 959, 961, 5, 8, 0, 0, 960, 962, 3, 10, 5, 0, 961, + 960, 1, 0, 0, 0, 961, 962, 1, 0, 0, 0, 962, 966, 1, 0, 0, 0, 963, 964, + 7, 12, 0, 0, 964, 966, 3, 96, 48, 4, 965, 936, 1, 0, 0, 0, 965, 941, 1, + 0, 0, 0, 965, 945, 1, 0, 0, 0, 965, 949, 1, 0, 0, 0, 965, 957, 1, 0, 0, + 0, 965, 963, 1, 0, 0, 0, 966, 994, 1, 0, 0, 0, 967, 968, 10, 5, 0, 0, 968, + 969, 7, 10, 0, 0, 969, 993, 3, 96, 48, 6, 970, 971, 10, 3, 0, 0, 971, 972, + 5, 13, 0, 0, 972, 993, 3, 96, 48, 4, 973, 974, 10, 2, 0, 0, 974, 975, 7, + 11, 0, 0, 975, 993, 3, 96, 48, 3, 976, 977, 10, 1, 0, 0, 977, 978, 7, 0, + 0, 0, 978, 993, 3, 96, 48, 2, 979, 980, 10, 8, 0, 0, 980, 981, 5, 3, 0, + 0, 981, 982, 3, 96, 48, 0, 982, 984, 5, 4, 0, 0, 983, 985, 3, 10, 5, 0, + 984, 983, 1, 0, 0, 0, 984, 985, 1, 0, 0, 0, 985, 993, 1, 0, 0, 0, 986, + 987, 10, 6, 0, 0, 987, 988, 5, 12, 0, 0, 988, 990, 5, 130, 0, 0, 989, 991, + 3, 10, 5, 0, 990, 989, 1, 0, 0, 0, 990, 991, 1, 0, 0, 0, 991, 993, 1, 0, + 0, 0, 992, 967, 1, 0, 0, 0, 992, 970, 1, 0, 0, 0, 992, 973, 1, 0, 0, 0, + 992, 976, 1, 0, 0, 0, 992, 979, 1, 0, 0, 0, 992, 986, 1, 0, 0, 0, 993, + 996, 1, 0, 0, 0, 994, 992, 1, 0, 0, 0, 994, 995, 1, 0, 0, 0, 995, 97, 1, + 0, 0, 0, 996, 994, 1, 0, 0, 0, 997, 1002, 3, 96, 48, 0, 998, 999, 5, 9, + 0, 0, 999, 1001, 3, 96, 48, 0, 1000, 998, 1, 0, 0, 0, 1001, 1004, 1, 0, + 0, 0, 1002, 1000, 1, 0, 0, 0, 1002, 1003, 1, 0, 0, 0, 1003, 99, 1, 0, 0, + 0, 1004, 1002, 1, 0, 0, 0, 1005, 1006, 5, 131, 0, 0, 1006, 1007, 3, 8, + 4, 0, 1007, 1008, 5, 6, 0, 0, 1008, 1087, 1, 0, 0, 0, 1009, 1014, 3, 102, + 51, 0, 1010, 1011, 5, 9, 0, 0, 1011, 1013, 3, 102, 51, 0, 1012, 1010, 1, + 0, 0, 0, 1013, 1016, 1, 0, 0, 0, 1014, 1012, 1, 0, 0, 0, 1014, 1015, 1, + 0, 0, 0, 1015, 1017, 1, 0, 0, 0, 1016, 1014, 1, 0, 0, 0, 1017, 1018, 5, + 30, 0, 0, 1018, 1020, 1, 0, 0, 0, 1019, 1009, 1, 0, 0, 0, 1019, 1020, 1, + 0, 0, 0, 1020, 1021, 1, 0, 0, 0, 1021, 1022, 3, 104, 52, 0, 1022, 1023, + 5, 6, 0, 0, 1023, 1087, 1, 0, 0, 0, 1024, 1026, 5, 131, 0, 0, 1025, 1027, + 3, 8, 4, 0, 1026, 1025, 1, 0, 0, 0, 1026, 1027, 1, 0, 0, 0, 1027, 1028, + 1, 0, 0, 0, 1028, 1029, 5, 30, 0, 0, 1029, 1030, 3, 96, 48, 0, 1030, 1031, + 5, 6, 0, 0, 1031, 1087, 1, 0, 0, 0, 1032, 1033, 5, 111, 0, 0, 1033, 1034, + 5, 131, 0, 0, 1034, 1038, 5, 66, 0, 0, 1035, 1039, 3, 108, 54, 0, 1036, + 1039, 3, 12, 6, 0, 1037, 1039, 3, 54, 27, 0, 1038, 1035, 1, 0, 0, 0, 1038, + 1036, 1, 0, 0, 0, 1038, 1037, 1, 0, 0, 0, 1039, 1040, 1, 0, 0, 0, 1040, + 1044, 5, 1, 0, 0, 1041, 1043, 3, 100, 50, 0, 1042, 1041, 1, 0, 0, 0, 1043, + 1046, 1, 0, 0, 0, 1044, 1042, 1, 0, 0, 0, 1044, 1045, 1, 0, 0, 0, 1045, + 1047, 1, 0, 0, 0, 1046, 1044, 1, 0, 0, 0, 1047, 1048, 5, 2, 0, 0, 1048, + 1087, 1, 0, 0, 0, 1049, 1050, 5, 112, 0, 0, 1050, 1055, 3, 106, 53, 0, + 1051, 1052, 5, 113, 0, 0, 1052, 1054, 3, 106, 53, 0, 1053, 1051, 1, 0, + 0, 0, 1054, 1057, 1, 0, 0, 0, 1055, 1053, 1, 0, 0, 0, 1055, 1056, 1, 0, + 0, 0, 1056, 1067, 1, 0, 0, 0, 1057, 1055, 1, 0, 0, 0, 1058, 1059, 5, 114, + 0, 0, 1059, 1063, 5, 1, 0, 0, 1060, 1062, 3, 100, 50, 0, 1061, 1060, 1, + 0, 0, 0, 1062, 1065, 1, 0, 0, 0, 1063, 1061, 1, 0, 0, 0, 1063, 1064, 1, + 0, 0, 0, 1064, 1066, 1, 0, 0, 0, 1065, 1063, 1, 0, 0, 0, 1066, 1068, 5, + 2, 0, 0, 1067, 1058, 1, 0, 0, 0, 1067, 1068, 1, 0, 0, 0, 1068, 1087, 1, + 0, 0, 0, 1069, 1070, 3, 54, 27, 0, 1070, 1071, 5, 6, 0, 0, 1071, 1087, + 1, 0, 0, 0, 1072, 1073, 5, 115, 0, 0, 1073, 1087, 5, 6, 0, 0, 1074, 1077, + 5, 116, 0, 0, 1075, 1078, 3, 98, 49, 0, 1076, 1078, 3, 54, 27, 0, 1077, + 1075, 1, 0, 0, 0, 1077, 1076, 1, 0, 0, 0, 1078, 1079, 1, 0, 0, 0, 1079, + 1080, 5, 6, 0, 0, 1080, 1087, 1, 0, 0, 0, 1081, 1082, 5, 116, 0, 0, 1082, + 1083, 5, 117, 0, 0, 1083, 1084, 3, 98, 49, 0, 1084, 1085, 5, 6, 0, 0, 1085, + 1087, 1, 0, 0, 0, 1086, 1005, 1, 0, 0, 0, 1086, 1019, 1, 0, 0, 0, 1086, + 1024, 1, 0, 0, 0, 1086, 1032, 1, 0, 0, 0, 1086, 1049, 1, 0, 0, 0, 1086, + 1069, 1, 0, 0, 0, 1086, 1072, 1, 0, 0, 0, 1086, 1074, 1, 0, 0, 0, 1086, + 1081, 1, 0, 0, 0, 1087, 101, 1, 0, 0, 0, 1088, 1089, 7, 13, 0, 0, 1089, + 103, 1, 0, 0, 0, 1090, 1091, 5, 130, 0, 0, 1091, 1093, 5, 7, 0, 0, 1092, + 1094, 3, 98, 49, 0, 1093, 1092, 1, 0, 0, 0, 1093, 1094, 1, 0, 0, 0, 1094, + 1095, 1, 0, 0, 0, 1095, 1109, 5, 8, 0, 0, 1096, 1097, 5, 130, 0, 0, 1097, + 1098, 5, 3, 0, 0, 1098, 1099, 3, 96, 48, 0, 1099, 1100, 5, 9, 0, 0, 1100, + 1101, 3, 96, 48, 0, 1101, 1102, 5, 4, 0, 0, 1102, 1104, 5, 7, 0, 0, 1103, + 1105, 3, 98, 49, 0, 1104, 1103, 1, 0, 0, 0, 1104, 1105, 1, 0, 0, 0, 1105, + 1106, 1, 0, 0, 0, 1106, 1107, 5, 8, 0, 0, 1107, 1109, 1, 0, 0, 0, 1108, + 1090, 1, 0, 0, 0, 1108, 1096, 1, 0, 0, 0, 1109, 105, 1, 0, 0, 0, 1110, + 1111, 3, 96, 48, 0, 1111, 1115, 5, 1, 0, 0, 1112, 1114, 3, 100, 50, 0, + 1113, 1112, 1, 0, 0, 0, 1114, 1117, 1, 0, 0, 0, 1115, 1113, 1, 0, 0, 0, + 1115, 1116, 1, 0, 0, 0, 1116, 1118, 1, 0, 0, 0, 1117, 1115, 1, 0, 0, 0, + 1118, 1119, 5, 2, 0, 0, 1119, 107, 1, 0, 0, 0, 1120, 1121, 3, 96, 48, 0, + 1121, 1122, 5, 31, 0, 0, 1122, 1123, 3, 96, 48, 0, 1123, 109, 1, 0, 0, + 0, 154, 114, 120, 124, 132, 138, 145, 154, 158, 170, 179, 181, 195, 198, + 218, 223, 237, 241, 251, 263, 276, 282, 287, 289, 292, 297, 303, 308, 311, + 318, 328, 339, 365, 370, 372, 380, 387, 394, 400, 409, 416, 422, 425, 437, + 441, 445, 455, 466, 469, 475, 484, 487, 501, 511, 514, 518, 522, 526, 530, + 534, 538, 542, 549, 557, 560, 564, 571, 573, 577, 580, 586, 589, 593, 596, + 598, 608, 611, 616, 619, 625, 633, 641, 644, 648, 659, 665, 678, 682, 691, + 693, 704, 709, 711, 718, 722, 727, 731, 735, 740, 744, 750, 756, 761, 765, + 770, 773, 779, 781, 788, 794, 824, 830, 834, 840, 847, 855, 857, 859, 872, + 878, 882, 894, 898, 905, 912, 918, 925, 928, 933, 939, 943, 947, 951, 955, + 961, 965, 984, 990, 992, 994, 1002, 1014, 1019, 1026, 1038, 1044, 1055, + 1063, 1067, 1077, 1086, 1093, 1104, 1108, 1115, } deserializer := antlr.NewATNDeserializer(nil) staticData.atn = deserializer.Deserialize(staticData.serializedATN) @@ -848,18 +849,19 @@ const ( KuneiformParserRULE_upsert_clause = 39 KuneiformParserRULE_delete_statement = 40 KuneiformParserRULE_sql_expr = 41 - KuneiformParserRULE_sql_expr_list = 42 - KuneiformParserRULE_sql_function_call = 43 - KuneiformParserRULE_action_block = 44 - KuneiformParserRULE_action_statement = 45 - KuneiformParserRULE_procedure_block = 46 - KuneiformParserRULE_procedure_expr = 47 - KuneiformParserRULE_procedure_expr_list = 48 - KuneiformParserRULE_proc_statement = 49 - KuneiformParserRULE_variable_or_underscore = 50 - KuneiformParserRULE_procedure_function_call = 51 - KuneiformParserRULE_if_then_block = 52 - KuneiformParserRULE_range = 53 + KuneiformParserRULE_when_then_clause = 42 + KuneiformParserRULE_sql_expr_list = 43 + KuneiformParserRULE_sql_function_call = 44 + KuneiformParserRULE_action_block = 45 + KuneiformParserRULE_action_statement = 46 + KuneiformParserRULE_procedure_block = 47 + KuneiformParserRULE_procedure_expr = 48 + KuneiformParserRULE_procedure_expr_list = 49 + KuneiformParserRULE_proc_statement = 50 + KuneiformParserRULE_variable_or_underscore = 51 + KuneiformParserRULE_procedure_function_call = 52 + KuneiformParserRULE_if_then_block = 53 + KuneiformParserRULE_range = 54 ) // IEntryContext is an interface to support dynamic dispatch. @@ -1002,7 +1004,7 @@ func (p *KuneiformParser) Entry() (localctx IEntryContext) { localctx = NewEntryContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 0, KuneiformParserRULE_entry) p.EnterOuterAlt(localctx, 1) - p.SetState(112) + p.SetState(114) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -1011,25 +1013,25 @@ func (p *KuneiformParser) Entry() (localctx IEntryContext) { switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 0, p.GetParserRuleContext()) { case 1: { - p.SetState(108) + p.SetState(110) p.Schema() } case 2: { - p.SetState(109) + p.SetState(111) p.Sql() } case 3: { - p.SetState(110) + p.SetState(112) p.Action_block() } case 4: { - p.SetState(111) + p.SetState(113) p.Procedure_block() } @@ -1037,7 +1039,7 @@ func (p *KuneiformParser) Entry() (localctx IEntryContext) { goto errorExit } { - p.SetState(114) + p.SetState(116) p.Match(KuneiformParserEOF) if p.HasError() { // Recognition error - abort rule @@ -1337,7 +1339,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { p.EnterRule(localctx, 2, KuneiformParserRULE_literal) var _la int - p.SetState(130) + p.SetState(132) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -1348,7 +1350,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { localctx = NewString_literalContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(116) + p.SetState(118) p.Match(KuneiformParserSTRING_) if p.HasError() { // Recognition error - abort rule @@ -1359,7 +1361,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { case 2: localctx = NewInteger_literalContext(p, localctx) p.EnterOuterAlt(localctx, 2) - p.SetState(118) + p.SetState(120) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -1368,7 +1370,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { if _la == KuneiformParserPLUS || _la == KuneiformParserMINUS { { - p.SetState(117) + p.SetState(119) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserPLUS || _la == KuneiformParserMINUS) { @@ -1381,7 +1383,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { } { - p.SetState(120) + p.SetState(122) p.Match(KuneiformParserDIGITS_) if p.HasError() { // Recognition error - abort rule @@ -1392,7 +1394,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { case 3: localctx = NewDecimal_literalContext(p, localctx) p.EnterOuterAlt(localctx, 3) - p.SetState(122) + p.SetState(124) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -1401,7 +1403,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { if _la == KuneiformParserPLUS || _la == KuneiformParserMINUS { { - p.SetState(121) + p.SetState(123) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserPLUS || _la == KuneiformParserMINUS) { @@ -1414,7 +1416,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { } { - p.SetState(124) + p.SetState(126) p.Match(KuneiformParserDIGITS_) if p.HasError() { // Recognition error - abort rule @@ -1422,7 +1424,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { } } { - p.SetState(125) + p.SetState(127) p.Match(KuneiformParserPERIOD) if p.HasError() { // Recognition error - abort rule @@ -1430,7 +1432,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { } } { - p.SetState(126) + p.SetState(128) p.Match(KuneiformParserDIGITS_) if p.HasError() { // Recognition error - abort rule @@ -1442,7 +1444,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { localctx = NewBoolean_literalContext(p, localctx) p.EnterOuterAlt(localctx, 4) { - p.SetState(127) + p.SetState(129) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserTRUE || _la == KuneiformParserFALSE) { @@ -1457,7 +1459,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { localctx = NewNull_literalContext(p, localctx) p.EnterOuterAlt(localctx, 5) { - p.SetState(128) + p.SetState(130) p.Match(KuneiformParserNULL) if p.HasError() { // Recognition error - abort rule @@ -1469,7 +1471,7 @@ func (p *KuneiformParser) Literal() (localctx ILiteralContext) { localctx = NewBinary_literalContext(p, localctx) p.EnterOuterAlt(localctx, 6) { - p.SetState(129) + p.SetState(131) p.Match(KuneiformParserBINARY_) if p.HasError() { // Recognition error - abort rule @@ -1575,7 +1577,7 @@ func (s *IdentifierContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { func (p *KuneiformParser) Identifier() (localctx IIdentifierContext) { localctx = NewIdentifierContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 4, KuneiformParserRULE_identifier) - p.SetState(136) + p.SetState(138) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -1585,7 +1587,7 @@ func (p *KuneiformParser) Identifier() (localctx IIdentifierContext) { case KuneiformParserDOUBLE_QUOTE: p.EnterOuterAlt(localctx, 1) { - p.SetState(132) + p.SetState(134) p.Match(KuneiformParserDOUBLE_QUOTE) if p.HasError() { // Recognition error - abort rule @@ -1593,7 +1595,7 @@ func (p *KuneiformParser) Identifier() (localctx IIdentifierContext) { } } { - p.SetState(133) + p.SetState(135) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -1601,7 +1603,7 @@ func (p *KuneiformParser) Identifier() (localctx IIdentifierContext) { } } { - p.SetState(134) + p.SetState(136) p.Match(KuneiformParserDOUBLE_QUOTE) if p.HasError() { // Recognition error - abort rule @@ -1612,7 +1614,7 @@ func (p *KuneiformParser) Identifier() (localctx IIdentifierContext) { case KuneiformParserIDENTIFIER: p.EnterOuterAlt(localctx, 2) { - p.SetState(135) + p.SetState(137) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -1761,10 +1763,10 @@ func (p *KuneiformParser) Identifier_list() (localctx IIdentifier_listContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(138) + p.SetState(140) p.Identifier() } - p.SetState(143) + p.SetState(145) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -1773,7 +1775,7 @@ func (p *KuneiformParser) Identifier_list() (localctx IIdentifier_listContext) { for _la == KuneiformParserCOMMA { { - p.SetState(139) + p.SetState(141) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -1781,11 +1783,11 @@ func (p *KuneiformParser) Identifier_list() (localctx IIdentifier_listContext) { } } { - p.SetState(140) + p.SetState(142) p.Identifier() } - p.SetState(145) + p.SetState(147) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -1914,19 +1916,19 @@ func (p *KuneiformParser) Type_() (localctx ITypeContext) { p.EnterRule(localctx, 8, KuneiformParserRULE_type) p.EnterOuterAlt(localctx, 1) { - p.SetState(146) + p.SetState(148) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(152) + p.SetState(154) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 6, p.GetParserRuleContext()) == 1 { { - p.SetState(147) + p.SetState(149) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -1934,7 +1936,7 @@ func (p *KuneiformParser) Type_() (localctx ITypeContext) { } } { - p.SetState(148) + p.SetState(150) p.Match(KuneiformParserDIGITS_) if p.HasError() { // Recognition error - abort rule @@ -1942,7 +1944,7 @@ func (p *KuneiformParser) Type_() (localctx ITypeContext) { } } { - p.SetState(149) + p.SetState(151) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -1950,7 +1952,7 @@ func (p *KuneiformParser) Type_() (localctx ITypeContext) { } } { - p.SetState(150) + p.SetState(152) p.Match(KuneiformParserDIGITS_) if p.HasError() { // Recognition error - abort rule @@ -1958,7 +1960,7 @@ func (p *KuneiformParser) Type_() (localctx ITypeContext) { } } { - p.SetState(151) + p.SetState(153) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -1969,12 +1971,12 @@ func (p *KuneiformParser) Type_() (localctx ITypeContext) { } else if p.HasError() { // JIM goto errorExit } - p.SetState(156) + p.SetState(158) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 7, p.GetParserRuleContext()) == 1 { { - p.SetState(154) + p.SetState(156) p.Match(KuneiformParserLBRACKET) if p.HasError() { // Recognition error - abort rule @@ -1982,7 +1984,7 @@ func (p *KuneiformParser) Type_() (localctx ITypeContext) { } } { - p.SetState(155) + p.SetState(157) p.Match(KuneiformParserRBRACKET) if p.HasError() { // Recognition error - abort rule @@ -2097,7 +2099,7 @@ func (p *KuneiformParser) Type_cast() (localctx IType_castContext) { p.EnterRule(localctx, 10, KuneiformParserRULE_type_cast) p.EnterOuterAlt(localctx, 1) { - p.SetState(158) + p.SetState(160) p.Match(KuneiformParserTYPE_CAST) if p.HasError() { // Recognition error - abort rule @@ -2105,7 +2107,7 @@ func (p *KuneiformParser) Type_cast() (localctx IType_castContext) { } } { - p.SetState(159) + p.SetState(161) p.Type_() } @@ -2202,7 +2204,7 @@ func (p *KuneiformParser) Variable() (localctx IVariableContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(161) + p.SetState(163) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserVARIABLE || _la == KuneiformParserCONTEXTUAL_VARIABLE) { @@ -2349,10 +2351,10 @@ func (p *KuneiformParser) Variable_list() (localctx IVariable_listContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(163) + p.SetState(165) p.Variable() } - p.SetState(168) + p.SetState(170) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -2361,7 +2363,7 @@ func (p *KuneiformParser) Variable_list() (localctx IVariable_listContext) { for _la == KuneiformParserCOMMA { { - p.SetState(164) + p.SetState(166) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -2369,11 +2371,11 @@ func (p *KuneiformParser) Variable_list() (localctx IVariable_listContext) { } } { - p.SetState(165) + p.SetState(167) p.Variable() } - p.SetState(170) + p.SetState(172) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -2696,10 +2698,10 @@ func (p *KuneiformParser) Schema() (localctx ISchemaContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(171) + p.SetState(173) p.Database_declaration() } - p.SetState(179) + p.SetState(181) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -2707,7 +2709,7 @@ func (p *KuneiformParser) Schema() (localctx ISchemaContext) { _la = p.GetTokenStream().LA(1) for ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&140995186393088) != 0) || _la == KuneiformParserCONTEXTUAL_VARIABLE { - p.SetState(177) + p.SetState(179) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -2716,31 +2718,31 @@ func (p *KuneiformParser) Schema() (localctx ISchemaContext) { switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 9, p.GetParserRuleContext()) { case 1: { - p.SetState(172) + p.SetState(174) p.Use_declaration() } case 2: { - p.SetState(173) + p.SetState(175) p.Table_declaration() } case 3: { - p.SetState(174) + p.SetState(176) p.Action_declaration() } case 4: { - p.SetState(175) + p.SetState(177) p.Procedure_declaration() } case 5: { - p.SetState(176) + p.SetState(178) p.Foreign_procedure_declaration() } @@ -2748,7 +2750,7 @@ func (p *KuneiformParser) Schema() (localctx ISchemaContext) { goto errorExit } - p.SetState(181) + p.SetState(183) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -2927,7 +2929,7 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(182) + p.SetState(184) p.Match(KuneiformParserCONTEXTUAL_VARIABLE) if p.HasError() { // Recognition error - abort rule @@ -2935,14 +2937,14 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { } } { - p.SetState(183) + p.SetState(185) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(196) + p.SetState(198) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -2951,7 +2953,7 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { if _la == KuneiformParserIDENTIFIER { { - p.SetState(184) + p.SetState(186) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -2959,7 +2961,7 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { } } { - p.SetState(185) + p.SetState(187) p.Match(KuneiformParserEQUALS) if p.HasError() { // Recognition error - abort rule @@ -2967,10 +2969,10 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { } } { - p.SetState(186) + p.SetState(188) p.Literal() } - p.SetState(193) + p.SetState(195) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -2979,7 +2981,7 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { for _la == KuneiformParserCOMMA { { - p.SetState(187) + p.SetState(189) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -2987,7 +2989,7 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { } } { - p.SetState(188) + p.SetState(190) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -2995,7 +2997,7 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { } } { - p.SetState(189) + p.SetState(191) p.Match(KuneiformParserEQUALS) if p.HasError() { // Recognition error - abort rule @@ -3003,11 +3005,11 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { } } { - p.SetState(190) + p.SetState(192) p.Literal() } - p.SetState(195) + p.SetState(197) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3017,7 +3019,7 @@ func (p *KuneiformParser) Annotation() (localctx IAnnotationContext) { } { - p.SetState(198) + p.SetState(200) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -3121,7 +3123,7 @@ func (p *KuneiformParser) Database_declaration() (localctx IDatabase_declaration p.EnterRule(localctx, 20, KuneiformParserRULE_database_declaration) p.EnterOuterAlt(localctx, 1) { - p.SetState(200) + p.SetState(202) p.Match(KuneiformParserDATABASE) if p.HasError() { // Recognition error - abort rule @@ -3129,7 +3131,7 @@ func (p *KuneiformParser) Database_declaration() (localctx IDatabase_declaration } } { - p.SetState(201) + p.SetState(203) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -3137,7 +3139,7 @@ func (p *KuneiformParser) Database_declaration() (localctx IDatabase_declaration } } { - p.SetState(202) + p.SetState(204) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -3326,7 +3328,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(204) + p.SetState(206) p.Match(KuneiformParserUSE) if p.HasError() { // Recognition error - abort rule @@ -3334,14 +3336,14 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(205) + p.SetState(207) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(221) + p.SetState(223) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3350,7 +3352,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { if _la == KuneiformParserLBRACE { { - p.SetState(206) + p.SetState(208) p.Match(KuneiformParserLBRACE) if p.HasError() { // Recognition error - abort rule @@ -3358,7 +3360,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(207) + p.SetState(209) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -3366,7 +3368,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(208) + p.SetState(210) p.Match(KuneiformParserCOL) if p.HasError() { // Recognition error - abort rule @@ -3374,10 +3376,10 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(209) + p.SetState(211) p.Literal() } - p.SetState(216) + p.SetState(218) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3386,7 +3388,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { for _la == KuneiformParserCOMMA { { - p.SetState(210) + p.SetState(212) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -3394,7 +3396,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(211) + p.SetState(213) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -3402,7 +3404,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(212) + p.SetState(214) p.Match(KuneiformParserCOL) if p.HasError() { // Recognition error - abort rule @@ -3410,11 +3412,11 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(213) + p.SetState(215) p.Literal() } - p.SetState(218) + p.SetState(220) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3422,7 +3424,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { _la = p.GetTokenStream().LA(1) } { - p.SetState(219) + p.SetState(221) p.Match(KuneiformParserRBRACE) if p.HasError() { // Recognition error - abort rule @@ -3432,7 +3434,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } { - p.SetState(223) + p.SetState(225) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -3440,7 +3442,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(224) + p.SetState(226) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -3448,7 +3450,7 @@ func (p *KuneiformParser) Use_declaration() (localctx IUse_declarationContext) { } } { - p.SetState(225) + p.SetState(227) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -3698,7 +3700,7 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex p.EnterOuterAlt(localctx, 1) { - p.SetState(227) + p.SetState(229) p.Match(KuneiformParserTABLE) if p.HasError() { // Recognition error - abort rule @@ -3706,7 +3708,7 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex } } { - p.SetState(228) + p.SetState(230) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -3714,7 +3716,7 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex } } { - p.SetState(229) + p.SetState(231) p.Match(KuneiformParserLBRACE) if p.HasError() { // Recognition error - abort rule @@ -3722,10 +3724,10 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex } } { - p.SetState(230) + p.SetState(232) p.Column_def() } - p.SetState(239) + p.SetState(241) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3734,14 +3736,14 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex for _la == KuneiformParserCOMMA { { - p.SetState(231) + p.SetState(233) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(235) + p.SetState(237) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3750,19 +3752,19 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex switch p.GetTokenStream().LA(1) { case KuneiformParserIDENTIFIER: { - p.SetState(232) + p.SetState(234) p.Column_def() } case KuneiformParserHASH_IDENTIFIER: { - p.SetState(233) + p.SetState(235) p.Index_def() } case KuneiformParserFOREIGN, KuneiformParserLEGACY_FOREIGN_KEY: { - p.SetState(234) + p.SetState(236) p.Foreign_key_def() } @@ -3771,7 +3773,7 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex goto errorExit } - p.SetState(241) + p.SetState(243) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3779,7 +3781,7 @@ func (p *KuneiformParser) Table_declaration() (localctx ITable_declarationContex _la = p.GetTokenStream().LA(1) } { - p.SetState(242) + p.SetState(244) p.Match(KuneiformParserRBRACE) if p.HasError() { // Recognition error - abort rule @@ -3946,7 +3948,7 @@ func (p *KuneiformParser) Column_def() (localctx IColumn_defContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(244) + p.SetState(246) var _m = p.Match(KuneiformParserIDENTIFIER) @@ -3957,10 +3959,10 @@ func (p *KuneiformParser) Column_def() (localctx IColumn_defContext) { } } { - p.SetState(245) + p.SetState(247) p.Type_() } - p.SetState(249) + p.SetState(251) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -3969,11 +3971,11 @@ func (p *KuneiformParser) Column_def() (localctx IColumn_defContext) { for ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&2342289620651212800) != 0) || _la == KuneiformParserNOTNULL || _la == KuneiformParserLEGACY_PRIMARY_KEY { { - p.SetState(246) + p.SetState(248) p.Constraint() } - p.SetState(251) + p.SetState(253) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4122,7 +4124,7 @@ func (p *KuneiformParser) Index_def() (localctx IIndex_defContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(252) + p.SetState(254) p.Match(KuneiformParserHASH_IDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -4130,7 +4132,7 @@ func (p *KuneiformParser) Index_def() (localctx IIndex_defContext) { } } { - p.SetState(253) + p.SetState(255) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&4612037862148276224) != 0) { @@ -4141,7 +4143,7 @@ func (p *KuneiformParser) Index_def() (localctx IIndex_defContext) { } } { - p.SetState(254) + p.SetState(256) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -4149,14 +4151,14 @@ func (p *KuneiformParser) Index_def() (localctx IIndex_defContext) { } } { - p.SetState(255) + p.SetState(257) var _x = p.Identifier_list() localctx.(*Index_defContext).columns = _x } { - p.SetState(256) + p.SetState(258) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -4415,7 +4417,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { var _la int p.EnterOuterAlt(localctx, 1) - p.SetState(261) + p.SetState(263) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4424,7 +4426,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserFOREIGN: { - p.SetState(258) + p.SetState(260) p.Match(KuneiformParserFOREIGN) if p.HasError() { // Recognition error - abort rule @@ -4432,7 +4434,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { } } { - p.SetState(259) + p.SetState(261) p.Match(KuneiformParserKEY) if p.HasError() { // Recognition error - abort rule @@ -4442,7 +4444,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { case KuneiformParserLEGACY_FOREIGN_KEY: { - p.SetState(260) + p.SetState(262) p.Match(KuneiformParserLEGACY_FOREIGN_KEY) if p.HasError() { // Recognition error - abort rule @@ -4455,7 +4457,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { goto errorExit } { - p.SetState(263) + p.SetState(265) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -4463,14 +4465,14 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { } } { - p.SetState(264) + p.SetState(266) var _x = p.Identifier_list() localctx.(*Foreign_key_defContext).child_keys = _x } { - p.SetState(265) + p.SetState(267) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -4478,7 +4480,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { } } { - p.SetState(266) + p.SetState(268) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserREFERENCES || _la == KuneiformParserREF) { @@ -4489,7 +4491,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { } } { - p.SetState(267) + p.SetState(269) var _m = p.Match(KuneiformParserIDENTIFIER) @@ -4500,7 +4502,7 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { } } { - p.SetState(268) + p.SetState(270) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -4508,21 +4510,21 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { } } { - p.SetState(269) + p.SetState(271) var _x = p.Identifier_list() localctx.(*Foreign_key_defContext).parent_keys = _x } { - p.SetState(270) + p.SetState(272) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(274) + p.SetState(276) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4531,11 +4533,11 @@ func (p *KuneiformParser) Foreign_key_def() (localctx IForeign_key_defContext) { for _la == KuneiformParserON || _la == KuneiformParserLEGACY_ON_UPDATE || _la == KuneiformParserLEGACY_ON_DELETE { { - p.SetState(271) + p.SetState(273) p.Foreign_key_action() } - p.SetState(276) + p.SetState(278) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4705,7 +4707,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont var _la int p.EnterOuterAlt(localctx, 1) - p.SetState(287) + p.SetState(289) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4713,7 +4715,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 22, p.GetParserRuleContext()) { case 1: - p.SetState(280) + p.SetState(282) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4722,7 +4724,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont switch p.GetTokenStream().LA(1) { case KuneiformParserON: { - p.SetState(277) + p.SetState(279) p.Match(KuneiformParserON) if p.HasError() { // Recognition error - abort rule @@ -4730,7 +4732,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } } { - p.SetState(278) + p.SetState(280) p.Match(KuneiformParserUPDATE) if p.HasError() { // Recognition error - abort rule @@ -4740,7 +4742,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case KuneiformParserLEGACY_ON_UPDATE: { - p.SetState(279) + p.SetState(281) p.Match(KuneiformParserLEGACY_ON_UPDATE) if p.HasError() { // Recognition error - abort rule @@ -4754,7 +4756,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } case 2: - p.SetState(285) + p.SetState(287) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4763,7 +4765,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont switch p.GetTokenStream().LA(1) { case KuneiformParserON: { - p.SetState(282) + p.SetState(284) p.Match(KuneiformParserON) if p.HasError() { // Recognition error - abort rule @@ -4771,7 +4773,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } } { - p.SetState(283) + p.SetState(285) p.Match(KuneiformParserDELETE) if p.HasError() { // Recognition error - abort rule @@ -4781,7 +4783,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case KuneiformParserLEGACY_ON_DELETE: { - p.SetState(284) + p.SetState(286) p.Match(KuneiformParserLEGACY_ON_DELETE) if p.HasError() { // Recognition error - abort rule @@ -4797,7 +4799,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case antlr.ATNInvalidAltNumber: goto errorExit } - p.SetState(290) + p.SetState(292) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4806,7 +4808,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont if _la == KuneiformParserDO { { - p.SetState(289) + p.SetState(291) p.Match(KuneiformParserDO) if p.HasError() { // Recognition error - abort rule @@ -4815,7 +4817,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } } - p.SetState(309) + p.SetState(311) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4823,7 +4825,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 27, p.GetParserRuleContext()) { case 1: - p.SetState(295) + p.SetState(297) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4832,7 +4834,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont switch p.GetTokenStream().LA(1) { case KuneiformParserNO: { - p.SetState(292) + p.SetState(294) p.Match(KuneiformParserNO) if p.HasError() { // Recognition error - abort rule @@ -4840,7 +4842,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } } { - p.SetState(293) + p.SetState(295) p.Match(KuneiformParserACTION) if p.HasError() { // Recognition error - abort rule @@ -4850,7 +4852,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case KuneiformParserLEGACY_NO_ACTION: { - p.SetState(294) + p.SetState(296) p.Match(KuneiformParserLEGACY_NO_ACTION) if p.HasError() { // Recognition error - abort rule @@ -4865,7 +4867,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case 2: { - p.SetState(297) + p.SetState(299) p.Match(KuneiformParserCASCADE) if p.HasError() { // Recognition error - abort rule @@ -4874,7 +4876,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } case 3: - p.SetState(301) + p.SetState(303) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4883,7 +4885,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont switch p.GetTokenStream().LA(1) { case KuneiformParserSET: { - p.SetState(298) + p.SetState(300) p.Match(KuneiformParserSET) if p.HasError() { // Recognition error - abort rule @@ -4891,7 +4893,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } } { - p.SetState(299) + p.SetState(301) p.Match(KuneiformParserNULL) if p.HasError() { // Recognition error - abort rule @@ -4901,7 +4903,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case KuneiformParserLEGACY_SET_NULL: { - p.SetState(300) + p.SetState(302) p.Match(KuneiformParserLEGACY_SET_NULL) if p.HasError() { // Recognition error - abort rule @@ -4915,7 +4917,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } case 4: - p.SetState(306) + p.SetState(308) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -4924,7 +4926,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont switch p.GetTokenStream().LA(1) { case KuneiformParserSET: { - p.SetState(303) + p.SetState(305) p.Match(KuneiformParserSET) if p.HasError() { // Recognition error - abort rule @@ -4932,7 +4934,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont } } { - p.SetState(304) + p.SetState(306) p.Match(KuneiformParserDEFAULT) if p.HasError() { // Recognition error - abort rule @@ -4942,7 +4944,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case KuneiformParserLEGACY_SET_DEFAULT: { - p.SetState(305) + p.SetState(307) p.Match(KuneiformParserLEGACY_SET_DEFAULT) if p.HasError() { // Recognition error - abort rule @@ -4957,7 +4959,7 @@ func (p *KuneiformParser) Foreign_key_action() (localctx IForeign_key_actionCont case 5: { - p.SetState(308) + p.SetState(310) p.Match(KuneiformParserRESTRICT) if p.HasError() { // Recognition error - abort rule @@ -5105,10 +5107,10 @@ func (p *KuneiformParser) Type_list() (localctx IType_listContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(311) + p.SetState(313) p.Type_() } - p.SetState(316) + p.SetState(318) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -5117,7 +5119,7 @@ func (p *KuneiformParser) Type_list() (localctx IType_listContext) { for _la == KuneiformParserCOMMA { { - p.SetState(312) + p.SetState(314) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -5125,11 +5127,11 @@ func (p *KuneiformParser) Type_list() (localctx IType_listContext) { } } { - p.SetState(313) + p.SetState(315) p.Type_() } - p.SetState(318) + p.SetState(320) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -5283,7 +5285,7 @@ func (p *KuneiformParser) Named_type_list() (localctx INamed_type_listContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(319) + p.SetState(321) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -5291,10 +5293,10 @@ func (p *KuneiformParser) Named_type_list() (localctx INamed_type_listContext) { } } { - p.SetState(320) + p.SetState(322) p.Type_() } - p.SetState(326) + p.SetState(328) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -5303,7 +5305,7 @@ func (p *KuneiformParser) Named_type_list() (localctx INamed_type_listContext) { for _la == KuneiformParserCOMMA { { - p.SetState(321) + p.SetState(323) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -5311,7 +5313,7 @@ func (p *KuneiformParser) Named_type_list() (localctx INamed_type_listContext) { } } { - p.SetState(322) + p.SetState(324) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -5319,11 +5321,11 @@ func (p *KuneiformParser) Named_type_list() (localctx INamed_type_listContext) { } } { - p.SetState(323) + p.SetState(325) p.Type_() } - p.SetState(328) + p.SetState(330) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -5510,14 +5512,14 @@ func (p *KuneiformParser) Typed_variable_list() (localctx ITyped_variable_listCo p.EnterOuterAlt(localctx, 1) { - p.SetState(329) + p.SetState(331) p.Variable() } { - p.SetState(330) + p.SetState(332) p.Type_() } - p.SetState(337) + p.SetState(339) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -5526,7 +5528,7 @@ func (p *KuneiformParser) Typed_variable_list() (localctx ITyped_variable_listCo for _la == KuneiformParserCOMMA { { - p.SetState(331) + p.SetState(333) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -5534,15 +5536,15 @@ func (p *KuneiformParser) Typed_variable_list() (localctx ITyped_variable_listCo } } { - p.SetState(332) + p.SetState(334) p.Variable() } { - p.SetState(333) + p.SetState(335) p.Type_() } - p.SetState(339) + p.SetState(341) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6014,7 +6016,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { p.EnterRule(localctx, 40, KuneiformParserRULE_constraint) var _la int - p.SetState(378) + p.SetState(380) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6025,7 +6027,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { localctx = NewMin_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(340) + p.SetState(342) p.Match(KuneiformParserMIN) if p.HasError() { // Recognition error - abort rule @@ -6033,7 +6035,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(341) + p.SetState(343) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -6041,11 +6043,11 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(342) + p.SetState(344) p.Literal() } { - p.SetState(343) + p.SetState(345) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -6057,7 +6059,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { localctx = NewMax_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 2) { - p.SetState(345) + p.SetState(347) p.Match(KuneiformParserMAX) if p.HasError() { // Recognition error - abort rule @@ -6065,7 +6067,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(346) + p.SetState(348) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -6073,11 +6075,11 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(347) + p.SetState(349) p.Literal() } { - p.SetState(348) + p.SetState(350) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -6089,7 +6091,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { localctx = NewMin_len_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 3) { - p.SetState(350) + p.SetState(352) p.Match(KuneiformParserMINLEN) if p.HasError() { // Recognition error - abort rule @@ -6097,7 +6099,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(351) + p.SetState(353) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -6105,11 +6107,11 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(352) + p.SetState(354) p.Literal() } { - p.SetState(353) + p.SetState(355) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -6121,7 +6123,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { localctx = NewMax_len_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 4) { - p.SetState(355) + p.SetState(357) p.Match(KuneiformParserMAXLEN) if p.HasError() { // Recognition error - abort rule @@ -6129,7 +6131,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(356) + p.SetState(358) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -6137,11 +6139,11 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(357) + p.SetState(359) p.Literal() } { - p.SetState(358) + p.SetState(360) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -6152,7 +6154,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { case KuneiformParserNOT, KuneiformParserNOTNULL: localctx = NewNot_null_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 5) - p.SetState(363) + p.SetState(365) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6161,7 +6163,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserNOTNULL: { - p.SetState(360) + p.SetState(362) p.Match(KuneiformParserNOTNULL) if p.HasError() { // Recognition error - abort rule @@ -6171,7 +6173,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { case KuneiformParserNOT: { - p.SetState(361) + p.SetState(363) p.Match(KuneiformParserNOT) if p.HasError() { // Recognition error - abort rule @@ -6179,7 +6181,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(362) + p.SetState(364) p.Match(KuneiformParserNULL) if p.HasError() { // Recognition error - abort rule @@ -6195,7 +6197,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { case KuneiformParserPRIMARY, KuneiformParserLEGACY_PRIMARY_KEY: localctx = NewPrimary_key_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 6) - p.SetState(370) + p.SetState(372) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6204,7 +6206,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserLEGACY_PRIMARY_KEY: { - p.SetState(365) + p.SetState(367) p.Match(KuneiformParserLEGACY_PRIMARY_KEY) if p.HasError() { // Recognition error - abort rule @@ -6214,14 +6216,14 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { case KuneiformParserPRIMARY: { - p.SetState(366) + p.SetState(368) p.Match(KuneiformParserPRIMARY) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(368) + p.SetState(370) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6230,7 +6232,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { if _la == KuneiformParserKEY { { - p.SetState(367) + p.SetState(369) p.Match(KuneiformParserKEY) if p.HasError() { // Recognition error - abort rule @@ -6249,7 +6251,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { localctx = NewDefault_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 7) { - p.SetState(372) + p.SetState(374) p.Match(KuneiformParserDEFAULT) if p.HasError() { // Recognition error - abort rule @@ -6257,7 +6259,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(373) + p.SetState(375) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -6265,11 +6267,11 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { } } { - p.SetState(374) + p.SetState(376) p.Literal() } { - p.SetState(375) + p.SetState(377) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -6281,7 +6283,7 @@ func (p *KuneiformParser) Constraint() (localctx IConstraintContext) { localctx = NewUnique_constraintContext(p, localctx) p.EnterOuterAlt(localctx, 8) { - p.SetState(377) + p.SetState(379) p.Match(KuneiformParserUNIQUE) if p.HasError() { // Recognition error - abort rule @@ -6397,7 +6399,7 @@ func (p *KuneiformParser) Access_modifier() (localctx IAccess_modifierContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(380) + p.SetState(382) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&4123168604160) != 0) { @@ -6640,7 +6642,7 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont var _la int p.EnterOuterAlt(localctx, 1) - p.SetState(385) + p.SetState(387) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6649,11 +6651,11 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont for _la == KuneiformParserCONTEXTUAL_VARIABLE { { - p.SetState(382) + p.SetState(384) p.Annotation() } - p.SetState(387) + p.SetState(389) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6661,7 +6663,7 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont _la = p.GetTokenStream().LA(1) } { - p.SetState(388) + p.SetState(390) p.Match(KuneiformParserACTION) if p.HasError() { // Recognition error - abort rule @@ -6669,7 +6671,7 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont } } { - p.SetState(389) + p.SetState(391) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -6677,14 +6679,14 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont } } { - p.SetState(390) + p.SetState(392) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(392) + p.SetState(394) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6693,20 +6695,20 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont if _la == KuneiformParserVARIABLE || _la == KuneiformParserCONTEXTUAL_VARIABLE { { - p.SetState(391) + p.SetState(393) p.Variable_list() } } { - p.SetState(394) + p.SetState(396) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(396) + p.SetState(398) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6715,11 +6717,11 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont for ok := true; ok; ok = ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&4123168604160) != 0) { { - p.SetState(395) + p.SetState(397) p.Access_modifier() } - p.SetState(398) + p.SetState(400) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -6727,7 +6729,7 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont _la = p.GetTokenStream().LA(1) } { - p.SetState(400) + p.SetState(402) p.Match(KuneiformParserLBRACE) if p.HasError() { // Recognition error - abort rule @@ -6735,11 +6737,11 @@ func (p *KuneiformParser) Action_declaration() (localctx IAction_declarationCont } } { - p.SetState(401) + p.SetState(403) p.Action_block() } { - p.SetState(402) + p.SetState(404) p.Match(KuneiformParserRBRACE) if p.HasError() { // Recognition error - abort rule @@ -6996,7 +6998,7 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati var _la int p.EnterOuterAlt(localctx, 1) - p.SetState(407) + p.SetState(409) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7005,11 +7007,11 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati for _la == KuneiformParserCONTEXTUAL_VARIABLE { { - p.SetState(404) + p.SetState(406) p.Annotation() } - p.SetState(409) + p.SetState(411) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7017,7 +7019,7 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati _la = p.GetTokenStream().LA(1) } { - p.SetState(410) + p.SetState(412) p.Match(KuneiformParserPROCEDURE) if p.HasError() { // Recognition error - abort rule @@ -7025,7 +7027,7 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati } } { - p.SetState(411) + p.SetState(413) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -7033,14 +7035,14 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati } } { - p.SetState(412) + p.SetState(414) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(414) + p.SetState(416) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7049,20 +7051,20 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati if _la == KuneiformParserVARIABLE || _la == KuneiformParserCONTEXTUAL_VARIABLE { { - p.SetState(413) + p.SetState(415) p.Typed_variable_list() } } { - p.SetState(416) + p.SetState(418) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(418) + p.SetState(420) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7071,18 +7073,18 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati for ok := true; ok; ok = ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&4123168604160) != 0) { { - p.SetState(417) + p.SetState(419) p.Access_modifier() } - p.SetState(420) + p.SetState(422) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(423) + p.SetState(425) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7091,13 +7093,13 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati if _la == KuneiformParserRETURNS { { - p.SetState(422) + p.SetState(424) p.Procedure_return() } } { - p.SetState(425) + p.SetState(427) p.Match(KuneiformParserLBRACE) if p.HasError() { // Recognition error - abort rule @@ -7105,11 +7107,11 @@ func (p *KuneiformParser) Procedure_declaration() (localctx IProcedure_declarati } } { - p.SetState(426) + p.SetState(428) p.Procedure_block() } { - p.SetState(427) + p.SetState(429) p.Match(KuneiformParserRBRACE) if p.HasError() { // Recognition error - abort rule @@ -7306,7 +7308,7 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro p.EnterOuterAlt(localctx, 1) { - p.SetState(429) + p.SetState(431) p.Match(KuneiformParserFOREIGN) if p.HasError() { // Recognition error - abort rule @@ -7314,7 +7316,7 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro } } { - p.SetState(430) + p.SetState(432) p.Match(KuneiformParserPROCEDURE) if p.HasError() { // Recognition error - abort rule @@ -7322,7 +7324,7 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro } } { - p.SetState(431) + p.SetState(433) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -7330,14 +7332,14 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro } } { - p.SetState(432) + p.SetState(434) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(435) + p.SetState(437) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7345,7 +7347,7 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro switch p.GetTokenStream().LA(1) { case KuneiformParserIDENTIFIER: { - p.SetState(433) + p.SetState(435) var _x = p.Type_list() @@ -7354,7 +7356,7 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro case KuneiformParserVARIABLE, KuneiformParserCONTEXTUAL_VARIABLE: { - p.SetState(434) + p.SetState(436) var _x = p.Typed_variable_list() @@ -7366,14 +7368,14 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro default: } { - p.SetState(437) + p.SetState(439) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(439) + p.SetState(441) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7382,7 +7384,7 @@ func (p *KuneiformParser) Foreign_procedure_declaration() (localctx IForeign_pro if _la == KuneiformParserRETURNS { { - p.SetState(438) + p.SetState(440) p.Procedure_return() } @@ -7553,14 +7555,14 @@ func (p *KuneiformParser) Procedure_return() (localctx IProcedure_returnContext) p.EnterOuterAlt(localctx, 1) { - p.SetState(441) + p.SetState(443) p.Match(KuneiformParserRETURNS) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(453) + p.SetState(455) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7568,7 +7570,7 @@ func (p *KuneiformParser) Procedure_return() (localctx IProcedure_returnContext) switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 45, p.GetParserRuleContext()) { case 1: - p.SetState(443) + p.SetState(445) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7577,7 +7579,7 @@ func (p *KuneiformParser) Procedure_return() (localctx IProcedure_returnContext) if _la == KuneiformParserTABLE { { - p.SetState(442) + p.SetState(444) p.Match(KuneiformParserTABLE) if p.HasError() { // Recognition error - abort rule @@ -7587,7 +7589,7 @@ func (p *KuneiformParser) Procedure_return() (localctx IProcedure_returnContext) } { - p.SetState(445) + p.SetState(447) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -7595,14 +7597,14 @@ func (p *KuneiformParser) Procedure_return() (localctx IProcedure_returnContext) } } { - p.SetState(446) + p.SetState(448) var _x = p.Named_type_list() localctx.(*Procedure_returnContext).return_columns = _x } { - p.SetState(447) + p.SetState(449) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -7612,7 +7614,7 @@ func (p *KuneiformParser) Procedure_return() (localctx IProcedure_returnContext) case 2: { - p.SetState(449) + p.SetState(451) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -7620,14 +7622,14 @@ func (p *KuneiformParser) Procedure_return() (localctx IProcedure_returnContext) } } { - p.SetState(450) + p.SetState(452) var _x = p.Type_list() localctx.(*Procedure_returnContext).unnamed_return_types = _x } { - p.SetState(451) + p.SetState(453) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -7742,11 +7744,11 @@ func (p *KuneiformParser) Sql() (localctx ISqlContext) { p.EnterRule(localctx, 52, KuneiformParserRULE_sql) p.EnterOuterAlt(localctx, 1) { - p.SetState(455) + p.SetState(457) p.Sql_statement() } { - p.SetState(456) + p.SetState(458) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -7962,7 +7964,7 @@ func (p *KuneiformParser) Sql_statement() (localctx ISql_statementContext) { var _la int p.EnterOuterAlt(localctx, 1) - p.SetState(467) + p.SetState(469) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7971,7 +7973,7 @@ func (p *KuneiformParser) Sql_statement() (localctx ISql_statementContext) { if _la == KuneiformParserWITH { { - p.SetState(458) + p.SetState(460) p.Match(KuneiformParserWITH) if p.HasError() { // Recognition error - abort rule @@ -7979,10 +7981,10 @@ func (p *KuneiformParser) Sql_statement() (localctx ISql_statementContext) { } } { - p.SetState(459) + p.SetState(461) p.Common_table_expression() } - p.SetState(464) + p.SetState(466) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -7991,7 +7993,7 @@ func (p *KuneiformParser) Sql_statement() (localctx ISql_statementContext) { for _la == KuneiformParserCOMMA { { - p.SetState(460) + p.SetState(462) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -7999,11 +8001,11 @@ func (p *KuneiformParser) Sql_statement() (localctx ISql_statementContext) { } } { - p.SetState(461) + p.SetState(463) p.Common_table_expression() } - p.SetState(466) + p.SetState(468) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8012,7 +8014,7 @@ func (p *KuneiformParser) Sql_statement() (localctx ISql_statementContext) { } } - p.SetState(473) + p.SetState(475) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8021,25 +8023,25 @@ func (p *KuneiformParser) Sql_statement() (localctx ISql_statementContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserSELECT: { - p.SetState(469) + p.SetState(471) p.Select_statement() } case KuneiformParserUPDATE: { - p.SetState(470) + p.SetState(472) p.Update_statement() } case KuneiformParserINSERT: { - p.SetState(471) + p.SetState(473) p.Insert_statement() } case KuneiformParserDELETE: { - p.SetState(472) + p.SetState(474) p.Delete_statement() } @@ -8226,18 +8228,18 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr p.EnterOuterAlt(localctx, 1) { - p.SetState(475) + p.SetState(477) p.Identifier() } { - p.SetState(476) + p.SetState(478) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(485) + p.SetState(487) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8246,10 +8248,10 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr if _la == KuneiformParserDOUBLE_QUOTE || _la == KuneiformParserIDENTIFIER { { - p.SetState(477) + p.SetState(479) p.Identifier() } - p.SetState(482) + p.SetState(484) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8258,7 +8260,7 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr for _la == KuneiformParserCOMMA { { - p.SetState(478) + p.SetState(480) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -8266,11 +8268,11 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr } } { - p.SetState(479) + p.SetState(481) p.Identifier() } - p.SetState(484) + p.SetState(486) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8280,7 +8282,7 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr } { - p.SetState(487) + p.SetState(489) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -8288,7 +8290,7 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr } } { - p.SetState(488) + p.SetState(490) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -8296,7 +8298,7 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr } } { - p.SetState(489) + p.SetState(491) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -8304,11 +8306,11 @@ func (p *KuneiformParser) Common_table_expression() (localctx ICommon_table_expr } } { - p.SetState(490) + p.SetState(492) p.Select_statement() } { - p.SetState(491) + p.SetState(493) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -8623,10 +8625,10 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) p.EnterOuterAlt(localctx, 1) { - p.SetState(493) + p.SetState(495) p.Select_core() } - p.SetState(499) + p.SetState(501) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8635,22 +8637,22 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) for (int64((_la-101)) & ^0x3f) == 0 && ((int64(1)<<(_la-101))&7) != 0 { { - p.SetState(494) + p.SetState(496) p.Compound_operator() } { - p.SetState(495) + p.SetState(497) p.Select_core() } - p.SetState(501) + p.SetState(503) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(512) + p.SetState(514) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8659,7 +8661,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) if _la == KuneiformParserORDER { { - p.SetState(502) + p.SetState(504) p.Match(KuneiformParserORDER) if p.HasError() { // Recognition error - abort rule @@ -8667,7 +8669,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) } } { - p.SetState(503) + p.SetState(505) p.Match(KuneiformParserBY) if p.HasError() { // Recognition error - abort rule @@ -8675,10 +8677,10 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) } } { - p.SetState(504) + p.SetState(506) p.Ordering_term() } - p.SetState(509) + p.SetState(511) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8687,7 +8689,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) for _la == KuneiformParserCOMMA { { - p.SetState(505) + p.SetState(507) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -8695,11 +8697,11 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) } } { - p.SetState(506) + p.SetState(508) p.Ordering_term() } - p.SetState(511) + p.SetState(513) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8708,7 +8710,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) } } - p.SetState(516) + p.SetState(518) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8717,7 +8719,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) if _la == KuneiformParserLIMIT { { - p.SetState(514) + p.SetState(516) p.Match(KuneiformParserLIMIT) if p.HasError() { // Recognition error - abort rule @@ -8725,7 +8727,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) } } { - p.SetState(515) + p.SetState(517) var _x = p.sql_expr(0) @@ -8733,7 +8735,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) } } - p.SetState(520) + p.SetState(522) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8742,7 +8744,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) if _la == KuneiformParserOFFSET { { - p.SetState(518) + p.SetState(520) p.Match(KuneiformParserOFFSET) if p.HasError() { // Recognition error - abort rule @@ -8750,7 +8752,7 @@ func (p *KuneiformParser) Select_statement() (localctx ISelect_statementContext) } } { - p.SetState(519) + p.SetState(521) var _x = p.sql_expr(0) @@ -8860,7 +8862,7 @@ func (p *KuneiformParser) Compound_operator() (localctx ICompound_operatorContex p.EnterRule(localctx, 60, KuneiformParserRULE_compound_operator) var _la int - p.SetState(528) + p.SetState(530) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8870,14 +8872,14 @@ func (p *KuneiformParser) Compound_operator() (localctx ICompound_operatorContex case KuneiformParserUNION: p.EnterOuterAlt(localctx, 1) { - p.SetState(522) + p.SetState(524) p.Match(KuneiformParserUNION) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(524) + p.SetState(526) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -8886,7 +8888,7 @@ func (p *KuneiformParser) Compound_operator() (localctx ICompound_operatorContex if _la == KuneiformParserALL { { - p.SetState(523) + p.SetState(525) p.Match(KuneiformParserALL) if p.HasError() { // Recognition error - abort rule @@ -8899,7 +8901,7 @@ func (p *KuneiformParser) Compound_operator() (localctx ICompound_operatorContex case KuneiformParserINTERSECT: p.EnterOuterAlt(localctx, 2) { - p.SetState(526) + p.SetState(528) p.Match(KuneiformParserINTERSECT) if p.HasError() { // Recognition error - abort rule @@ -8910,7 +8912,7 @@ func (p *KuneiformParser) Compound_operator() (localctx ICompound_operatorContex case KuneiformParserEXCEPT: p.EnterOuterAlt(localctx, 3) { - p.SetState(527) + p.SetState(529) p.Match(KuneiformParserEXCEPT) if p.HasError() { // Recognition error - abort rule @@ -9048,10 +9050,10 @@ func (p *KuneiformParser) Ordering_term() (localctx IOrdering_termContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(530) + p.SetState(532) p.sql_expr(0) } - p.SetState(532) + p.SetState(534) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9060,7 +9062,7 @@ func (p *KuneiformParser) Ordering_term() (localctx IOrdering_termContext) { if _la == KuneiformParserASC || _la == KuneiformParserDESC { { - p.SetState(531) + p.SetState(533) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserASC || _la == KuneiformParserDESC) { @@ -9072,7 +9074,7 @@ func (p *KuneiformParser) Ordering_term() (localctx IOrdering_termContext) { } } - p.SetState(536) + p.SetState(538) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9081,7 +9083,7 @@ func (p *KuneiformParser) Ordering_term() (localctx IOrdering_termContext) { if _la == KuneiformParserNULLS { { - p.SetState(534) + p.SetState(536) p.Match(KuneiformParserNULLS) if p.HasError() { // Recognition error - abort rule @@ -9089,7 +9091,7 @@ func (p *KuneiformParser) Ordering_term() (localctx IOrdering_termContext) { } } { - p.SetState(535) + p.SetState(537) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserFIRST || _la == KuneiformParserLAST) { @@ -9426,14 +9428,14 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(538) + p.SetState(540) p.Match(KuneiformParserSELECT) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(540) + p.SetState(542) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9442,7 +9444,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { if _la == KuneiformParserDISTINCT { { - p.SetState(539) + p.SetState(541) p.Match(KuneiformParserDISTINCT) if p.HasError() { // Recognition error - abort rule @@ -9452,10 +9454,10 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } { - p.SetState(542) + p.SetState(544) p.Result_column() } - p.SetState(547) + p.SetState(549) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9464,7 +9466,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { for _la == KuneiformParserCOMMA { { - p.SetState(543) + p.SetState(545) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -9472,18 +9474,18 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } { - p.SetState(544) + p.SetState(546) p.Result_column() } - p.SetState(549) + p.SetState(551) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(558) + p.SetState(560) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9492,7 +9494,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { if _la == KuneiformParserFROM { { - p.SetState(550) + p.SetState(552) p.Match(KuneiformParserFROM) if p.HasError() { // Recognition error - abort rule @@ -9500,10 +9502,10 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } { - p.SetState(551) + p.SetState(553) p.Relation() } - p.SetState(555) + p.SetState(557) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9512,11 +9514,11 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { for (int64((_la-73)) & ^0x3f) == 0 && ((int64(1)<<(_la-73))&134217735) != 0 { { - p.SetState(552) + p.SetState(554) p.Join() } - p.SetState(557) + p.SetState(559) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9525,7 +9527,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } - p.SetState(562) + p.SetState(564) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9534,7 +9536,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { if _la == KuneiformParserWHERE { { - p.SetState(560) + p.SetState(562) p.Match(KuneiformParserWHERE) if p.HasError() { // Recognition error - abort rule @@ -9542,7 +9544,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } { - p.SetState(561) + p.SetState(563) var _x = p.sql_expr(0) @@ -9550,7 +9552,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } - p.SetState(571) + p.SetState(573) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9559,7 +9561,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { if _la == KuneiformParserGROUP { { - p.SetState(564) + p.SetState(566) p.Match(KuneiformParserGROUP) if p.HasError() { // Recognition error - abort rule @@ -9567,7 +9569,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } { - p.SetState(565) + p.SetState(567) p.Match(KuneiformParserBY) if p.HasError() { // Recognition error - abort rule @@ -9575,13 +9577,13 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } { - p.SetState(566) + p.SetState(568) var _x = p.Sql_expr_list() localctx.(*Select_coreContext).group_by = _x } - p.SetState(569) + p.SetState(571) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9590,7 +9592,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { if _la == KuneiformParserHAVING { { - p.SetState(567) + p.SetState(569) p.Match(KuneiformParserHAVING) if p.HasError() { // Recognition error - abort rule @@ -9598,7 +9600,7 @@ func (p *KuneiformParser) Select_core() (localctx ISelect_coreContext) { } } { - p.SetState(568) + p.SetState(570) var _x = p.sql_expr(0) @@ -9910,7 +9912,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { p.EnterRule(localctx, 66, KuneiformParserRULE_relation) var _la int - p.SetState(596) + p.SetState(598) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9921,13 +9923,13 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { localctx = NewTable_relationContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(573) + p.SetState(575) var _x = p.Identifier() localctx.(*Table_relationContext).table_name = _x } - p.SetState(578) + p.SetState(580) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9935,7 +9937,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { _la = p.GetTokenStream().LA(1) if _la == KuneiformParserDOUBLE_QUOTE || _la == KuneiformParserAS || _la == KuneiformParserIDENTIFIER { - p.SetState(575) + p.SetState(577) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9944,7 +9946,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { if _la == KuneiformParserAS { { - p.SetState(574) + p.SetState(576) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -9954,7 +9956,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { } { - p.SetState(577) + p.SetState(579) var _x = p.Identifier() @@ -9967,7 +9969,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { localctx = NewSubquery_relationContext(p, localctx) p.EnterOuterAlt(localctx, 2) { - p.SetState(580) + p.SetState(582) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -9975,18 +9977,18 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { } } { - p.SetState(581) + p.SetState(583) p.Select_statement() } { - p.SetState(582) + p.SetState(584) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(587) + p.SetState(589) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -9994,7 +9996,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { _la = p.GetTokenStream().LA(1) if _la == KuneiformParserDOUBLE_QUOTE || _la == KuneiformParserAS || _la == KuneiformParserIDENTIFIER { - p.SetState(584) + p.SetState(586) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10003,7 +10005,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { if _la == KuneiformParserAS { { - p.SetState(583) + p.SetState(585) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -10013,7 +10015,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { } { - p.SetState(586) + p.SetState(588) var _x = p.Identifier() @@ -10026,11 +10028,11 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { localctx = NewFunction_relationContext(p, localctx) p.EnterOuterAlt(localctx, 3) { - p.SetState(589) + p.SetState(591) p.Sql_function_call() } - p.SetState(591) + p.SetState(593) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10039,7 +10041,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { if _la == KuneiformParserAS { { - p.SetState(590) + p.SetState(592) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -10048,7 +10050,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { } } - p.SetState(594) + p.SetState(596) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10057,7 +10059,7 @@ func (p *KuneiformParser) Relation() (localctx IRelationContext) { if _la == KuneiformParserDOUBLE_QUOTE || _la == KuneiformParserIDENTIFIER { { - p.SetState(593) + p.SetState(595) var _x = p.Identifier() @@ -10217,7 +10219,7 @@ func (p *KuneiformParser) Join() (localctx IJoinContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(598) + p.SetState(600) _la = p.GetTokenStream().LA(1) if !((int64((_la-73)) & ^0x3f) == 0 && ((int64(1)<<(_la-73))&134217735) != 0) { @@ -10228,7 +10230,7 @@ func (p *KuneiformParser) Join() (localctx IJoinContext) { } } { - p.SetState(599) + p.SetState(601) p.Match(KuneiformParserJOIN) if p.HasError() { // Recognition error - abort rule @@ -10236,11 +10238,11 @@ func (p *KuneiformParser) Join() (localctx IJoinContext) { } } { - p.SetState(600) + p.SetState(602) p.Relation() } { - p.SetState(601) + p.SetState(603) p.Match(KuneiformParserON) if p.HasError() { // Recognition error - abort rule @@ -10248,7 +10250,7 @@ func (p *KuneiformParser) Join() (localctx IJoinContext) { } } { - p.SetState(602) + p.SetState(604) p.sql_expr(0) } @@ -10445,7 +10447,7 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { p.EnterRule(localctx, 70, KuneiformParserRULE_result_column) var _la int - p.SetState(617) + p.SetState(619) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10456,10 +10458,10 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { localctx = NewExpression_result_columnContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(604) + p.SetState(606) p.sql_expr(0) } - p.SetState(609) + p.SetState(611) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10467,7 +10469,7 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { _la = p.GetTokenStream().LA(1) if _la == KuneiformParserDOUBLE_QUOTE || _la == KuneiformParserAS || _la == KuneiformParserIDENTIFIER { - p.SetState(606) + p.SetState(608) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10476,7 +10478,7 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { if _la == KuneiformParserAS { { - p.SetState(605) + p.SetState(607) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -10486,7 +10488,7 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { } { - p.SetState(608) + p.SetState(610) p.Identifier() } @@ -10495,7 +10497,7 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { case 2: localctx = NewWildcard_result_columnContext(p, localctx) p.EnterOuterAlt(localctx, 2) - p.SetState(614) + p.SetState(616) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10504,14 +10506,14 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { if _la == KuneiformParserDOUBLE_QUOTE || _la == KuneiformParserIDENTIFIER { { - p.SetState(611) + p.SetState(613) var _x = p.Identifier() localctx.(*Wildcard_result_columnContext).table_name = _x } { - p.SetState(612) + p.SetState(614) p.Match(KuneiformParserPERIOD) if p.HasError() { // Recognition error - abort rule @@ -10521,7 +10523,7 @@ func (p *KuneiformParser) Result_column() (localctx IResult_columnContext) { } { - p.SetState(616) + p.SetState(618) p.Match(KuneiformParserSTAR) if p.HasError() { // Recognition error - abort rule @@ -10847,7 +10849,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) p.EnterOuterAlt(localctx, 1) { - p.SetState(619) + p.SetState(621) p.Match(KuneiformParserUPDATE) if p.HasError() { // Recognition error - abort rule @@ -10855,13 +10857,13 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } } { - p.SetState(620) + p.SetState(622) var _x = p.Identifier() localctx.(*Update_statementContext).table_name = _x } - p.SetState(623) + p.SetState(625) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10870,7 +10872,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) if _la == KuneiformParserAS { { - p.SetState(621) + p.SetState(623) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -10878,7 +10880,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } } { - p.SetState(622) + p.SetState(624) var _x = p.Identifier() @@ -10887,7 +10889,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } { - p.SetState(625) + p.SetState(627) p.Match(KuneiformParserSET) if p.HasError() { // Recognition error - abort rule @@ -10895,10 +10897,10 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } } { - p.SetState(626) + p.SetState(628) p.Update_set_clause() } - p.SetState(631) + p.SetState(633) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10907,7 +10909,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) for _la == KuneiformParserCOMMA { { - p.SetState(627) + p.SetState(629) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -10915,18 +10917,18 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } } { - p.SetState(628) + p.SetState(630) p.Update_set_clause() } - p.SetState(633) + p.SetState(635) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(642) + p.SetState(644) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10935,7 +10937,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) if _la == KuneiformParserFROM { { - p.SetState(634) + p.SetState(636) p.Match(KuneiformParserFROM) if p.HasError() { // Recognition error - abort rule @@ -10943,10 +10945,10 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } } { - p.SetState(635) + p.SetState(637) p.Relation() } - p.SetState(639) + p.SetState(641) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10955,11 +10957,11 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) for (int64((_la-73)) & ^0x3f) == 0 && ((int64(1)<<(_la-73))&134217735) != 0 { { - p.SetState(636) + p.SetState(638) p.Join() } - p.SetState(641) + p.SetState(643) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10968,7 +10970,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } } - p.SetState(646) + p.SetState(648) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -10977,7 +10979,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) if _la == KuneiformParserWHERE { { - p.SetState(644) + p.SetState(646) p.Match(KuneiformParserWHERE) if p.HasError() { // Recognition error - abort rule @@ -10985,7 +10987,7 @@ func (p *KuneiformParser) Update_statement() (localctx IUpdate_statementContext) } } { - p.SetState(645) + p.SetState(647) var _x = p.sql_expr(0) @@ -11125,14 +11127,14 @@ func (p *KuneiformParser) Update_set_clause() (localctx IUpdate_set_clauseContex p.EnterRule(localctx, 74, KuneiformParserRULE_update_set_clause) p.EnterOuterAlt(localctx, 1) { - p.SetState(648) + p.SetState(650) var _x = p.Identifier() localctx.(*Update_set_clauseContext).column = _x } { - p.SetState(649) + p.SetState(651) p.Match(KuneiformParserEQUALS) if p.HasError() { // Recognition error - abort rule @@ -11140,7 +11142,7 @@ func (p *KuneiformParser) Update_set_clause() (localctx IUpdate_set_clauseContex } } { - p.SetState(650) + p.SetState(652) p.sql_expr(0) } @@ -11432,7 +11434,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) p.EnterOuterAlt(localctx, 1) { - p.SetState(652) + p.SetState(654) p.Match(KuneiformParserINSERT) if p.HasError() { // Recognition error - abort rule @@ -11440,7 +11442,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(653) + p.SetState(655) p.Match(KuneiformParserINTO) if p.HasError() { // Recognition error - abort rule @@ -11448,13 +11450,13 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(654) + p.SetState(656) var _x = p.Identifier() localctx.(*Insert_statementContext).table_name = _x } - p.SetState(657) + p.SetState(659) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -11463,7 +11465,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) if _la == KuneiformParserAS { { - p.SetState(655) + p.SetState(657) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -11471,7 +11473,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(656) + p.SetState(658) var _x = p.Identifier() @@ -11479,7 +11481,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } - p.SetState(663) + p.SetState(665) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -11488,7 +11490,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) if _la == KuneiformParserLPAREN { { - p.SetState(659) + p.SetState(661) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -11496,14 +11498,14 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(660) + p.SetState(662) var _x = p.Identifier_list() localctx.(*Insert_statementContext).target_columns = _x } { - p.SetState(661) + p.SetState(663) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -11513,7 +11515,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } { - p.SetState(665) + p.SetState(667) p.Match(KuneiformParserVALUES) if p.HasError() { // Recognition error - abort rule @@ -11521,7 +11523,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(666) + p.SetState(668) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -11529,18 +11531,18 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(667) + p.SetState(669) p.Sql_expr_list() } { - p.SetState(668) + p.SetState(670) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(676) + p.SetState(678) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -11549,7 +11551,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) for _la == KuneiformParserCOMMA { { - p.SetState(669) + p.SetState(671) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -11557,7 +11559,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(670) + p.SetState(672) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -11565,11 +11567,11 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } { - p.SetState(671) + p.SetState(673) p.Sql_expr_list() } { - p.SetState(672) + p.SetState(674) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -11577,14 +11579,14 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) } } - p.SetState(678) + p.SetState(680) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(680) + p.SetState(682) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -11593,7 +11595,7 @@ func (p *KuneiformParser) Insert_statement() (localctx IInsert_statementContext) if _la == KuneiformParserON { { - p.SetState(679) + p.SetState(681) p.Upsert_clause() } @@ -11880,7 +11882,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { p.EnterOuterAlt(localctx, 1) { - p.SetState(682) + p.SetState(684) p.Match(KuneiformParserON) if p.HasError() { // Recognition error - abort rule @@ -11888,14 +11890,14 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } } { - p.SetState(683) + p.SetState(685) p.Match(KuneiformParserCONFLICT) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(691) + p.SetState(693) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -11904,7 +11906,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { if _la == KuneiformParserLPAREN { { - p.SetState(684) + p.SetState(686) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -11912,21 +11914,21 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } } { - p.SetState(685) + p.SetState(687) var _x = p.Identifier_list() localctx.(*Upsert_clauseContext).conflict_columns = _x } { - p.SetState(686) + p.SetState(688) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(689) + p.SetState(691) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -11935,7 +11937,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { if _la == KuneiformParserWHERE { { - p.SetState(687) + p.SetState(689) p.Match(KuneiformParserWHERE) if p.HasError() { // Recognition error - abort rule @@ -11943,7 +11945,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } } { - p.SetState(688) + p.SetState(690) var _x = p.sql_expr(0) @@ -11954,14 +11956,14 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } { - p.SetState(693) + p.SetState(695) p.Match(KuneiformParserDO) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(709) + p.SetState(711) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -11970,7 +11972,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserNOTHING: { - p.SetState(694) + p.SetState(696) p.Match(KuneiformParserNOTHING) if p.HasError() { // Recognition error - abort rule @@ -11980,7 +11982,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { case KuneiformParserUPDATE: { - p.SetState(695) + p.SetState(697) p.Match(KuneiformParserUPDATE) if p.HasError() { // Recognition error - abort rule @@ -11988,7 +11990,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } } { - p.SetState(696) + p.SetState(698) p.Match(KuneiformParserSET) if p.HasError() { // Recognition error - abort rule @@ -11996,10 +11998,10 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } } { - p.SetState(697) + p.SetState(699) p.Update_set_clause() } - p.SetState(702) + p.SetState(704) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -12008,7 +12010,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { for _la == KuneiformParserCOMMA { { - p.SetState(698) + p.SetState(700) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -12016,18 +12018,18 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } } { - p.SetState(699) + p.SetState(701) p.Update_set_clause() } - p.SetState(704) + p.SetState(706) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(707) + p.SetState(709) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -12036,7 +12038,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { if _la == KuneiformParserWHERE { { - p.SetState(705) + p.SetState(707) p.Match(KuneiformParserWHERE) if p.HasError() { // Recognition error - abort rule @@ -12044,7 +12046,7 @@ func (p *KuneiformParser) Upsert_clause() (localctx IUpsert_clauseContext) { } } { - p.SetState(706) + p.SetState(708) var _x = p.sql_expr(0) @@ -12254,7 +12256,7 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) p.EnterOuterAlt(localctx, 1) { - p.SetState(711) + p.SetState(713) p.Match(KuneiformParserDELETE) if p.HasError() { // Recognition error - abort rule @@ -12262,7 +12264,7 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) } } { - p.SetState(712) + p.SetState(714) p.Match(KuneiformParserFROM) if p.HasError() { // Recognition error - abort rule @@ -12270,13 +12272,13 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) } } { - p.SetState(713) + p.SetState(715) var _x = p.Identifier() localctx.(*Delete_statementContext).table_name = _x } - p.SetState(716) + p.SetState(718) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -12285,7 +12287,7 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) if _la == KuneiformParserAS { { - p.SetState(714) + p.SetState(716) p.Match(KuneiformParserAS) if p.HasError() { // Recognition error - abort rule @@ -12293,7 +12295,7 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) } } { - p.SetState(715) + p.SetState(717) var _x = p.Identifier() @@ -12301,7 +12303,7 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) } } - p.SetState(720) + p.SetState(722) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -12310,7 +12312,7 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) if _la == KuneiformParserWHERE { { - p.SetState(718) + p.SetState(720) p.Match(KuneiformParserWHERE) if p.HasError() { // Recognition error - abort rule @@ -12318,7 +12320,7 @@ func (p *KuneiformParser) Delete_statement() (localctx IDelete_statementContext) } } { - p.SetState(719) + p.SetState(721) var _x = p.sql_expr(0) @@ -13699,10 +13701,8 @@ func (s *Unary_sql_exprContext) Accept(visitor antlr.ParseTreeVisitor) interface type Case_exprContext struct { Sql_exprContext - case_clause ISql_exprContext - when_condition ISql_exprContext - then ISql_exprContext - else_clause ISql_exprContext + case_clause ISql_exprContext + else_clause ISql_exprContext } func NewCase_exprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Case_exprContext { @@ -13717,18 +13717,10 @@ func NewCase_exprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *Case func (s *Case_exprContext) GetCase_clause() ISql_exprContext { return s.case_clause } -func (s *Case_exprContext) GetWhen_condition() ISql_exprContext { return s.when_condition } - -func (s *Case_exprContext) GetThen() ISql_exprContext { return s.then } - func (s *Case_exprContext) GetElse_clause() ISql_exprContext { return s.else_clause } func (s *Case_exprContext) SetCase_clause(v ISql_exprContext) { s.case_clause = v } -func (s *Case_exprContext) SetWhen_condition(v ISql_exprContext) { s.when_condition = v } - -func (s *Case_exprContext) SetThen(v ISql_exprContext) { s.then = v } - func (s *Case_exprContext) SetElse_clause(v ISql_exprContext) { s.else_clause = v } func (s *Case_exprContext) GetRuleContext() antlr.RuleContext { @@ -13743,20 +13735,45 @@ func (s *Case_exprContext) END() antlr.TerminalNode { return s.GetToken(KuneiformParserEND, 0) } -func (s *Case_exprContext) AllWHEN() []antlr.TerminalNode { - return s.GetTokens(KuneiformParserWHEN) -} +func (s *Case_exprContext) AllWhen_then_clause() []IWhen_then_clauseContext { + children := s.GetChildren() + len := 0 + for _, ctx := range children { + if _, ok := ctx.(IWhen_then_clauseContext); ok { + len++ + } + } -func (s *Case_exprContext) WHEN(i int) antlr.TerminalNode { - return s.GetToken(KuneiformParserWHEN, i) -} + tst := make([]IWhen_then_clauseContext, len) + i := 0 + for _, ctx := range children { + if t, ok := ctx.(IWhen_then_clauseContext); ok { + tst[i] = t.(IWhen_then_clauseContext) + i++ + } + } -func (s *Case_exprContext) AllTHEN() []antlr.TerminalNode { - return s.GetTokens(KuneiformParserTHEN) + return tst } -func (s *Case_exprContext) THEN(i int) antlr.TerminalNode { - return s.GetToken(KuneiformParserTHEN, i) +func (s *Case_exprContext) When_then_clause(i int) IWhen_then_clauseContext { + var t antlr.RuleContext + j := 0 + for _, ctx := range s.GetChildren() { + if _, ok := ctx.(IWhen_then_clauseContext); ok { + if j == i { + t = ctx.(antlr.RuleContext) + break + } + j++ + } + } + + if t == nil { + return nil + } + + return t.(IWhen_then_clauseContext) } func (s *Case_exprContext) ELSE() antlr.TerminalNode { @@ -13924,7 +13941,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { var _alt int p.EnterOuterAlt(localctx, 1) - p.SetState(783) + p.SetState(781) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -13937,15 +13954,15 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { _prevctx = localctx { - p.SetState(723) + p.SetState(725) p.Literal() } - p.SetState(725) + p.SetState(727) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 94, p.GetParserRuleContext()) == 1 { { - p.SetState(724) + p.SetState(726) p.Type_cast() } @@ -13958,15 +13975,15 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(727) + p.SetState(729) p.Sql_function_call() } - p.SetState(729) + p.SetState(731) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 95, p.GetParserRuleContext()) == 1 { { - p.SetState(728) + p.SetState(730) p.Type_cast() } @@ -13979,15 +13996,15 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(731) + p.SetState(733) p.Variable() } - p.SetState(733) + p.SetState(735) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 96, p.GetParserRuleContext()) == 1 { { - p.SetState(732) + p.SetState(734) p.Type_cast() } @@ -13999,19 +14016,19 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx = NewColumn_sql_exprContext(p, localctx) p.SetParserRuleContext(localctx) _prevctx = localctx - p.SetState(738) + p.SetState(740) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 97, p.GetParserRuleContext()) == 1 { { - p.SetState(735) + p.SetState(737) var _x = p.Identifier() localctx.(*Column_sql_exprContext).table = _x } { - p.SetState(736) + p.SetState(738) p.Match(KuneiformParserPERIOD) if p.HasError() { // Recognition error - abort rule @@ -14023,18 +14040,18 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { goto errorExit } { - p.SetState(740) + p.SetState(742) var _x = p.Identifier() localctx.(*Column_sql_exprContext).column = _x } - p.SetState(742) + p.SetState(744) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 98, p.GetParserRuleContext()) == 1 { { - p.SetState(741) + p.SetState(743) p.Type_cast() } @@ -14047,7 +14064,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(744) + p.SetState(746) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -14055,23 +14072,23 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(745) + p.SetState(747) p.sql_expr(0) } { - p.SetState(746) + p.SetState(748) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(748) + p.SetState(750) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 99, p.GetParserRuleContext()) == 1 { { - p.SetState(747) + p.SetState(749) p.Type_cast() } @@ -14084,7 +14101,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(750) + p.SetState(752) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&2305843009216839680) != 0) { @@ -14095,8 +14112,8 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(751) - p.sql_expr(11) + p.SetState(753) + p.sql_expr(10) } case 7: @@ -14104,14 +14121,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(752) + p.SetState(754) p.Match(KuneiformParserCASE) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(754) + p.SetState(756) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14120,7 +14137,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { if ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&2377900607549735040) != 0) || ((int64((_la-69)) & ^0x3f) == 0 && ((int64(1)<<(_la-69))&-2288391560656584703) != 0) { { - p.SetState(753) + p.SetState(755) var _x = p.sql_expr(0) @@ -14128,7 +14145,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } - p.SetState(761) + p.SetState(759) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14136,45 +14153,19 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { _la = p.GetTokenStream().LA(1) for ok := true; ok; ok = _la == KuneiformParserWHEN { - { - p.SetState(756) - p.Match(KuneiformParserWHEN) - if p.HasError() { - // Recognition error - abort rule - goto errorExit - } - } - { - p.SetState(757) - - var _x = p.sql_expr(0) - - localctx.(*Case_exprContext).when_condition = _x - } { p.SetState(758) - p.Match(KuneiformParserTHEN) - if p.HasError() { - // Recognition error - abort rule - goto errorExit - } + p.When_then_clause() } - { - p.SetState(759) - var _x = p.sql_expr(0) - - localctx.(*Case_exprContext).then = _x - } - - p.SetState(763) + p.SetState(761) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(767) + p.SetState(765) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14183,7 +14174,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { if _la == KuneiformParserELSE { { - p.SetState(765) + p.SetState(763) p.Match(KuneiformParserELSE) if p.HasError() { // Recognition error - abort rule @@ -14191,7 +14182,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(766) + p.SetState(764) var _x = p.sql_expr(0) @@ -14200,7 +14191,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } { - p.SetState(769) + p.SetState(767) p.Match(KuneiformParserEND) if p.HasError() { // Recognition error - abort rule @@ -14212,7 +14203,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx = NewSubquery_sql_exprContext(p, localctx) p.SetParserRuleContext(localctx) _prevctx = localctx - p.SetState(775) + p.SetState(773) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14220,7 +14211,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { _la = p.GetTokenStream().LA(1) if _la == KuneiformParserNOT || _la == KuneiformParserEXISTS { - p.SetState(772) + p.SetState(770) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14229,7 +14220,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { if _la == KuneiformParserNOT { { - p.SetState(771) + p.SetState(769) p.Match(KuneiformParserNOT) if p.HasError() { // Recognition error - abort rule @@ -14239,7 +14230,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } { - p.SetState(774) + p.SetState(772) p.Match(KuneiformParserEXISTS) if p.HasError() { // Recognition error - abort rule @@ -14249,7 +14240,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } { - p.SetState(777) + p.SetState(775) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -14257,23 +14248,23 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(778) + p.SetState(776) p.Select_statement() } { - p.SetState(779) + p.SetState(777) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(781) + p.SetState(779) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 105, p.GetParserRuleContext()) == 1 { { - p.SetState(780) + p.SetState(778) p.Type_cast() } @@ -14285,7 +14276,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { goto errorExit } p.GetParserRuleContext().SetStop(p.GetTokenStream().LT(-1)) - p.SetState(861) + p.SetState(859) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14300,7 +14291,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { p.TriggerExitRuleEvent() } _prevctx = localctx - p.SetState(859) + p.SetState(857) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14312,14 +14303,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Comparison_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(785) + p.SetState(783) - if !(p.Precpred(p.GetParserRuleContext(), 14)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 14)", "")) + if !(p.Precpred(p.GetParserRuleContext(), 13)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 13)", "")) goto errorExit } { - p.SetState(786) + p.SetState(784) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&260145152) != 0) { @@ -14330,9 +14321,9 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(787) + p.SetState(785) - var _x = p.sql_expr(15) + var _x = p.sql_expr(14) localctx.(*Comparison_sql_exprContext).right = _x } @@ -14342,13 +14333,13 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Like_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(788) + p.SetState(786) - if !(p.Precpred(p.GetParserRuleContext(), 12)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 12)", "")) + if !(p.Precpred(p.GetParserRuleContext(), 11)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 11)", "")) goto errorExit } - p.SetState(790) + p.SetState(788) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14357,7 +14348,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { if _la == KuneiformParserNOT { { - p.SetState(789) + p.SetState(787) p.Match(KuneiformParserNOT) if p.HasError() { // Recognition error - abort rule @@ -14367,7 +14358,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } { - p.SetState(792) + p.SetState(790) p.Match(KuneiformParserLIKE) if p.HasError() { // Recognition error - abort rule @@ -14375,9 +14366,9 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(793) + p.SetState(791) - var _x = p.sql_expr(13) + var _x = p.sql_expr(12) localctx.(*Like_sql_exprContext).right = _x } @@ -14387,13 +14378,13 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Between_sql_exprContext).element = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(794) + p.SetState(792) - if !(p.Precpred(p.GetParserRuleContext(), 10)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 10)", "")) + if !(p.Precpred(p.GetParserRuleContext(), 9)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 9)", "")) goto errorExit } - p.SetState(796) + p.SetState(794) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14402,7 +14393,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { if _la == KuneiformParserNOT { { - p.SetState(795) + p.SetState(793) p.Match(KuneiformParserNOT) if p.HasError() { // Recognition error - abort rule @@ -14412,7 +14403,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } { - p.SetState(798) + p.SetState(796) p.Match(KuneiformParserBETWEEN) if p.HasError() { // Recognition error - abort rule @@ -14420,14 +14411,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(799) + p.SetState(797) var _x = p.sql_expr(0) localctx.(*Between_sql_exprContext).lower = _x } { - p.SetState(800) + p.SetState(798) p.Match(KuneiformParserAND) if p.HasError() { // Recognition error - abort rule @@ -14435,9 +14426,9 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(801) + p.SetState(799) - var _x = p.sql_expr(11) + var _x = p.sql_expr(10) localctx.(*Between_sql_exprContext).upper = _x } @@ -14447,14 +14438,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Arithmetic_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(803) + p.SetState(801) if !(p.Precpred(p.GetParserRuleContext(), 5)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 5)", "")) goto errorExit } { - p.SetState(804) + p.SetState(802) p.Match(KuneiformParserCONCAT) if p.HasError() { // Recognition error - abort rule @@ -14462,7 +14453,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(805) + p.SetState(803) var _x = p.sql_expr(6) @@ -14474,14 +14465,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Arithmetic_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(806) + p.SetState(804) if !(p.Precpred(p.GetParserRuleContext(), 4)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 4)", "")) goto errorExit } { - p.SetState(807) + p.SetState(805) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&4734976) != 0) { @@ -14492,7 +14483,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(808) + p.SetState(806) var _x = p.sql_expr(5) @@ -14504,14 +14495,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Arithmetic_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(809) + p.SetState(807) if !(p.Precpred(p.GetParserRuleContext(), 3)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 3)", "")) goto errorExit } { - p.SetState(810) + p.SetState(808) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserPLUS || _la == KuneiformParserMINUS) { @@ -14522,7 +14513,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(811) + p.SetState(809) var _x = p.sql_expr(4) @@ -14534,14 +14525,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Logical_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(812) + p.SetState(810) if !(p.Precpred(p.GetParserRuleContext(), 2)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 2)", "")) goto errorExit } { - p.SetState(813) + p.SetState(811) p.Match(KuneiformParserAND) if p.HasError() { // Recognition error - abort rule @@ -14549,7 +14540,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(814) + p.SetState(812) var _x = p.sql_expr(3) @@ -14561,14 +14552,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { localctx.(*Logical_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(815) + p.SetState(813) if !(p.Precpred(p.GetParserRuleContext(), 1)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 1)", "")) goto errorExit } { - p.SetState(816) + p.SetState(814) p.Match(KuneiformParserOR) if p.HasError() { // Recognition error - abort rule @@ -14576,7 +14567,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(817) + p.SetState(815) var _x = p.sql_expr(2) @@ -14584,16 +14575,38 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } case 9: + localctx = NewCollate_sql_exprContext(p, NewSql_exprContext(p, _parentctx, _parentState)) + p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) + p.SetState(816) + + if !(p.Precpred(p.GetParserRuleContext(), 20)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 20)", "")) + goto errorExit + } + { + p.SetState(817) + p.Match(KuneiformParserCOLLATE) + if p.HasError() { + // Recognition error - abort rule + goto errorExit + } + } + { + p.SetState(818) + p.Identifier() + } + + case 10: localctx = NewArray_access_sql_exprContext(p, NewSql_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(818) + p.SetState(819) - if !(p.Precpred(p.GetParserRuleContext(), 17)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 17)", "")) + if !(p.Precpred(p.GetParserRuleContext(), 16)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 16)", "")) goto errorExit } { - p.SetState(819) + p.SetState(820) p.Match(KuneiformParserLBRACKET) if p.HasError() { // Recognition error - abort rule @@ -14601,23 +14614,23 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(820) + p.SetState(821) p.sql_expr(0) } { - p.SetState(821) + p.SetState(822) p.Match(KuneiformParserRBRACKET) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(823) + p.SetState(824) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 109, p.GetParserRuleContext()) == 1 { { - p.SetState(822) + p.SetState(823) p.Type_cast() } @@ -14625,17 +14638,17 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { goto errorExit } - case 10: + case 11: localctx = NewField_access_sql_exprContext(p, NewSql_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(825) + p.SetState(826) - if !(p.Precpred(p.GetParserRuleContext(), 16)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 16)", "")) + if !(p.Precpred(p.GetParserRuleContext(), 15)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 15)", "")) goto errorExit } { - p.SetState(826) + p.SetState(827) p.Match(KuneiformParserPERIOD) if p.HasError() { // Recognition error - abort rule @@ -14643,15 +14656,15 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(827) + p.SetState(828) p.Identifier() } - p.SetState(829) + p.SetState(830) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 110, p.GetParserRuleContext()) == 1 { { - p.SetState(828) + p.SetState(829) p.Type_cast() } @@ -14659,16 +14672,16 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { goto errorExit } - case 11: + case 12: localctx = NewIn_sql_exprContext(p, NewSql_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(831) + p.SetState(832) - if !(p.Precpred(p.GetParserRuleContext(), 13)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 13)", "")) + if !(p.Precpred(p.GetParserRuleContext(), 12)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 12)", "")) goto errorExit } - p.SetState(833) + p.SetState(834) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14677,7 +14690,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { if _la == KuneiformParserNOT { { - p.SetState(832) + p.SetState(833) p.Match(KuneiformParserNOT) if p.HasError() { // Recognition error - abort rule @@ -14687,7 +14700,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } { - p.SetState(835) + p.SetState(836) p.Match(KuneiformParserIN) if p.HasError() { // Recognition error - abort rule @@ -14695,14 +14708,14 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(836) + p.SetState(837) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(839) + p.SetState(840) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14711,13 +14724,13 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserLPAREN, KuneiformParserPLUS, KuneiformParserMINUS, KuneiformParserDOUBLE_QUOTE, KuneiformParserNULL, KuneiformParserNOT, KuneiformParserEXISTS, KuneiformParserCASE, KuneiformParserSTRING_, KuneiformParserTRUE, KuneiformParserFALSE, KuneiformParserDIGITS_, KuneiformParserBINARY_, KuneiformParserIDENTIFIER, KuneiformParserVARIABLE, KuneiformParserCONTEXTUAL_VARIABLE: { - p.SetState(837) + p.SetState(838) p.Sql_expr_list() } case KuneiformParserSELECT: { - p.SetState(838) + p.SetState(839) p.Select_statement() } @@ -14726,7 +14739,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { goto errorExit } { - p.SetState(841) + p.SetState(842) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -14734,26 +14747,26 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } - case 12: + case 13: localctx = NewIs_sql_exprContext(p, NewSql_exprContext(p, _parentctx, _parentState)) localctx.(*Is_sql_exprContext).left = _prevctx p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(843) + p.SetState(844) - if !(p.Precpred(p.GetParserRuleContext(), 9)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 9)", "")) + if !(p.Precpred(p.GetParserRuleContext(), 8)) { + p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 8)", "")) goto errorExit } { - p.SetState(844) + p.SetState(845) p.Match(KuneiformParserIS) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(846) + p.SetState(847) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14762,7 +14775,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { if _la == KuneiformParserNOT { { - p.SetState(845) + p.SetState(846) p.Match(KuneiformParserNOT) if p.HasError() { // Recognition error - abort rule @@ -14771,7 +14784,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } - p.SetState(854) + p.SetState(855) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14780,7 +14793,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserDISTINCT: { - p.SetState(848) + p.SetState(849) p.Match(KuneiformParserDISTINCT) if p.HasError() { // Recognition error - abort rule @@ -14788,7 +14801,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(849) + p.SetState(850) p.Match(KuneiformParserFROM) if p.HasError() { // Recognition error - abort rule @@ -14796,7 +14809,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { } } { - p.SetState(850) + p.SetState(851) var _x = p.sql_expr(0) @@ -14805,7 +14818,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { case KuneiformParserNULL: { - p.SetState(851) + p.SetState(852) p.Match(KuneiformParserNULL) if p.HasError() { // Recognition error - abort rule @@ -14815,7 +14828,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { case KuneiformParserTRUE: { - p.SetState(852) + p.SetState(853) p.Match(KuneiformParserTRUE) if p.HasError() { // Recognition error - abort rule @@ -14825,7 +14838,7 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { case KuneiformParserFALSE: { - p.SetState(853) + p.SetState(854) p.Match(KuneiformParserFALSE) if p.HasError() { // Recognition error - abort rule @@ -14838,34 +14851,12 @@ func (p *KuneiformParser) sql_expr(_p int) (localctx ISql_exprContext) { goto errorExit } - case 13: - localctx = NewCollate_sql_exprContext(p, NewSql_exprContext(p, _parentctx, _parentState)) - p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_sql_expr) - p.SetState(856) - - if !(p.Precpred(p.GetParserRuleContext(), 8)) { - p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 8)", "")) - goto errorExit - } - { - p.SetState(857) - p.Match(KuneiformParserCOLLATE) - if p.HasError() { - // Recognition error - abort rule - goto errorExit - } - } - { - p.SetState(858) - p.Identifier() - } - case antlr.ATNInvalidAltNumber: goto errorExit } } - p.SetState(863) + p.SetState(861) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -14889,6 +14880,192 @@ errorExit: goto errorExit // Trick to prevent compiler error if the label is not used } +// IWhen_then_clauseContext is an interface to support dynamic dispatch. +type IWhen_then_clauseContext interface { + antlr.ParserRuleContext + + // GetParser returns the parser. + GetParser() antlr.Parser + + // GetWhen_condition returns the when_condition rule contexts. + GetWhen_condition() ISql_exprContext + + // GetThen returns the then rule contexts. + GetThen() ISql_exprContext + + // SetWhen_condition sets the when_condition rule contexts. + SetWhen_condition(ISql_exprContext) + + // SetThen sets the then rule contexts. + SetThen(ISql_exprContext) + + // Getter signatures + WHEN() antlr.TerminalNode + THEN() antlr.TerminalNode + AllSql_expr() []ISql_exprContext + Sql_expr(i int) ISql_exprContext + + // IsWhen_then_clauseContext differentiates from other interfaces. + IsWhen_then_clauseContext() +} + +type When_then_clauseContext struct { + antlr.BaseParserRuleContext + parser antlr.Parser + when_condition ISql_exprContext + then ISql_exprContext +} + +func NewEmptyWhen_then_clauseContext() *When_then_clauseContext { + var p = new(When_then_clauseContext) + antlr.InitBaseParserRuleContext(&p.BaseParserRuleContext, nil, -1) + p.RuleIndex = KuneiformParserRULE_when_then_clause + return p +} + +func InitEmptyWhen_then_clauseContext(p *When_then_clauseContext) { + antlr.InitBaseParserRuleContext(&p.BaseParserRuleContext, nil, -1) + p.RuleIndex = KuneiformParserRULE_when_then_clause +} + +func (*When_then_clauseContext) IsWhen_then_clauseContext() {} + +func NewWhen_then_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *When_then_clauseContext { + var p = new(When_then_clauseContext) + + antlr.InitBaseParserRuleContext(&p.BaseParserRuleContext, parent, invokingState) + + p.parser = parser + p.RuleIndex = KuneiformParserRULE_when_then_clause + + return p +} + +func (s *When_then_clauseContext) GetParser() antlr.Parser { return s.parser } + +func (s *When_then_clauseContext) GetWhen_condition() ISql_exprContext { return s.when_condition } + +func (s *When_then_clauseContext) GetThen() ISql_exprContext { return s.then } + +func (s *When_then_clauseContext) SetWhen_condition(v ISql_exprContext) { s.when_condition = v } + +func (s *When_then_clauseContext) SetThen(v ISql_exprContext) { s.then = v } + +func (s *When_then_clauseContext) WHEN() antlr.TerminalNode { + return s.GetToken(KuneiformParserWHEN, 0) +} + +func (s *When_then_clauseContext) THEN() antlr.TerminalNode { + return s.GetToken(KuneiformParserTHEN, 0) +} + +func (s *When_then_clauseContext) AllSql_expr() []ISql_exprContext { + children := s.GetChildren() + len := 0 + for _, ctx := range children { + if _, ok := ctx.(ISql_exprContext); ok { + len++ + } + } + + tst := make([]ISql_exprContext, len) + i := 0 + for _, ctx := range children { + if t, ok := ctx.(ISql_exprContext); ok { + tst[i] = t.(ISql_exprContext) + i++ + } + } + + return tst +} + +func (s *When_then_clauseContext) Sql_expr(i int) ISql_exprContext { + var t antlr.RuleContext + j := 0 + for _, ctx := range s.GetChildren() { + if _, ok := ctx.(ISql_exprContext); ok { + if j == i { + t = ctx.(antlr.RuleContext) + break + } + j++ + } + } + + if t == nil { + return nil + } + + return t.(ISql_exprContext) +} + +func (s *When_then_clauseContext) GetRuleContext() antlr.RuleContext { + return s +} + +func (s *When_then_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string { + return antlr.TreesStringTree(s, ruleNames, recog) +} + +func (s *When_then_clauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { + switch t := visitor.(type) { + case KuneiformParserVisitor: + return t.VisitWhen_then_clause(s) + + default: + return t.VisitChildren(s) + } +} + +func (p *KuneiformParser) When_then_clause() (localctx IWhen_then_clauseContext) { + localctx = NewWhen_then_clauseContext(p, p.GetParserRuleContext(), p.GetState()) + p.EnterRule(localctx, 84, KuneiformParserRULE_when_then_clause) + p.EnterOuterAlt(localctx, 1) + { + p.SetState(862) + p.Match(KuneiformParserWHEN) + if p.HasError() { + // Recognition error - abort rule + goto errorExit + } + } + { + p.SetState(863) + + var _x = p.sql_expr(0) + + localctx.(*When_then_clauseContext).when_condition = _x + } + { + p.SetState(864) + p.Match(KuneiformParserTHEN) + if p.HasError() { + // Recognition error - abort rule + goto errorExit + } + } + { + p.SetState(865) + + var _x = p.sql_expr(0) + + localctx.(*When_then_clauseContext).then = _x + } + +errorExit: + if p.HasError() { + v := p.GetError() + localctx.SetException(v) + p.GetErrorHandler().ReportError(p, v) + p.GetErrorHandler().Recover(p, v) + p.SetError(nil) + } + p.ExitRule() + return localctx + goto errorExit // Trick to prevent compiler error if the label is not used +} + // ISql_expr_listContext is an interface to support dynamic dispatch. type ISql_expr_listContext interface { antlr.ParserRuleContext @@ -15007,15 +15184,15 @@ func (s *Sql_expr_listContext) Accept(visitor antlr.ParseTreeVisitor) interface{ func (p *KuneiformParser) Sql_expr_list() (localctx ISql_expr_listContext) { localctx = NewSql_expr_listContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 84, KuneiformParserRULE_sql_expr_list) + p.EnterRule(localctx, 86, KuneiformParserRULE_sql_expr_list) var _la int p.EnterOuterAlt(localctx, 1) { - p.SetState(864) + p.SetState(867) p.sql_expr(0) } - p.SetState(869) + p.SetState(872) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15024,7 +15201,7 @@ func (p *KuneiformParser) Sql_expr_list() (localctx ISql_expr_listContext) { for _la == KuneiformParserCOMMA { { - p.SetState(865) + p.SetState(868) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -15032,11 +15209,11 @@ func (p *KuneiformParser) Sql_expr_list() (localctx ISql_expr_listContext) { } } { - p.SetState(866) + p.SetState(869) p.sql_expr(0) } - p.SetState(871) + p.SetState(874) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15320,10 +15497,10 @@ func (s *Foreign_call_sqlContext) Accept(visitor antlr.ParseTreeVisitor) interfa func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContext) { localctx = NewSql_function_callContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 86, KuneiformParserRULE_sql_function_call) + p.EnterRule(localctx, 88, KuneiformParserRULE_sql_function_call) var _la int - p.SetState(895) + p.SetState(898) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15334,25 +15511,25 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex localctx = NewNormal_call_sqlContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(872) + p.SetState(875) p.Identifier() } { - p.SetState(873) + p.SetState(876) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(879) + p.SetState(882) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } switch p.GetTokenStream().LA(1) { case KuneiformParserLPAREN, KuneiformParserPLUS, KuneiformParserMINUS, KuneiformParserDOUBLE_QUOTE, KuneiformParserNULL, KuneiformParserNOT, KuneiformParserEXISTS, KuneiformParserCASE, KuneiformParserDISTINCT, KuneiformParserSTRING_, KuneiformParserTRUE, KuneiformParserFALSE, KuneiformParserDIGITS_, KuneiformParserBINARY_, KuneiformParserIDENTIFIER, KuneiformParserVARIABLE, KuneiformParserCONTEXTUAL_VARIABLE: - p.SetState(875) + p.SetState(878) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15361,7 +15538,7 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex if _la == KuneiformParserDISTINCT { { - p.SetState(874) + p.SetState(877) p.Match(KuneiformParserDISTINCT) if p.HasError() { // Recognition error - abort rule @@ -15371,13 +15548,13 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex } { - p.SetState(877) + p.SetState(880) p.Sql_expr_list() } case KuneiformParserSTAR: { - p.SetState(878) + p.SetState(881) p.Match(KuneiformParserSTAR) if p.HasError() { // Recognition error - abort rule @@ -15390,7 +15567,7 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex default: } { - p.SetState(881) + p.SetState(884) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -15402,11 +15579,11 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex localctx = NewForeign_call_sqlContext(p, localctx) p.EnterOuterAlt(localctx, 2) { - p.SetState(883) + p.SetState(886) p.Identifier() } { - p.SetState(884) + p.SetState(887) p.Match(KuneiformParserLBRACKET) if p.HasError() { // Recognition error - abort rule @@ -15414,14 +15591,14 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex } } { - p.SetState(885) + p.SetState(888) var _x = p.sql_expr(0) localctx.(*Foreign_call_sqlContext).dbid = _x } { - p.SetState(886) + p.SetState(889) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -15429,14 +15606,14 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex } } { - p.SetState(887) + p.SetState(890) var _x = p.sql_expr(0) localctx.(*Foreign_call_sqlContext).procedure = _x } { - p.SetState(888) + p.SetState(891) p.Match(KuneiformParserRBRACKET) if p.HasError() { // Recognition error - abort rule @@ -15444,14 +15621,14 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex } } { - p.SetState(889) + p.SetState(892) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(891) + p.SetState(894) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15460,13 +15637,13 @@ func (p *KuneiformParser) Sql_function_call() (localctx ISql_function_callContex if ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&2377900607549735040) != 0) || ((int64((_la-69)) & ^0x3f) == 0 && ((int64(1)<<(_la-69))&-2288391560656584703) != 0) { { - p.SetState(890) + p.SetState(893) p.Sql_expr_list() } } { - p.SetState(893) + p.SetState(896) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -15609,11 +15786,11 @@ func (s *Action_blockContext) Accept(visitor antlr.ParseTreeVisitor) interface{} func (p *KuneiformParser) Action_block() (localctx IAction_blockContext) { localctx = NewAction_blockContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 88, KuneiformParserRULE_action_block) + p.EnterRule(localctx, 90, KuneiformParserRULE_action_block) var _la int p.EnterOuterAlt(localctx, 1) - p.SetState(902) + p.SetState(905) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15622,11 +15799,11 @@ func (p *KuneiformParser) Action_block() (localctx IAction_blockContext) { for _la == KuneiformParserDELETE || _la == KuneiformParserUPDATE || ((int64((_la-88)) & ^0x3f) == 0 && ((int64(1)<<(_la-88))&30786325579265) != 0) { { - p.SetState(897) + p.SetState(900) p.Action_statement() } { - p.SetState(898) + p.SetState(901) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -15634,7 +15811,7 @@ func (p *KuneiformParser) Action_block() (localctx IAction_blockContext) { } } - p.SetState(904) + p.SetState(907) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15895,10 +16072,10 @@ func (s *Sql_actionContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) { localctx = NewAction_statementContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 90, KuneiformParserRULE_action_statement) + p.EnterRule(localctx, 92, KuneiformParserRULE_action_statement) var _la int - p.SetState(925) + p.SetState(928) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15909,7 +16086,7 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) localctx = NewSql_actionContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(905) + p.SetState(908) p.Sql_statement() } @@ -15917,7 +16094,7 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) localctx = NewLocal_actionContext(p, localctx) p.EnterOuterAlt(localctx, 2) { - p.SetState(906) + p.SetState(909) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -15925,14 +16102,14 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) } } { - p.SetState(907) + p.SetState(910) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(909) + p.SetState(912) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15941,13 +16118,13 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) if ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&72057594041075848) != 0) || ((int64((_la-118)) & ^0x3f) == 0 && ((int64(1)<<(_la-118))&28703) != 0) { { - p.SetState(908) + p.SetState(911) p.Procedure_expr_list() } } { - p.SetState(911) + p.SetState(914) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -15958,7 +16135,7 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) case 3: localctx = NewExtension_actionContext(p, localctx) p.EnterOuterAlt(localctx, 3) - p.SetState(915) + p.SetState(918) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -15967,11 +16144,11 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) if _la == KuneiformParserVARIABLE || _la == KuneiformParserCONTEXTUAL_VARIABLE { { - p.SetState(912) + p.SetState(915) p.Variable_list() } { - p.SetState(913) + p.SetState(916) p.Match(KuneiformParserEQUALS) if p.HasError() { // Recognition error - abort rule @@ -15981,7 +16158,7 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) } { - p.SetState(917) + p.SetState(920) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -15989,7 +16166,7 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) } } { - p.SetState(918) + p.SetState(921) p.Match(KuneiformParserPERIOD) if p.HasError() { // Recognition error - abort rule @@ -15997,7 +16174,7 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) } } { - p.SetState(919) + p.SetState(922) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -16005,14 +16182,14 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) } } { - p.SetState(920) + p.SetState(923) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(922) + p.SetState(925) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -16021,13 +16198,13 @@ func (p *KuneiformParser) Action_statement() (localctx IAction_statementContext) if ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&72057594041075848) != 0) || ((int64((_la-118)) & ^0x3f) == 0 && ((int64(1)<<(_la-118))&28703) != 0) { { - p.SetState(921) + p.SetState(924) p.Procedure_expr_list() } } { - p.SetState(924) + p.SetState(927) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -16160,11 +16337,11 @@ func (s *Procedure_blockContext) Accept(visitor antlr.ParseTreeVisitor) interfac func (p *KuneiformParser) Procedure_block() (localctx IProcedure_blockContext) { localctx = NewProcedure_blockContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 92, KuneiformParserRULE_procedure_block) + p.EnterRule(localctx, 94, KuneiformParserRULE_procedure_block) var _la int p.EnterOuterAlt(localctx, 1) - p.SetState(930) + p.SetState(933) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -16173,11 +16350,11 @@ func (p *KuneiformParser) Procedure_block() (localctx IProcedure_blockContext) { for ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&432345564764438528) != 0) || ((int64((_la-88)) & ^0x3f) == 0 && ((int64(1)<<(_la-88))&13194567353857) != 0) { { - p.SetState(927) + p.SetState(930) p.Proc_statement() } - p.SetState(932) + p.SetState(935) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -16986,14 +17163,14 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex localctx = NewProcedure_exprContext(p, p.GetParserRuleContext(), _parentState) var _prevctx IProcedure_exprContext = localctx var _ antlr.ParserRuleContext = _prevctx // TODO: To prevent unused variable warning. - _startState := 94 - p.EnterRecursionRule(localctx, 94, KuneiformParserRULE_procedure_expr, _p) + _startState := 96 + p.EnterRecursionRule(localctx, 96, KuneiformParserRULE_procedure_expr, _p) var _la int var _alt int p.EnterOuterAlt(localctx, 1) - p.SetState(962) + p.SetState(965) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -17006,15 +17183,15 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex _prevctx = localctx { - p.SetState(934) + p.SetState(937) p.Literal() } - p.SetState(936) + p.SetState(939) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 128, p.GetParserRuleContext()) == 1 { { - p.SetState(935) + p.SetState(938) p.Type_cast() } @@ -17027,15 +17204,15 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(938) + p.SetState(941) p.Procedure_function_call() } - p.SetState(940) + p.SetState(943) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 129, p.GetParserRuleContext()) == 1 { { - p.SetState(939) + p.SetState(942) p.Type_cast() } @@ -17048,15 +17225,15 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(942) + p.SetState(945) p.Variable() } - p.SetState(944) + p.SetState(947) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 130, p.GetParserRuleContext()) == 1 { { - p.SetState(943) + p.SetState(946) p.Type_cast() } @@ -17069,14 +17246,14 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(946) + p.SetState(949) p.Match(KuneiformParserLBRACKET) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(948) + p.SetState(951) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -17085,25 +17262,25 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex if ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&72057594041075848) != 0) || ((int64((_la-118)) & ^0x3f) == 0 && ((int64(1)<<(_la-118))&28703) != 0) { { - p.SetState(947) + p.SetState(950) p.Procedure_expr_list() } } { - p.SetState(950) + p.SetState(953) p.Match(KuneiformParserRBRACKET) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(952) + p.SetState(955) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 132, p.GetParserRuleContext()) == 1 { { - p.SetState(951) + p.SetState(954) p.Type_cast() } @@ -17116,7 +17293,7 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(954) + p.SetState(957) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule @@ -17124,23 +17301,23 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(955) + p.SetState(958) p.procedure_expr(0) } { - p.SetState(956) + p.SetState(959) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(958) + p.SetState(961) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 133, p.GetParserRuleContext()) == 1 { { - p.SetState(957) + p.SetState(960) p.Type_cast() } @@ -17153,7 +17330,7 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex p.SetParserRuleContext(localctx) _prevctx = localctx { - p.SetState(960) + p.SetState(963) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&3147776) != 0) { @@ -17164,7 +17341,7 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(961) + p.SetState(964) p.procedure_expr(4) } @@ -17172,7 +17349,7 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex goto errorExit } p.GetParserRuleContext().SetStop(p.GetTokenStream().LT(-1)) - p.SetState(991) + p.SetState(994) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -17187,7 +17364,7 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex p.TriggerExitRuleEvent() } _prevctx = localctx - p.SetState(989) + p.SetState(992) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -17197,14 +17374,14 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex case 1: localctx = NewComparison_procedure_exprContext(p, NewProcedure_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_procedure_expr) - p.SetState(964) + p.SetState(967) if !(p.Precpred(p.GetParserRuleContext(), 5)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 5)", "")) goto errorExit } { - p.SetState(965) + p.SetState(968) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&260145152) != 0) { @@ -17215,21 +17392,21 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(966) + p.SetState(969) p.procedure_expr(6) } case 2: localctx = NewProcedure_expr_arithmeticContext(p, NewProcedure_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_procedure_expr) - p.SetState(967) + p.SetState(970) if !(p.Precpred(p.GetParserRuleContext(), 3)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 3)", "")) goto errorExit } { - p.SetState(968) + p.SetState(971) p.Match(KuneiformParserCONCAT) if p.HasError() { // Recognition error - abort rule @@ -17237,21 +17414,21 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(969) + p.SetState(972) p.procedure_expr(4) } case 3: localctx = NewProcedure_expr_arithmeticContext(p, NewProcedure_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_procedure_expr) - p.SetState(970) + p.SetState(973) if !(p.Precpred(p.GetParserRuleContext(), 2)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 2)", "")) goto errorExit } { - p.SetState(971) + p.SetState(974) _la = p.GetTokenStream().LA(1) if !((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&4734976) != 0) { @@ -17262,21 +17439,21 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(972) + p.SetState(975) p.procedure_expr(3) } case 4: localctx = NewProcedure_expr_arithmeticContext(p, NewProcedure_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_procedure_expr) - p.SetState(973) + p.SetState(976) if !(p.Precpred(p.GetParserRuleContext(), 1)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 1)", "")) goto errorExit } { - p.SetState(974) + p.SetState(977) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserPLUS || _la == KuneiformParserMINUS) { @@ -17287,21 +17464,21 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(975) + p.SetState(978) p.procedure_expr(2) } case 5: localctx = NewArray_access_procedure_exprContext(p, NewProcedure_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_procedure_expr) - p.SetState(976) + p.SetState(979) if !(p.Precpred(p.GetParserRuleContext(), 8)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 8)", "")) goto errorExit } { - p.SetState(977) + p.SetState(980) p.Match(KuneiformParserLBRACKET) if p.HasError() { // Recognition error - abort rule @@ -17309,23 +17486,23 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(978) + p.SetState(981) p.procedure_expr(0) } { - p.SetState(979) + p.SetState(982) p.Match(KuneiformParserRBRACKET) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(981) + p.SetState(984) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 135, p.GetParserRuleContext()) == 1 { { - p.SetState(980) + p.SetState(983) p.Type_cast() } @@ -17336,14 +17513,14 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex case 6: localctx = NewField_access_procedure_exprContext(p, NewProcedure_exprContext(p, _parentctx, _parentState)) p.PushNewRecursionContext(localctx, _startState, KuneiformParserRULE_procedure_expr) - p.SetState(983) + p.SetState(986) if !(p.Precpred(p.GetParserRuleContext(), 6)) { p.SetError(antlr.NewFailedPredicateException(p, "p.Precpred(p.GetParserRuleContext(), 6)", "")) goto errorExit } { - p.SetState(984) + p.SetState(987) p.Match(KuneiformParserPERIOD) if p.HasError() { // Recognition error - abort rule @@ -17351,19 +17528,19 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } { - p.SetState(985) + p.SetState(988) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(987) + p.SetState(990) p.GetErrorHandler().Sync(p) if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 136, p.GetParserRuleContext()) == 1 { { - p.SetState(986) + p.SetState(989) p.Type_cast() } @@ -17376,7 +17553,7 @@ func (p *KuneiformParser) procedure_expr(_p int) (localctx IProcedure_exprContex } } - p.SetState(993) + p.SetState(996) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -17518,15 +17695,15 @@ func (s *Procedure_expr_listContext) Accept(visitor antlr.ParseTreeVisitor) inte func (p *KuneiformParser) Procedure_expr_list() (localctx IProcedure_expr_listContext) { localctx = NewProcedure_expr_listContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 96, KuneiformParserRULE_procedure_expr_list) + p.EnterRule(localctx, 98, KuneiformParserRULE_procedure_expr_list) var _la int p.EnterOuterAlt(localctx, 1) { - p.SetState(994) + p.SetState(997) p.procedure_expr(0) } - p.SetState(999) + p.SetState(1002) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -17535,7 +17712,7 @@ func (p *KuneiformParser) Procedure_expr_list() (localctx IProcedure_expr_listCo for _la == KuneiformParserCOMMA { { - p.SetState(995) + p.SetState(998) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -17543,11 +17720,11 @@ func (p *KuneiformParser) Procedure_expr_list() (localctx IProcedure_expr_listCo } } { - p.SetState(996) + p.SetState(999) p.procedure_expr(0) } - p.SetState(1001) + p.SetState(1004) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18338,10 +18515,10 @@ func (s *Stmt_sqlContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewProc_statementContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 98, KuneiformParserRULE_proc_statement) + p.EnterRule(localctx, 100, KuneiformParserRULE_proc_statement) var _la int - p.SetState(1083) + p.SetState(1086) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18352,7 +18529,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_variable_declarationContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(1002) + p.SetState(1005) p.Match(KuneiformParserVARIABLE) if p.HasError() { // Recognition error - abort rule @@ -18360,11 +18537,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1003) + p.SetState(1006) p.Type_() } { - p.SetState(1004) + p.SetState(1007) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -18375,7 +18552,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { case 2: localctx = NewStmt_procedure_callContext(p, localctx) p.EnterOuterAlt(localctx, 2) - p.SetState(1016) + p.SetState(1019) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18384,11 +18561,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { if _la == KuneiformParserUNDERSCORE || _la == KuneiformParserVARIABLE { { - p.SetState(1006) + p.SetState(1009) p.Variable_or_underscore() } - p.SetState(1011) + p.SetState(1014) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18397,7 +18574,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { for _la == KuneiformParserCOMMA { { - p.SetState(1007) + p.SetState(1010) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -18406,11 +18583,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } { - p.SetState(1008) + p.SetState(1011) p.Variable_or_underscore() } - p.SetState(1013) + p.SetState(1016) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18418,7 +18595,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { _la = p.GetTokenStream().LA(1) } { - p.SetState(1014) + p.SetState(1017) p.Match(KuneiformParserASSIGN) if p.HasError() { // Recognition error - abort rule @@ -18428,11 +18605,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } { - p.SetState(1018) + p.SetState(1021) p.Procedure_function_call() } { - p.SetState(1019) + p.SetState(1022) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -18444,14 +18621,14 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_variable_assignmentContext(p, localctx) p.EnterOuterAlt(localctx, 3) { - p.SetState(1021) + p.SetState(1024) p.Match(KuneiformParserVARIABLE) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1023) + p.SetState(1026) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18460,13 +18637,13 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { if _la == KuneiformParserIDENTIFIER { { - p.SetState(1022) + p.SetState(1025) p.Type_() } } { - p.SetState(1025) + p.SetState(1028) p.Match(KuneiformParserASSIGN) if p.HasError() { // Recognition error - abort rule @@ -18474,11 +18651,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1026) + p.SetState(1029) p.procedure_expr(0) } { - p.SetState(1027) + p.SetState(1030) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -18490,7 +18667,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_for_loopContext(p, localctx) p.EnterOuterAlt(localctx, 4) { - p.SetState(1029) + p.SetState(1032) p.Match(KuneiformParserFOR) if p.HasError() { // Recognition error - abort rule @@ -18498,7 +18675,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1030) + p.SetState(1033) var _m = p.Match(KuneiformParserVARIABLE) @@ -18509,14 +18686,14 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1031) + p.SetState(1034) p.Match(KuneiformParserIN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1035) + p.SetState(1038) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18525,13 +18702,13 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 143, p.GetParserRuleContext()) { case 1: { - p.SetState(1032) + p.SetState(1035) p.Range_() } case 2: { - p.SetState(1033) + p.SetState(1036) var _x = p.Variable() @@ -18540,7 +18717,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { case 3: { - p.SetState(1034) + p.SetState(1037) p.Sql_statement() } @@ -18548,14 +18725,14 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { goto errorExit } { - p.SetState(1037) + p.SetState(1040) p.Match(KuneiformParserLBRACE) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1041) + p.SetState(1044) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18564,11 +18741,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { for ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&432345564764438528) != 0) || ((int64((_la-88)) & ^0x3f) == 0 && ((int64(1)<<(_la-88))&13194567353857) != 0) { { - p.SetState(1038) + p.SetState(1041) p.Proc_statement() } - p.SetState(1043) + p.SetState(1046) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18576,7 +18753,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { _la = p.GetTokenStream().LA(1) } { - p.SetState(1044) + p.SetState(1047) p.Match(KuneiformParserRBRACE) if p.HasError() { // Recognition error - abort rule @@ -18588,7 +18765,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_ifContext(p, localctx) p.EnterOuterAlt(localctx, 5) { - p.SetState(1046) + p.SetState(1049) p.Match(KuneiformParserIF) if p.HasError() { // Recognition error - abort rule @@ -18596,10 +18773,10 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1047) + p.SetState(1050) p.If_then_block() } - p.SetState(1052) + p.SetState(1055) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18608,7 +18785,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { for _la == KuneiformParserELSEIF { { - p.SetState(1048) + p.SetState(1051) p.Match(KuneiformParserELSEIF) if p.HasError() { // Recognition error - abort rule @@ -18616,18 +18793,18 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1049) + p.SetState(1052) p.If_then_block() } - p.SetState(1054) + p.SetState(1057) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit } _la = p.GetTokenStream().LA(1) } - p.SetState(1064) + p.SetState(1067) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18636,7 +18813,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { if _la == KuneiformParserELSE { { - p.SetState(1055) + p.SetState(1058) p.Match(KuneiformParserELSE) if p.HasError() { // Recognition error - abort rule @@ -18644,14 +18821,14 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1056) + p.SetState(1059) p.Match(KuneiformParserLBRACE) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1060) + p.SetState(1063) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18660,11 +18837,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { for ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&432345564764438528) != 0) || ((int64((_la-88)) & ^0x3f) == 0 && ((int64(1)<<(_la-88))&13194567353857) != 0) { { - p.SetState(1057) + p.SetState(1060) p.Proc_statement() } - p.SetState(1062) + p.SetState(1065) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18672,7 +18849,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { _la = p.GetTokenStream().LA(1) } { - p.SetState(1063) + p.SetState(1066) p.Match(KuneiformParserRBRACE) if p.HasError() { // Recognition error - abort rule @@ -18686,11 +18863,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_sqlContext(p, localctx) p.EnterOuterAlt(localctx, 6) { - p.SetState(1066) + p.SetState(1069) p.Sql_statement() } { - p.SetState(1067) + p.SetState(1070) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -18702,7 +18879,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_breakContext(p, localctx) p.EnterOuterAlt(localctx, 7) { - p.SetState(1069) + p.SetState(1072) p.Match(KuneiformParserBREAK) if p.HasError() { // Recognition error - abort rule @@ -18710,7 +18887,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1070) + p.SetState(1073) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -18722,14 +18899,14 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_returnContext(p, localctx) p.EnterOuterAlt(localctx, 8) { - p.SetState(1071) + p.SetState(1074) p.Match(KuneiformParserRETURN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1074) + p.SetState(1077) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -18738,13 +18915,13 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { switch p.GetTokenStream().LA(1) { case KuneiformParserLBRACKET, KuneiformParserLPAREN, KuneiformParserEXCL, KuneiformParserPLUS, KuneiformParserMINUS, KuneiformParserNULL, KuneiformParserSTRING_, KuneiformParserTRUE, KuneiformParserFALSE, KuneiformParserDIGITS_, KuneiformParserBINARY_, KuneiformParserIDENTIFIER, KuneiformParserVARIABLE, KuneiformParserCONTEXTUAL_VARIABLE: { - p.SetState(1072) + p.SetState(1075) p.Procedure_expr_list() } case KuneiformParserDELETE, KuneiformParserUPDATE, KuneiformParserWITH, KuneiformParserSELECT, KuneiformParserINSERT: { - p.SetState(1073) + p.SetState(1076) p.Sql_statement() } @@ -18753,7 +18930,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { goto errorExit } { - p.SetState(1076) + p.SetState(1079) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -18765,7 +18942,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { localctx = NewStmt_return_nextContext(p, localctx) p.EnterOuterAlt(localctx, 9) { - p.SetState(1078) + p.SetState(1081) p.Match(KuneiformParserRETURN) if p.HasError() { // Recognition error - abort rule @@ -18773,7 +18950,7 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1079) + p.SetState(1082) p.Match(KuneiformParserNEXT) if p.HasError() { // Recognition error - abort rule @@ -18781,11 +18958,11 @@ func (p *KuneiformParser) Proc_statement() (localctx IProc_statementContext) { } } { - p.SetState(1080) + p.SetState(1083) p.Procedure_expr_list() } { - p.SetState(1081) + p.SetState(1084) p.Match(KuneiformParserSCOL) if p.HasError() { // Recognition error - abort rule @@ -18885,12 +19062,12 @@ func (s *Variable_or_underscoreContext) Accept(visitor antlr.ParseTreeVisitor) i func (p *KuneiformParser) Variable_or_underscore() (localctx IVariable_or_underscoreContext) { localctx = NewVariable_or_underscoreContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 100, KuneiformParserRULE_variable_or_underscore) + p.EnterRule(localctx, 102, KuneiformParserRULE_variable_or_underscore) var _la int p.EnterOuterAlt(localctx, 1) { - p.SetState(1085) + p.SetState(1088) _la = p.GetTokenStream().LA(1) if !(_la == KuneiformParserUNDERSCORE || _la == KuneiformParserVARIABLE) { @@ -19145,10 +19322,10 @@ func (s *Normal_call_procedureContext) Accept(visitor antlr.ParseTreeVisitor) in func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_function_callContext) { localctx = NewProcedure_function_callContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 102, KuneiformParserRULE_procedure_function_call) + p.EnterRule(localctx, 104, KuneiformParserRULE_procedure_function_call) var _la int - p.SetState(1105) + p.SetState(1108) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -19159,7 +19336,7 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio localctx = NewNormal_call_procedureContext(p, localctx) p.EnterOuterAlt(localctx, 1) { - p.SetState(1087) + p.SetState(1090) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -19167,14 +19344,14 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio } } { - p.SetState(1088) + p.SetState(1091) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1090) + p.SetState(1093) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -19183,13 +19360,13 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio if ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&72057594041075848) != 0) || ((int64((_la-118)) & ^0x3f) == 0 && ((int64(1)<<(_la-118))&28703) != 0) { { - p.SetState(1089) + p.SetState(1092) p.Procedure_expr_list() } } { - p.SetState(1092) + p.SetState(1095) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -19201,7 +19378,7 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio localctx = NewForeign_call_procedureContext(p, localctx) p.EnterOuterAlt(localctx, 2) { - p.SetState(1093) + p.SetState(1096) p.Match(KuneiformParserIDENTIFIER) if p.HasError() { // Recognition error - abort rule @@ -19209,7 +19386,7 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio } } { - p.SetState(1094) + p.SetState(1097) p.Match(KuneiformParserLBRACKET) if p.HasError() { // Recognition error - abort rule @@ -19217,14 +19394,14 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio } } { - p.SetState(1095) + p.SetState(1098) var _x = p.procedure_expr(0) localctx.(*Foreign_call_procedureContext).dbid = _x } { - p.SetState(1096) + p.SetState(1099) p.Match(KuneiformParserCOMMA) if p.HasError() { // Recognition error - abort rule @@ -19232,14 +19409,14 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio } } { - p.SetState(1097) + p.SetState(1100) var _x = p.procedure_expr(0) localctx.(*Foreign_call_procedureContext).procedure = _x } { - p.SetState(1098) + p.SetState(1101) p.Match(KuneiformParserRBRACKET) if p.HasError() { // Recognition error - abort rule @@ -19247,14 +19424,14 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio } } { - p.SetState(1099) + p.SetState(1102) p.Match(KuneiformParserLPAREN) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1101) + p.SetState(1104) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -19263,13 +19440,13 @@ func (p *KuneiformParser) Procedure_function_call() (localctx IProcedure_functio if ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&72057594041075848) != 0) || ((int64((_la-118)) & ^0x3f) == 0 && ((int64(1)<<(_la-118))&28703) != 0) { { - p.SetState(1100) + p.SetState(1103) p.Procedure_expr_list() } } { - p.SetState(1103) + p.SetState(1106) p.Match(KuneiformParserRPAREN) if p.HasError() { // Recognition error - abort rule @@ -19429,23 +19606,23 @@ func (s *If_then_blockContext) Accept(visitor antlr.ParseTreeVisitor) interface{ func (p *KuneiformParser) If_then_block() (localctx IIf_then_blockContext) { localctx = NewIf_then_blockContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 104, KuneiformParserRULE_if_then_block) + p.EnterRule(localctx, 106, KuneiformParserRULE_if_then_block) var _la int p.EnterOuterAlt(localctx, 1) { - p.SetState(1107) + p.SetState(1110) p.procedure_expr(0) } { - p.SetState(1108) + p.SetState(1111) p.Match(KuneiformParserLBRACE) if p.HasError() { // Recognition error - abort rule goto errorExit } } - p.SetState(1112) + p.SetState(1115) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -19454,11 +19631,11 @@ func (p *KuneiformParser) If_then_block() (localctx IIf_then_blockContext) { for ((int64(_la) & ^0x3f) == 0 && ((int64(1)<<_la)&432345564764438528) != 0) || ((int64((_la-88)) & ^0x3f) == 0 && ((int64(1)<<(_la-88))&13194567353857) != 0) { { - p.SetState(1109) + p.SetState(1112) p.Proc_statement() } - p.SetState(1114) + p.SetState(1117) p.GetErrorHandler().Sync(p) if p.HasError() { goto errorExit @@ -19466,7 +19643,7 @@ func (p *KuneiformParser) If_then_block() (localctx IIf_then_blockContext) { _la = p.GetTokenStream().LA(1) } { - p.SetState(1115) + p.SetState(1118) p.Match(KuneiformParserRBRACE) if p.HasError() { // Recognition error - abort rule @@ -19600,14 +19777,14 @@ func (s *RangeContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { func (p *KuneiformParser) Range_() (localctx IRangeContext) { localctx = NewRangeContext(p, p.GetParserRuleContext(), p.GetState()) - p.EnterRule(localctx, 106, KuneiformParserRULE_range) + p.EnterRule(localctx, 108, KuneiformParserRULE_range) p.EnterOuterAlt(localctx, 1) { - p.SetState(1117) + p.SetState(1120) p.procedure_expr(0) } { - p.SetState(1118) + p.SetState(1121) p.Match(KuneiformParserRANGE) if p.HasError() { // Recognition error - abort rule @@ -19615,7 +19792,7 @@ func (p *KuneiformParser) Range_() (localctx IRangeContext) { } } { - p.SetState(1119) + p.SetState(1122) p.procedure_expr(0) } @@ -19641,7 +19818,7 @@ func (p *KuneiformParser) Sempred(localctx antlr.RuleContext, ruleIndex, predInd } return p.Sql_expr_Sempred(t, predIndex) - case 47: + case 48: var t *Procedure_exprContext = nil if localctx != nil { t = localctx.(*Procedure_exprContext) @@ -19656,13 +19833,13 @@ func (p *KuneiformParser) Sempred(localctx antlr.RuleContext, ruleIndex, predInd func (p *KuneiformParser) Sql_expr_Sempred(localctx antlr.RuleContext, predIndex int) bool { switch predIndex { case 0: - return p.Precpred(p.GetParserRuleContext(), 14) + return p.Precpred(p.GetParserRuleContext(), 13) case 1: - return p.Precpred(p.GetParserRuleContext(), 12) + return p.Precpred(p.GetParserRuleContext(), 11) case 2: - return p.Precpred(p.GetParserRuleContext(), 10) + return p.Precpred(p.GetParserRuleContext(), 9) case 3: return p.Precpred(p.GetParserRuleContext(), 5) @@ -19680,16 +19857,16 @@ func (p *KuneiformParser) Sql_expr_Sempred(localctx antlr.RuleContext, predIndex return p.Precpred(p.GetParserRuleContext(), 1) case 8: - return p.Precpred(p.GetParserRuleContext(), 17) + return p.Precpred(p.GetParserRuleContext(), 20) case 9: return p.Precpred(p.GetParserRuleContext(), 16) case 10: - return p.Precpred(p.GetParserRuleContext(), 13) + return p.Precpred(p.GetParserRuleContext(), 15) case 11: - return p.Precpred(p.GetParserRuleContext(), 9) + return p.Precpred(p.GetParserRuleContext(), 12) case 12: return p.Precpred(p.GetParserRuleContext(), 8) diff --git a/parse/gen/kuneiformparser_base_visitor.go b/parse/gen/kuneiformparser_base_visitor.go index 091d2a8b8..af422e19f 100644 --- a/parse/gen/kuneiformparser_base_visitor.go +++ b/parse/gen/kuneiformparser_base_visitor.go @@ -303,6 +303,10 @@ func (v *BaseKuneiformParserVisitor) VisitIn_sql_expr(ctx *In_sql_exprContext) i return v.VisitChildren(ctx) } +func (v *BaseKuneiformParserVisitor) VisitWhen_then_clause(ctx *When_then_clauseContext) interface{} { + return v.VisitChildren(ctx) +} + func (v *BaseKuneiformParserVisitor) VisitSql_expr_list(ctx *Sql_expr_listContext) interface{} { return v.VisitChildren(ctx) } diff --git a/parse/gen/kuneiformparser_visitor.go b/parse/gen/kuneiformparser_visitor.go index b73c7a301..517194838 100644 --- a/parse/gen/kuneiformparser_visitor.go +++ b/parse/gen/kuneiformparser_visitor.go @@ -229,6 +229,9 @@ type KuneiformParserVisitor interface { // Visit a parse tree produced by KuneiformParser#in_sql_expr. VisitIn_sql_expr(ctx *In_sql_exprContext) interface{} + // Visit a parse tree produced by KuneiformParser#when_then_clause. + VisitWhen_then_clause(ctx *When_then_clauseContext) interface{} + // Visit a parse tree produced by KuneiformParser#sql_expr_list. VisitSql_expr_list(ctx *Sql_expr_listContext) interface{} diff --git a/parse/grammar/KuneiformParser.g4 b/parse/grammar/KuneiformParser.g4 index 56f1bf7d9..ae34757db 100644 --- a/parse/grammar/KuneiformParser.g4 +++ b/parse/grammar/KuneiformParser.g4 @@ -270,6 +270,7 @@ delete_statement: sql_expr: literal type_cast? # literal_sql_expr + | sql_expr COLLATE identifier # collate_sql_expr | sql_function_call type_cast? # function_call_sql_expr | variable type_cast? # variable_sql_expr | (table=identifier PERIOD)? column=identifier type_cast? # column_sql_expr @@ -282,10 +283,9 @@ sql_expr: | (NOT|PLUS|MINUS) sql_expr # unary_sql_expr | element=sql_expr (NOT)? BETWEEN lower=sql_expr AND upper=sql_expr # between_sql_expr | left=sql_expr IS NOT? ((DISTINCT FROM right=sql_expr) | NULL | TRUE | FALSE) # is_sql_expr - | sql_expr COLLATE identifier # collate_sql_expr | CASE case_clause=sql_expr? - (WHEN when_condition=sql_expr THEN then=sql_expr)+ - (ELSE else_clause=sql_expr)? END #case_expr + (when_then_clause)+ + (ELSE else_clause=sql_expr)? END # case_expr | (NOT? EXISTS)? LPAREN select_statement RPAREN type_cast? # subquery_sql_expr // setting precedence for arithmetic operations: | left=sql_expr CONCAT right=sql_expr # arithmetic_sql_expr @@ -296,6 +296,10 @@ sql_expr: | left=sql_expr OR right=sql_expr # logical_sql_expr ; +when_then_clause: + WHEN when_condition=sql_expr THEN then=sql_expr +; + sql_expr_list: sql_expr (COMMA sql_expr)* ; diff --git a/parse/parse.go b/parse/parse.go index 55257b5f5..2e94a0acc 100644 --- a/parse/parse.go +++ b/parse/parse.go @@ -83,7 +83,10 @@ func ParseSchema(kf []byte) (res *SchemaParseResult, err error) { visitor.procedures = res.ParsedProcedures defer func() { - err = deferFn(recover()) + err2 := deferFn(recover()) + if err2 != nil { + err = err2 + } }() schema, ok := parser.Schema().Accept(visitor).(*types.Schema) @@ -131,6 +134,12 @@ func ParseProcedure(proc *types.Procedure, schema *types.Schema) (res *Procedure // with custom error positions can be passed in. func analyzeProcedureAST(proc *types.Procedure, schema *types.Schema, ast []ProcedureStmt) (res *ProcedureParseResult, err error) { errLis, stream, parser, deferFn := setupParser(proc.Body, "procedure") + defer func() { + err2 := deferFn(recover()) + if err2 != nil { + err = err2 + } + }() res = &ProcedureParseResult{ ParseErrs: errLis, @@ -172,10 +181,6 @@ func analyzeProcedureAST(proc *types.Procedure, schema *types.Schema, ast []Proc }, } - defer func() { - err = deferFn(recover()) - }() - // if there are expected errors, return the parse errors. if errLis.Err() != nil { return res, nil @@ -245,7 +250,10 @@ func ParseSQL(sql string, schema *types.Schema) (res *SQLParseResult, err error) } defer func() { - err = deferFn(recover()) + err2 := deferFn(recover()) + if err2 != nil { + err = err2 + } }() schemaVisitor := newSchemaVisitor(stream, errLis) @@ -289,6 +297,13 @@ func analyzeActionAST(action *types.Action, schema *types.Schema, ast []ActionSt ParseErrs: errLis, } + defer func() { + err2 := deferFn(recover()) + if err2 != nil { + err = err2 + } + }() + if ast == nil { schemaVisitor := newSchemaVisitor(stream, errLis) res.AST = parser.Action_block().Accept(schemaVisitor).([]ActionStmt) @@ -314,16 +329,13 @@ func analyzeActionAST(action *types.Action, schema *types.Schema, ast []ActionSt schema: schema, } - defer func() { - err = deferFn(recover()) - }() - if errLis.Err() != nil { return res, nil } for _, stmt := range res.AST { stmt.Accept(visitor) + visitor.sqlAnalyzer.reset() } return res, err diff --git a/parse/parse_test.go b/parse/parse_test.go index cac341285..dde473c71 100644 --- a/parse/parse_test.go +++ b/parse/parse_test.go @@ -1033,6 +1033,73 @@ func Test_Procedure(t *testing.T) { }, }, }, + { + name: "arrays", + proc: ` + $arr2 := array_append($arr, 2); + $arr3 int[] := array_prepend(3, $arr2); + $arr4 := [4,5]; + + $arr5 := array_cat($arr3, $arr4); + `, + inputs: map[string]*types.DataType{ + "$arr": types.ArrayType(types.IntType), + }, + want: &parse.ProcedureParseResult{ + Variables: map[string]*types.DataType{ + "$arr2": types.ArrayType(types.IntType), + "$arr3": types.ArrayType(types.IntType), + "$arr4": types.ArrayType(types.IntType), + "$arr5": types.ArrayType(types.IntType), + }, + AST: []parse.ProcedureStmt{ + &parse.ProcedureStmtCall{ + Receivers: []*parse.ExpressionVariable{ + exprVar("$arr2"), + }, + Call: &parse.ExpressionFunctionCall{ + Name: "array_append", + Args: []parse.Expression{ + exprVar("$arr"), + exprLit(2), + }, + }, + }, + &parse.ProcedureStmtAssign{ + Variable: exprVar("$arr3"), + Type: types.ArrayType(types.IntType), + Value: &parse.ExpressionFunctionCall{ + Name: "array_prepend", + Args: []parse.Expression{ + exprLit(3), + exprVar("$arr2"), + }, + }, + }, + &parse.ProcedureStmtAssign{ + Variable: exprVar("$arr4"), + Value: &parse.ExpressionMakeArray{ + Values: []parse.Expression{ + exprLit(4), + exprLit(5), + }, + }, + }, + &parse.ProcedureStmtCall{ + Receivers: []*parse.ExpressionVariable{ + exprVar("$arr5"), + }, + Call: &parse.ExpressionFunctionCall{ + Name: "array_cat", + Args: []parse.Expression{ + exprVar("$arr3"), + exprVar("$arr4"), + }, + }, + }, + }, + }, + }, } for _, tt := range tests { diff --git a/parse/types.go b/parse/types.go index 42263b829..f3f96433b 100644 --- a/parse/types.go +++ b/parse/types.go @@ -138,7 +138,7 @@ func ShapesMatch(a1, a2 []*Attribute) bool { return false } for i := range a1 { - if !a1[i].Type.Equals(a2[i].Type) { + if !a1[i].Type.EqualsStrict(a2[i].Type) { return false } } @@ -170,6 +170,17 @@ func Coalesce(attrs ...*Attribute) (res []*Attribute, ambigousCol string, err er colNames := make(map[string]struct{}) for _, a := range attrs { + // if unnamed, then we can just add and not worry about conflicts, + // since it cannot be referenced + if a.Name == "" { + res = append(res, &Attribute{ + Name: a.Name, + Type: a.Type.Copy(), + }) + + continue + } + if _, ok := colNames[a.Name]; ok { return nil, a.Name, ErrDuplicateResultColumnName } diff --git a/test/integration/kwild_test.go b/test/integration/kwild_test.go index 84f906b9c..45221f94a 100644 --- a/test/integration/kwild_test.go +++ b/test/integration/kwild_test.go @@ -18,7 +18,7 @@ var dev = flag.Bool("dev", false, "run for development purpose (no tests)") var spamTest = flag.Bool("spam", false, "run the spam test that requires a special docker image to be built") -var drivers = flag.String("drivers", "jsonrpc,cli", "comma separated list of drivers to run") +var drivers = flag.String("drivers", "jsonrpc", "comma separated list of drivers to run") // NOTE: `-parallel` is a flag that is already used by `go test` var parallelMode = flag.Bool("parallel-mode", false, "run tests in parallel mode") diff --git a/test/integration/test-data/dummy.kf b/test/integration/test-data/dummy.kf index f427cab60..e3d6992aa 100644 --- a/test/integration/test-data/dummy.kf +++ b/test/integration/test-data/dummy.kf @@ -22,13 +22,13 @@ action create_user($id, $username, $age) public { } action update_user($id, $username, $age) public { - UPDATE [users] + UPDATE users SET id = $id, username = $username, age = $age WHERE wallet = @caller; } action update_username($username) public { - UPDATE `users` + UPDATE users SET username = $username WHERE wallet = @caller; } diff --git a/test/integration/test-data/invalid_sql_syntax_fixed.kf b/test/integration/test-data/invalid_sql_syntax_fixed.kf index 25aaa7e27..fb0a4b091 100644 --- a/test/integration/test-data/invalid_sql_syntax_fixed.kf +++ b/test/integration/test-data/invalid_sql_syntax_fixed.kf @@ -9,7 +9,7 @@ table users { } action invalid_sql() public { - SELECT * + SELECT u1.* FROM users AS u1 INNER JOIN users AS u2 ON u1.id = u2.id; } \ No newline at end of file diff --git a/test/integration/test-data/test_db.kf b/test/integration/test-data/test_db.kf index 10b3e5ce4..bd4b2237e 100644 --- a/test/integration/test-data/test_db.kf +++ b/test/integration/test-data/test_db.kf @@ -36,7 +36,7 @@ action update_user($id, $username, $age) public { } action update_username($username) public { - UPDATE `users` + UPDATE users SET username = $username WHERE wallet = @caller; }