SQL: Support for escape sequences (#31884)
Enhance grammar to allow JDBC/ODBC escape sequences, namely - date, time and timestamp {d ''}, {t ''} and {ts ''} - guid {guid ''} - LIKE escape {escape ''} - scalar function {fn } Fix #31883
This commit is contained in:
parent
6136e49a05
commit
dc633e0000
|
@ -74,7 +74,12 @@ queryNoWith
|
|||
: queryTerm
|
||||
/** we could add sort by - sort per partition */
|
||||
(ORDER BY orderBy (',' orderBy)*)?
|
||||
(LIMIT limit=(INTEGER_VALUE | ALL))?
|
||||
limitClause?
|
||||
;
|
||||
|
||||
limitClause
|
||||
: LIMIT limit=(INTEGER_VALUE | ALL)
|
||||
| LIMIT_ESC limit=(INTEGER_VALUE | ALL) ESC_END
|
||||
;
|
||||
|
||||
queryTerm
|
||||
|
@ -185,7 +190,12 @@ predicate
|
|||
;
|
||||
|
||||
pattern
|
||||
: value=string (ESCAPE escape=string)?
|
||||
: value=string patternEscape?
|
||||
;
|
||||
|
||||
patternEscape
|
||||
: ESCAPE escape=string
|
||||
| ESCAPE_ESC escape=string '}'
|
||||
;
|
||||
|
||||
valueExpression
|
||||
|
@ -197,18 +207,44 @@ valueExpression
|
|||
;
|
||||
|
||||
primaryExpression
|
||||
: CAST '(' expression AS dataType ')' #cast
|
||||
| EXTRACT '(' field=identifier FROM valueExpression ')' #extract
|
||||
: castExpression #cast
|
||||
| extractExpression #extract
|
||||
| constant #constantDefault
|
||||
| ASTERISK #star
|
||||
| (qualifiedName DOT)? ASTERISK #star
|
||||
| identifier '(' (setQuantifier? expression (',' expression)*)? ')' #functionCall
|
||||
| functionExpression #function
|
||||
| '(' query ')' #subqueryExpression
|
||||
| identifier #columnReference
|
||||
| qualifiedName #dereference
|
||||
| '(' expression ')' #parenthesizedExpression
|
||||
;
|
||||
|
||||
castExpression
|
||||
: castTemplate
|
||||
| FUNCTION_ESC castTemplate ESC_END
|
||||
;
|
||||
|
||||
castTemplate
|
||||
: CAST '(' expression AS dataType ')'
|
||||
;
|
||||
|
||||
extractExpression
|
||||
: extractTemplate
|
||||
| FUNCTION_ESC extractTemplate ESC_END
|
||||
;
|
||||
|
||||
extractTemplate
|
||||
: EXTRACT '(' field=identifier FROM valueExpression ')'
|
||||
;
|
||||
|
||||
functionExpression
|
||||
: functionTemplate
|
||||
| FUNCTION_ESC functionTemplate '}'
|
||||
;
|
||||
|
||||
functionTemplate
|
||||
: identifier '(' (setQuantifier? expression (',' expression)*)? ')'
|
||||
;
|
||||
|
||||
constant
|
||||
: NULL #nullLiteral
|
||||
|
@ -216,6 +252,10 @@ constant
|
|||
| booleanValue #booleanLiteral
|
||||
| STRING+ #stringLiteral
|
||||
| PARAM #paramLiteral
|
||||
| DATE_ESC string ESC_END #dateEscapedLiteral
|
||||
| TIME_ESC string ESC_END #timeEscapedLiteral
|
||||
| TIMESTAMP_ESC string ESC_END #timestampEscapedLiteral
|
||||
| GUID_ESC string ESC_END #guidEscapedLiteral
|
||||
;
|
||||
|
||||
comparisonOperator
|
||||
|
@ -351,6 +391,18 @@ VERIFY: 'VERIFY';
|
|||
WHERE: 'WHERE';
|
||||
WITH: 'WITH';
|
||||
|
||||
// Escaped Sequence
|
||||
ESCAPE_ESC: '{ESCAPE';
|
||||
FUNCTION_ESC: '{FN';
|
||||
LIMIT_ESC:'{LIMIT';
|
||||
DATE_ESC: '{D';
|
||||
TIME_ESC: '{T';
|
||||
TIMESTAMP_ESC: '{TS';
|
||||
// mapped to string literal
|
||||
GUID_ESC: '{GUID';
|
||||
|
||||
ESC_END: '}';
|
||||
|
||||
EQ : '=';
|
||||
NEQ : '<>' | '!=' | '<=>';
|
||||
LT : '<';
|
||||
|
|
|
@ -69,33 +69,41 @@ USING=68
|
|||
VERIFY=69
|
||||
WHERE=70
|
||||
WITH=71
|
||||
EQ=72
|
||||
NEQ=73
|
||||
LT=74
|
||||
LTE=75
|
||||
GT=76
|
||||
GTE=77
|
||||
PLUS=78
|
||||
MINUS=79
|
||||
ASTERISK=80
|
||||
SLASH=81
|
||||
PERCENT=82
|
||||
CONCAT=83
|
||||
DOT=84
|
||||
PARAM=85
|
||||
STRING=86
|
||||
INTEGER_VALUE=87
|
||||
DECIMAL_VALUE=88
|
||||
IDENTIFIER=89
|
||||
DIGIT_IDENTIFIER=90
|
||||
TABLE_IDENTIFIER=91
|
||||
QUOTED_IDENTIFIER=92
|
||||
BACKQUOTED_IDENTIFIER=93
|
||||
SIMPLE_COMMENT=94
|
||||
BRACKETED_COMMENT=95
|
||||
WS=96
|
||||
UNRECOGNIZED=97
|
||||
DELIMITER=98
|
||||
ESCAPE_ESC=72
|
||||
FUNCTION_ESC=73
|
||||
LIMIT_ESC=74
|
||||
DATE_ESC=75
|
||||
TIME_ESC=76
|
||||
TIMESTAMP_ESC=77
|
||||
GUID_ESC=78
|
||||
ESC_END=79
|
||||
EQ=80
|
||||
NEQ=81
|
||||
LT=82
|
||||
LTE=83
|
||||
GT=84
|
||||
GTE=85
|
||||
PLUS=86
|
||||
MINUS=87
|
||||
ASTERISK=88
|
||||
SLASH=89
|
||||
PERCENT=90
|
||||
CONCAT=91
|
||||
DOT=92
|
||||
PARAM=93
|
||||
STRING=94
|
||||
INTEGER_VALUE=95
|
||||
DECIMAL_VALUE=96
|
||||
IDENTIFIER=97
|
||||
DIGIT_IDENTIFIER=98
|
||||
TABLE_IDENTIFIER=99
|
||||
QUOTED_IDENTIFIER=100
|
||||
BACKQUOTED_IDENTIFIER=101
|
||||
SIMPLE_COMMENT=102
|
||||
BRACKETED_COMMENT=103
|
||||
WS=104
|
||||
UNRECOGNIZED=105
|
||||
DELIMITER=106
|
||||
'('=1
|
||||
')'=2
|
||||
','=3
|
||||
|
@ -167,16 +175,24 @@ DELIMITER=98
|
|||
'VERIFY'=69
|
||||
'WHERE'=70
|
||||
'WITH'=71
|
||||
'='=72
|
||||
'<'=74
|
||||
'<='=75
|
||||
'>'=76
|
||||
'>='=77
|
||||
'+'=78
|
||||
'-'=79
|
||||
'*'=80
|
||||
'/'=81
|
||||
'%'=82
|
||||
'||'=83
|
||||
'.'=84
|
||||
'?'=85
|
||||
'{ESCAPE'=72
|
||||
'{FN'=73
|
||||
'{LIMIT'=74
|
||||
'{D'=75
|
||||
'{T'=76
|
||||
'{TS'=77
|
||||
'{GUID'=78
|
||||
'}'=79
|
||||
'='=80
|
||||
'<'=82
|
||||
'<='=83
|
||||
'>'=84
|
||||
'>='=85
|
||||
'+'=86
|
||||
'-'=87
|
||||
'*'=88
|
||||
'/'=89
|
||||
'%'=90
|
||||
'||'=91
|
||||
'.'=92
|
||||
'?'=93
|
||||
|
|
|
@ -69,32 +69,40 @@ USING=68
|
|||
VERIFY=69
|
||||
WHERE=70
|
||||
WITH=71
|
||||
EQ=72
|
||||
NEQ=73
|
||||
LT=74
|
||||
LTE=75
|
||||
GT=76
|
||||
GTE=77
|
||||
PLUS=78
|
||||
MINUS=79
|
||||
ASTERISK=80
|
||||
SLASH=81
|
||||
PERCENT=82
|
||||
CONCAT=83
|
||||
DOT=84
|
||||
PARAM=85
|
||||
STRING=86
|
||||
INTEGER_VALUE=87
|
||||
DECIMAL_VALUE=88
|
||||
IDENTIFIER=89
|
||||
DIGIT_IDENTIFIER=90
|
||||
TABLE_IDENTIFIER=91
|
||||
QUOTED_IDENTIFIER=92
|
||||
BACKQUOTED_IDENTIFIER=93
|
||||
SIMPLE_COMMENT=94
|
||||
BRACKETED_COMMENT=95
|
||||
WS=96
|
||||
UNRECOGNIZED=97
|
||||
ESCAPE_ESC=72
|
||||
FUNCTION_ESC=73
|
||||
LIMIT_ESC=74
|
||||
DATE_ESC=75
|
||||
TIME_ESC=76
|
||||
TIMESTAMP_ESC=77
|
||||
GUID_ESC=78
|
||||
ESC_END=79
|
||||
EQ=80
|
||||
NEQ=81
|
||||
LT=82
|
||||
LTE=83
|
||||
GT=84
|
||||
GTE=85
|
||||
PLUS=86
|
||||
MINUS=87
|
||||
ASTERISK=88
|
||||
SLASH=89
|
||||
PERCENT=90
|
||||
CONCAT=91
|
||||
DOT=92
|
||||
PARAM=93
|
||||
STRING=94
|
||||
INTEGER_VALUE=95
|
||||
DECIMAL_VALUE=96
|
||||
IDENTIFIER=97
|
||||
DIGIT_IDENTIFIER=98
|
||||
TABLE_IDENTIFIER=99
|
||||
QUOTED_IDENTIFIER=100
|
||||
BACKQUOTED_IDENTIFIER=101
|
||||
SIMPLE_COMMENT=102
|
||||
BRACKETED_COMMENT=103
|
||||
WS=104
|
||||
UNRECOGNIZED=105
|
||||
'('=1
|
||||
')'=2
|
||||
','=3
|
||||
|
@ -166,16 +174,24 @@ UNRECOGNIZED=97
|
|||
'VERIFY'=69
|
||||
'WHERE'=70
|
||||
'WITH'=71
|
||||
'='=72
|
||||
'<'=74
|
||||
'<='=75
|
||||
'>'=76
|
||||
'>='=77
|
||||
'+'=78
|
||||
'-'=79
|
||||
'*'=80
|
||||
'/'=81
|
||||
'%'=82
|
||||
'||'=83
|
||||
'.'=84
|
||||
'?'=85
|
||||
'{ESCAPE'=72
|
||||
'{FN'=73
|
||||
'{LIMIT'=74
|
||||
'{D'=75
|
||||
'{T'=76
|
||||
'{TS'=77
|
||||
'{GUID'=78
|
||||
'}'=79
|
||||
'='=80
|
||||
'<'=82
|
||||
'<='=83
|
||||
'>'=84
|
||||
'>='=85
|
||||
'+'=86
|
||||
'-'=87
|
||||
'*'=88
|
||||
'/'=89
|
||||
'%'=90
|
||||
'||'=91
|
||||
'.'=92
|
||||
'?'=93
|
||||
|
|
|
@ -20,6 +20,7 @@ import org.elasticsearch.xpack.sql.expression.Order;
|
|||
import org.elasticsearch.xpack.sql.expression.ScalarSubquery;
|
||||
import org.elasticsearch.xpack.sql.expression.UnresolvedAttribute;
|
||||
import org.elasticsearch.xpack.sql.expression.UnresolvedStar;
|
||||
import org.elasticsearch.xpack.sql.expression.function.Function;
|
||||
import org.elasticsearch.xpack.sql.expression.function.UnresolvedFunction;
|
||||
import org.elasticsearch.xpack.sql.expression.function.scalar.Cast;
|
||||
import org.elasticsearch.xpack.sql.expression.function.scalar.arithmetic.Add;
|
||||
|
@ -48,14 +49,19 @@ import org.elasticsearch.xpack.sql.expression.regex.RLike;
|
|||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ArithmeticBinaryContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ArithmeticUnaryContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.BooleanLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.CastContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.CastExpressionContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.CastTemplateContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ColumnReferenceContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ComparisonContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.DateEscapedLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.DecimalLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.DereferenceContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ExistsContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ExtractContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.FunctionCallContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ExtractExpressionContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ExtractTemplateContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.FunctionExpressionContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.FunctionTemplateContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.GuidEscapedLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.IntegerLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.LogicalBinaryContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.LogicalNotContext;
|
||||
|
@ -66,6 +72,7 @@ import org.elasticsearch.xpack.sql.parser.SqlBaseParser.OrderByContext;
|
|||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ParamLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.ParenthesizedExpressionContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.PatternContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.PatternEscapeContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.PredicateContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.PredicatedContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.PrimitiveDataTypeContext;
|
||||
|
@ -76,10 +83,16 @@ import org.elasticsearch.xpack.sql.parser.SqlBaseParser.StringContext;
|
|||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.StringLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.StringQueryContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.SubqueryExpressionContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.TimeEscapedLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.TimestampEscapedLiteralContext;
|
||||
import org.elasticsearch.xpack.sql.proto.SqlTypedParamValue;
|
||||
import org.elasticsearch.xpack.sql.tree.Location;
|
||||
import org.elasticsearch.xpack.sql.type.DataType;
|
||||
import org.elasticsearch.xpack.sql.type.DataTypes;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.format.DateTimeFormatter;
|
||||
import org.joda.time.format.DateTimeFormatterBuilder;
|
||||
import org.joda.time.format.ISODateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
@ -222,17 +235,18 @@ abstract class ExpressionBuilder extends IdentifierBuilder {
|
|||
}
|
||||
|
||||
char escape = 0;
|
||||
String escapeString = string(ctx.escape);
|
||||
PatternEscapeContext escapeCtx = ctx.patternEscape();
|
||||
String escapeString = escapeCtx == null ? null : string(escapeCtx.escape);
|
||||
|
||||
if (Strings.hasText(escapeString)) {
|
||||
// shouldn't happen but adding validation in case the string parsing gets wonky
|
||||
if (escapeString.length() > 1) {
|
||||
throw new ParsingException(source(ctx.escape), "A character not a string required for escaping; found [{}]", escapeString);
|
||||
throw new ParsingException(source(escapeCtx), "A character not a string required for escaping; found [{}]", escapeString);
|
||||
} else if (escapeString.length() == 1) {
|
||||
escape = escapeString.charAt(0);
|
||||
// these chars already have a meaning
|
||||
if (escape == '*' || escape == '%' || escape == '_') {
|
||||
throw new ParsingException(source(ctx.escape), "Char [{}] cannot be used for escaping", escape);
|
||||
throw new ParsingException(source(escapeCtx.escape), "Char [{}] cannot be used for escaping", escape);
|
||||
}
|
||||
// lastly validate that escape chars (if present) are followed by special chars
|
||||
for (int i = 0; i < pattern.length(); i++) {
|
||||
|
@ -324,11 +338,6 @@ abstract class ExpressionBuilder extends IdentifierBuilder {
|
|||
ctx.DESC() != null ? Order.OrderDirection.DESC : Order.OrderDirection.ASC);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object visitCast(CastContext ctx) {
|
||||
return new Cast(source(ctx), expression(ctx.expression()), typedParsing(ctx.dataType(), DataType.class));
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataType visitPrimitiveDataType(PrimitiveDataTypeContext ctx) {
|
||||
String type = visitIdentifier(ctx.identifier()).toLowerCase(Locale.ROOT);
|
||||
|
@ -367,20 +376,32 @@ abstract class ExpressionBuilder extends IdentifierBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Functions template
|
||||
//
|
||||
@Override
|
||||
public Object visitFunctionCall(FunctionCallContext ctx) {
|
||||
String name = visitIdentifier(ctx.identifier());
|
||||
boolean isDistinct = ctx.setQuantifier() != null && ctx.setQuantifier().DISTINCT() != null;
|
||||
UnresolvedFunction.ResolutionType resolutionType =
|
||||
isDistinct ? UnresolvedFunction.ResolutionType.DISTINCT : UnresolvedFunction.ResolutionType.STANDARD;
|
||||
return new UnresolvedFunction(source(ctx), name, resolutionType, expressions(ctx.expression()));
|
||||
public Cast visitCastExpression(CastExpressionContext ctx) {
|
||||
CastTemplateContext ctc = ctx.castTemplate();
|
||||
return new Cast(source(ctc), expression(ctc.expression()), typedParsing(ctc.dataType(), DataType.class));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object visitExtract(ExtractContext ctx) {
|
||||
String fieldString = visitIdentifier(ctx.field);
|
||||
return new UnresolvedFunction(source(ctx), fieldString,
|
||||
UnresolvedFunction.ResolutionType.EXTRACT, singletonList(expression(ctx.valueExpression())));
|
||||
public Function visitExtractExpression(ExtractExpressionContext ctx) {
|
||||
ExtractTemplateContext template = ctx.extractTemplate();
|
||||
String fieldString = visitIdentifier(template.field);
|
||||
return new UnresolvedFunction(source(template), fieldString,
|
||||
UnresolvedFunction.ResolutionType.EXTRACT, singletonList(expression(template.valueExpression())));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Function visitFunctionExpression(FunctionExpressionContext ctx) {
|
||||
FunctionTemplateContext template = ctx.functionTemplate();
|
||||
|
||||
String name = visitIdentifier(template.identifier());
|
||||
boolean isDistinct = template.setQuantifier() != null && template.setQuantifier().DISTINCT() != null;
|
||||
UnresolvedFunction.ResolutionType resolutionType =
|
||||
isDistinct ? UnresolvedFunction.ResolutionType.DISTINCT : UnresolvedFunction.ResolutionType.STANDARD;
|
||||
return new UnresolvedFunction(source(ctx), name, resolutionType, expressions(template.expression()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -445,12 +466,12 @@ abstract class ExpressionBuilder extends IdentifierBuilder {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Object visitDecimalLiteral(DecimalLiteralContext ctx) {
|
||||
public Literal visitDecimalLiteral(DecimalLiteralContext ctx) {
|
||||
return new Literal(source(ctx), new BigDecimal(ctx.getText()).doubleValue(), DataType.DOUBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object visitIntegerLiteral(IntegerLiteralContext ctx) {
|
||||
public Literal visitIntegerLiteral(IntegerLiteralContext ctx) {
|
||||
BigDecimal bigD = new BigDecimal(ctx.getText());
|
||||
|
||||
long value = bigD.longValueExact();
|
||||
|
@ -463,7 +484,7 @@ abstract class ExpressionBuilder extends IdentifierBuilder {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Object visitParamLiteral(ParamLiteralContext ctx) {
|
||||
public Literal visitParamLiteral(ParamLiteralContext ctx) {
|
||||
SqlTypedParamValue param = param(ctx.PARAM());
|
||||
Location loc = source(ctx);
|
||||
if (param.value == null) {
|
||||
|
@ -522,4 +543,100 @@ abstract class ExpressionBuilder extends IdentifierBuilder {
|
|||
|
||||
return params.get(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Literal visitDateEscapedLiteral(DateEscapedLiteralContext ctx) {
|
||||
String string = string(ctx.string());
|
||||
Location loc = source(ctx);
|
||||
// parse yyyy-MM-dd
|
||||
DateTime dt = null;
|
||||
try {
|
||||
dt = ISODateTimeFormat.date().parseDateTime(string);
|
||||
} catch(IllegalArgumentException ex) {
|
||||
throw new ParsingException(loc, "Invalid date received; {}", ex.getMessage());
|
||||
}
|
||||
return new Literal(loc, dt, DataType.DATE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Literal visitTimeEscapedLiteral(TimeEscapedLiteralContext ctx) {
|
||||
String string = string(ctx.string());
|
||||
Location loc = source(ctx);
|
||||
|
||||
// parse HH:mm:ss
|
||||
DateTime dt = null;
|
||||
try {
|
||||
dt = ISODateTimeFormat.hourMinuteSecond().parseDateTime(string);
|
||||
} catch (IllegalArgumentException ex) {
|
||||
throw new ParsingException(loc, "Invalid time received; {}", ex.getMessage());
|
||||
}
|
||||
|
||||
throw new SqlIllegalArgumentException("Time (only) literals are not supported; a date component is required as well");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Literal visitTimestampEscapedLiteral(TimestampEscapedLiteralContext ctx) {
|
||||
String string = string(ctx.string());
|
||||
|
||||
Location loc = source(ctx);
|
||||
// parse yyyy-mm-dd hh:mm:ss(.f...)
|
||||
DateTime dt = null;
|
||||
try {
|
||||
DateTimeFormatter formatter = new DateTimeFormatterBuilder()
|
||||
.append(ISODateTimeFormat.date())
|
||||
.appendLiteral(" ")
|
||||
.append(ISODateTimeFormat.hourMinuteSecondFraction())
|
||||
.toFormatter();
|
||||
dt = formatter.parseDateTime(string);
|
||||
} catch (IllegalArgumentException ex) {
|
||||
throw new ParsingException(loc, "Invalid timestamp received; {}", ex.getMessage());
|
||||
}
|
||||
return new Literal(loc, dt, DataType.DATE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Literal visitGuidEscapedLiteral(GuidEscapedLiteralContext ctx) {
|
||||
String string = string(ctx.string());
|
||||
|
||||
Location loc = source(ctx.string());
|
||||
// basic validation
|
||||
String lowerCase = string.toLowerCase(Locale.ROOT);
|
||||
// needs to be format nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn
|
||||
// since the length is fixed, the validation happens on absolute values
|
||||
// not pretty but it's fast and doesn't create any extra objects
|
||||
|
||||
String errorPrefix = "Invalid GUID, ";
|
||||
|
||||
if (lowerCase.length() != 36) {
|
||||
throw new ParsingException(loc, "{}too {}", errorPrefix, lowerCase.length() > 36 ? "long" : "short");
|
||||
}
|
||||
|
||||
int[] separatorPos = { 8, 13, 18, 23 };
|
||||
for (int pos : separatorPos) {
|
||||
if (lowerCase.charAt(pos) != '-') {
|
||||
throw new ParsingException(loc, "{}expected group separator at offset [{}], found [{}]",
|
||||
errorPrefix, pos, string.charAt(pos));
|
||||
}
|
||||
}
|
||||
|
||||
String HEXA = "0123456789abcdef";
|
||||
|
||||
for (int i = 0; i < lowerCase.length(); i++) {
|
||||
// skip separators
|
||||
boolean inspect = true;
|
||||
for (int pos : separatorPos) {
|
||||
if (i == pos) {
|
||||
inspect = false;
|
||||
break;
|
||||
} else if (pos > i) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (inspect && HEXA.indexOf(lowerCase.charAt(i)) < 0) {
|
||||
throw new ParsingException(loc, "{}expected hexadecimal at offset[{}], found [{}]", errorPrefix, i, string.charAt(i));
|
||||
}
|
||||
}
|
||||
|
||||
return new Literal(source(ctx), string, DataType.KEYWORD);
|
||||
}
|
||||
}
|
|
@ -19,6 +19,7 @@ import org.elasticsearch.xpack.sql.parser.SqlBaseParser.GroupByContext;
|
|||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.JoinCriteriaContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.JoinRelationContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.JoinTypeContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.LimitClauseContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.NamedQueryContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.QueryContext;
|
||||
import org.elasticsearch.xpack.sql.parser.SqlBaseParser.QueryNoWithContext;
|
||||
|
@ -89,9 +90,13 @@ abstract class LogicalPlanBuilder extends ExpressionBuilder {
|
|||
plan = new OrderBy(source(ctx.ORDER()), plan, visitList(ctx.orderBy(), Order.class));
|
||||
}
|
||||
|
||||
if (ctx.limit != null && ctx.INTEGER_VALUE() != null) {
|
||||
plan = new Limit(source(ctx.limit), new Literal(source(ctx),
|
||||
Integer.parseInt(ctx.limit.getText()), DataType.INTEGER), plan);
|
||||
LimitClauseContext limitClause = ctx.limitClause();
|
||||
if (limitClause != null) {
|
||||
Token limit = limitClause.limit;
|
||||
if (limit != null && limitClause.INTEGER_VALUE() != null) {
|
||||
plan = new Limit(source(limitClause), new Literal(source(limitClause),
|
||||
Integer.parseInt(limit.getText()), DataType.INTEGER), plan);
|
||||
}
|
||||
}
|
||||
|
||||
return plan;
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
// ANTLR GENERATED CODE: DO NOT EDIT
|
||||
package org.elasticsearch.xpack.sql.parser;
|
||||
|
||||
|
@ -208,6 +203,18 @@ class SqlBaseBaseListener implements SqlBaseListener {
|
|||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitQueryNoWith(SqlBaseParser.QueryNoWithContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterLimitClause(SqlBaseParser.LimitClauseContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitLimitClause(SqlBaseParser.LimitClauseContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -556,6 +563,18 @@ class SqlBaseBaseListener implements SqlBaseListener {
|
|||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitPattern(SqlBaseParser.PatternContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterPatternEscape(SqlBaseParser.PatternEscapeContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitPatternEscape(SqlBaseParser.PatternEscapeContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -657,13 +676,13 @@ class SqlBaseBaseListener implements SqlBaseListener {
|
|||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionCall(SqlBaseParser.FunctionCallContext ctx) { }
|
||||
@Override public void enterFunction(SqlBaseParser.FunctionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionCall(SqlBaseParser.FunctionCallContext ctx) { }
|
||||
@Override public void exitFunction(SqlBaseParser.FunctionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -712,6 +731,78 @@ class SqlBaseBaseListener implements SqlBaseListener {
|
|||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitParenthesizedExpression(SqlBaseParser.ParenthesizedExpressionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterCastExpression(SqlBaseParser.CastExpressionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitCastExpression(SqlBaseParser.CastExpressionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterCastTemplate(SqlBaseParser.CastTemplateContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitCastTemplate(SqlBaseParser.CastTemplateContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterExtractExpression(SqlBaseParser.ExtractExpressionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitExtractExpression(SqlBaseParser.ExtractExpressionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterExtractTemplate(SqlBaseParser.ExtractTemplateContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitExtractTemplate(SqlBaseParser.ExtractTemplateContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionExpression(SqlBaseParser.FunctionExpressionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionExpression(SqlBaseParser.FunctionExpressionContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterFunctionTemplate(SqlBaseParser.FunctionTemplateContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitFunctionTemplate(SqlBaseParser.FunctionTemplateContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -772,6 +863,54 @@ class SqlBaseBaseListener implements SqlBaseListener {
|
|||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitParamLiteral(SqlBaseParser.ParamLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterDateEscapedLiteral(SqlBaseParser.DateEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitDateEscapedLiteral(SqlBaseParser.DateEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterTimeEscapedLiteral(SqlBaseParser.TimeEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitTimeEscapedLiteral(SqlBaseParser.TimeEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterTimestampEscapedLiteral(SqlBaseParser.TimestampEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitTimestampEscapedLiteral(SqlBaseParser.TimestampEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void enterGuidEscapedLiteral(SqlBaseParser.GuidEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation does nothing.</p>
|
||||
*/
|
||||
@Override public void exitGuidEscapedLiteral(SqlBaseParser.GuidEscapedLiteralContext ctx) { }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
// ANTLR GENERATED CODE: DO NOT EDIT
|
||||
package org.elasticsearch.xpack.sql.parser;
|
||||
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
|
||||
|
@ -128,6 +123,13 @@ class SqlBaseBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements SqlBa
|
|||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitQueryNoWith(SqlBaseParser.QueryNoWithContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitLimitClause(SqlBaseParser.LimitClauseContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -331,6 +333,13 @@ class SqlBaseBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements SqlBa
|
|||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitPattern(SqlBaseParser.PatternContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitPatternEscape(SqlBaseParser.PatternEscapeContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -393,7 +402,7 @@ class SqlBaseBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements SqlBa
|
|||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionCall(SqlBaseParser.FunctionCallContext ctx) { return visitChildren(ctx); }
|
||||
@Override public T visitFunction(SqlBaseParser.FunctionContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -422,6 +431,48 @@ class SqlBaseBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements SqlBa
|
|||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitParenthesizedExpression(SqlBaseParser.ParenthesizedExpressionContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitCastExpression(SqlBaseParser.CastExpressionContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitCastTemplate(SqlBaseParser.CastTemplateContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitExtractExpression(SqlBaseParser.ExtractExpressionContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitExtractTemplate(SqlBaseParser.ExtractTemplateContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionExpression(SqlBaseParser.FunctionExpressionContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitFunctionTemplate(SqlBaseParser.FunctionTemplateContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
@ -457,6 +508,34 @@ class SqlBaseBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements SqlBa
|
|||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitParamLiteral(SqlBaseParser.ParamLiteralContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitDateEscapedLiteral(SqlBaseParser.DateEscapedLiteralContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitTimeEscapedLiteral(SqlBaseParser.TimeEscapedLiteralContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitTimestampEscapedLiteral(SqlBaseParser.TimestampEscapedLiteralContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* <p>The default implementation returns the result of calling
|
||||
* {@link #visitChildren} on {@code ctx}.</p>
|
||||
*/
|
||||
@Override public T visitGuidEscapedLiteral(SqlBaseParser.GuidEscapedLiteralContext ctx) { return visitChildren(ctx); }
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
// ANTLR GENERATED CODE: DO NOT EDIT
|
||||
package org.elasticsearch.xpack.sql.parser;
|
||||
import org.antlr.v4.runtime.Lexer;
|
||||
import org.antlr.v4.runtime.CharStream;
|
||||
import org.antlr.v4.runtime.Token;
|
||||
import org.antlr.v4.runtime.TokenStream;
|
||||
import org.antlr.v4.runtime.*;
|
||||
import org.antlr.v4.runtime.atn.*;
|
||||
import org.antlr.v4.runtime.dfa.DFA;
|
||||
import org.antlr.v4.runtime.misc.*;
|
||||
|
||||
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
|
||||
class SqlBaseLexer extends Lexer {
|
||||
|
@ -28,11 +26,13 @@ class SqlBaseLexer extends Lexer {
|
|||
NOT=45, NULL=46, ON=47, OPTIMIZED=48, OR=49, ORDER=50, OUTER=51, PARSED=52,
|
||||
PHYSICAL=53, PLAN=54, RIGHT=55, RLIKE=56, QUERY=57, SCHEMAS=58, SELECT=59,
|
||||
SHOW=60, SYS=61, TABLE=62, TABLES=63, TEXT=64, TRUE=65, TYPE=66, TYPES=67,
|
||||
USING=68, VERIFY=69, WHERE=70, WITH=71, EQ=72, NEQ=73, LT=74, LTE=75,
|
||||
GT=76, GTE=77, PLUS=78, MINUS=79, ASTERISK=80, SLASH=81, PERCENT=82, CONCAT=83,
|
||||
DOT=84, PARAM=85, STRING=86, INTEGER_VALUE=87, DECIMAL_VALUE=88, IDENTIFIER=89,
|
||||
DIGIT_IDENTIFIER=90, TABLE_IDENTIFIER=91, QUOTED_IDENTIFIER=92, BACKQUOTED_IDENTIFIER=93,
|
||||
SIMPLE_COMMENT=94, BRACKETED_COMMENT=95, WS=96, UNRECOGNIZED=97;
|
||||
USING=68, VERIFY=69, WHERE=70, WITH=71, ESCAPE_ESC=72, FUNCTION_ESC=73,
|
||||
LIMIT_ESC=74, DATE_ESC=75, TIME_ESC=76, TIMESTAMP_ESC=77, GUID_ESC=78,
|
||||
ESC_END=79, EQ=80, NEQ=81, LT=82, LTE=83, GT=84, GTE=85, PLUS=86, MINUS=87,
|
||||
ASTERISK=88, SLASH=89, PERCENT=90, CONCAT=91, DOT=92, PARAM=93, STRING=94,
|
||||
INTEGER_VALUE=95, DECIMAL_VALUE=96, IDENTIFIER=97, DIGIT_IDENTIFIER=98,
|
||||
TABLE_IDENTIFIER=99, QUOTED_IDENTIFIER=100, BACKQUOTED_IDENTIFIER=101,
|
||||
SIMPLE_COMMENT=102, BRACKETED_COMMENT=103, WS=104, UNRECOGNIZED=105;
|
||||
public static String[] modeNames = {
|
||||
"DEFAULT_MODE"
|
||||
};
|
||||
|
@ -46,12 +46,13 @@ class SqlBaseLexer extends Lexer {
|
|||
"LIMIT", "MAPPED", "MATCH", "NATURAL", "NOT", "NULL", "ON", "OPTIMIZED",
|
||||
"OR", "ORDER", "OUTER", "PARSED", "PHYSICAL", "PLAN", "RIGHT", "RLIKE",
|
||||
"QUERY", "SCHEMAS", "SELECT", "SHOW", "SYS", "TABLE", "TABLES", "TEXT",
|
||||
"TRUE", "TYPE", "TYPES", "USING", "VERIFY", "WHERE", "WITH", "EQ", "NEQ",
|
||||
"LT", "LTE", "GT", "GTE", "PLUS", "MINUS", "ASTERISK", "SLASH", "PERCENT",
|
||||
"CONCAT", "DOT", "PARAM", "STRING", "INTEGER_VALUE", "DECIMAL_VALUE",
|
||||
"IDENTIFIER", "DIGIT_IDENTIFIER", "TABLE_IDENTIFIER", "QUOTED_IDENTIFIER",
|
||||
"BACKQUOTED_IDENTIFIER", "EXPONENT", "DIGIT", "LETTER", "SIMPLE_COMMENT",
|
||||
"BRACKETED_COMMENT", "WS", "UNRECOGNIZED"
|
||||
"TRUE", "TYPE", "TYPES", "USING", "VERIFY", "WHERE", "WITH", "ESCAPE_ESC",
|
||||
"FUNCTION_ESC", "LIMIT_ESC", "DATE_ESC", "TIME_ESC", "TIMESTAMP_ESC",
|
||||
"GUID_ESC", "ESC_END", "EQ", "NEQ", "LT", "LTE", "GT", "GTE", "PLUS",
|
||||
"MINUS", "ASTERISK", "SLASH", "PERCENT", "CONCAT", "DOT", "PARAM", "STRING",
|
||||
"INTEGER_VALUE", "DECIMAL_VALUE", "IDENTIFIER", "DIGIT_IDENTIFIER", "TABLE_IDENTIFIER",
|
||||
"QUOTED_IDENTIFIER", "BACKQUOTED_IDENTIFIER", "EXPONENT", "DIGIT", "LETTER",
|
||||
"SIMPLE_COMMENT", "BRACKETED_COMMENT", "WS", "UNRECOGNIZED"
|
||||
};
|
||||
|
||||
private static final String[] _LITERAL_NAMES = {
|
||||
|
@ -65,8 +66,9 @@ class SqlBaseLexer extends Lexer {
|
|||
"'OR'", "'ORDER'", "'OUTER'", "'PARSED'", "'PHYSICAL'", "'PLAN'", "'RIGHT'",
|
||||
"'RLIKE'", "'QUERY'", "'SCHEMAS'", "'SELECT'", "'SHOW'", "'SYS'", "'TABLE'",
|
||||
"'TABLES'", "'TEXT'", "'TRUE'", "'TYPE'", "'TYPES'", "'USING'", "'VERIFY'",
|
||||
"'WHERE'", "'WITH'", "'='", null, "'<'", "'<='", "'>'", "'>='", "'+'",
|
||||
"'-'", "'*'", "'/'", "'%'", "'||'", "'.'", "'?'"
|
||||
"'WHERE'", "'WITH'", "'{ESCAPE'", "'{FN'", "'{LIMIT'", "'{D'", "'{T'",
|
||||
"'{TS'", "'{GUID'", "'}'", "'='", null, "'<'", "'<='", "'>'", "'>='",
|
||||
"'+'", "'-'", "'*'", "'/'", "'%'", "'||'", "'.'", "'?'"
|
||||
};
|
||||
private static final String[] _SYMBOLIC_NAMES = {
|
||||
null, null, null, null, null, "ALL", "ANALYZE", "ANALYZED", "AND", "ANY",
|
||||
|
@ -77,12 +79,13 @@ class SqlBaseLexer extends Lexer {
|
|||
"LIMIT", "MAPPED", "MATCH", "NATURAL", "NOT", "NULL", "ON", "OPTIMIZED",
|
||||
"OR", "ORDER", "OUTER", "PARSED", "PHYSICAL", "PLAN", "RIGHT", "RLIKE",
|
||||
"QUERY", "SCHEMAS", "SELECT", "SHOW", "SYS", "TABLE", "TABLES", "TEXT",
|
||||
"TRUE", "TYPE", "TYPES", "USING", "VERIFY", "WHERE", "WITH", "EQ", "NEQ",
|
||||
"LT", "LTE", "GT", "GTE", "PLUS", "MINUS", "ASTERISK", "SLASH", "PERCENT",
|
||||
"CONCAT", "DOT", "PARAM", "STRING", "INTEGER_VALUE", "DECIMAL_VALUE",
|
||||
"IDENTIFIER", "DIGIT_IDENTIFIER", "TABLE_IDENTIFIER", "QUOTED_IDENTIFIER",
|
||||
"BACKQUOTED_IDENTIFIER", "SIMPLE_COMMENT", "BRACKETED_COMMENT", "WS",
|
||||
"UNRECOGNIZED"
|
||||
"TRUE", "TYPE", "TYPES", "USING", "VERIFY", "WHERE", "WITH", "ESCAPE_ESC",
|
||||
"FUNCTION_ESC", "LIMIT_ESC", "DATE_ESC", "TIME_ESC", "TIMESTAMP_ESC",
|
||||
"GUID_ESC", "ESC_END", "EQ", "NEQ", "LT", "LTE", "GT", "GTE", "PLUS",
|
||||
"MINUS", "ASTERISK", "SLASH", "PERCENT", "CONCAT", "DOT", "PARAM", "STRING",
|
||||
"INTEGER_VALUE", "DECIMAL_VALUE", "IDENTIFIER", "DIGIT_IDENTIFIER", "TABLE_IDENTIFIER",
|
||||
"QUOTED_IDENTIFIER", "BACKQUOTED_IDENTIFIER", "SIMPLE_COMMENT", "BRACKETED_COMMENT",
|
||||
"WS", "UNRECOGNIZED"
|
||||
};
|
||||
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
|
||||
|
||||
|
@ -139,7 +142,7 @@ class SqlBaseLexer extends Lexer {
|
|||
public ATN getATN() { return _ATN; }
|
||||
|
||||
public static final String _serializedATN =
|
||||
"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2c\u033b\b\1\4\2\t"+
|
||||
"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\2k\u0370\b\1\4\2\t"+
|
||||
"\2\4\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13"+
|
||||
"\t\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
|
||||
"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
|
||||
|
@ -150,276 +153,293 @@ class SqlBaseLexer extends Lexer {
|
|||
"\4>\t>\4?\t?\4@\t@\4A\tA\4B\tB\4C\tC\4D\tD\4E\tE\4F\tF\4G\tG\4H\tH\4I"+
|
||||
"\tI\4J\tJ\4K\tK\4L\tL\4M\tM\4N\tN\4O\tO\4P\tP\4Q\tQ\4R\tR\4S\tS\4T\tT"+
|
||||
"\4U\tU\4V\tV\4W\tW\4X\tX\4Y\tY\4Z\tZ\4[\t[\4\\\t\\\4]\t]\4^\t^\4_\t_\4"+
|
||||
"`\t`\4a\ta\4b\tb\4c\tc\4d\td\4e\te\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6"+
|
||||
"\3\6\3\6\3\6\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3"+
|
||||
"\b\3\b\3\b\3\t\3\t\3\t\3\t\3\n\3\n\3\n\3\n\3\13\3\13\3\13\3\f\3\f\3\f"+
|
||||
"\3\f\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\17\3\17\3\17\3\17"+
|
||||
"\3\17\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\20\3\21\3\21\3\21\3\21\3\21"+
|
||||
"\3\21\3\21\3\21\3\21\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\23\3\23"+
|
||||
"\3\23\3\23\3\23\3\23\3\24\3\24\3\24\3\24\3\24\3\25\3\25\3\25\3\25\3\25"+
|
||||
"\3\25\3\25\3\25\3\25\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\27"+
|
||||
"\3\27\3\27\3\27\3\27\3\27\3\27\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30"+
|
||||
"\3\30\3\30\3\30\3\31\3\31\3\31\3\31\3\31\3\31\3\31\3\32\3\32\3\32\3\32"+
|
||||
"\3\32\3\32\3\32\3\32\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\34\3\34"+
|
||||
"\3\34\3\34\3\34\3\34\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\36\3\36\3\36"+
|
||||
"\3\36\3\36\3\37\3\37\3\37\3\37\3\37\3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3!\3"+
|
||||
"!\3!\3!\3!\3!\3!\3!\3!\3\"\3\"\3\"\3\"\3\"\3\"\3#\3#\3#\3#\3#\3#\3#\3"+
|
||||
"$\3$\3$\3%\3%\3%\3%\3%\3%\3&\3&\3&\3\'\3\'\3\'\3\'\3\'\3(\3(\3(\3(\3("+
|
||||
"\3)\3)\3)\3)\3)\3*\3*\3*\3*\3*\3*\3+\3+\3+\3+\3+\3+\3+\3,\3,\3,\3,\3,"+
|
||||
"\3,\3-\3-\3-\3-\3-\3-\3-\3-\3.\3.\3.\3.\3/\3/\3/\3/\3/\3\60\3\60\3\60"+
|
||||
"\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\62\3\62\3\62\3\63"+
|
||||
"\3\63\3\63\3\63\3\63\3\63\3\64\3\64\3\64\3\64\3\64\3\64\3\65\3\65\3\65"+
|
||||
"\3\65\3\65\3\65\3\65\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\67"+
|
||||
"\3\67\3\67\3\67\3\67\38\38\38\38\38\38\39\39\39\39\39\39\3:\3:\3:\3:\3"+
|
||||
":\3:\3;\3;\3;\3;\3;\3;\3;\3;\3<\3<\3<\3<\3<\3<\3<\3=\3=\3=\3=\3=\3>\3"+
|
||||
">\3>\3>\3?\3?\3?\3?\3?\3?\3@\3@\3@\3@\3@\3@\3@\3A\3A\3A\3A\3A\3B\3B\3"+
|
||||
"B\3B\3B\3C\3C\3C\3C\3C\3D\3D\3D\3D\3D\3D\3E\3E\3E\3E\3E\3E\3F\3F\3F\3"+
|
||||
"F\3F\3F\3F\3G\3G\3G\3G\3G\3G\3H\3H\3H\3H\3H\3I\3I\3J\3J\3J\3J\3J\3J\3"+
|
||||
"J\5J\u027b\nJ\3K\3K\3L\3L\3L\3M\3M\3N\3N\3N\3O\3O\3P\3P\3Q\3Q\3R\3R\3"+
|
||||
"S\3S\3T\3T\3T\3U\3U\3V\3V\3W\3W\3W\3W\7W\u029c\nW\fW\16W\u029f\13W\3W"+
|
||||
"\3W\3X\6X\u02a4\nX\rX\16X\u02a5\3Y\6Y\u02a9\nY\rY\16Y\u02aa\3Y\3Y\7Y\u02af"+
|
||||
"\nY\fY\16Y\u02b2\13Y\3Y\3Y\6Y\u02b6\nY\rY\16Y\u02b7\3Y\6Y\u02bb\nY\rY"+
|
||||
"\16Y\u02bc\3Y\3Y\7Y\u02c1\nY\fY\16Y\u02c4\13Y\5Y\u02c6\nY\3Y\3Y\3Y\3Y"+
|
||||
"\6Y\u02cc\nY\rY\16Y\u02cd\3Y\3Y\5Y\u02d2\nY\3Z\3Z\5Z\u02d6\nZ\3Z\3Z\3"+
|
||||
"Z\7Z\u02db\nZ\fZ\16Z\u02de\13Z\3[\3[\3[\3[\6[\u02e4\n[\r[\16[\u02e5\3"+
|
||||
"\\\3\\\3\\\3\\\6\\\u02ec\n\\\r\\\16\\\u02ed\3]\3]\3]\3]\7]\u02f4\n]\f"+
|
||||
"]\16]\u02f7\13]\3]\3]\3^\3^\3^\3^\7^\u02ff\n^\f^\16^\u0302\13^\3^\3^\3"+
|
||||
"_\3_\5_\u0308\n_\3_\6_\u030b\n_\r_\16_\u030c\3`\3`\3a\3a\3b\3b\3b\3b\7"+
|
||||
"b\u0317\nb\fb\16b\u031a\13b\3b\5b\u031d\nb\3b\5b\u0320\nb\3b\3b\3c\3c"+
|
||||
"\3c\3c\3c\7c\u0329\nc\fc\16c\u032c\13c\3c\3c\3c\3c\3c\3d\6d\u0334\nd\r"+
|
||||
"d\16d\u0335\3d\3d\3e\3e\3\u032a\2f\3\3\5\4\7\5\t\6\13\7\r\b\17\t\21\n"+
|
||||
"\23\13\25\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\25)\26+\27-\30"+
|
||||
"/\31\61\32\63\33\65\34\67\359\36;\37= ?!A\"C#E$G%I&K\'M(O)Q*S+U,W-Y.["+
|
||||
"/]\60_\61a\62c\63e\64g\65i\66k\67m8o9q:s;u<w=y>{?}@\177A\u0081B\u0083"+
|
||||
"C\u0085D\u0087E\u0089F\u008bG\u008dH\u008fI\u0091J\u0093K\u0095L\u0097"+
|
||||
"M\u0099N\u009bO\u009dP\u009fQ\u00a1R\u00a3S\u00a5T\u00a7U\u00a9V\u00ab"+
|
||||
"W\u00adX\u00afY\u00b1Z\u00b3[\u00b5\\\u00b7]\u00b9^\u00bb_\u00bd\2\u00bf"+
|
||||
"\2\u00c1\2\u00c3`\u00c5a\u00c7b\u00c9c\3\2\f\3\2))\4\2BBaa\5\2<<BBaa\3"+
|
||||
"\2$$\3\2bb\4\2--//\3\2\62;\3\2C\\\4\2\f\f\17\17\5\2\13\f\17\17\"\"\u035d"+
|
||||
"\2\3\3\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2"+
|
||||
"\2\2\2\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2"+
|
||||
"\2\31\3\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2"+
|
||||
"\2\2\2%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2"+
|
||||
"\2\2\61\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\2;\3"+
|
||||
"\2\2\2\2=\3\2\2\2\2?\3\2\2\2\2A\3\2\2\2\2C\3\2\2\2\2E\3\2\2\2\2G\3\2\2"+
|
||||
"\2\2I\3\2\2\2\2K\3\2\2\2\2M\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2"+
|
||||
"U\3\2\2\2\2W\3\2\2\2\2Y\3\2\2\2\2[\3\2\2\2\2]\3\2\2\2\2_\3\2\2\2\2a\3"+
|
||||
"\2\2\2\2c\3\2\2\2\2e\3\2\2\2\2g\3\2\2\2\2i\3\2\2\2\2k\3\2\2\2\2m\3\2\2"+
|
||||
"\2\2o\3\2\2\2\2q\3\2\2\2\2s\3\2\2\2\2u\3\2\2\2\2w\3\2\2\2\2y\3\2\2\2\2"+
|
||||
"{\3\2\2\2\2}\3\2\2\2\2\177\3\2\2\2\2\u0081\3\2\2\2\2\u0083\3\2\2\2\2\u0085"+
|
||||
"`\t`\4a\ta\4b\tb\4c\tc\4d\td\4e\te\4f\tf\4g\tg\4h\th\4i\ti\4j\tj\4k\t"+
|
||||
"k\4l\tl\4m\tm\3\2\3\2\3\3\3\3\3\4\3\4\3\5\3\5\3\6\3\6\3\6\3\6\3\7\3\7"+
|
||||
"\3\7\3\7\3\7\3\7\3\7\3\7\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\b\3\t\3\t\3"+
|
||||
"\t\3\t\3\n\3\n\3\n\3\n\3\13\3\13\3\13\3\f\3\f\3\f\3\f\3\r\3\r\3\r\3\r"+
|
||||
"\3\r\3\r\3\r\3\r\3\16\3\16\3\16\3\17\3\17\3\17\3\17\3\17\3\20\3\20\3\20"+
|
||||
"\3\20\3\20\3\20\3\20\3\20\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21\3\21"+
|
||||
"\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\22\3\23\3\23\3\23\3\23\3\23\3\23"+
|
||||
"\3\24\3\24\3\24\3\24\3\24\3\25\3\25\3\25\3\25\3\25\3\25\3\25\3\25\3\25"+
|
||||
"\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\26\3\27\3\27\3\27\3\27\3\27"+
|
||||
"\3\27\3\27\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\30\3\31"+
|
||||
"\3\31\3\31\3\31\3\31\3\31\3\31\3\32\3\32\3\32\3\32\3\32\3\32\3\32\3\32"+
|
||||
"\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\33\3\34\3\34\3\34\3\34\3\34\3\34"+
|
||||
"\3\35\3\35\3\35\3\35\3\35\3\35\3\35\3\36\3\36\3\36\3\36\3\36\3\37\3\37"+
|
||||
"\3\37\3\37\3\37\3 \3 \3 \3 \3 \3 \3 \3 \3 \3 \3!\3!\3!\3!\3!\3!\3!\3!"+
|
||||
"\3!\3\"\3\"\3\"\3\"\3\"\3\"\3#\3#\3#\3#\3#\3#\3#\3$\3$\3$\3%\3%\3%\3%"+
|
||||
"\3%\3%\3&\3&\3&\3\'\3\'\3\'\3\'\3\'\3(\3(\3(\3(\3(\3)\3)\3)\3)\3)\3*\3"+
|
||||
"*\3*\3*\3*\3*\3+\3+\3+\3+\3+\3+\3+\3,\3,\3,\3,\3,\3,\3-\3-\3-\3-\3-\3"+
|
||||
"-\3-\3-\3.\3.\3.\3.\3/\3/\3/\3/\3/\3\60\3\60\3\60\3\61\3\61\3\61\3\61"+
|
||||
"\3\61\3\61\3\61\3\61\3\61\3\61\3\62\3\62\3\62\3\63\3\63\3\63\3\63\3\63"+
|
||||
"\3\63\3\64\3\64\3\64\3\64\3\64\3\64\3\65\3\65\3\65\3\65\3\65\3\65\3\65"+
|
||||
"\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\66\3\67\3\67\3\67\3\67\3\67"+
|
||||
"\38\38\38\38\38\38\39\39\39\39\39\39\3:\3:\3:\3:\3:\3:\3;\3;\3;\3;\3;"+
|
||||
"\3;\3;\3;\3<\3<\3<\3<\3<\3<\3<\3=\3=\3=\3=\3=\3>\3>\3>\3>\3?\3?\3?\3?"+
|
||||
"\3?\3?\3@\3@\3@\3@\3@\3@\3@\3A\3A\3A\3A\3A\3B\3B\3B\3B\3B\3C\3C\3C\3C"+
|
||||
"\3C\3D\3D\3D\3D\3D\3D\3E\3E\3E\3E\3E\3E\3F\3F\3F\3F\3F\3F\3F\3G\3G\3G"+
|
||||
"\3G\3G\3G\3H\3H\3H\3H\3H\3I\3I\3I\3I\3I\3I\3I\3I\3J\3J\3J\3J\3K\3K\3K"+
|
||||
"\3K\3K\3K\3K\3L\3L\3L\3M\3M\3M\3N\3N\3N\3N\3O\3O\3O\3O\3O\3O\3P\3P\3Q"+
|
||||
"\3Q\3R\3R\3R\3R\3R\3R\3R\5R\u02b0\nR\3S\3S\3T\3T\3T\3U\3U\3V\3V\3V\3W"+
|
||||
"\3W\3X\3X\3Y\3Y\3Z\3Z\3[\3[\3\\\3\\\3\\\3]\3]\3^\3^\3_\3_\3_\3_\7_\u02d1"+
|
||||
"\n_\f_\16_\u02d4\13_\3_\3_\3`\6`\u02d9\n`\r`\16`\u02da\3a\6a\u02de\na"+
|
||||
"\ra\16a\u02df\3a\3a\7a\u02e4\na\fa\16a\u02e7\13a\3a\3a\6a\u02eb\na\ra"+
|
||||
"\16a\u02ec\3a\6a\u02f0\na\ra\16a\u02f1\3a\3a\7a\u02f6\na\fa\16a\u02f9"+
|
||||
"\13a\5a\u02fb\na\3a\3a\3a\3a\6a\u0301\na\ra\16a\u0302\3a\3a\5a\u0307\n"+
|
||||
"a\3b\3b\5b\u030b\nb\3b\3b\3b\7b\u0310\nb\fb\16b\u0313\13b\3c\3c\3c\3c"+
|
||||
"\6c\u0319\nc\rc\16c\u031a\3d\3d\3d\3d\6d\u0321\nd\rd\16d\u0322\3e\3e\3"+
|
||||
"e\3e\7e\u0329\ne\fe\16e\u032c\13e\3e\3e\3f\3f\3f\3f\7f\u0334\nf\ff\16"+
|
||||
"f\u0337\13f\3f\3f\3g\3g\5g\u033d\ng\3g\6g\u0340\ng\rg\16g\u0341\3h\3h"+
|
||||
"\3i\3i\3j\3j\3j\3j\7j\u034c\nj\fj\16j\u034f\13j\3j\5j\u0352\nj\3j\5j\u0355"+
|
||||
"\nj\3j\3j\3k\3k\3k\3k\3k\7k\u035e\nk\fk\16k\u0361\13k\3k\3k\3k\3k\3k\3"+
|
||||
"l\6l\u0369\nl\rl\16l\u036a\3l\3l\3m\3m\3\u035f\2n\3\3\5\4\7\5\t\6\13\7"+
|
||||
"\r\b\17\t\21\n\23\13\25\f\27\r\31\16\33\17\35\20\37\21!\22#\23%\24\'\25"+
|
||||
")\26+\27-\30/\31\61\32\63\33\65\34\67\359\36;\37= ?!A\"C#E$G%I&K\'M(O"+
|
||||
")Q*S+U,W-Y.[/]\60_\61a\62c\63e\64g\65i\66k\67m8o9q:s;u<w=y>{?}@\177A\u0081"+
|
||||
"B\u0083C\u0085D\u0087E\u0089F\u008bG\u008dH\u008fI\u0091J\u0093K\u0095"+
|
||||
"L\u0097M\u0099N\u009bO\u009dP\u009fQ\u00a1R\u00a3S\u00a5T\u00a7U\u00a9"+
|
||||
"V\u00abW\u00adX\u00afY\u00b1Z\u00b3[\u00b5\\\u00b7]\u00b9^\u00bb_\u00bd"+
|
||||
"`\u00bfa\u00c1b\u00c3c\u00c5d\u00c7e\u00c9f\u00cbg\u00cd\2\u00cf\2\u00d1"+
|
||||
"\2\u00d3h\u00d5i\u00d7j\u00d9k\3\2\f\3\2))\4\2BBaa\5\2<<BBaa\3\2$$\3\2"+
|
||||
"bb\4\2--//\3\2\62;\3\2C\\\4\2\f\f\17\17\5\2\13\f\17\17\"\"\u0392\2\3\3"+
|
||||
"\2\2\2\2\5\3\2\2\2\2\7\3\2\2\2\2\t\3\2\2\2\2\13\3\2\2\2\2\r\3\2\2\2\2"+
|
||||
"\17\3\2\2\2\2\21\3\2\2\2\2\23\3\2\2\2\2\25\3\2\2\2\2\27\3\2\2\2\2\31\3"+
|
||||
"\2\2\2\2\33\3\2\2\2\2\35\3\2\2\2\2\37\3\2\2\2\2!\3\2\2\2\2#\3\2\2\2\2"+
|
||||
"%\3\2\2\2\2\'\3\2\2\2\2)\3\2\2\2\2+\3\2\2\2\2-\3\2\2\2\2/\3\2\2\2\2\61"+
|
||||
"\3\2\2\2\2\63\3\2\2\2\2\65\3\2\2\2\2\67\3\2\2\2\29\3\2\2\2\2;\3\2\2\2"+
|
||||
"\2=\3\2\2\2\2?\3\2\2\2\2A\3\2\2\2\2C\3\2\2\2\2E\3\2\2\2\2G\3\2\2\2\2I"+
|
||||
"\3\2\2\2\2K\3\2\2\2\2M\3\2\2\2\2O\3\2\2\2\2Q\3\2\2\2\2S\3\2\2\2\2U\3\2"+
|
||||
"\2\2\2W\3\2\2\2\2Y\3\2\2\2\2[\3\2\2\2\2]\3\2\2\2\2_\3\2\2\2\2a\3\2\2\2"+
|
||||
"\2c\3\2\2\2\2e\3\2\2\2\2g\3\2\2\2\2i\3\2\2\2\2k\3\2\2\2\2m\3\2\2\2\2o"+
|
||||
"\3\2\2\2\2q\3\2\2\2\2s\3\2\2\2\2u\3\2\2\2\2w\3\2\2\2\2y\3\2\2\2\2{\3\2"+
|
||||
"\2\2\2}\3\2\2\2\2\177\3\2\2\2\2\u0081\3\2\2\2\2\u0083\3\2\2\2\2\u0085"+
|
||||
"\3\2\2\2\2\u0087\3\2\2\2\2\u0089\3\2\2\2\2\u008b\3\2\2\2\2\u008d\3\2\2"+
|
||||
"\2\2\u008f\3\2\2\2\2\u0091\3\2\2\2\2\u0093\3\2\2\2\2\u0095\3\2\2\2\2\u0097"+
|
||||
"\3\2\2\2\2\u0099\3\2\2\2\2\u009b\3\2\2\2\2\u009d\3\2\2\2\2\u009f\3\2\2"+
|
||||
"\2\2\u00a1\3\2\2\2\2\u00a3\3\2\2\2\2\u00a5\3\2\2\2\2\u00a7\3\2\2\2\2\u00a9"+
|
||||
"\3\2\2\2\2\u00ab\3\2\2\2\2\u00ad\3\2\2\2\2\u00af\3\2\2\2\2\u00b1\3\2\2"+
|
||||
"\2\2\u00b3\3\2\2\2\2\u00b5\3\2\2\2\2\u00b7\3\2\2\2\2\u00b9\3\2\2\2\2\u00bb"+
|
||||
"\3\2\2\2\2\u00c3\3\2\2\2\2\u00c5\3\2\2\2\2\u00c7\3\2\2\2\2\u00c9\3\2\2"+
|
||||
"\2\3\u00cb\3\2\2\2\5\u00cd\3\2\2\2\7\u00cf\3\2\2\2\t\u00d1\3\2\2\2\13"+
|
||||
"\u00d3\3\2\2\2\r\u00d7\3\2\2\2\17\u00df\3\2\2\2\21\u00e8\3\2\2\2\23\u00ec"+
|
||||
"\3\2\2\2\25\u00f0\3\2\2\2\27\u00f3\3\2\2\2\31\u00f7\3\2\2\2\33\u00ff\3"+
|
||||
"\2\2\2\35\u0102\3\2\2\2\37\u0107\3\2\2\2!\u010f\3\2\2\2#\u0118\3\2\2\2"+
|
||||
"%\u0120\3\2\2\2\'\u0126\3\2\2\2)\u012b\3\2\2\2+\u0134\3\2\2\2-\u013d\3"+
|
||||
"\2\2\2/\u0144\3\2\2\2\61\u014f\3\2\2\2\63\u0156\3\2\2\2\65\u015e\3\2\2"+
|
||||
"\2\67\u0166\3\2\2\29\u016c\3\2\2\2;\u0173\3\2\2\2=\u0178\3\2\2\2?\u017d"+
|
||||
"\3\2\2\2A\u0187\3\2\2\2C\u0190\3\2\2\2E\u0196\3\2\2\2G\u019d\3\2\2\2I"+
|
||||
"\u01a0\3\2\2\2K\u01a6\3\2\2\2M\u01a9\3\2\2\2O\u01ae\3\2\2\2Q\u01b3\3\2"+
|
||||
"\2\2S\u01b8\3\2\2\2U\u01be\3\2\2\2W\u01c5\3\2\2\2Y\u01cb\3\2\2\2[\u01d3"+
|
||||
"\3\2\2\2]\u01d7\3\2\2\2_\u01dc\3\2\2\2a\u01df\3\2\2\2c\u01e9\3\2\2\2e"+
|
||||
"\u01ec\3\2\2\2g\u01f2\3\2\2\2i\u01f8\3\2\2\2k\u01ff\3\2\2\2m\u0208\3\2"+
|
||||
"\2\2o\u020d\3\2\2\2q\u0213\3\2\2\2s\u0219\3\2\2\2u\u021f\3\2\2\2w\u0227"+
|
||||
"\3\2\2\2y\u022e\3\2\2\2{\u0233\3\2\2\2}\u0237\3\2\2\2\177\u023d\3\2\2"+
|
||||
"\2\u0081\u0244\3\2\2\2\u0083\u0249\3\2\2\2\u0085\u024e\3\2\2\2\u0087\u0253"+
|
||||
"\3\2\2\2\u0089\u0259\3\2\2\2\u008b\u025f\3\2\2\2\u008d\u0266\3\2\2\2\u008f"+
|
||||
"\u026c\3\2\2\2\u0091\u0271\3\2\2\2\u0093\u027a\3\2\2\2\u0095\u027c\3\2"+
|
||||
"\2\2\u0097\u027e\3\2\2\2\u0099\u0281\3\2\2\2\u009b\u0283\3\2\2\2\u009d"+
|
||||
"\u0286\3\2\2\2\u009f\u0288\3\2\2\2\u00a1\u028a\3\2\2\2\u00a3\u028c\3\2"+
|
||||
"\2\2\u00a5\u028e\3\2\2\2\u00a7\u0290\3\2\2\2\u00a9\u0293\3\2\2\2\u00ab"+
|
||||
"\u0295\3\2\2\2\u00ad\u0297\3\2\2\2\u00af\u02a3\3\2\2\2\u00b1\u02d1\3\2"+
|
||||
"\2\2\u00b3\u02d5\3\2\2\2\u00b5\u02df\3\2\2\2\u00b7\u02eb\3\2\2\2\u00b9"+
|
||||
"\u02ef\3\2\2\2\u00bb\u02fa\3\2\2\2\u00bd\u0305\3\2\2\2\u00bf\u030e\3\2"+
|
||||
"\2\2\u00c1\u0310\3\2\2\2\u00c3\u0312\3\2\2\2\u00c5\u0323\3\2\2\2\u00c7"+
|
||||
"\u0333\3\2\2\2\u00c9\u0339\3\2\2\2\u00cb\u00cc\7*\2\2\u00cc\4\3\2\2\2"+
|
||||
"\u00cd\u00ce\7+\2\2\u00ce\6\3\2\2\2\u00cf\u00d0\7.\2\2\u00d0\b\3\2\2\2"+
|
||||
"\u00d1\u00d2\7<\2\2\u00d2\n\3\2\2\2\u00d3\u00d4\7C\2\2\u00d4\u00d5\7N"+
|
||||
"\2\2\u00d5\u00d6\7N\2\2\u00d6\f\3\2\2\2\u00d7\u00d8\7C\2\2\u00d8\u00d9"+
|
||||
"\7P\2\2\u00d9\u00da\7C\2\2\u00da\u00db\7N\2\2\u00db\u00dc\7[\2\2\u00dc"+
|
||||
"\u00dd\7\\\2\2\u00dd\u00de\7G\2\2\u00de\16\3\2\2\2\u00df\u00e0\7C\2\2"+
|
||||
"\u00e0\u00e1\7P\2\2\u00e1\u00e2\7C\2\2\u00e2\u00e3\7N\2\2\u00e3\u00e4"+
|
||||
"\7[\2\2\u00e4\u00e5\7\\\2\2\u00e5\u00e6\7G\2\2\u00e6\u00e7\7F\2\2\u00e7"+
|
||||
"\20\3\2\2\2\u00e8\u00e9\7C\2\2\u00e9\u00ea\7P\2\2\u00ea\u00eb\7F\2\2\u00eb"+
|
||||
"\22\3\2\2\2\u00ec\u00ed\7C\2\2\u00ed\u00ee\7P\2\2\u00ee\u00ef\7[\2\2\u00ef"+
|
||||
"\24\3\2\2\2\u00f0\u00f1\7C\2\2\u00f1\u00f2\7U\2\2\u00f2\26\3\2\2\2\u00f3"+
|
||||
"\u00f4\7C\2\2\u00f4\u00f5\7U\2\2\u00f5\u00f6\7E\2\2\u00f6\30\3\2\2\2\u00f7"+
|
||||
"\u00f8\7D\2\2\u00f8\u00f9\7G\2\2\u00f9\u00fa\7V\2\2\u00fa\u00fb\7Y\2\2"+
|
||||
"\u00fb\u00fc\7G\2\2\u00fc\u00fd\7G\2\2\u00fd\u00fe\7P\2\2\u00fe\32\3\2"+
|
||||
"\2\2\u00ff\u0100\7D\2\2\u0100\u0101\7[\2\2\u0101\34\3\2\2\2\u0102\u0103"+
|
||||
"\7E\2\2\u0103\u0104\7C\2\2\u0104\u0105\7U\2\2\u0105\u0106\7V\2\2\u0106"+
|
||||
"\36\3\2\2\2\u0107\u0108\7E\2\2\u0108\u0109\7C\2\2\u0109\u010a\7V\2\2\u010a"+
|
||||
"\u010b\7C\2\2\u010b\u010c\7N\2\2\u010c\u010d\7Q\2\2\u010d\u010e\7I\2\2"+
|
||||
"\u010e \3\2\2\2\u010f\u0110\7E\2\2\u0110\u0111\7C\2\2\u0111\u0112\7V\2"+
|
||||
"\2\u0112\u0113\7C\2\2\u0113\u0114\7N\2\2\u0114\u0115\7Q\2\2\u0115\u0116"+
|
||||
"\7I\2\2\u0116\u0117\7U\2\2\u0117\"\3\2\2\2\u0118\u0119\7E\2\2\u0119\u011a"+
|
||||
"\7Q\2\2\u011a\u011b\7N\2\2\u011b\u011c\7W\2\2\u011c\u011d\7O\2\2\u011d"+
|
||||
"\u011e\7P\2\2\u011e\u011f\7U\2\2\u011f$\3\2\2\2\u0120\u0121\7F\2\2\u0121"+
|
||||
"\u0122\7G\2\2\u0122\u0123\7D\2\2\u0123\u0124\7W\2\2\u0124\u0125\7I\2\2"+
|
||||
"\u0125&\3\2\2\2\u0126\u0127\7F\2\2\u0127\u0128\7G\2\2\u0128\u0129\7U\2"+
|
||||
"\2\u0129\u012a\7E\2\2\u012a(\3\2\2\2\u012b\u012c\7F\2\2\u012c\u012d\7"+
|
||||
"G\2\2\u012d\u012e\7U\2\2\u012e\u012f\7E\2\2\u012f\u0130\7T\2\2\u0130\u0131"+
|
||||
"\7K\2\2\u0131\u0132\7D\2\2\u0132\u0133\7G\2\2\u0133*\3\2\2\2\u0134\u0135"+
|
||||
"\7F\2\2\u0135\u0136\7K\2\2\u0136\u0137\7U\2\2\u0137\u0138\7V\2\2\u0138"+
|
||||
"\u0139\7K\2\2\u0139\u013a\7P\2\2\u013a\u013b\7E\2\2\u013b\u013c\7V\2\2"+
|
||||
"\u013c,\3\2\2\2\u013d\u013e\7G\2\2\u013e\u013f\7U\2\2\u013f\u0140\7E\2"+
|
||||
"\2\u0140\u0141\7C\2\2\u0141\u0142\7R\2\2\u0142\u0143\7G\2\2\u0143.\3\2"+
|
||||
"\2\2\u0144\u0145\7G\2\2\u0145\u0146\7Z\2\2\u0146\u0147\7G\2\2\u0147\u0148"+
|
||||
"\7E\2\2\u0148\u0149\7W\2\2\u0149\u014a\7V\2\2\u014a\u014b\7C\2\2\u014b"+
|
||||
"\u014c\7D\2\2\u014c\u014d\7N\2\2\u014d\u014e\7G\2\2\u014e\60\3\2\2\2\u014f"+
|
||||
"\u0150\7G\2\2\u0150\u0151\7Z\2\2\u0151\u0152\7K\2\2\u0152\u0153\7U\2\2"+
|
||||
"\u0153\u0154\7V\2\2\u0154\u0155\7U\2\2\u0155\62\3\2\2\2\u0156\u0157\7"+
|
||||
"G\2\2\u0157\u0158\7Z\2\2\u0158\u0159\7R\2\2\u0159\u015a\7N\2\2\u015a\u015b"+
|
||||
"\7C\2\2\u015b\u015c\7K\2\2\u015c\u015d\7P\2\2\u015d\64\3\2\2\2\u015e\u015f"+
|
||||
"\7G\2\2\u015f\u0160\7Z\2\2\u0160\u0161\7V\2\2\u0161\u0162\7T\2\2\u0162"+
|
||||
"\u0163\7C\2\2\u0163\u0164\7E\2\2\u0164\u0165\7V\2\2\u0165\66\3\2\2\2\u0166"+
|
||||
"\u0167\7H\2\2\u0167\u0168\7C\2\2\u0168\u0169\7N\2\2\u0169\u016a\7U\2\2"+
|
||||
"\u016a\u016b\7G\2\2\u016b8\3\2\2\2\u016c\u016d\7H\2\2\u016d\u016e\7Q\2"+
|
||||
"\2\u016e\u016f\7T\2\2\u016f\u0170\7O\2\2\u0170\u0171\7C\2\2\u0171\u0172"+
|
||||
"\7V\2\2\u0172:\3\2\2\2\u0173\u0174\7H\2\2\u0174\u0175\7T\2\2\u0175\u0176"+
|
||||
"\7Q\2\2\u0176\u0177\7O\2\2\u0177<\3\2\2\2\u0178\u0179\7H\2\2\u0179\u017a"+
|
||||
"\7W\2\2\u017a\u017b\7N\2\2\u017b\u017c\7N\2\2\u017c>\3\2\2\2\u017d\u017e"+
|
||||
"\7H\2\2\u017e\u017f\7W\2\2\u017f\u0180\7P\2\2\u0180\u0181\7E\2\2\u0181"+
|
||||
"\u0182\7V\2\2\u0182\u0183\7K\2\2\u0183\u0184\7Q\2\2\u0184\u0185\7P\2\2"+
|
||||
"\u0185\u0186\7U\2\2\u0186@\3\2\2\2\u0187\u0188\7I\2\2\u0188\u0189\7T\2"+
|
||||
"\2\u0189\u018a\7C\2\2\u018a\u018b\7R\2\2\u018b\u018c\7J\2\2\u018c\u018d"+
|
||||
"\7X\2\2\u018d\u018e\7K\2\2\u018e\u018f\7\\\2\2\u018fB\3\2\2\2\u0190\u0191"+
|
||||
"\7I\2\2\u0191\u0192\7T\2\2\u0192\u0193\7Q\2\2\u0193\u0194\7W\2\2\u0194"+
|
||||
"\u0195\7R\2\2\u0195D\3\2\2\2\u0196\u0197\7J\2\2\u0197\u0198\7C\2\2\u0198"+
|
||||
"\u0199\7X\2\2\u0199\u019a\7K\2\2\u019a\u019b\7P\2\2\u019b\u019c\7I\2\2"+
|
||||
"\u019cF\3\2\2\2\u019d\u019e\7K\2\2\u019e\u019f\7P\2\2\u019fH\3\2\2\2\u01a0"+
|
||||
"\u01a1\7K\2\2\u01a1\u01a2\7P\2\2\u01a2\u01a3\7P\2\2\u01a3\u01a4\7G\2\2"+
|
||||
"\u01a4\u01a5\7T\2\2\u01a5J\3\2\2\2\u01a6\u01a7\7K\2\2\u01a7\u01a8\7U\2"+
|
||||
"\2\u01a8L\3\2\2\2\u01a9\u01aa\7L\2\2\u01aa\u01ab\7Q\2\2\u01ab\u01ac\7"+
|
||||
"K\2\2\u01ac\u01ad\7P\2\2\u01adN\3\2\2\2\u01ae\u01af\7N\2\2\u01af\u01b0"+
|
||||
"\7G\2\2\u01b0\u01b1\7H\2\2\u01b1\u01b2\7V\2\2\u01b2P\3\2\2\2\u01b3\u01b4"+
|
||||
"\7N\2\2\u01b4\u01b5\7K\2\2\u01b5\u01b6\7M\2\2\u01b6\u01b7\7G\2\2\u01b7"+
|
||||
"R\3\2\2\2\u01b8\u01b9\7N\2\2\u01b9\u01ba\7K\2\2\u01ba\u01bb\7O\2\2\u01bb"+
|
||||
"\u01bc\7K\2\2\u01bc\u01bd\7V\2\2\u01bdT\3\2\2\2\u01be\u01bf\7O\2\2\u01bf"+
|
||||
"\u01c0\7C\2\2\u01c0\u01c1\7R\2\2\u01c1\u01c2\7R\2\2\u01c2\u01c3\7G\2\2"+
|
||||
"\u01c3\u01c4\7F\2\2\u01c4V\3\2\2\2\u01c5\u01c6\7O\2\2\u01c6\u01c7\7C\2"+
|
||||
"\2\u01c7\u01c8\7V\2\2\u01c8\u01c9\7E\2\2\u01c9\u01ca\7J\2\2\u01caX\3\2"+
|
||||
"\2\2\u01cb\u01cc\7P\2\2\u01cc\u01cd\7C\2\2\u01cd\u01ce\7V\2\2\u01ce\u01cf"+
|
||||
"\7W\2\2\u01cf\u01d0\7T\2\2\u01d0\u01d1\7C\2\2\u01d1\u01d2\7N\2\2\u01d2"+
|
||||
"Z\3\2\2\2\u01d3\u01d4\7P\2\2\u01d4\u01d5\7Q\2\2\u01d5\u01d6\7V\2\2\u01d6"+
|
||||
"\\\3\2\2\2\u01d7\u01d8\7P\2\2\u01d8\u01d9\7W\2\2\u01d9\u01da\7N\2\2\u01da"+
|
||||
"\u01db\7N\2\2\u01db^\3\2\2\2\u01dc\u01dd\7Q\2\2\u01dd\u01de\7P\2\2\u01de"+
|
||||
"`\3\2\2\2\u01df\u01e0\7Q\2\2\u01e0\u01e1\7R\2\2\u01e1\u01e2\7V\2\2\u01e2"+
|
||||
"\u01e3\7K\2\2\u01e3\u01e4\7O\2\2\u01e4\u01e5\7K\2\2\u01e5\u01e6\7\\\2"+
|
||||
"\2\u01e6\u01e7\7G\2\2\u01e7\u01e8\7F\2\2\u01e8b\3\2\2\2\u01e9\u01ea\7"+
|
||||
"Q\2\2\u01ea\u01eb\7T\2\2\u01ebd\3\2\2\2\u01ec\u01ed\7Q\2\2\u01ed\u01ee"+
|
||||
"\7T\2\2\u01ee\u01ef\7F\2\2\u01ef\u01f0\7G\2\2\u01f0\u01f1\7T\2\2\u01f1"+
|
||||
"f\3\2\2\2\u01f2\u01f3\7Q\2\2\u01f3\u01f4\7W\2\2\u01f4\u01f5\7V\2\2\u01f5"+
|
||||
"\u01f6\7G\2\2\u01f6\u01f7\7T\2\2\u01f7h\3\2\2\2\u01f8\u01f9\7R\2\2\u01f9"+
|
||||
"\u01fa\7C\2\2\u01fa\u01fb\7T\2\2\u01fb\u01fc\7U\2\2\u01fc\u01fd\7G\2\2"+
|
||||
"\u01fd\u01fe\7F\2\2\u01fej\3\2\2\2\u01ff\u0200\7R\2\2\u0200\u0201\7J\2"+
|
||||
"\2\u0201\u0202\7[\2\2\u0202\u0203\7U\2\2\u0203\u0204\7K\2\2\u0204\u0205"+
|
||||
"\7E\2\2\u0205\u0206\7C\2\2\u0206\u0207\7N\2\2\u0207l\3\2\2\2\u0208\u0209"+
|
||||
"\7R\2\2\u0209\u020a\7N\2\2\u020a\u020b\7C\2\2\u020b\u020c\7P\2\2\u020c"+
|
||||
"n\3\2\2\2\u020d\u020e\7T\2\2\u020e\u020f\7K\2\2\u020f\u0210\7I\2\2\u0210"+
|
||||
"\u0211\7J\2\2\u0211\u0212\7V\2\2\u0212p\3\2\2\2\u0213\u0214\7T\2\2\u0214"+
|
||||
"\u0215\7N\2\2\u0215\u0216\7K\2\2\u0216\u0217\7M\2\2\u0217\u0218\7G\2\2"+
|
||||
"\u0218r\3\2\2\2\u0219\u021a\7S\2\2\u021a\u021b\7W\2\2\u021b\u021c\7G\2"+
|
||||
"\2\u021c\u021d\7T\2\2\u021d\u021e\7[\2\2\u021et\3\2\2\2\u021f\u0220\7"+
|
||||
"U\2\2\u0220\u0221\7E\2\2\u0221\u0222\7J\2\2\u0222\u0223\7G\2\2\u0223\u0224"+
|
||||
"\7O\2\2\u0224\u0225\7C\2\2\u0225\u0226\7U\2\2\u0226v\3\2\2\2\u0227\u0228"+
|
||||
"\7U\2\2\u0228\u0229\7G\2\2\u0229\u022a\7N\2\2\u022a\u022b\7G\2\2\u022b"+
|
||||
"\u022c\7E\2\2\u022c\u022d\7V\2\2\u022dx\3\2\2\2\u022e\u022f\7U\2\2\u022f"+
|
||||
"\u0230\7J\2\2\u0230\u0231\7Q\2\2\u0231\u0232\7Y\2\2\u0232z\3\2\2\2\u0233"+
|
||||
"\u0234\7U\2\2\u0234\u0235\7[\2\2\u0235\u0236\7U\2\2\u0236|\3\2\2\2\u0237"+
|
||||
"\u0238\7V\2\2\u0238\u0239\7C\2\2\u0239\u023a\7D\2\2\u023a\u023b\7N\2\2"+
|
||||
"\u023b\u023c\7G\2\2\u023c~\3\2\2\2\u023d\u023e\7V\2\2\u023e\u023f\7C\2"+
|
||||
"\2\u023f\u0240\7D\2\2\u0240\u0241\7N\2\2\u0241\u0242\7G\2\2\u0242\u0243"+
|
||||
"\7U\2\2\u0243\u0080\3\2\2\2\u0244\u0245\7V\2\2\u0245\u0246\7G\2\2\u0246"+
|
||||
"\u0247\7Z\2\2\u0247\u0248\7V\2\2\u0248\u0082\3\2\2\2\u0249\u024a\7V\2"+
|
||||
"\2\u024a\u024b\7T\2\2\u024b\u024c\7W\2\2\u024c\u024d\7G\2\2\u024d\u0084"+
|
||||
"\3\2\2\2\u024e\u024f\7V\2\2\u024f\u0250\7[\2\2\u0250\u0251\7R\2\2\u0251"+
|
||||
"\u0252\7G\2\2\u0252\u0086\3\2\2\2\u0253\u0254\7V\2\2\u0254\u0255\7[\2"+
|
||||
"\2\u0255\u0256\7R\2\2\u0256\u0257\7G\2\2\u0257\u0258\7U\2\2\u0258\u0088"+
|
||||
"\3\2\2\2\u0259\u025a\7W\2\2\u025a\u025b\7U\2\2\u025b\u025c\7K\2\2\u025c"+
|
||||
"\u025d\7P\2\2\u025d\u025e\7I\2\2\u025e\u008a\3\2\2\2\u025f\u0260\7X\2"+
|
||||
"\2\u0260\u0261\7G\2\2\u0261\u0262\7T\2\2\u0262\u0263\7K\2\2\u0263\u0264"+
|
||||
"\7H\2\2\u0264\u0265\7[\2\2\u0265\u008c\3\2\2\2\u0266\u0267\7Y\2\2\u0267"+
|
||||
"\u0268\7J\2\2\u0268\u0269\7G\2\2\u0269\u026a\7T\2\2\u026a\u026b\7G\2\2"+
|
||||
"\u026b\u008e\3\2\2\2\u026c\u026d\7Y\2\2\u026d\u026e\7K\2\2\u026e\u026f"+
|
||||
"\7V\2\2\u026f\u0270\7J\2\2\u0270\u0090\3\2\2\2\u0271\u0272\7?\2\2\u0272"+
|
||||
"\u0092\3\2\2\2\u0273\u0274\7>\2\2\u0274\u027b\7@\2\2\u0275\u0276\7#\2"+
|
||||
"\2\u0276\u027b\7?\2\2\u0277\u0278\7>\2\2\u0278\u0279\7?\2\2\u0279\u027b"+
|
||||
"\7@\2\2\u027a\u0273\3\2\2\2\u027a\u0275\3\2\2\2\u027a\u0277\3\2\2\2\u027b"+
|
||||
"\u0094\3\2\2\2\u027c\u027d\7>\2\2\u027d\u0096\3\2\2\2\u027e\u027f\7>\2"+
|
||||
"\2\u027f\u0280\7?\2\2\u0280\u0098\3\2\2\2\u0281\u0282\7@\2\2\u0282\u009a"+
|
||||
"\3\2\2\2\u0283\u0284\7@\2\2\u0284\u0285\7?\2\2\u0285\u009c\3\2\2\2\u0286"+
|
||||
"\u0287\7-\2\2\u0287\u009e\3\2\2\2\u0288\u0289\7/\2\2\u0289\u00a0\3\2\2"+
|
||||
"\2\u028a\u028b\7,\2\2\u028b\u00a2\3\2\2\2\u028c\u028d\7\61\2\2\u028d\u00a4"+
|
||||
"\3\2\2\2\u028e\u028f\7\'\2\2\u028f\u00a6\3\2\2\2\u0290\u0291\7~\2\2\u0291"+
|
||||
"\u0292\7~\2\2\u0292\u00a8\3\2\2\2\u0293\u0294\7\60\2\2\u0294\u00aa\3\2"+
|
||||
"\2\2\u0295\u0296\7A\2\2\u0296\u00ac\3\2\2\2\u0297\u029d\7)\2\2\u0298\u029c"+
|
||||
"\n\2\2\2\u0299\u029a\7)\2\2\u029a\u029c\7)\2\2\u029b\u0298\3\2\2\2\u029b"+
|
||||
"\u0299\3\2\2\2\u029c\u029f\3\2\2\2\u029d\u029b\3\2\2\2\u029d\u029e\3\2"+
|
||||
"\2\2\u029e\u02a0\3\2\2\2\u029f\u029d\3\2\2\2\u02a0\u02a1\7)\2\2\u02a1"+
|
||||
"\u00ae\3\2\2\2\u02a2\u02a4\5\u00bf`\2\u02a3\u02a2\3\2\2\2\u02a4\u02a5"+
|
||||
"\3\2\2\2\u02a5\u02a3\3\2\2\2\u02a5\u02a6\3\2\2\2\u02a6\u00b0\3\2\2\2\u02a7"+
|
||||
"\u02a9\5\u00bf`\2\u02a8\u02a7\3\2\2\2\u02a9\u02aa\3\2\2\2\u02aa\u02a8"+
|
||||
"\3\2\2\2\u02aa\u02ab\3\2\2\2\u02ab\u02ac\3\2\2\2\u02ac\u02b0\5\u00a9U"+
|
||||
"\2\u02ad\u02af\5\u00bf`\2\u02ae\u02ad\3\2\2\2\u02af\u02b2\3\2\2\2\u02b0"+
|
||||
"\u02ae\3\2\2\2\u02b0\u02b1\3\2\2\2\u02b1\u02d2\3\2\2\2\u02b2\u02b0\3\2"+
|
||||
"\2\2\u02b3\u02b5\5\u00a9U\2\u02b4\u02b6\5\u00bf`\2\u02b5\u02b4\3\2\2\2"+
|
||||
"\u02b6\u02b7\3\2\2\2\u02b7\u02b5\3\2\2\2\u02b7\u02b8\3\2\2\2\u02b8\u02d2"+
|
||||
"\3\2\2\2\u02b9\u02bb\5\u00bf`\2\u02ba\u02b9\3\2\2\2\u02bb\u02bc\3\2\2"+
|
||||
"\2\u02bc\u02ba\3\2\2\2\u02bc\u02bd\3\2\2\2\u02bd\u02c5\3\2\2\2\u02be\u02c2"+
|
||||
"\5\u00a9U\2\u02bf\u02c1\5\u00bf`\2\u02c0\u02bf\3\2\2\2\u02c1\u02c4\3\2"+
|
||||
"\2\2\u02c2\u02c0\3\2\2\2\u02c2\u02c3\3\2\2\2\u02c3\u02c6\3\2\2\2\u02c4"+
|
||||
"\u02c2\3\2\2\2\u02c5\u02be\3\2\2\2\u02c5\u02c6\3\2\2\2\u02c6\u02c7\3\2"+
|
||||
"\2\2\u02c7\u02c8\5\u00bd_\2\u02c8\u02d2\3\2\2\2\u02c9\u02cb\5\u00a9U\2"+
|
||||
"\u02ca\u02cc\5\u00bf`\2\u02cb\u02ca\3\2\2\2\u02cc\u02cd\3\2\2\2\u02cd"+
|
||||
"\u02cb\3\2\2\2\u02cd\u02ce\3\2\2\2\u02ce\u02cf\3\2\2\2\u02cf\u02d0\5\u00bd"+
|
||||
"_\2\u02d0\u02d2\3\2\2\2\u02d1\u02a8\3\2\2\2\u02d1\u02b3\3\2\2\2\u02d1"+
|
||||
"\u02ba\3\2\2\2\u02d1\u02c9\3\2\2\2\u02d2\u00b2\3\2\2\2\u02d3\u02d6\5\u00c1"+
|
||||
"a\2\u02d4\u02d6\7a\2\2\u02d5\u02d3\3\2\2\2\u02d5\u02d4\3\2\2\2\u02d6\u02dc"+
|
||||
"\3\2\2\2\u02d7\u02db\5\u00c1a\2\u02d8\u02db\5\u00bf`\2\u02d9\u02db\t\3"+
|
||||
"\2\2\u02da\u02d7\3\2\2\2\u02da\u02d8\3\2\2\2\u02da\u02d9\3\2\2\2\u02db"+
|
||||
"\u02de\3\2\2\2\u02dc\u02da\3\2\2\2\u02dc\u02dd\3\2\2\2\u02dd\u00b4\3\2"+
|
||||
"\2\2\u02de\u02dc\3\2\2\2\u02df\u02e3\5\u00bf`\2\u02e0\u02e4\5\u00c1a\2"+
|
||||
"\u02e1\u02e4\5\u00bf`\2\u02e2\u02e4\t\4\2\2\u02e3\u02e0\3\2\2\2\u02e3"+
|
||||
"\u02e1\3\2\2\2\u02e3\u02e2\3\2\2\2\u02e4\u02e5\3\2\2\2\u02e5\u02e3\3\2"+
|
||||
"\2\2\u02e5\u02e6\3\2\2\2\u02e6\u00b6\3\2\2\2\u02e7\u02ec\5\u00c1a\2\u02e8"+
|
||||
"\u02ec\5\u00bf`\2\u02e9\u02ec\t\3\2\2\u02ea\u02ec\5\u00a1Q\2\u02eb\u02e7"+
|
||||
"\3\2\2\2\u02eb\u02e8\3\2\2\2\u02eb\u02e9\3\2\2\2\u02eb\u02ea\3\2\2\2\u02ec"+
|
||||
"\u02ed\3\2\2\2\u02ed\u02eb\3\2\2\2\u02ed\u02ee\3\2\2\2\u02ee\u00b8\3\2"+
|
||||
"\2\2\u02ef\u02f5\7$\2\2\u02f0\u02f4\n\5\2\2\u02f1\u02f2\7$\2\2\u02f2\u02f4"+
|
||||
"\7$\2\2\u02f3\u02f0\3\2\2\2\u02f3\u02f1\3\2\2\2\u02f4\u02f7\3\2\2\2\u02f5"+
|
||||
"\u02f3\3\2\2\2\u02f5\u02f6\3\2\2\2\u02f6\u02f8\3\2\2\2\u02f7\u02f5\3\2"+
|
||||
"\2\2\u02f8\u02f9\7$\2\2\u02f9\u00ba\3\2\2\2\u02fa\u0300\7b\2\2\u02fb\u02ff"+
|
||||
"\n\6\2\2\u02fc\u02fd\7b\2\2\u02fd\u02ff\7b\2\2\u02fe\u02fb\3\2\2\2\u02fe"+
|
||||
"\u02fc\3\2\2\2\u02ff\u0302\3\2\2\2\u0300\u02fe\3\2\2\2\u0300\u0301\3\2"+
|
||||
"\2\2\u0301\u0303\3\2\2\2\u0302\u0300\3\2\2\2\u0303\u0304\7b\2\2\u0304"+
|
||||
"\u00bc\3\2\2\2\u0305\u0307\7G\2\2\u0306\u0308\t\7\2\2\u0307\u0306\3\2"+
|
||||
"\2\2\u0307\u0308\3\2\2\2\u0308\u030a\3\2\2\2\u0309\u030b\5\u00bf`\2\u030a"+
|
||||
"\u0309\3\2\2\2\u030b\u030c\3\2\2\2\u030c\u030a\3\2\2\2\u030c\u030d\3\2"+
|
||||
"\2\2\u030d\u00be\3\2\2\2\u030e\u030f\t\b\2\2\u030f\u00c0\3\2\2\2\u0310"+
|
||||
"\u0311\t\t\2\2\u0311\u00c2\3\2\2\2\u0312\u0313\7/\2\2\u0313\u0314\7/\2"+
|
||||
"\2\u0314\u0318\3\2\2\2\u0315\u0317\n\n\2\2\u0316\u0315\3\2\2\2\u0317\u031a"+
|
||||
"\3\2\2\2\u0318\u0316\3\2\2\2\u0318\u0319\3\2\2\2\u0319\u031c\3\2\2\2\u031a"+
|
||||
"\u0318\3\2\2\2\u031b\u031d\7\17\2\2\u031c\u031b\3\2\2\2\u031c\u031d\3"+
|
||||
"\2\2\2\u031d\u031f\3\2\2\2\u031e\u0320\7\f\2\2\u031f\u031e\3\2\2\2\u031f"+
|
||||
"\u0320\3\2\2\2\u0320\u0321\3\2\2\2\u0321\u0322\bb\2\2\u0322\u00c4\3\2"+
|
||||
"\2\2\u0323\u0324\7\61\2\2\u0324\u0325\7,\2\2\u0325\u032a\3\2\2\2\u0326"+
|
||||
"\u0329\5\u00c5c\2\u0327\u0329\13\2\2\2\u0328\u0326\3\2\2\2\u0328\u0327"+
|
||||
"\3\2\2\2\u0329\u032c\3\2\2\2\u032a\u032b\3\2\2\2\u032a\u0328\3\2\2\2\u032b"+
|
||||
"\u032d\3\2\2\2\u032c\u032a\3\2\2\2\u032d\u032e\7,\2\2\u032e\u032f\7\61"+
|
||||
"\2\2\u032f\u0330\3\2\2\2\u0330\u0331\bc\2\2\u0331\u00c6\3\2\2\2\u0332"+
|
||||
"\u0334\t\13\2\2\u0333\u0332\3\2\2\2\u0334\u0335\3\2\2\2\u0335\u0333\3"+
|
||||
"\2\2\2\u0335\u0336\3\2\2\2\u0336\u0337\3\2\2\2\u0337\u0338\bd\2\2\u0338"+
|
||||
"\u00c8\3\2\2\2\u0339\u033a\13\2\2\2\u033a\u00ca\3\2\2\2\"\2\u027a\u029b"+
|
||||
"\u029d\u02a5\u02aa\u02b0\u02b7\u02bc\u02c2\u02c5\u02cd\u02d1\u02d5\u02da"+
|
||||
"\u02dc\u02e3\u02e5\u02eb\u02ed\u02f3\u02f5\u02fe\u0300\u0307\u030c\u0318"+
|
||||
"\u031c\u031f\u0328\u032a\u0335\3\2\3\2";
|
||||
"\3\2\2\2\2\u00bd\3\2\2\2\2\u00bf\3\2\2\2\2\u00c1\3\2\2\2\2\u00c3\3\2\2"+
|
||||
"\2\2\u00c5\3\2\2\2\2\u00c7\3\2\2\2\2\u00c9\3\2\2\2\2\u00cb\3\2\2\2\2\u00d3"+
|
||||
"\3\2\2\2\2\u00d5\3\2\2\2\2\u00d7\3\2\2\2\2\u00d9\3\2\2\2\3\u00db\3\2\2"+
|
||||
"\2\5\u00dd\3\2\2\2\7\u00df\3\2\2\2\t\u00e1\3\2\2\2\13\u00e3\3\2\2\2\r"+
|
||||
"\u00e7\3\2\2\2\17\u00ef\3\2\2\2\21\u00f8\3\2\2\2\23\u00fc\3\2\2\2\25\u0100"+
|
||||
"\3\2\2\2\27\u0103\3\2\2\2\31\u0107\3\2\2\2\33\u010f\3\2\2\2\35\u0112\3"+
|
||||
"\2\2\2\37\u0117\3\2\2\2!\u011f\3\2\2\2#\u0128\3\2\2\2%\u0130\3\2\2\2\'"+
|
||||
"\u0136\3\2\2\2)\u013b\3\2\2\2+\u0144\3\2\2\2-\u014d\3\2\2\2/\u0154\3\2"+
|
||||
"\2\2\61\u015f\3\2\2\2\63\u0166\3\2\2\2\65\u016e\3\2\2\2\67\u0176\3\2\2"+
|
||||
"\29\u017c\3\2\2\2;\u0183\3\2\2\2=\u0188\3\2\2\2?\u018d\3\2\2\2A\u0197"+
|
||||
"\3\2\2\2C\u01a0\3\2\2\2E\u01a6\3\2\2\2G\u01ad\3\2\2\2I\u01b0\3\2\2\2K"+
|
||||
"\u01b6\3\2\2\2M\u01b9\3\2\2\2O\u01be\3\2\2\2Q\u01c3\3\2\2\2S\u01c8\3\2"+
|
||||
"\2\2U\u01ce\3\2\2\2W\u01d5\3\2\2\2Y\u01db\3\2\2\2[\u01e3\3\2\2\2]\u01e7"+
|
||||
"\3\2\2\2_\u01ec\3\2\2\2a\u01ef\3\2\2\2c\u01f9\3\2\2\2e\u01fc\3\2\2\2g"+
|
||||
"\u0202\3\2\2\2i\u0208\3\2\2\2k\u020f\3\2\2\2m\u0218\3\2\2\2o\u021d\3\2"+
|
||||
"\2\2q\u0223\3\2\2\2s\u0229\3\2\2\2u\u022f\3\2\2\2w\u0237\3\2\2\2y\u023e"+
|
||||
"\3\2\2\2{\u0243\3\2\2\2}\u0247\3\2\2\2\177\u024d\3\2\2\2\u0081\u0254\3"+
|
||||
"\2\2\2\u0083\u0259\3\2\2\2\u0085\u025e\3\2\2\2\u0087\u0263\3\2\2\2\u0089"+
|
||||
"\u0269\3\2\2\2\u008b\u026f\3\2\2\2\u008d\u0276\3\2\2\2\u008f\u027c\3\2"+
|
||||
"\2\2\u0091\u0281\3\2\2\2\u0093\u0289\3\2\2\2\u0095\u028d\3\2\2\2\u0097"+
|
||||
"\u0294\3\2\2\2\u0099\u0297\3\2\2\2\u009b\u029a\3\2\2\2\u009d\u029e\3\2"+
|
||||
"\2\2\u009f\u02a4\3\2\2\2\u00a1\u02a6\3\2\2\2\u00a3\u02af\3\2\2\2\u00a5"+
|
||||
"\u02b1\3\2\2\2\u00a7\u02b3\3\2\2\2\u00a9\u02b6\3\2\2\2\u00ab\u02b8\3\2"+
|
||||
"\2\2\u00ad\u02bb\3\2\2\2\u00af\u02bd\3\2\2\2\u00b1\u02bf\3\2\2\2\u00b3"+
|
||||
"\u02c1\3\2\2\2\u00b5\u02c3\3\2\2\2\u00b7\u02c5\3\2\2\2\u00b9\u02c8\3\2"+
|
||||
"\2\2\u00bb\u02ca\3\2\2\2\u00bd\u02cc\3\2\2\2\u00bf\u02d8\3\2\2\2\u00c1"+
|
||||
"\u0306\3\2\2\2\u00c3\u030a\3\2\2\2\u00c5\u0314\3\2\2\2\u00c7\u0320\3\2"+
|
||||
"\2\2\u00c9\u0324\3\2\2\2\u00cb\u032f\3\2\2\2\u00cd\u033a\3\2\2\2\u00cf"+
|
||||
"\u0343\3\2\2\2\u00d1\u0345\3\2\2\2\u00d3\u0347\3\2\2\2\u00d5\u0358\3\2"+
|
||||
"\2\2\u00d7\u0368\3\2\2\2\u00d9\u036e\3\2\2\2\u00db\u00dc\7*\2\2\u00dc"+
|
||||
"\4\3\2\2\2\u00dd\u00de\7+\2\2\u00de\6\3\2\2\2\u00df\u00e0\7.\2\2\u00e0"+
|
||||
"\b\3\2\2\2\u00e1\u00e2\7<\2\2\u00e2\n\3\2\2\2\u00e3\u00e4\7C\2\2\u00e4"+
|
||||
"\u00e5\7N\2\2\u00e5\u00e6\7N\2\2\u00e6\f\3\2\2\2\u00e7\u00e8\7C\2\2\u00e8"+
|
||||
"\u00e9\7P\2\2\u00e9\u00ea\7C\2\2\u00ea\u00eb\7N\2\2\u00eb\u00ec\7[\2\2"+
|
||||
"\u00ec\u00ed\7\\\2\2\u00ed\u00ee\7G\2\2\u00ee\16\3\2\2\2\u00ef\u00f0\7"+
|
||||
"C\2\2\u00f0\u00f1\7P\2\2\u00f1\u00f2\7C\2\2\u00f2\u00f3\7N\2\2\u00f3\u00f4"+
|
||||
"\7[\2\2\u00f4\u00f5\7\\\2\2\u00f5\u00f6\7G\2\2\u00f6\u00f7\7F\2\2\u00f7"+
|
||||
"\20\3\2\2\2\u00f8\u00f9\7C\2\2\u00f9\u00fa\7P\2\2\u00fa\u00fb\7F\2\2\u00fb"+
|
||||
"\22\3\2\2\2\u00fc\u00fd\7C\2\2\u00fd\u00fe\7P\2\2\u00fe\u00ff\7[\2\2\u00ff"+
|
||||
"\24\3\2\2\2\u0100\u0101\7C\2\2\u0101\u0102\7U\2\2\u0102\26\3\2\2\2\u0103"+
|
||||
"\u0104\7C\2\2\u0104\u0105\7U\2\2\u0105\u0106\7E\2\2\u0106\30\3\2\2\2\u0107"+
|
||||
"\u0108\7D\2\2\u0108\u0109\7G\2\2\u0109\u010a\7V\2\2\u010a\u010b\7Y\2\2"+
|
||||
"\u010b\u010c\7G\2\2\u010c\u010d\7G\2\2\u010d\u010e\7P\2\2\u010e\32\3\2"+
|
||||
"\2\2\u010f\u0110\7D\2\2\u0110\u0111\7[\2\2\u0111\34\3\2\2\2\u0112\u0113"+
|
||||
"\7E\2\2\u0113\u0114\7C\2\2\u0114\u0115\7U\2\2\u0115\u0116\7V\2\2\u0116"+
|
||||
"\36\3\2\2\2\u0117\u0118\7E\2\2\u0118\u0119\7C\2\2\u0119\u011a\7V\2\2\u011a"+
|
||||
"\u011b\7C\2\2\u011b\u011c\7N\2\2\u011c\u011d\7Q\2\2\u011d\u011e\7I\2\2"+
|
||||
"\u011e \3\2\2\2\u011f\u0120\7E\2\2\u0120\u0121\7C\2\2\u0121\u0122\7V\2"+
|
||||
"\2\u0122\u0123\7C\2\2\u0123\u0124\7N\2\2\u0124\u0125\7Q\2\2\u0125\u0126"+
|
||||
"\7I\2\2\u0126\u0127\7U\2\2\u0127\"\3\2\2\2\u0128\u0129\7E\2\2\u0129\u012a"+
|
||||
"\7Q\2\2\u012a\u012b\7N\2\2\u012b\u012c\7W\2\2\u012c\u012d\7O\2\2\u012d"+
|
||||
"\u012e\7P\2\2\u012e\u012f\7U\2\2\u012f$\3\2\2\2\u0130\u0131\7F\2\2\u0131"+
|
||||
"\u0132\7G\2\2\u0132\u0133\7D\2\2\u0133\u0134\7W\2\2\u0134\u0135\7I\2\2"+
|
||||
"\u0135&\3\2\2\2\u0136\u0137\7F\2\2\u0137\u0138\7G\2\2\u0138\u0139\7U\2"+
|
||||
"\2\u0139\u013a\7E\2\2\u013a(\3\2\2\2\u013b\u013c\7F\2\2\u013c\u013d\7"+
|
||||
"G\2\2\u013d\u013e\7U\2\2\u013e\u013f\7E\2\2\u013f\u0140\7T\2\2\u0140\u0141"+
|
||||
"\7K\2\2\u0141\u0142\7D\2\2\u0142\u0143\7G\2\2\u0143*\3\2\2\2\u0144\u0145"+
|
||||
"\7F\2\2\u0145\u0146\7K\2\2\u0146\u0147\7U\2\2\u0147\u0148\7V\2\2\u0148"+
|
||||
"\u0149\7K\2\2\u0149\u014a\7P\2\2\u014a\u014b\7E\2\2\u014b\u014c\7V\2\2"+
|
||||
"\u014c,\3\2\2\2\u014d\u014e\7G\2\2\u014e\u014f\7U\2\2\u014f\u0150\7E\2"+
|
||||
"\2\u0150\u0151\7C\2\2\u0151\u0152\7R\2\2\u0152\u0153\7G\2\2\u0153.\3\2"+
|
||||
"\2\2\u0154\u0155\7G\2\2\u0155\u0156\7Z\2\2\u0156\u0157\7G\2\2\u0157\u0158"+
|
||||
"\7E\2\2\u0158\u0159\7W\2\2\u0159\u015a\7V\2\2\u015a\u015b\7C\2\2\u015b"+
|
||||
"\u015c\7D\2\2\u015c\u015d\7N\2\2\u015d\u015e\7G\2\2\u015e\60\3\2\2\2\u015f"+
|
||||
"\u0160\7G\2\2\u0160\u0161\7Z\2\2\u0161\u0162\7K\2\2\u0162\u0163\7U\2\2"+
|
||||
"\u0163\u0164\7V\2\2\u0164\u0165\7U\2\2\u0165\62\3\2\2\2\u0166\u0167\7"+
|
||||
"G\2\2\u0167\u0168\7Z\2\2\u0168\u0169\7R\2\2\u0169\u016a\7N\2\2\u016a\u016b"+
|
||||
"\7C\2\2\u016b\u016c\7K\2\2\u016c\u016d\7P\2\2\u016d\64\3\2\2\2\u016e\u016f"+
|
||||
"\7G\2\2\u016f\u0170\7Z\2\2\u0170\u0171\7V\2\2\u0171\u0172\7T\2\2\u0172"+
|
||||
"\u0173\7C\2\2\u0173\u0174\7E\2\2\u0174\u0175\7V\2\2\u0175\66\3\2\2\2\u0176"+
|
||||
"\u0177\7H\2\2\u0177\u0178\7C\2\2\u0178\u0179\7N\2\2\u0179\u017a\7U\2\2"+
|
||||
"\u017a\u017b\7G\2\2\u017b8\3\2\2\2\u017c\u017d\7H\2\2\u017d\u017e\7Q\2"+
|
||||
"\2\u017e\u017f\7T\2\2\u017f\u0180\7O\2\2\u0180\u0181\7C\2\2\u0181\u0182"+
|
||||
"\7V\2\2\u0182:\3\2\2\2\u0183\u0184\7H\2\2\u0184\u0185\7T\2\2\u0185\u0186"+
|
||||
"\7Q\2\2\u0186\u0187\7O\2\2\u0187<\3\2\2\2\u0188\u0189\7H\2\2\u0189\u018a"+
|
||||
"\7W\2\2\u018a\u018b\7N\2\2\u018b\u018c\7N\2\2\u018c>\3\2\2\2\u018d\u018e"+
|
||||
"\7H\2\2\u018e\u018f\7W\2\2\u018f\u0190\7P\2\2\u0190\u0191\7E\2\2\u0191"+
|
||||
"\u0192\7V\2\2\u0192\u0193\7K\2\2\u0193\u0194\7Q\2\2\u0194\u0195\7P\2\2"+
|
||||
"\u0195\u0196\7U\2\2\u0196@\3\2\2\2\u0197\u0198\7I\2\2\u0198\u0199\7T\2"+
|
||||
"\2\u0199\u019a\7C\2\2\u019a\u019b\7R\2\2\u019b\u019c\7J\2\2\u019c\u019d"+
|
||||
"\7X\2\2\u019d\u019e\7K\2\2\u019e\u019f\7\\\2\2\u019fB\3\2\2\2\u01a0\u01a1"+
|
||||
"\7I\2\2\u01a1\u01a2\7T\2\2\u01a2\u01a3\7Q\2\2\u01a3\u01a4\7W\2\2\u01a4"+
|
||||
"\u01a5\7R\2\2\u01a5D\3\2\2\2\u01a6\u01a7\7J\2\2\u01a7\u01a8\7C\2\2\u01a8"+
|
||||
"\u01a9\7X\2\2\u01a9\u01aa\7K\2\2\u01aa\u01ab\7P\2\2\u01ab\u01ac\7I\2\2"+
|
||||
"\u01acF\3\2\2\2\u01ad\u01ae\7K\2\2\u01ae\u01af\7P\2\2\u01afH\3\2\2\2\u01b0"+
|
||||
"\u01b1\7K\2\2\u01b1\u01b2\7P\2\2\u01b2\u01b3\7P\2\2\u01b3\u01b4\7G\2\2"+
|
||||
"\u01b4\u01b5\7T\2\2\u01b5J\3\2\2\2\u01b6\u01b7\7K\2\2\u01b7\u01b8\7U\2"+
|
||||
"\2\u01b8L\3\2\2\2\u01b9\u01ba\7L\2\2\u01ba\u01bb\7Q\2\2\u01bb\u01bc\7"+
|
||||
"K\2\2\u01bc\u01bd\7P\2\2\u01bdN\3\2\2\2\u01be\u01bf\7N\2\2\u01bf\u01c0"+
|
||||
"\7G\2\2\u01c0\u01c1\7H\2\2\u01c1\u01c2\7V\2\2\u01c2P\3\2\2\2\u01c3\u01c4"+
|
||||
"\7N\2\2\u01c4\u01c5\7K\2\2\u01c5\u01c6\7M\2\2\u01c6\u01c7\7G\2\2\u01c7"+
|
||||
"R\3\2\2\2\u01c8\u01c9\7N\2\2\u01c9\u01ca\7K\2\2\u01ca\u01cb\7O\2\2\u01cb"+
|
||||
"\u01cc\7K\2\2\u01cc\u01cd\7V\2\2\u01cdT\3\2\2\2\u01ce\u01cf\7O\2\2\u01cf"+
|
||||
"\u01d0\7C\2\2\u01d0\u01d1\7R\2\2\u01d1\u01d2\7R\2\2\u01d2\u01d3\7G\2\2"+
|
||||
"\u01d3\u01d4\7F\2\2\u01d4V\3\2\2\2\u01d5\u01d6\7O\2\2\u01d6\u01d7\7C\2"+
|
||||
"\2\u01d7\u01d8\7V\2\2\u01d8\u01d9\7E\2\2\u01d9\u01da\7J\2\2\u01daX\3\2"+
|
||||
"\2\2\u01db\u01dc\7P\2\2\u01dc\u01dd\7C\2\2\u01dd\u01de\7V\2\2\u01de\u01df"+
|
||||
"\7W\2\2\u01df\u01e0\7T\2\2\u01e0\u01e1\7C\2\2\u01e1\u01e2\7N\2\2\u01e2"+
|
||||
"Z\3\2\2\2\u01e3\u01e4\7P\2\2\u01e4\u01e5\7Q\2\2\u01e5\u01e6\7V\2\2\u01e6"+
|
||||
"\\\3\2\2\2\u01e7\u01e8\7P\2\2\u01e8\u01e9\7W\2\2\u01e9\u01ea\7N\2\2\u01ea"+
|
||||
"\u01eb\7N\2\2\u01eb^\3\2\2\2\u01ec\u01ed\7Q\2\2\u01ed\u01ee\7P\2\2\u01ee"+
|
||||
"`\3\2\2\2\u01ef\u01f0\7Q\2\2\u01f0\u01f1\7R\2\2\u01f1\u01f2\7V\2\2\u01f2"+
|
||||
"\u01f3\7K\2\2\u01f3\u01f4\7O\2\2\u01f4\u01f5\7K\2\2\u01f5\u01f6\7\\\2"+
|
||||
"\2\u01f6\u01f7\7G\2\2\u01f7\u01f8\7F\2\2\u01f8b\3\2\2\2\u01f9\u01fa\7"+
|
||||
"Q\2\2\u01fa\u01fb\7T\2\2\u01fbd\3\2\2\2\u01fc\u01fd\7Q\2\2\u01fd\u01fe"+
|
||||
"\7T\2\2\u01fe\u01ff\7F\2\2\u01ff\u0200\7G\2\2\u0200\u0201\7T\2\2\u0201"+
|
||||
"f\3\2\2\2\u0202\u0203\7Q\2\2\u0203\u0204\7W\2\2\u0204\u0205\7V\2\2\u0205"+
|
||||
"\u0206\7G\2\2\u0206\u0207\7T\2\2\u0207h\3\2\2\2\u0208\u0209\7R\2\2\u0209"+
|
||||
"\u020a\7C\2\2\u020a\u020b\7T\2\2\u020b\u020c\7U\2\2\u020c\u020d\7G\2\2"+
|
||||
"\u020d\u020e\7F\2\2\u020ej\3\2\2\2\u020f\u0210\7R\2\2\u0210\u0211\7J\2"+
|
||||
"\2\u0211\u0212\7[\2\2\u0212\u0213\7U\2\2\u0213\u0214\7K\2\2\u0214\u0215"+
|
||||
"\7E\2\2\u0215\u0216\7C\2\2\u0216\u0217\7N\2\2\u0217l\3\2\2\2\u0218\u0219"+
|
||||
"\7R\2\2\u0219\u021a\7N\2\2\u021a\u021b\7C\2\2\u021b\u021c\7P\2\2\u021c"+
|
||||
"n\3\2\2\2\u021d\u021e\7T\2\2\u021e\u021f\7K\2\2\u021f\u0220\7I\2\2\u0220"+
|
||||
"\u0221\7J\2\2\u0221\u0222\7V\2\2\u0222p\3\2\2\2\u0223\u0224\7T\2\2\u0224"+
|
||||
"\u0225\7N\2\2\u0225\u0226\7K\2\2\u0226\u0227\7M\2\2\u0227\u0228\7G\2\2"+
|
||||
"\u0228r\3\2\2\2\u0229\u022a\7S\2\2\u022a\u022b\7W\2\2\u022b\u022c\7G\2"+
|
||||
"\2\u022c\u022d\7T\2\2\u022d\u022e\7[\2\2\u022et\3\2\2\2\u022f\u0230\7"+
|
||||
"U\2\2\u0230\u0231\7E\2\2\u0231\u0232\7J\2\2\u0232\u0233\7G\2\2\u0233\u0234"+
|
||||
"\7O\2\2\u0234\u0235\7C\2\2\u0235\u0236\7U\2\2\u0236v\3\2\2\2\u0237\u0238"+
|
||||
"\7U\2\2\u0238\u0239\7G\2\2\u0239\u023a\7N\2\2\u023a\u023b\7G\2\2\u023b"+
|
||||
"\u023c\7E\2\2\u023c\u023d\7V\2\2\u023dx\3\2\2\2\u023e\u023f\7U\2\2\u023f"+
|
||||
"\u0240\7J\2\2\u0240\u0241\7Q\2\2\u0241\u0242\7Y\2\2\u0242z\3\2\2\2\u0243"+
|
||||
"\u0244\7U\2\2\u0244\u0245\7[\2\2\u0245\u0246\7U\2\2\u0246|\3\2\2\2\u0247"+
|
||||
"\u0248\7V\2\2\u0248\u0249\7C\2\2\u0249\u024a\7D\2\2\u024a\u024b\7N\2\2"+
|
||||
"\u024b\u024c\7G\2\2\u024c~\3\2\2\2\u024d\u024e\7V\2\2\u024e\u024f\7C\2"+
|
||||
"\2\u024f\u0250\7D\2\2\u0250\u0251\7N\2\2\u0251\u0252\7G\2\2\u0252\u0253"+
|
||||
"\7U\2\2\u0253\u0080\3\2\2\2\u0254\u0255\7V\2\2\u0255\u0256\7G\2\2\u0256"+
|
||||
"\u0257\7Z\2\2\u0257\u0258\7V\2\2\u0258\u0082\3\2\2\2\u0259\u025a\7V\2"+
|
||||
"\2\u025a\u025b\7T\2\2\u025b\u025c\7W\2\2\u025c\u025d\7G\2\2\u025d\u0084"+
|
||||
"\3\2\2\2\u025e\u025f\7V\2\2\u025f\u0260\7[\2\2\u0260\u0261\7R\2\2\u0261"+
|
||||
"\u0262\7G\2\2\u0262\u0086\3\2\2\2\u0263\u0264\7V\2\2\u0264\u0265\7[\2"+
|
||||
"\2\u0265\u0266\7R\2\2\u0266\u0267\7G\2\2\u0267\u0268\7U\2\2\u0268\u0088"+
|
||||
"\3\2\2\2\u0269\u026a\7W\2\2\u026a\u026b\7U\2\2\u026b\u026c\7K\2\2\u026c"+
|
||||
"\u026d\7P\2\2\u026d\u026e\7I\2\2\u026e\u008a\3\2\2\2\u026f\u0270\7X\2"+
|
||||
"\2\u0270\u0271\7G\2\2\u0271\u0272\7T\2\2\u0272\u0273\7K\2\2\u0273\u0274"+
|
||||
"\7H\2\2\u0274\u0275\7[\2\2\u0275\u008c\3\2\2\2\u0276\u0277\7Y\2\2\u0277"+
|
||||
"\u0278\7J\2\2\u0278\u0279\7G\2\2\u0279\u027a\7T\2\2\u027a\u027b\7G\2\2"+
|
||||
"\u027b\u008e\3\2\2\2\u027c\u027d\7Y\2\2\u027d\u027e\7K\2\2\u027e\u027f"+
|
||||
"\7V\2\2\u027f\u0280\7J\2\2\u0280\u0090\3\2\2\2\u0281\u0282\7}\2\2\u0282"+
|
||||
"\u0283\7G\2\2\u0283\u0284\7U\2\2\u0284\u0285\7E\2\2\u0285\u0286\7C\2\2"+
|
||||
"\u0286\u0287\7R\2\2\u0287\u0288\7G\2\2\u0288\u0092\3\2\2\2\u0289\u028a"+
|
||||
"\7}\2\2\u028a\u028b\7H\2\2\u028b\u028c\7P\2\2\u028c\u0094\3\2\2\2\u028d"+
|
||||
"\u028e\7}\2\2\u028e\u028f\7N\2\2\u028f\u0290\7K\2\2\u0290\u0291\7O\2\2"+
|
||||
"\u0291\u0292\7K\2\2\u0292\u0293\7V\2\2\u0293\u0096\3\2\2\2\u0294\u0295"+
|
||||
"\7}\2\2\u0295\u0296\7F\2\2\u0296\u0098\3\2\2\2\u0297\u0298\7}\2\2\u0298"+
|
||||
"\u0299\7V\2\2\u0299\u009a\3\2\2\2\u029a\u029b\7}\2\2\u029b\u029c\7V\2"+
|
||||
"\2\u029c\u029d\7U\2\2\u029d\u009c\3\2\2\2\u029e\u029f\7}\2\2\u029f\u02a0"+
|
||||
"\7I\2\2\u02a0\u02a1\7W\2\2\u02a1\u02a2\7K\2\2\u02a2\u02a3\7F\2\2\u02a3"+
|
||||
"\u009e\3\2\2\2\u02a4\u02a5\7\177\2\2\u02a5\u00a0\3\2\2\2\u02a6\u02a7\7"+
|
||||
"?\2\2\u02a7\u00a2\3\2\2\2\u02a8\u02a9\7>\2\2\u02a9\u02b0\7@\2\2\u02aa"+
|
||||
"\u02ab\7#\2\2\u02ab\u02b0\7?\2\2\u02ac\u02ad\7>\2\2\u02ad\u02ae\7?\2\2"+
|
||||
"\u02ae\u02b0\7@\2\2\u02af\u02a8\3\2\2\2\u02af\u02aa\3\2\2\2\u02af\u02ac"+
|
||||
"\3\2\2\2\u02b0\u00a4\3\2\2\2\u02b1\u02b2\7>\2\2\u02b2\u00a6\3\2\2\2\u02b3"+
|
||||
"\u02b4\7>\2\2\u02b4\u02b5\7?\2\2\u02b5\u00a8\3\2\2\2\u02b6\u02b7\7@\2"+
|
||||
"\2\u02b7\u00aa\3\2\2\2\u02b8\u02b9\7@\2\2\u02b9\u02ba\7?\2\2\u02ba\u00ac"+
|
||||
"\3\2\2\2\u02bb\u02bc\7-\2\2\u02bc\u00ae\3\2\2\2\u02bd\u02be\7/\2\2\u02be"+
|
||||
"\u00b0\3\2\2\2\u02bf\u02c0\7,\2\2\u02c0\u00b2\3\2\2\2\u02c1\u02c2\7\61"+
|
||||
"\2\2\u02c2\u00b4\3\2\2\2\u02c3\u02c4\7\'\2\2\u02c4\u00b6\3\2\2\2\u02c5"+
|
||||
"\u02c6\7~\2\2\u02c6\u02c7\7~\2\2\u02c7\u00b8\3\2\2\2\u02c8\u02c9\7\60"+
|
||||
"\2\2\u02c9\u00ba\3\2\2\2\u02ca\u02cb\7A\2\2\u02cb\u00bc\3\2\2\2\u02cc"+
|
||||
"\u02d2\7)\2\2\u02cd\u02d1\n\2\2\2\u02ce\u02cf\7)\2\2\u02cf\u02d1\7)\2"+
|
||||
"\2\u02d0\u02cd\3\2\2\2\u02d0\u02ce\3\2\2\2\u02d1\u02d4\3\2\2\2\u02d2\u02d0"+
|
||||
"\3\2\2\2\u02d2\u02d3\3\2\2\2\u02d3\u02d5\3\2\2\2\u02d4\u02d2\3\2\2\2\u02d5"+
|
||||
"\u02d6\7)\2\2\u02d6\u00be\3\2\2\2\u02d7\u02d9\5\u00cfh\2\u02d8\u02d7\3"+
|
||||
"\2\2\2\u02d9\u02da\3\2\2\2\u02da\u02d8\3\2\2\2\u02da\u02db\3\2\2\2\u02db"+
|
||||
"\u00c0\3\2\2\2\u02dc\u02de\5\u00cfh\2\u02dd\u02dc\3\2\2\2\u02de\u02df"+
|
||||
"\3\2\2\2\u02df\u02dd\3\2\2\2\u02df\u02e0\3\2\2\2\u02e0\u02e1\3\2\2\2\u02e1"+
|
||||
"\u02e5\5\u00b9]\2\u02e2\u02e4\5\u00cfh\2\u02e3\u02e2\3\2\2\2\u02e4\u02e7"+
|
||||
"\3\2\2\2\u02e5\u02e3\3\2\2\2\u02e5\u02e6\3\2\2\2\u02e6\u0307\3\2\2\2\u02e7"+
|
||||
"\u02e5\3\2\2\2\u02e8\u02ea\5\u00b9]\2\u02e9\u02eb\5\u00cfh\2\u02ea\u02e9"+
|
||||
"\3\2\2\2\u02eb\u02ec\3\2\2\2\u02ec\u02ea\3\2\2\2\u02ec\u02ed\3\2\2\2\u02ed"+
|
||||
"\u0307\3\2\2\2\u02ee\u02f0\5\u00cfh\2\u02ef\u02ee\3\2\2\2\u02f0\u02f1"+
|
||||
"\3\2\2\2\u02f1\u02ef\3\2\2\2\u02f1\u02f2\3\2\2\2\u02f2\u02fa\3\2\2\2\u02f3"+
|
||||
"\u02f7\5\u00b9]\2\u02f4\u02f6\5\u00cfh\2\u02f5\u02f4\3\2\2\2\u02f6\u02f9"+
|
||||
"\3\2\2\2\u02f7\u02f5\3\2\2\2\u02f7\u02f8\3\2\2\2\u02f8\u02fb\3\2\2\2\u02f9"+
|
||||
"\u02f7\3\2\2\2\u02fa\u02f3\3\2\2\2\u02fa\u02fb\3\2\2\2\u02fb\u02fc\3\2"+
|
||||
"\2\2\u02fc\u02fd\5\u00cdg\2\u02fd\u0307\3\2\2\2\u02fe\u0300\5\u00b9]\2"+
|
||||
"\u02ff\u0301\5\u00cfh\2\u0300\u02ff\3\2\2\2\u0301\u0302\3\2\2\2\u0302"+
|
||||
"\u0300\3\2\2\2\u0302\u0303\3\2\2\2\u0303\u0304\3\2\2\2\u0304\u0305\5\u00cd"+
|
||||
"g\2\u0305\u0307\3\2\2\2\u0306\u02dd\3\2\2\2\u0306\u02e8\3\2\2\2\u0306"+
|
||||
"\u02ef\3\2\2\2\u0306\u02fe\3\2\2\2\u0307\u00c2\3\2\2\2\u0308\u030b\5\u00d1"+
|
||||
"i\2\u0309\u030b\7a\2\2\u030a\u0308\3\2\2\2\u030a\u0309\3\2\2\2\u030b\u0311"+
|
||||
"\3\2\2\2\u030c\u0310\5\u00d1i\2\u030d\u0310\5\u00cfh\2\u030e\u0310\t\3"+
|
||||
"\2\2\u030f\u030c\3\2\2\2\u030f\u030d\3\2\2\2\u030f\u030e\3\2\2\2\u0310"+
|
||||
"\u0313\3\2\2\2\u0311\u030f\3\2\2\2\u0311\u0312\3\2\2\2\u0312\u00c4\3\2"+
|
||||
"\2\2\u0313\u0311\3\2\2\2\u0314\u0318\5\u00cfh\2\u0315\u0319\5\u00d1i\2"+
|
||||
"\u0316\u0319\5\u00cfh\2\u0317\u0319\t\4\2\2\u0318\u0315\3\2\2\2\u0318"+
|
||||
"\u0316\3\2\2\2\u0318\u0317\3\2\2\2\u0319\u031a\3\2\2\2\u031a\u0318\3\2"+
|
||||
"\2\2\u031a\u031b\3\2\2\2\u031b\u00c6\3\2\2\2\u031c\u0321\5\u00d1i\2\u031d"+
|
||||
"\u0321\5\u00cfh\2\u031e\u0321\t\3\2\2\u031f\u0321\5\u00b1Y\2\u0320\u031c"+
|
||||
"\3\2\2\2\u0320\u031d\3\2\2\2\u0320\u031e\3\2\2\2\u0320\u031f\3\2\2\2\u0321"+
|
||||
"\u0322\3\2\2\2\u0322\u0320\3\2\2\2\u0322\u0323\3\2\2\2\u0323\u00c8\3\2"+
|
||||
"\2\2\u0324\u032a\7$\2\2\u0325\u0329\n\5\2\2\u0326\u0327\7$\2\2\u0327\u0329"+
|
||||
"\7$\2\2\u0328\u0325\3\2\2\2\u0328\u0326\3\2\2\2\u0329\u032c\3\2\2\2\u032a"+
|
||||
"\u0328\3\2\2\2\u032a\u032b\3\2\2\2\u032b\u032d\3\2\2\2\u032c\u032a\3\2"+
|
||||
"\2\2\u032d\u032e\7$\2\2\u032e\u00ca\3\2\2\2\u032f\u0335\7b\2\2\u0330\u0334"+
|
||||
"\n\6\2\2\u0331\u0332\7b\2\2\u0332\u0334\7b\2\2\u0333\u0330\3\2\2\2\u0333"+
|
||||
"\u0331\3\2\2\2\u0334\u0337\3\2\2\2\u0335\u0333\3\2\2\2\u0335\u0336\3\2"+
|
||||
"\2\2\u0336\u0338\3\2\2\2\u0337\u0335\3\2\2\2\u0338\u0339\7b\2\2\u0339"+
|
||||
"\u00cc\3\2\2\2\u033a\u033c\7G\2\2\u033b\u033d\t\7\2\2\u033c\u033b\3\2"+
|
||||
"\2\2\u033c\u033d\3\2\2\2\u033d\u033f\3\2\2\2\u033e\u0340\5\u00cfh\2\u033f"+
|
||||
"\u033e\3\2\2\2\u0340\u0341\3\2\2\2\u0341\u033f\3\2\2\2\u0341\u0342\3\2"+
|
||||
"\2\2\u0342\u00ce\3\2\2\2\u0343\u0344\t\b\2\2\u0344\u00d0\3\2\2\2\u0345"+
|
||||
"\u0346\t\t\2\2\u0346\u00d2\3\2\2\2\u0347\u0348\7/\2\2\u0348\u0349\7/\2"+
|
||||
"\2\u0349\u034d\3\2\2\2\u034a\u034c\n\n\2\2\u034b\u034a\3\2\2\2\u034c\u034f"+
|
||||
"\3\2\2\2\u034d\u034b\3\2\2\2\u034d\u034e\3\2\2\2\u034e\u0351\3\2\2\2\u034f"+
|
||||
"\u034d\3\2\2\2\u0350\u0352\7\17\2\2\u0351\u0350\3\2\2\2\u0351\u0352\3"+
|
||||
"\2\2\2\u0352\u0354\3\2\2\2\u0353\u0355\7\f\2\2\u0354\u0353\3\2\2\2\u0354"+
|
||||
"\u0355\3\2\2\2\u0355\u0356\3\2\2\2\u0356\u0357\bj\2\2\u0357\u00d4\3\2"+
|
||||
"\2\2\u0358\u0359\7\61\2\2\u0359\u035a\7,\2\2\u035a\u035f\3\2\2\2\u035b"+
|
||||
"\u035e\5\u00d5k\2\u035c\u035e\13\2\2\2\u035d\u035b\3\2\2\2\u035d\u035c"+
|
||||
"\3\2\2\2\u035e\u0361\3\2\2\2\u035f\u0360\3\2\2\2\u035f\u035d\3\2\2\2\u0360"+
|
||||
"\u0362\3\2\2\2\u0361\u035f\3\2\2\2\u0362\u0363\7,\2\2\u0363\u0364\7\61"+
|
||||
"\2\2\u0364\u0365\3\2\2\2\u0365\u0366\bk\2\2\u0366\u00d6\3\2\2\2\u0367"+
|
||||
"\u0369\t\13\2\2\u0368\u0367\3\2\2\2\u0369\u036a\3\2\2\2\u036a\u0368\3"+
|
||||
"\2\2\2\u036a\u036b\3\2\2\2\u036b\u036c\3\2\2\2\u036c\u036d\bl\2\2\u036d"+
|
||||
"\u00d8\3\2\2\2\u036e\u036f\13\2\2\2\u036f\u00da\3\2\2\2\"\2\u02af\u02d0"+
|
||||
"\u02d2\u02da\u02df\u02e5\u02ec\u02f1\u02f7\u02fa\u0302\u0306\u030a\u030f"+
|
||||
"\u0311\u0318\u031a\u0320\u0322\u0328\u032a\u0333\u0335\u033c\u0341\u034d"+
|
||||
"\u0351\u0354\u035d\u035f\u036a\3\2\3\2";
|
||||
public static final ATN _ATN =
|
||||
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
|
||||
static {
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
// ANTLR GENERATED CODE: DO NOT EDIT
|
||||
package org.elasticsearch.xpack.sql.parser;
|
||||
import org.antlr.v4.runtime.tree.ParseTreeListener;
|
||||
|
@ -196,6 +191,16 @@ interface SqlBaseListener extends ParseTreeListener {
|
|||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitQueryNoWith(SqlBaseParser.QueryNoWithContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#limitClause}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterLimitClause(SqlBaseParser.LimitClauseContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#limitClause}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitLimitClause(SqlBaseParser.LimitClauseContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code queryPrimaryDefault}
|
||||
* labeled alternative in {@link SqlBaseParser#queryTerm}.
|
||||
|
@ -514,6 +519,16 @@ interface SqlBaseListener extends ParseTreeListener {
|
|||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitPattern(SqlBaseParser.PatternContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#patternEscape}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterPatternEscape(SqlBaseParser.PatternEscapeContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#patternEscape}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitPatternEscape(SqlBaseParser.PatternEscapeContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code valueExpressionDefault}
|
||||
* labeled alternative in {@link SqlBaseParser#valueExpression}.
|
||||
|
@ -611,17 +626,17 @@ interface SqlBaseListener extends ParseTreeListener {
|
|||
*/
|
||||
void exitStar(SqlBaseParser.StarContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code functionCall}
|
||||
* Enter a parse tree produced by the {@code function}
|
||||
* labeled alternative in {@link SqlBaseParser#primaryExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionCall(SqlBaseParser.FunctionCallContext ctx);
|
||||
void enterFunction(SqlBaseParser.FunctionContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by the {@code functionCall}
|
||||
* Exit a parse tree produced by the {@code function}
|
||||
* labeled alternative in {@link SqlBaseParser#primaryExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionCall(SqlBaseParser.FunctionCallContext ctx);
|
||||
void exitFunction(SqlBaseParser.FunctionContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code subqueryExpression}
|
||||
* labeled alternative in {@link SqlBaseParser#primaryExpression}.
|
||||
|
@ -670,6 +685,66 @@ interface SqlBaseListener extends ParseTreeListener {
|
|||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitParenthesizedExpression(SqlBaseParser.ParenthesizedExpressionContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#castExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterCastExpression(SqlBaseParser.CastExpressionContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#castExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitCastExpression(SqlBaseParser.CastExpressionContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#castTemplate}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterCastTemplate(SqlBaseParser.CastTemplateContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#castTemplate}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitCastTemplate(SqlBaseParser.CastTemplateContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#extractExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterExtractExpression(SqlBaseParser.ExtractExpressionContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#extractExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitExtractExpression(SqlBaseParser.ExtractExpressionContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#extractTemplate}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterExtractTemplate(SqlBaseParser.ExtractTemplateContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#extractTemplate}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitExtractTemplate(SqlBaseParser.ExtractTemplateContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#functionExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionExpression(SqlBaseParser.FunctionExpressionContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#functionExpression}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionExpression(SqlBaseParser.FunctionExpressionContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#functionTemplate}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterFunctionTemplate(SqlBaseParser.FunctionTemplateContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by {@link SqlBaseParser#functionTemplate}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitFunctionTemplate(SqlBaseParser.FunctionTemplateContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code nullLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
|
@ -730,6 +805,54 @@ interface SqlBaseListener extends ParseTreeListener {
|
|||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitParamLiteral(SqlBaseParser.ParamLiteralContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code dateEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterDateEscapedLiteral(SqlBaseParser.DateEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by the {@code dateEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitDateEscapedLiteral(SqlBaseParser.DateEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code timeEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterTimeEscapedLiteral(SqlBaseParser.TimeEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by the {@code timeEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitTimeEscapedLiteral(SqlBaseParser.TimeEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code timestampEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterTimestampEscapedLiteral(SqlBaseParser.TimestampEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by the {@code timestampEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitTimestampEscapedLiteral(SqlBaseParser.TimestampEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by the {@code guidEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void enterGuidEscapedLiteral(SqlBaseParser.GuidEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Exit a parse tree produced by the {@code guidEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
*/
|
||||
void exitGuidEscapedLiteral(SqlBaseParser.GuidEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Enter a parse tree produced by {@link SqlBaseParser#comparisonOperator}.
|
||||
* @param ctx the parse tree
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,8 +1,3 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
// ANTLR GENERATED CODE: DO NOT EDIT
|
||||
package org.elasticsearch.xpack.sql.parser;
|
||||
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
|
||||
|
@ -123,6 +118,12 @@ interface SqlBaseVisitor<T> extends ParseTreeVisitor<T> {
|
|||
* @return the visitor result
|
||||
*/
|
||||
T visitQueryNoWith(SqlBaseParser.QueryNoWithContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#limitClause}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitLimitClause(SqlBaseParser.LimitClauseContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code queryPrimaryDefault}
|
||||
* labeled alternative in {@link SqlBaseParser#queryTerm}.
|
||||
|
@ -311,6 +312,12 @@ interface SqlBaseVisitor<T> extends ParseTreeVisitor<T> {
|
|||
* @return the visitor result
|
||||
*/
|
||||
T visitPattern(SqlBaseParser.PatternContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#patternEscape}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitPatternEscape(SqlBaseParser.PatternEscapeContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code valueExpressionDefault}
|
||||
* labeled alternative in {@link SqlBaseParser#valueExpression}.
|
||||
|
@ -368,12 +375,12 @@ interface SqlBaseVisitor<T> extends ParseTreeVisitor<T> {
|
|||
*/
|
||||
T visitStar(SqlBaseParser.StarContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code functionCall}
|
||||
* Visit a parse tree produced by the {@code function}
|
||||
* labeled alternative in {@link SqlBaseParser#primaryExpression}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionCall(SqlBaseParser.FunctionCallContext ctx);
|
||||
T visitFunction(SqlBaseParser.FunctionContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code subqueryExpression}
|
||||
* labeled alternative in {@link SqlBaseParser#primaryExpression}.
|
||||
|
@ -402,6 +409,42 @@ interface SqlBaseVisitor<T> extends ParseTreeVisitor<T> {
|
|||
* @return the visitor result
|
||||
*/
|
||||
T visitParenthesizedExpression(SqlBaseParser.ParenthesizedExpressionContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#castExpression}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitCastExpression(SqlBaseParser.CastExpressionContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#castTemplate}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitCastTemplate(SqlBaseParser.CastTemplateContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#extractExpression}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitExtractExpression(SqlBaseParser.ExtractExpressionContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#extractTemplate}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitExtractTemplate(SqlBaseParser.ExtractTemplateContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#functionExpression}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionExpression(SqlBaseParser.FunctionExpressionContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#functionTemplate}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitFunctionTemplate(SqlBaseParser.FunctionTemplateContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code nullLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
|
@ -437,6 +480,34 @@ interface SqlBaseVisitor<T> extends ParseTreeVisitor<T> {
|
|||
* @return the visitor result
|
||||
*/
|
||||
T visitParamLiteral(SqlBaseParser.ParamLiteralContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code dateEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitDateEscapedLiteral(SqlBaseParser.DateEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code timeEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitTimeEscapedLiteral(SqlBaseParser.TimeEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code timestampEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitTimestampEscapedLiteral(SqlBaseParser.TimestampEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by the {@code guidEscapedLiteral}
|
||||
* labeled alternative in {@link SqlBaseParser#constant}.
|
||||
* @param ctx the parse tree
|
||||
* @return the visitor result
|
||||
*/
|
||||
T visitGuidEscapedLiteral(SqlBaseParser.GuidEscapedLiteralContext ctx);
|
||||
/**
|
||||
* Visit a parse tree produced by {@link SqlBaseParser#comparisonOperator}.
|
||||
* @param ctx the parse tree
|
||||
|
|
|
@ -33,10 +33,13 @@ import java.util.BitSet;
|
|||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.function.BiFunction;
|
||||
import java.util.function.Function;
|
||||
|
||||
import static java.lang.String.format;
|
||||
|
||||
public class SqlParser {
|
||||
private static final Logger log = Loggers.getLogger(SqlParser.class);
|
||||
|
||||
|
@ -102,16 +105,30 @@ public class SqlParser {
|
|||
|
||||
if (DEBUG) {
|
||||
debug(parser);
|
||||
tokenStream.fill();
|
||||
|
||||
for (Token t : tokenStream.getTokens()) {
|
||||
String symbolicName = SqlBaseLexer.VOCABULARY.getSymbolicName(t.getType());
|
||||
String literalName = SqlBaseLexer.VOCABULARY.getLiteralName(t.getType());
|
||||
log.info(format(Locale.ROOT, " %-15s '%s'",
|
||||
symbolicName == null ? literalName : symbolicName,
|
||||
t.getText()));
|
||||
};
|
||||
}
|
||||
|
||||
ParserRuleContext tree = parseFunction.apply(parser);
|
||||
|
||||
if (DEBUG) {
|
||||
log.info("Parse tree {} " + tree.toStringTree());
|
||||
}
|
||||
|
||||
return visitor.apply(new AstBuilder(paramTokens), tree);
|
||||
}
|
||||
|
||||
private void debug(SqlBaseParser parser) {
|
||||
|
||||
// when debugging, use the exact prediction mode (needed for diagnostics as well)
|
||||
parser.getInterpreter().setPredictionMode(PredictionMode.LL_EXACT_AMBIG_DETECTION);
|
||||
parser.getInterpreter().setPredictionMode(PredictionMode.SLL);
|
||||
|
||||
parser.addParseListener(parser.new TraceListener());
|
||||
|
||||
|
|
|
@ -0,0 +1,237 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
package org.elasticsearch.xpack.sql.parser;
|
||||
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
import org.elasticsearch.xpack.sql.SqlIllegalArgumentException;
|
||||
import org.elasticsearch.xpack.sql.expression.Expression;
|
||||
import org.elasticsearch.xpack.sql.expression.Literal;
|
||||
import org.elasticsearch.xpack.sql.expression.UnresolvedAttribute;
|
||||
import org.elasticsearch.xpack.sql.expression.function.Function;
|
||||
import org.elasticsearch.xpack.sql.expression.function.UnresolvedFunction;
|
||||
import org.elasticsearch.xpack.sql.expression.regex.Like;
|
||||
import org.elasticsearch.xpack.sql.expression.regex.LikePattern;
|
||||
import org.elasticsearch.xpack.sql.plan.logical.Limit;
|
||||
import org.elasticsearch.xpack.sql.plan.logical.LogicalPlan;
|
||||
import org.elasticsearch.xpack.sql.plan.logical.With;
|
||||
import org.elasticsearch.xpack.sql.proto.SqlTypedParamValue;
|
||||
import org.elasticsearch.xpack.sql.type.DataType;
|
||||
import org.junit.Assert;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import static java.lang.String.format;
|
||||
import static java.util.Arrays.asList;
|
||||
import static org.hamcrest.Matchers.instanceOf;
|
||||
import static org.hamcrest.Matchers.is;
|
||||
|
||||
public class EscapedFunctionsTests extends ESTestCase {
|
||||
|
||||
private final SqlParser parser = new SqlParser();
|
||||
|
||||
private Literal dateLiteral(String date) {
|
||||
Expression exp = parser.createExpression(format(Locale.ROOT, "{d '%s'}", date));
|
||||
assertThat(exp, instanceOf(Expression.class));
|
||||
return (Literal) exp;
|
||||
}
|
||||
|
||||
private Literal timeLiteral(String date) {
|
||||
Expression exp = parser.createExpression(format(Locale.ROOT, "{t '%s'}", date));
|
||||
assertThat(exp, instanceOf(Expression.class));
|
||||
return (Literal) exp;
|
||||
}
|
||||
|
||||
private Literal timestampLiteral(String date) {
|
||||
Expression exp = parser.createExpression(format(Locale.ROOT, "{ts '%s'}", date));
|
||||
assertThat(exp, instanceOf(Expression.class));
|
||||
return (Literal) exp;
|
||||
}
|
||||
|
||||
private Literal guidLiteral(String date) {
|
||||
Expression exp = parser.createExpression(format(Locale.ROOT, "{guid '%s'}", date));
|
||||
assertThat(exp, instanceOf(Expression.class));
|
||||
return (Literal) exp;
|
||||
}
|
||||
|
||||
private Limit limit(int limit) {
|
||||
LogicalPlan plan = parser.createStatement(format(Locale.ROOT, "SELECT * FROM emp {limit %d}", limit));
|
||||
assertThat(plan, instanceOf(With.class));
|
||||
With with = (With) plan;
|
||||
Limit limitPlan = (Limit) (with.child());
|
||||
assertThat(limitPlan.limit(), instanceOf(Literal.class));
|
||||
return limitPlan;
|
||||
}
|
||||
|
||||
private LikePattern likeEscape(String like, String character) {
|
||||
Expression exp = parser.createExpression(format(Locale.ROOT, "exp LIKE '%s' {escape '%s'}", like, character));
|
||||
assertThat(exp, instanceOf(Like.class));
|
||||
return ((Like) exp).right();
|
||||
}
|
||||
|
||||
private Function function(String name) {
|
||||
Expression exp = parser.createExpression(format(Locale.ROOT, "{fn %s}", name));
|
||||
assertThat(exp, instanceOf(Function.class));
|
||||
return (Function) exp;
|
||||
}
|
||||
|
||||
public void testFunctionNoArg() {
|
||||
Function f = function("SCORE()");
|
||||
assertEquals("SCORE", f.functionName());
|
||||
}
|
||||
|
||||
public void testFunctionOneArg() {
|
||||
Function f = function("ABS(foo)");
|
||||
assertEquals("ABS", f.functionName());
|
||||
assertEquals(1, f.arguments().size());
|
||||
Expression arg = f.arguments().get(0);
|
||||
assertThat(arg, instanceOf(UnresolvedAttribute.class));
|
||||
UnresolvedAttribute ua = (UnresolvedAttribute) arg;
|
||||
assertThat(ua.name(), is("foo"));
|
||||
}
|
||||
|
||||
public void testFunctionOneArgFunction() {
|
||||
Function f = function("ABS({fn SCORE()})");
|
||||
assertEquals("ABS", f.functionName());
|
||||
assertEquals(1, f.arguments().size());
|
||||
Expression arg = f.arguments().get(0);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
UnresolvedFunction uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("SCORE"));
|
||||
}
|
||||
|
||||
public void testFunctionFloorWithExtract() {
|
||||
Function f = function("CAST({fn FLOOR({fn EXTRACT(YEAR FROM \"foo\")})} AS int)");
|
||||
assertEquals("CAST", f.functionName());
|
||||
assertEquals(1, f.arguments().size());
|
||||
Expression arg = f.arguments().get(0);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
f = (Function) arg;
|
||||
assertEquals("FLOOR", f.functionName());
|
||||
assertEquals(1, f.arguments().size());
|
||||
arg = f.arguments().get(0);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
UnresolvedFunction uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("YEAR"));
|
||||
}
|
||||
|
||||
public void testFunctionWithFunctionWithArg() {
|
||||
Function f = function("POWER(foo, {fn POWER({fn SCORE()}, {fN SCORE()})})");
|
||||
assertEquals("POWER", f.functionName());
|
||||
assertEquals(2, f.arguments().size());
|
||||
Expression arg = f.arguments().get(1);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
UnresolvedFunction uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("POWER"));
|
||||
assertEquals(2, uf.arguments().size());
|
||||
|
||||
List<Expression> args = uf.arguments();
|
||||
arg = args.get(0);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("SCORE"));
|
||||
|
||||
arg = args.get(1);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("SCORE"));
|
||||
}
|
||||
|
||||
public void testFunctionWithFunctionWithArgAndParams() {
|
||||
Function f = (Function) parser.createExpression("POWER(?, {fn POWER({fn ABS(?)}, {fN ABS(?)})})",
|
||||
asList(new SqlTypedParamValue(DataType.LONG, 1),
|
||||
new SqlTypedParamValue(DataType.LONG, 1),
|
||||
new SqlTypedParamValue(DataType.LONG, 1)));
|
||||
|
||||
assertEquals("POWER", f.functionName());
|
||||
assertEquals(2, f.arguments().size());
|
||||
Expression arg = f.arguments().get(1);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
UnresolvedFunction uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("POWER"));
|
||||
assertEquals(2, uf.arguments().size());
|
||||
|
||||
List<Expression> args = uf.arguments();
|
||||
arg = args.get(0);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("ABS"));
|
||||
|
||||
arg = args.get(1);
|
||||
assertThat(arg, instanceOf(UnresolvedFunction.class));
|
||||
uf = (UnresolvedFunction) arg;
|
||||
assertThat(uf.name(), is("ABS"));
|
||||
}
|
||||
|
||||
public void testDateLiteral() {
|
||||
Literal l = dateLiteral("2012-01-01");
|
||||
assertThat(l.dataType(), is(DataType.DATE));
|
||||
}
|
||||
|
||||
public void testDateLiteralValidation() {
|
||||
ParsingException ex = expectThrows(ParsingException.class, () -> dateLiteral("2012-13-01"));
|
||||
assertEquals("line 1:2: Invalid date received; Cannot parse \"2012-13-01\": Value 13 for monthOfYear must be in the range [1,12]",
|
||||
ex.getMessage());
|
||||
}
|
||||
|
||||
public void testTimeLiteralUnsupported() {
|
||||
SqlIllegalArgumentException ex = expectThrows(SqlIllegalArgumentException.class, () -> timeLiteral("10:10:10"));
|
||||
assertThat(ex.getMessage(), is("Time (only) literals are not supported; a date component is required as well"));
|
||||
}
|
||||
|
||||
public void testTimeLiteralValidation() {
|
||||
ParsingException ex = expectThrows(ParsingException.class, () -> timeLiteral("10:10:65"));
|
||||
assertEquals("line 1:2: Invalid time received; Cannot parse \"10:10:65\": Value 65 for secondOfMinute must be in the range [0,59]",
|
||||
ex.getMessage());
|
||||
}
|
||||
|
||||
public void testTimestampLiteral() {
|
||||
Literal l = timestampLiteral("2012-01-01 10:01:02.3456");
|
||||
assertThat(l.dataType(), is(DataType.DATE));
|
||||
}
|
||||
|
||||
public void testTimestampLiteralValidation() {
|
||||
ParsingException ex = expectThrows(ParsingException.class, () -> timestampLiteral("2012-01-01T10:01:02.3456"));
|
||||
assertEquals(
|
||||
"line 1:2: Invalid timestamp received; Invalid format: \"2012-01-01T10:01:02.3456\" is malformed at \"T10:01:02.3456\"",
|
||||
ex.getMessage());
|
||||
}
|
||||
|
||||
public void testGUID() {
|
||||
Literal l = guidLiteral("12345678-90ab-cdef-0123-456789abcdef");
|
||||
assertThat(l.dataType(), is(DataType.KEYWORD));
|
||||
|
||||
l = guidLiteral("12345678-90AB-cdef-0123-456789ABCdef");
|
||||
assertThat(l.dataType(), is(DataType.KEYWORD));
|
||||
}
|
||||
|
||||
public void testGUIDValidationHexa() {
|
||||
ParsingException ex = expectThrows(ParsingException.class, () -> guidLiteral("12345678-90ab-cdef-0123-456789abcdeH"));
|
||||
assertEquals("line 1:8: Invalid GUID, expected hexadecimal at offset[35], found [H]", ex.getMessage());
|
||||
}
|
||||
|
||||
public void testGUIDValidationGroups() {
|
||||
ParsingException ex = expectThrows(ParsingException.class, () -> guidLiteral("12345678A90ab-cdef-0123-456789abcdeH"));
|
||||
assertEquals("line 1:8: Invalid GUID, expected group separator at offset [8], found [A]", ex.getMessage());
|
||||
}
|
||||
|
||||
public void testGUIDValidationLength() {
|
||||
ParsingException ex = expectThrows(ParsingException.class, () -> guidLiteral("12345678A90"));
|
||||
assertEquals("line 1:8: Invalid GUID, too short", ex.getMessage());
|
||||
}
|
||||
|
||||
|
||||
public void testLimit() {
|
||||
Limit limit = limit(10);
|
||||
Literal l = (Literal) limit.limit();
|
||||
Assert.assertThat(l.value(), is(10));
|
||||
}
|
||||
|
||||
public void testLikeEscape() {
|
||||
LikePattern pattern = likeEscape("|%tring", "|");
|
||||
assertThat(pattern.escape(), is('|'));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue