UNPKG

@azure/cosmos-language-service

Version:

Cosmos DB SQL Language Service for the Monaco editor

996 lines 176 kB
// Generated from CosmosDBSqlParser.g4 by ANTLR 4.7.1 // jshint ignore: start var antlr4 = require('antlr4/index'); var grammarFileName = "CosmosDBSqlParser.g4"; var serializedATN = ["\u0003\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964", "\u0003\u0090\u01fd\u0004\u0002\t\u0002\u0004\u0003\t\u0003\u0004\u0004", "\t\u0004\u0004\u0005\t\u0005\u0004\u0006\t\u0006\u0004\u0007\t\u0007", "\u0004\b\t\b\u0004\t\t\t\u0004\n\t\n\u0004\u000b\t\u000b\u0004\f\t\f", "\u0004\r\t\r\u0004\u000e\t\u000e\u0004\u000f\t\u000f\u0004\u0010\t\u0010", "\u0004\u0011\t\u0011\u0004\u0012\t\u0012\u0004\u0013\t\u0013\u0004\u0014", "\t\u0014\u0004\u0015\t\u0015\u0004\u0016\t\u0016\u0004\u0017\t\u0017", "\u0004\u0018\t\u0018\u0004\u0019\t\u0019\u0004\u001a\t\u001a\u0004\u001b", "\t\u001b\u0004\u001c\t\u001c\u0004\u001d\t\u001d\u0004\u001e\t\u001e", "\u0004\u001f\t\u001f\u0004 \t \u0004!\t!\u0004\"\t\"\u0004#\t#\u0004", "$\t$\u0004%\t%\u0004&\t&\u0004\'\t\'\u0004(\t(\u0004)\t)\u0004*\t*\u0004", "+\t+\u0004,\t,\u0004-\t-\u0004.\t.\u0004/\t/\u0003\u0002\u0003\u0002", "\u0003\u0003\u0003\u0003\u0005\u0003c\n\u0003\u0003\u0003\u0005\u0003", "f\n\u0003\u0003\u0003\u0005\u0003i\n\u0003\u0003\u0004\u0003\u0004\u0005", "\u0004m\n\u0004\u0003\u0004\u0003\u0004\u0003\u0005\u0003\u0005\u0003", "\u0005\u0003\u0006\u0003\u0006\u0003\u0006\u0003\u0007\u0003\u0007\u0003", "\u0007\u0003\b\u0003\b\u0003\b\u0003\b\u0003\t\u0003\t\u0003\t\u0005", "\t\u0081\n\t\u0003\n\u0003\n\u0003\n\u0003\u000b\u0003\u000b\u0003\u000b", "\u0003\u000b\u0003\u000b\u0003\u000b\u0007\u000b\u008c\n\u000b\f\u000b", "\u000e\u000b\u008f\u000b\u000b\u0003\f\u0003\f\u0003\f\u0003\f\u0005", "\f\u0095\n\f\u0003\r\u0003\r\u0003\r\u0005\r\u009a\n\r\u0003\u000e\u0003", "\u000e\u0003\u000e\u0003\u000e\u0003\u000e\u0003\u000e\u0007\u000e\u00a2", "\n\u000e\f\u000e\u000e\u000e\u00a5\u000b\u000e\u0003\u000f\u0003\u000f", "\u0003\u000f\u0003\u000f\u0003\u000f\u0003\u000f\u0003\u000f\u0005\u000f", "\u00ae\n\u000f\u0003\u0010\u0003\u0010\u0003\u0010\u0003\u0010\u0003", "\u0010\u0003\u0010\u0007\u0010\u00b6\n\u0010\f\u0010\u000e\u0010\u00b9", "\u000b\u0010\u0003\u0011\u0003\u0011\u0003\u0011\u0003\u0011\u0003\u0011", "\u0003\u0011\u0003\u0011\u0005\u0011\u00c2\n\u0011\u0003\u0012\u0003", "\u0012\u0003\u0012\u0005\u0012\u00c7\n\u0012\u0003\u0013\u0003\u0013", "\u0003\u0013\u0003\u0013\u0003\u0013\u0005\u0013\u00ce\n\u0013\u0003", "\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003", "\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003", "\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0003\u0014\u0007\u0014\u00e1", "\n\u0014\f\u0014\u000e\u0014\u00e4\u000b\u0014\u0003\u0015\u0003\u0015", "\u0003\u0016\u0003\u0016\u0003\u0016\u0003\u0016\u0003\u0016\u0003\u0016", "\u0007\u0016\u00ee\n\u0016\f\u0016\u000e\u0016\u00f1\u000b\u0016\u0003", "\u0017\u0003\u0017\u0005\u0017\u00f5\n\u0017\u0003\u0017\u0003\u0017", "\u0003\u0018\u0003\u0018\u0003\u0019\u0003\u0019\u0003\u0019\u0003\u0019", "\u0003\u001a\u0003\u001a\u0003\u001a\u0003\u001a\u0003\u001a\u0003\u001a", "\u0007\u001a\u0105\n\u001a\f\u001a\u000e\u001a\u0108\u000b\u001a\u0003", "\u001b\u0003\u001b\u0005\u001b\u010c\n\u001b\u0003\u001b\u0003\u001b", "\u0003\u001c\u0003\u001c\u0003\u001c\u0003\u001c\u0003\u001c\u0003\u001c", "\u0007\u001c\u0116\n\u001c\f\u001c\u000e\u001c\u0119\u000b\u001c\u0003", "\u001d\u0003\u001d\u0003\u001e\u0003\u001e\u0003\u001f\u0003\u001f\u0003", "\u001f\u0005\u001f\u0122\n\u001f\u0003\u001f\u0003\u001f\u0003\u001f", "\u0003\u001f\u0003\u001f\u0003\u001f\u0003\u001f\u0005\u001f\u012b\n", "\u001f\u0003\u001f\u0003\u001f\u0005\u001f\u012f\n\u001f\u0003 \u0003", " \u0005 \u0133\n \u0003!\u0003!\u0003!\u0005!\u0138\n!\u0003!\u0003", "!\u0003!\u0003!\u0003!\u0003!\u0007!\u0140\n!\f!\u000e!\u0143\u000b", "!\u0003\"\u0003\"\u0003\"\u0003\"\u0003\"\u0003\"\u0003\"\u0003\"\u0003", "\"\u0003\"\u0003\"\u0003\"\u0003\"\u0005\"\u0152\n\"\u0003#\u0003#\u0003", "#\u0003#\u0003#\u0003#\u0003#\u0003#\u0003#\u0003#\u0003#\u0003#\u0003", "#\u0005#\u0161\n#\u0003$\u0003$\u0003$\u0003$\u0003$\u0003%\u0003%\u0003", "%\u0003%\u0003%\u0003&\u0003&\u0003&\u0003&\u0003&\u0003&\u0007&\u0173", "\n&\f&\u000e&\u0176\u000b&\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003", "\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003", "\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003", "\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003\'\u0003", "\'\u0003\'\u0003\'\u0003\'\u0007\'\u019c\n\'\f\'\u000e\'\u019f\u000b", "\'\u0003(\u0003(\u0003(\u0003(\u0003(\u0003(\u0003(\u0003(\u0003(\u0005", "(\u01aa\n(\u0003)\u0003)\u0003)\u0003)\u0003)\u0003)\u0003)\u0003)\u0003", ")\u0003)\u0003)\u0003)\u0003)\u0003)\u0003)\u0003)\u0005)\u01bc\n)\u0003", ")\u0003)\u0003)\u0003)\u0003)\u0003)\u0003)\u0003)\u0007)\u01c6\n)\f", ")\u000e)\u01c9\u000b)\u0003*\u0003*\u0003*\u0003*\u0003*\u0003*\u0003", "*\u0003*\u0003*\u0003*\u0005*\u01d5\n*\u0003+\u0003+\u0005+\u01d9\n", "+\u0003+\u0003+\u0003,\u0003,\u0003,\u0003,\u0003,\u0003,\u0007,\u01e3", "\n,\f,\u000e,\u01e6\u000b,\u0003-\u0003-\u0005-\u01ea\n-\u0003-\u0003", "-\u0003.\u0003.\u0003.\u0003.\u0003/\u0003/\u0003/\u0003/\u0003/\u0003", "/\u0007/\u01f8\n/\f/\u000e/\u01fb\u000b/\u0003/\u0002\u000f\u0014\u001a", "\u001e&*26@JLPV\\0\u0002\u0004\u0006\b\n\f\u000e\u0010\u0012\u0014\u0016", "\u0018\u001a\u001c\u001e \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\\u0002\u0002", "\u0002\u0215\u0002^\u0003\u0002\u0002\u0002\u0004`\u0003\u0002\u0002", "\u0002\u0006j\u0003\u0002\u0002\u0002\bp\u0003\u0002\u0002\u0002\ns", "\u0003\u0002\u0002\u0002\fv\u0003\u0002\u0002\u0002\u000ey\u0003\u0002", "\u0002\u0002\u0010\u0080\u0003\u0002\u0002\u0002\u0012\u0082\u0003\u0002", "\u0002\u0002\u0014\u0085\u0003\u0002\u0002\u0002\u0016\u0094\u0003\u0002", "\u0002\u0002\u0018\u0099\u0003\u0002\u0002\u0002\u001a\u009b\u0003\u0002", "\u0002\u0002\u001c\u00ad\u0003\u0002\u0002\u0002\u001e\u00af\u0003\u0002", "\u0002\u0002 \u00c1\u0003\u0002\u0002\u0002\"\u00c6\u0003\u0002\u0002", "\u0002$\u00cd\u0003\u0002\u0002\u0002&\u00cf\u0003\u0002\u0002\u0002", "(\u00e5\u0003\u0002\u0002\u0002*\u00e7\u0003\u0002\u0002\u0002,\u00f2", "\u0003\u0002\u0002\u0002.\u00f8\u0003\u0002\u0002\u00020\u00fa\u0003", "\u0002\u0002\u00022\u00fe\u0003\u0002\u0002\u00024\u0109\u0003\u0002", "\u0002\u00026\u010f\u0003\u0002\u0002\u00028\u011a\u0003\u0002\u0002", "\u0002:\u011c\u0003\u0002\u0002\u0002<\u012e\u0003\u0002\u0002\u0002", ">\u0132\u0003\u0002\u0002\u0002@\u0137\u0003\u0002\u0002\u0002B\u0151", "\u0003\u0002\u0002\u0002D\u0160\u0003\u0002\u0002\u0002F\u0162\u0003", "\u0002\u0002\u0002H\u0167\u0003\u0002\u0002\u0002J\u016c\u0003\u0002", "\u0002\u0002L\u0177\u0003\u0002\u0002\u0002N\u01a9\u0003\u0002\u0002", "\u0002P\u01bb\u0003\u0002\u0002\u0002R\u01d4\u0003\u0002\u0002\u0002", "T\u01d6\u0003\u0002\u0002\u0002V\u01dc\u0003\u0002\u0002\u0002X\u01e7", "\u0003\u0002\u0002\u0002Z\u01ed\u0003\u0002\u0002\u0002\\\u01f1\u0003", "\u0002\u0002\u0002^_\u0005\u0004\u0003\u0002_\u0003\u0003\u0002\u0002", "\u0002`b\u0005\u0006\u0004\u0002ac\u0005\n\u0006\u0002ba\u0003\u0002", "\u0002\u0002bc\u0003\u0002\u0002\u0002ce\u0003\u0002\u0002\u0002df\u0005", "\f\u0007\u0002ed\u0003\u0002\u0002\u0002ef\u0003\u0002\u0002\u0002f", "h\u0003\u0002\u0002\u0002gi\u0005\u000e\b\u0002hg\u0003\u0002\u0002", "\u0002hi\u0003\u0002\u0002\u0002i\u0005\u0003\u0002\u0002\u0002jl\u0007", "*\u0002\u0002km\u0005\b\u0005\u0002lk\u0003\u0002\u0002\u0002lm\u0003", "\u0002\u0002\u0002mn\u0003\u0002\u0002\u0002no\u0005\u0010\t\u0002o", "\u0007\u0003\u0002\u0002\u0002pq\u0007-\u0002\u0002qr\u0007x\u0002\u0002", "r\t\u0003\u0002\u0002\u0002st\u0007\u0015\u0002\u0002tu\u0005\u001e", "\u0010\u0002u\u000b\u0003\u0002\u0002\u0002vw\u00074\u0002\u0002wx\u0005", "> \u0002x\r\u0003\u0002\u0002\u0002yz\u0007&\u0002\u0002z{\u0007\b\u0002", "\u0002{|\u0005\u001a\u000e\u0002|\u000f\u0003\u0002\u0002\u0002}\u0081", "\u0005\u0014\u000b\u0002~\u0081\u0005\u0012\n\u0002\u007f\u0081\u0007", "~\u0002\u0002\u0080}\u0003\u0002\u0002\u0002\u0080~\u0003\u0002\u0002", "\u0002\u0080\u007f\u0003\u0002\u0002\u0002\u0081\u0011\u0003\u0002\u0002", "\u0002\u0082\u0083\u00072\u0002\u0002\u0083\u0084\u0005> \u0002\u0084", "\u0013\u0003\u0002\u0002\u0002\u0085\u0086\b\u000b\u0001\u0002\u0086", "\u0087\u0005\u0016\f\u0002\u0087\u008d\u0003\u0002\u0002\u0002\u0088", "\u0089\f\u0003\u0002\u0002\u0089\u008a\u0007z\u0002\u0002\u008a\u008c", "\u0005\u0016\f\u0002\u008b\u0088\u0003\u0002\u0002\u0002\u008c\u008f", "\u0003\u0002\u0002\u0002\u008d\u008b\u0003\u0002\u0002\u0002\u008d\u008e", "\u0003\u0002\u0002\u0002\u008e\u0015\u0003\u0002\u0002\u0002\u008f\u008d", "\u0003\u0002\u0002\u0002\u0090\u0095\u0005> \u0002\u0091\u0092\u0005", "> \u0002\u0092\u0093\u0005\u0018\r\u0002\u0093\u0095\u0003\u0002\u0002", "\u0002\u0094\u0090\u0003\u0002\u0002\u0002\u0094\u0091\u0003\u0002\u0002", "\u0002\u0095\u0017\u0003\u0002\u0002\u0002\u0096\u009a\u0007w\u0002", "\u0002\u0097\u0098\u0007\u0005\u0002\u0002\u0098\u009a\u0007w\u0002", "\u0002\u0099\u0096\u0003\u0002\u0002\u0002\u0099\u0097\u0003\u0002\u0002", "\u0002\u009a\u0019\u0003\u0002\u0002\u0002\u009b\u009c\b\u000e\u0001", "\u0002\u009c\u009d\u0005\u001c\u000f\u0002\u009d\u00a3\u0003\u0002\u0002", "\u0002\u009e\u009f\f\u0003\u0002\u0002\u009f\u00a0\u0007z\u0002\u0002", "\u00a0\u00a2\u0005\u001c\u000f\u0002\u00a1\u009e\u0003\u0002\u0002\u0002", "\u00a2\u00a5\u0003\u0002\u0002\u0002\u00a3\u00a1\u0003\u0002\u0002\u0002", "\u00a3\u00a4\u0003\u0002\u0002\u0002\u00a4\u001b\u0003\u0002\u0002\u0002", "\u00a5\u00a3\u0003\u0002\u0002\u0002\u00a6\u00ae\u0005> \u0002\u00a7", "\u00a8\u0005> \u0002\u00a8\u00a9\u0007\u0006\u0002\u0002\u00a9\u00ae", "\u0003\u0002\u0002\u0002\u00aa\u00ab\u0005> \u0002\u00ab\u00ac\u0007", "\r\u0002\u0002\u00ac\u00ae\u0003\u0002\u0002\u0002\u00ad\u00a6\u0003", "\u0002\u0002\u0002\u00ad\u00a7\u0003\u0002\u0002\u0002\u00ad\u00aa\u0003", "\u0002\u0002\u0002\u00ae\u001d\u0003\u0002\u0002\u0002\u00af\u00b0\b", "\u0010\u0001\u0002\u00b0\u00b1\u0005 \u0011\u0002\u00b1\u00b7\u0003", "\u0002\u0002\u0002\u00b2\u00b3\f\u0003\u0002\u0002\u00b3\u00b4\u0007", "\u001d\u0002\u0002\u00b4\u00b6\u0005 \u0011\u0002\u00b5\u00b2\u0003", "\u0002\u0002\u0002\u00b6\u00b9\u0003\u0002\u0002\u0002\u00b7\u00b5\u0003", "\u0002\u0002\u0002\u00b7\u00b8\u0003\u0002\u0002\u0002\u00b8\u001f\u0003", "\u0002\u0002\u0002\u00b9\u00b7\u0003\u0002\u0002\u0002\u00ba\u00c2\u0005", "$\u0013\u0002\u00bb\u00bc\u0005$\u0013\u0002\u00bc\u00bd\u0005\"\u0012", "\u0002\u00bd\u00c2\u0003\u0002\u0002\u0002\u00be\u00bf\u0007w\u0002", "\u0002\u00bf\u00c0\u0007\u0018\u0002\u0002\u00c0\u00c2\u0005$\u0013", "\u0002\u00c1\u00ba\u0003\u0002\u0002\u0002\u00c1\u00bb\u0003\u0002\u0002", "\u0002\u00c1\u00be\u0003\u0002\u0002\u0002\u00c2!\u0003\u0002\u0002", "\u0002\u00c3\u00c7\u0007w\u0002\u0002\u00c4\u00c5\u0007\u0005\u0002", "\u0002\u00c5\u00c7\u0007w\u0002\u0002\u00c6\u00c3\u0003\u0002\u0002", "\u0002\u00c6\u00c4\u0003\u0002\u0002\u0002\u00c7#\u0003\u0002\u0002", "\u0002\u00c8\u00ce\u0005&\u0014\u0002\u00c9\u00ca\u0007\u008e\u0002", "\u0002\u00ca\u00cb\u0005\u0004\u0003\u0002\u00cb\u00cc\u0007\u008f\u0002", "\u0002\u00cc\u00ce\u0003\u0002\u0002\u0002\u00cd\u00c8\u0003\u0002\u0002", "\u0002\u00cd\u00c9\u0003\u0002\u0002\u0002\u00ce%\u0003\u0002\u0002", "\u0002\u00cf\u00d0\b\u0014\u0001\u0002\u00d0\u00d1\u0005(\u0015\u0002", "\u00d1\u00e2\u0003\u0002\u0002\u0002\u00d2\u00d3\f\u0005\u0002\u0002", "\u00d3\u00d4\u0007{\u0002\u0002\u00d4\u00e1\u0005(\u0015\u0002\u00d5", "\u00d6\f\u0004\u0002\u0002\u00d6\u00d7\u0007\u008c\u0002\u0002\u00d7", "\u00d8\u0007x\u0002\u0002\u00d8\u00e1\u0007\u008d\u0002\u0002\u00d9", "\u00da\f\u0003\u0002\u0002\u00da\u00db\u0007\u008c\u0002\u0002\u00db", "\u00dc\u0007\u0090\u0002\u0002\u00dc\u00dd\u0005(\u0015\u0002\u00dd", "\u00de\u0007\u0090\u0002\u0002\u00de\u00df\u0007\u008d\u0002\u0002\u00df", "\u00e1\u0003\u0002\u0002\u0002\u00e0\u00d2\u0003\u0002\u0002\u0002\u00e0", "\u00d5\u0003\u0002\u0002\u0002\u00e0\u00d9\u0003\u0002\u0002\u0002\u00e1", "\u00e4\u0003\u0002\u0002\u0002\u00e2\u00e0\u0003\u0002\u0002\u0002\u00e2", "\u00e3\u0003\u0002\u0002\u0002\u00e3\'\u0003\u0002\u0002\u0002\u00e4", "\u00e2\u0003\u0002\u0002\u0002\u00e5\u00e6\u0007w\u0002\u0002\u00e6", ")\u0003\u0002\u0002\u0002\u00e7\u00e8\b\u0016\u0001\u0002\u00e8\u00e9", "\u0005> \u0002\u00e9\u00ef\u0003\u0002\u0002\u0002\u00ea\u00eb\f\u0003", "\u0002\u0002\u00eb\u00ec\u0007z\u0002\u0002\u00ec\u00ee\u0005> \u0002", "\u00ed\u00ea\u0003\u0002\u0002\u0002\u00ee\u00f1\u0003\u0002\u0002\u0002", "\u00ef\u00ed\u0003\u0002\u0002\u0002\u00ef\u00f0\u0003\u0002\u0002\u0002", "\u00f0+\u0003\u0002\u0002\u0002\u00f1\u00ef\u0003\u0002\u0002\u0002", "\u00f2\u00f4\u0007\u008c\u0002\u0002\u00f3\u00f5\u0005*\u0016\u0002", "\u00f4\u00f3\u0003\u0002\u0002\u0002\u00f4\u00f5\u0003\u0002\u0002\u0002", "\u00f5\u00f6\u0003\u0002\u0002\u0002\u00f6\u00f7\u0007\u008d\u0002\u0002", "\u00f7-\u0003\u0002\u0002\u0002\u00f8\u00f9\u0007w\u0002\u0002\u00f9", "/\u0003\u0002\u0002\u0002\u00fa\u00fb\u0005.\u0018\u0002\u00fb\u00fc", "\u0007\u0081\u0002\u0002\u00fc\u00fd\u0005> \u0002\u00fd1\u0003\u0002", "\u0002\u0002\u00fe\u00ff\b\u001a\u0001\u0002\u00ff\u0100\u00050\u0019", "\u0002\u0100\u0106\u0003\u0002\u0002\u0002\u0101\u0102\f\u0003\u0002", "\u0002\u0102\u0103\u0007z\u0002\u0002\u0103\u0105\u00050\u0019\u0002", "\u0104\u0101\u0003\u0002\u0002\u0002\u0105\u0108\u0003\u0002\u0002\u0002", "\u0106\u0104\u0003\u0002\u0002\u0002\u0106\u0107\u0003\u0002\u0002\u0002", "\u01073\u0003\u0002\u0002\u0002\u0108\u0106\u0003\u0002\u0002\u0002", "\u0109\u010b\u0007\u008a\u0002\u0002\u010a\u010c\u00052\u001a\u0002", "\u010b\u010a\u0003\u0002\u0002\u0002\u010b\u010c\u0003\u0002\u0002\u0002", "\u010c\u010d\u0003\u0002\u0002\u0002\u010d\u010e\u0007\u008b\u0002\u0002", "\u010e5\u0003\u0002\u0002\u0002\u010f\u0110\b\u001c\u0001\u0002\u0110", "\u0111\u0005> \u0002\u0111\u0117\u0003\u0002\u0002\u0002\u0112\u0113", "\f\u0003\u0002\u0002\u0113\u0114\u0007z\u0002\u0002\u0114\u0116\u0005", "> \u0002\u0115\u0112\u0003\u0002\u0002\u0002\u0116\u0119\u0003\u0002", "\u0002\u0002\u0117\u0115\u0003\u0002\u0002\u0002\u0117\u0118\u0003\u0002", "\u0002\u0002\u01187\u0003\u0002\u0002\u0002\u0119\u0117\u0003\u0002", "\u0002\u0002\u011a\u011b\u0007w\u0002\u0002\u011b9\u0003\u0002\u0002", "\u0002\u011c\u011d\u0007w\u0002\u0002\u011d;\u0003\u0002\u0002\u0002", "\u011e\u011f\u00058\u001d\u0002\u011f\u0121\u0007\u008e\u0002\u0002", "\u0120\u0122\u00056\u001c\u0002\u0121\u0120\u0003\u0002\u0002\u0002", "\u0121\u0122\u0003\u0002\u0002\u0002\u0122\u0123\u0003\u0002\u0002\u0002", "\u0123\u0124\u0007\u008f\u0002\u0002\u0124\u012f\u0003\u0002\u0002\u0002", "\u0125\u0126\u0007/\u0002\u0002\u0126\u0127\u0007{\u0002\u0002\u0127", "\u0128\u0005:\u001e\u0002\u0128\u012a\u0007\u008e\u0002\u0002\u0129", "\u012b\u00056\u001c\u0002\u012a\u0129\u0003\u0002\u0002\u0002\u012a", "\u012b\u0003\u0002\u0002\u0002\u012b\u012c\u0003\u0002\u0002\u0002\u012c", "\u012d\u0007\u008f\u0002\u0002\u012d\u012f\u0003\u0002\u0002\u0002\u012e", "\u011e\u0003\u0002\u0002\u0002\u012e\u0125\u0003\u0002\u0002\u0002\u012f", "=\u0003\u0002\u0002\u0002\u0130\u0133\u0005@!\u0002\u0131\u0133\u0005", "B\"\u0002\u0132\u0130\u0003\u0002\u0002\u0002\u0132\u0131\u0003\u0002", "\u0002\u0002\u0133?\u0003\u0002\u0002\u0002\u0134\u0135\b!\u0001\u0002", "\u0135\u0138\u0005L\'\u0002\u0136\u0138\u0005D#\u0002\u0137\u0134\u0003", "\u0002\u0002\u0002\u0137\u0136\u0003\u0002\u0002\u0002\u0138\u0141\u0003", "\u0002\u0002\u0002\u0139\u013a\f\u0004\u0002\u0002\u013a\u013b\u0007", "\u0003\u0002\u0002\u013b\u0140\u0005@!\u0005\u013c\u013d\f\u0003\u0002", "\u0002\u013d\u013e\u0007%\u0002\u0002\u013e\u0140\u0005@!\u0004\u013f", "\u0139\u0003\u0002\u0002\u0002\u013f\u013c\u0003\u0002\u0002\u0002\u0140", "\u0143\u0003\u0002\u0002\u0002\u0141\u013f\u0003\u0002\u0002\u0002\u0141", "\u0142\u0003\u0002\u0002\u0002\u0142A\u0003\u0002\u0002\u0002\u0143", "\u0141\u0003\u0002\u0002\u0002\u0144\u0145\u0005L\'\u0002\u0145\u0146", "\u0007\u0007\u0002\u0002\u0146\u0147\u0005L\'\u0002\u0147\u0148\u0007", "\u0003\u0002\u0002\u0148\u0149\u0005L\'\u0002\u0149\u0152\u0003\u0002", "\u0002\u0002\u014a\u014b\u0005L\'\u0002\u014b\u014c\u0007!\u0002\u0002", "\u014c\u014d\u0007\u0007\u0002\u0002\u014d\u014e\u0005L\'\u0002\u014e", "\u014f\u0007\u0003\u0002\u0002\u014f\u0150\u0005L\'\u0002\u0150\u0152", "\u0003\u0002\u0002\u0002\u0151\u0144\u0003\u0002\u0002\u0002\u0151\u014a", "\u0003\u0002\u0002\u0002\u0152C\u0003\u0002\u0002\u0002\u0153\u0154", "\u0005L\'\u0002\u0154\u0155\u0007\u0018\u0002\u0002\u0155\u0156\u0007", "\u008e\u0002\u0002\u0156\u0157\u0005J&\u0002\u0157\u0158\u0007\u008f", "\u0002\u0002\u0158\u0161\u0003\u0002\u0002\u0002\u0159\u015a\u0005L", "\'\u0002\u015a\u015b\u0007!\u0002\u0002\u015b\u015c\u0007\u0018\u0002", "\u0002\u015c\u015d\u0007\u008e\u0002\u0002\u015d\u015e\u0005J&\u0002", "\u015e\u015f\u0007\u008f\u0002\u0002\u015f\u0161\u0003\u0002\u0002\u0002", "\u0160\u0153\u0003\u0002\u0002\u0002\u0160\u0159\u0003\u0002\u0002\u0002", "\u0161E\u0003\u0002\u0002\u0002\u0162\u0163\u0007\u0012\u0002\u0002", "\u0163\u0164\u0007\u008e\u0002\u0002\u0164\u0165\u0005\u0004\u0003\u0002", "\u0165\u0166\u0007\u008f\u0002\u0002\u0166G\u0003\u0002\u0002\u0002", "\u0167\u0168\u0007\u0004\u0002\u0002\u0168\u0169\u0007\u008e\u0002\u0002", "\u0169\u016a\u0005\u0004\u0003\u0002\u016a\u016b\u0007\u008f\u0002\u0002", "\u016bI\u0003\u0002\u0002\u0002\u016c\u016d\b&\u0001\u0002\u016d\u016e", "\u0005> \u0002\u016e\u0174\u0003\u0002\u0002\u0002\u016f\u0170\f\u0003", "\u0002\u0002\u0170\u0171\u0007z\u0002\u0002\u0171\u0173\u0005> \u0002", "\u0172\u016f\u0003\u0002\u0002\u0002\u0173\u0176\u0003\u0002\u0002\u0002", "\u0174\u0172\u0003\u0002\u0002\u0002\u0174\u0175\u0003\u0002\u0002\u0002", "\u0175K\u0003\u0002\u0002\u0002\u0176\u0174\u0003\u0002\u0002\u0002", "\u0177\u0178\b\'\u0001\u0002\u0178\u0179\u0005N(\u0002\u0179\u019d\u0003", "\u0002\u0002\u0002\u017a\u017b\f\r\u0002\u0002\u017b\u017c\u0007|\u0002", "\u0002\u017c\u019c\u0005L\'\u000e\u017d\u017e\f\f\u0002\u0002\u017e", "\u017f\u0007}\u0002\u0002\u017f\u019c\u0005L\'\r\u0180\u0181\f\u000b", "\u0002\u0002\u0181\u0182\u0007~\u0002\u0002\u0182\u019c\u0005L\'\f\u0183", "\u0184\f\n\u0002\u0002\u0184\u0185\u0007\u007f\u0002\u0002\u0185\u019c", "\u0005L\'\u000b\u0186\u0187\f\t\u0002\u0002\u0187\u0188\u0007\u0080", "\u0002\u0002\u0188\u019c\u0005L\'\n\u0189\u018a\f\b\u0002\u0002\u018a", "\u018b\u0007\u0082\u0002\u0002\u018b\u019c\u0005L\'\t\u018c\u018d\f", "\u0007\u0002\u0002\u018d\u018e\u0007\u0084\u0002\u0002\u018e\u019c\u0005", "L\'\b\u018f\u0190\f\u0006\u0002\u0002\u0190\u0191\u0007\u0083\u0002", "\u0002\u0191\u019c\u0005L\'\u0007\u0192\u0193\f\u0005\u0002\u0002\u0193", "\u0194\u0007\u0087\u0002\u0002\u0194\u019c\u0005L\'\u0006\u0195\u0196", "\f\u0004\u0002\u0002\u0196\u0197\u0007\u0086\u0002\u0002\u0197\u019c", "\u0005L\'\u0005\u0198\u0199\f\u0003\u0002\u0002\u0199\u019a\u0007\u0088", "\u0002\u0002\u019a\u019c\u0005L\'\u0004\u019b\u017a\u0003\u0002\u0002", "\u0002\u019b\u017d\u0003\u0002\u0002\u0002\u019b\u0180\u0003\u0002\u0002", "\u0002\u019b\u0183\u0003\u0002\u0002\u0002\u019b\u0186\u0003\u0002\u0002", "\u0002\u019b\u0189\u0003\u0002\u0002\u0002\u019b\u018c\u0003\u0002\u0002", "\u0002\u019b\u018f\u0003\u0002\u0002\u0002\u019b\u0192\u0003\u0002\u0002", "\u0002\u019b\u0195\u0003\u0002\u0002\u0002\u019b\u0198\u0003\u0002\u0002", "\u0002\u019c\u019f\u0003\u0002\u0002\u0002\u019d\u019b\u0003\u0002\u0002", "\u0002\u019d\u019e\u0003\u0002\u0002\u0002\u019eM\u0003\u0002\u0002", "\u0002\u019f\u019d\u0003\u0002\u0002\u0002\u01a0\u01aa\u0005P)\u0002", "\u01a1\u01a2\u0007}\u0002\u0002\u01a2\u01aa\u0005N(\u0002\u01a3\u01a4", "\u0007|\u0002\u0002\u01a4\u01aa\u0005N(\u0002\u01a5\u01a6\u0007\u0085", "\u0002\u0002\u01a6\u01aa\u0005N(\u0002\u01a7\u01a8\u0007!\u0002\u0002", "\u01a8\u01aa\u0005N(\u0002\u01a9\u01a0\u0003\u0002\u0002\u0002\u01a9", "\u01a1\u0003\u0002\u0002\u0002\u01a9\u01a3\u0003\u0002\u0002\u0002\u01a9", "\u01a5\u0003\u0002\u0002\u0002\u01a9\u01a7\u0003\u0002\u0002\u0002\u01aa", "O\u0003\u0002\u0002\u0002\u01ab\u01ac\b)\u0001\u0002\u01ac\u01bc\u0005", "R*\u0002\u01ad\u01bc\u0005\"\u0012\u0002\u01ae\u01bc\u0005,\u0017\u0002", "\u01af\u01bc\u00054\u001b\u0002\u01b0\u01bc\u0005<\u001f\u0002\u01b1", "\u01b2\u0007\u008e\u0002\u0002\u01b2\u01b3\u0005> \u0002\u01b3\u01b4", "\u0007\u008f\u0002\u0002\u01b4\u01bc\u0003\u0002\u0002\u0002\u01b5\u01b6", "\u0007\u008e\u0002\u0002\u01b6\u01b7\u0005\u0004\u0003\u0002\u01b7\u01b8", "\u0007\u008f\u0002\u0002\u01b8\u01bc\u0003\u0002\u0002\u0002\u01b9\u01bc", "\u0005F$\u0002\u01ba\u01bc\u0005H%\u0002\u01bb\u01ab\u0003\u0002\u0002", "\u0002\u01bb\u01ad\u0003\u0002\u0002\u0002\u01bb\u01ae\u0003\u0002\u0002", "\u0002\u01bb\u01af\u0003\u0002\u0002\u0002\u01bb\u01b0\u0003\u0002\u0002", "\u0002\u01bb\u01b1\u0003\u0002\u0002\u0002\u01bb\u01b5\u0003\u0002\u0002", "\u0002\u01bb\u01b9\u0003\u0002\u0002\u0002\u01bb\u01ba\u0003\u0002\u0002", "\u0002\u01bc\u01c7\u0003\u0002\u0002\u0002\u01bd\u01be\f\u0006\u0002", "\u0002\u01be\u01bf\u0007{\u0002\u0002\u01bf\u01c6\u0005.\u0018\u0002", "\u01c0\u01c1\f\u0005\u0002\u0002\u01c1\u01c2\u0007\u008c\u0002\u0002", "\u01c2\u01c3\u0005> \u0002\u01c3\u01c4\u0007\u008d\u0002\u0002\u01c4", "\u01c6\u0003\u0002\u0002\u0002\u01c5\u01bd\u0003\u0002\u0002\u0002\u01c5", "\u01c0\u0003\u0002\u0002\u0002\u01c6\u01c9\u0003\u0002\u0002\u0002\u01c7", "\u01c5\u0003\u0002\u0002\u0002\u01c7\u01c8\u0003\u0002\u0002\u0002\u01c8", "Q\u0003\u0002\u0002\u0002\u01c9\u01c7\u0003\u0002\u0002\u0002\u01ca", "\u01d5\u00070\u0002\u0002\u01cb\u01d5\u0007\"\u0002\u0002\u01cc\u01d5", "\u0007.\u0002\u0002\u01cd\u01d5\u0007\u0013\u0002\u0002\u01ce\u01d5", "\u0007x\u0002\u0002\u01cf\u01d0\u0007\u0090\u0002\u0002\u01d0\u01d1", "\u0007w\u0002\u0002\u01d1\u01d5\u0007\u0090\u0002\u0002\u01d2\u01d5", "\u0005T+\u0002\u01d3\u01d5\u0005X-\u0002\u01d4\u01ca\u0003\u0002\u0002", "\u0002\u01d4\u01cb\u0003\u0002\u0002\u0002\u01d4\u01cc\u0003\u0002\u0002", "\u0002\u01d4\u01cd\u0003\u0002\u0002\u0002\u01d4\u01ce\u0003\u0002\u0002", "\u0002\u01d4\u01cf\u0003\u0002\u0002\u0002\u01d4\u01d2\u0003\u0002\u0002", "\u0002\u01d4\u01d3\u0003\u0002\u0002\u0002\u01d5S\u0003\u0002\u0002", "\u0002\u01d6\u01d8\u0007\u008c\u0002\u0002\u01d7\u01d9\u0005V,\u0002", "\u01d8\u01d7\u0003\u0002\u0002\u0002\u01d8\u01d9\u0003\u0002\u0002\u0002", "\u01d9\u01da\u0003\u0002\u0002\u0002\u01da\u01db\u0007\u008d\u0002\u0002", "\u01dbU\u0003\u0002\u0002\u0002\u01dc\u01dd\b,\u0001\u0002\u01dd\u01de", "\u0005R*\u0002\u01de\u01e4\u0003\u0002\u0002\u0002\u01df\u01e0\f\u0003", "\u0002\u0002\u01e0\u01e1\u0007z\u0002\u0002\u01e1\u01e3\u0005R*\u0002", "\u01e2\u01df\u0003\u0002\u0002\u0002\u01e3\u01e6\u0003\u0002\u0002\u0002", "\u01e4\u01e2\u0003\u0002\u0002\u0002\u01e4\u01e5\u0003\u0002\u0002\u0002", "\u01e5W\u0003\u0002\u0002\u0002\u01e6\u01e4\u0003\u0002\u0002\u0002", "\u01e7\u01e9\u0007\u008a\u0002\u0002\u01e8\u01ea\u0005\\/\u0002\u01e9", "\u01e8\u0003\u0002\u0002\u0002\u01e9\u01ea\u0003\u0002\u0002\u0002\u01ea", "\u01eb\u0003\u0002\u0002\u0002\u01eb\u01ec\u0007\u008b\u0002\u0002\u01ec", "Y\u0003\u0002\u0002\u0002\u01ed\u01ee\u0005.\u0018\u0002\u01ee\u01ef", "\u0007\u0081\u0002\u0002\u01ef\u01f0\u0005R*\u0002\u01f0[\u0003\u0002", "\u0002\u0002\u01f1\u01f2\b/\u0001\u0002\u01f2\u01f3\u0005Z.\u0002\u01f3", "\u01f9\u0003\u0002\u0002\u0002\u01f4\u01f5\f\u0003\u0002\u0002\u01f5", "\u01f6\u0007z\u0002\u0002\u01f6\u01f8\u0005Z.\u0002\u01f7\u01f4\u0003", "\u0002\u0002\u0002\u01f8\u01fb\u0003\u0002\u0002\u0002\u01f9\u01f7\u0003", "\u0002\u0002\u0002\u01f9\u01fa\u0003\u0002\u0002\u0002\u01fa]\u0003", "\u0002\u0002\u0002\u01fb\u01f9\u0003\u0002\u0002\u0002,behl\u0080\u008d", "\u0094\u0099\u00a3\u00ad\u00b7\u00c1\u00c6\u00cd\u00e0\u00e2\u00ef\u00f4", "\u0106\u010b\u0117\u0121\u012a\u012e\u0132\u0137\u013f\u0141\u0151\u0160", "\u0174\u019b\u019d\u01a9\u01bb\u01c5\u01c7\u01d4\u01d8\u01e4\u01e9\u01f9"].join(""); var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN); var decisionsToDFA = atn.decisionToState.map(function (ds, index) { return new antlr4.dfa.DFA(ds, index); }); var sharedContextCache = new antlr4.PredictionContextCache(); var literalNames = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "'false'", null, null, null, null, null, null, null, null, null, null, null, null, null, null, "'null'", null, null, null, null, null, null, null, null, null, null, null, "'true'", "'udf'", "'undefined'", null, null, null, null, null, "'Infinity'", "'NaN'", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, "'C'", "','", "'.'", "'+'", "'-'", "'*'", "'/'", "'%'", "':'", "'='", "'>'", "'<'", "'~'", "'|'", "'&'", "'^'", "'?'", "'{'", "'}'", "'['", "']'", "'('", "')'"]; var symbolicNames = [null, "AND", "ARRAY", "AS", "ASC", "BETWEEN", "BY", "CASE", "CAST", "CONVERT", "CROSS", "DESC", "DISTINCT", "ELSE", "END", "ESCAPE", "EXISTS", "K_false", "FOR", "FROM", "GROUP", "HAVING", "IN", "INNER", "INSERT", "INTO", "IS", "JOIN", "LEFT", "LIKE", "LIMIT", "NOT", "K_null", "OFFSET", "ON", "OR", "ORDER", "OUTER", "OVER", "RIGHT", "SELECT", "SET", "THEN", "TOP", "K_true", "K_udf", "K_undefined", "UPDATE", "VALUE", "WHEN", "WHERE", "WITH", "Infinity", "NaN", "ABS", "ACOS", "ARRAY_CONCAT", "ARRAY_CONTAINS", "ARRAY_LENGTH", "ARRAY_SLICE", "ASIN", "ATAN", "ATN2", "AVG", "CEILING", "CONCAT", "CONTAINS", "COS", "COT", "COUNT", "DEGREES", "ENDSWITH", "EXP", "FLOOR", "INDEX_OF", "S_ARRAY", "IS_BOOL", "IS_DEFINED", "IS_FINITE_NUMBER", "IS_NULL", "IS_NUMBER", "IS_OBJECT", "IS_PRIMITIVE", "IS_STRING", "LENGTH", "LOG", "LOG10", "LOWER", "LTRIM", "MAX", "MIN", "PI", "POWER", "RADIANS", "RAND", "REPLACE", "REPLICATE", "REVERSE", "ROUND", "RTRIM", "SIGN", "SIN", "SQRT", "SQUARE", "ST_DISTANCE", "ST_INTERSECTS", "ST_ISVALID", "ST_ISVALIDDETAILED", "ST_WITHIN", "STARTSWITH", "SUBSTRING", "SUM", "TAN", "TRUNC", "UPPER", "SPACE", "COMMENTS", "ID", "NUMBER", "COL", "COMMA", "DOT", "ADD", "SUB", "MUL", "DIV", "MOD", "COLON", "EQUAL", "GREATER", "LESS", "BIT_NOT_OP", "BIT_OR_OP", "BIT_AND_OP", "BIT_XOR_OP", "QUEST", "LEFT_BRACE", "RIGHT_BRACE", "LEFT_BRACKET", "RIGHT_BRACKET", "LEFT_PARENTHESIS", "RIGHT_PARENTHESIS", "QUOTE"]; var ruleNames = ["root", "sql_query", "select_clause", "top_spec", "from_clause", "where_clause", "orderby_clause", "selection", "select_value_spec", "select_list", "select_item", "select_alias", "orderby_item_list", "orderby_item", "from_specification", "primary_from_specification", "input_alias", "input_collection", "relative_path", "relative_path_segment", "array_item_list", "array_create_expression", "property_name", "object_property", "object_property_list", "object_create_expression", "function_arg_list", "sys_function_name", "udf_function_name", "function_call_expression", "scalar_expression", "logical_scalar_expression", "between_scalar_expression", "in_scalar_expression", "exists_scalar_expression", "array_scalar_expression", "in_scalar_expression_item_list", "binary_expression", "unary_expression", "primary_expression", "constant", "array_constant", "array_constant_list", "object_constant", "object_constant_item", "object_constant_items"]; function CosmosDBSqlParser(input) { antlr4.Parser.call(this, input); this._interp = new antlr4.atn.ParserATNSimulator(this, atn, decisionsToDFA, sharedContextCache); this.ruleNames = ruleNames; this.literalNames = literalNames; this.symbolicNames = symbolicNames; return this; } CosmosDBSqlParser.prototype = Object.create(antlr4.Parser.prototype); CosmosDBSqlParser.prototype.constructor = CosmosDBSqlParser; Object.defineProperty(CosmosDBSqlParser.prototype, "atn", { get: function () { return atn; } }); CosmosDBSqlParser.EOF = antlr4.Token.EOF; CosmosDBSqlParser.AND = 1; CosmosDBSqlParser.ARRAY = 2; CosmosDBSqlParser.AS = 3; CosmosDBSqlParser.ASC = 4; CosmosDBSqlParser.BETWEEN = 5; CosmosDBSqlParser.BY = 6; CosmosDBSqlParser.CASE = 7; CosmosDBSqlParser.CAST = 8; CosmosDBSqlParser.CONVERT = 9; CosmosDBSqlParser.CROSS = 10; CosmosDBSqlParser.DESC = 11; CosmosDBSqlParser.DISTINCT = 12; CosmosDBSqlParser.ELSE = 13; CosmosDBSqlParser.END = 14; CosmosDBSqlParser.ESCAPE = 15; CosmosDBSqlParser.EXISTS = 16; CosmosDBSqlParser.K_false = 17; CosmosDBSqlParser.FOR = 18; CosmosDBSqlParser.FROM = 19; CosmosDBSqlParser.GROUP = 20; CosmosDBSqlParser.HAVING = 21; CosmosDBSqlParser.IN = 22; CosmosDBSqlParser.INNER = 23; CosmosDBSqlParser.INSERT = 24; CosmosDBSqlParser.INTO = 25; CosmosDBSqlParser.IS = 26; CosmosDBSqlParser.JOIN = 27; CosmosDBSqlParser.LEFT = 28; CosmosDBSqlParser.LIKE = 29; CosmosDBSqlParser.LIMIT = 30; CosmosDBSqlParser.NOT = 31; CosmosDBSqlParser.K_null = 32; CosmosDBSqlParser.OFFSET = 33; CosmosDBSqlParser.ON = 34; CosmosDBSqlParser.OR = 35; CosmosDBSqlParser.ORDER = 36; CosmosDBSqlParser.OUTER = 37; CosmosDBSqlParser.OVER = 38; CosmosDBSqlParser.RIGHT = 39; CosmosDBSqlParser.SELECT = 40; CosmosDBSqlParser.SET = 41; CosmosDBSqlParser.THEN = 42; CosmosDBSqlParser.TOP = 43; CosmosDBSqlParser.K_true = 44; CosmosDBSqlParser.K_udf = 45; CosmosDBSqlParser.K_undefined = 46; CosmosDBSqlParser.UPDATE = 47; CosmosDBSqlParser.VALUE = 48; CosmosDBSqlParser.WHEN = 49; CosmosDBSqlParser.WHERE = 50; CosmosDBSqlParser.WITH = 51; CosmosDBSqlParser.Infinity = 52; CosmosDBSqlParser.NaN = 53; CosmosDBSqlParser.ABS = 54; CosmosDBSqlParser.ACOS = 55; CosmosDBSqlParser.ARRAY_CONCAT = 56; CosmosDBSqlParser.ARRAY_CONTAINS = 57; CosmosDBSqlParser.ARRAY_LENGTH = 58; CosmosDBSqlParser.ARRAY_SLICE = 59; CosmosDBSqlParser.ASIN = 60; CosmosDBSqlParser.ATAN = 61; CosmosDBSqlParser.ATN2 = 62; CosmosDBSqlParser.AVG = 63; CosmosDBSqlParser.CEILING = 64; CosmosDBSqlParser.CONCAT = 65; CosmosDBSqlParser.CONTAINS = 66; CosmosDBSqlParser.COS = 67; CosmosDBSqlParser.COT = 68; CosmosDBSqlParser.COUNT = 69; CosmosDBSqlParser.DEGREES = 70; CosmosDBSqlParser.ENDSWITH = 71; CosmosDBSqlParser.EXP = 72; CosmosDBSqlParser.FLOOR = 73; CosmosDBSqlParser.INDEX_OF = 74; CosmosDBSqlParser.S_ARRAY = 75; CosmosDBSqlParser.IS_BOOL = 76; CosmosDBSqlParser.IS_DEFINED = 77; CosmosDBSqlParser.IS_FINITE_NUMBER = 78; CosmosDBSqlParser.IS_NULL = 79; CosmosDBSqlParser.IS_NUMBER = 80; CosmosDBSqlParser.IS_OBJECT = 81; CosmosDBSqlParser.IS_PRIMITIVE = 82; CosmosDBSqlParser.IS_STRING = 83; CosmosDBSqlParser.LENGTH = 84; CosmosDBSqlParser.LOG = 85; CosmosDBSqlParser.LOG10 = 86; CosmosDBSqlParser.LOWER = 87; CosmosDBSqlParser.LTRIM = 88; CosmosDBSqlParser.MAX = 89; CosmosDBSqlParser.MIN = 90; CosmosDBSqlParser.PI = 91; CosmosDBSqlParser.POWER = 92; CosmosDBSqlParser.RADIANS = 93; CosmosDBSqlParser.RAND = 94; CosmosDBSqlParser.REPLACE = 95; CosmosDBSqlParser.REPLICATE = 96; CosmosDBSqlParser.REVERSE = 97; CosmosDBSqlParser.ROUND = 98; CosmosDBSqlParser.RTRIM = 99; CosmosDBSqlParser.SIGN = 100; CosmosDBSqlParser.SIN = 101; CosmosDBSqlParser.SQRT = 102; CosmosDBSqlParser.SQUARE = 103; CosmosDBSqlParser.ST_DISTANCE = 104; CosmosDBSqlParser.ST_INTERSECTS = 105; CosmosDBSqlParser.ST_ISVALID = 106; CosmosDBSqlParser.ST_ISVALIDDETAILED = 107; CosmosDBSqlParser.ST_WITHIN = 108; CosmosDBSqlParser.STARTSWITH = 109; CosmosDBSqlParser.SUBSTRING = 110; CosmosDBSqlParser.SUM = 111; CosmosDBSqlParser.TAN = 112; CosmosDBSqlParser.TRUNC = 113; CosmosDBSqlParser.UPPER = 114; CosmosDBSqlParser.SPACE = 115; CosmosDBSqlParser.COMMENTS = 116; CosmosDBSqlParser.ID = 117; CosmosDBSqlParser.NUMBER = 118; CosmosDBSqlParser.COL = 119; CosmosDBSqlParser.COMMA = 120; CosmosDBSqlParser.DOT = 121; CosmosDBSqlParser.ADD = 122; CosmosDBSqlParser.SUB = 123; CosmosDBSqlParser.MUL = 124; CosmosDBSqlParser.DIV = 125; CosmosDBSqlParser.MOD = 126; CosmosDBSqlParser.COLON = 127; CosmosDBSqlParser.EQUAL = 128; CosmosDBSqlParser.GREATER = 129; CosmosDBSqlParser.LESS = 130; CosmosDBSqlParser.BIT_NOT_OP = 131; CosmosDBSqlParser.BIT_OR_OP = 132; CosmosDBSqlParser.BIT_AND_OP = 133; CosmosDBSqlParser.BIT_XOR_OP = 134; CosmosDBSqlParser.QUEST = 135; CosmosDBSqlParser.LEFT_BRACE = 136; CosmosDBSqlParser.RIGHT_BRACE = 137; CosmosDBSqlParser.LEFT_BRACKET = 138; CosmosDBSqlParser.RIGHT_BRACKET = 139; CosmosDBSqlParser.LEFT_PARENTHESIS = 140; CosmosDBSqlParser.RIGHT_PARENTHESIS = 141; CosmosDBSqlParser.QUOTE = 142; CosmosDBSqlParser.RULE_root = 0; CosmosDBSqlParser.RULE_sql_query = 1; CosmosDBSqlParser.RULE_select_clause = 2; CosmosDBSqlParser.RULE_top_spec = 3; CosmosDBSqlParser.RULE_from_clause = 4; CosmosDBSqlParser.RULE_where_clause = 5; CosmosDBSqlParser.RULE_orderby_clause = 6; CosmosDBSqlParser.RULE_selection = 7; CosmosDBSqlParser.RULE_select_value_spec = 8; CosmosDBSqlParser.RULE_select_list = 9; CosmosDBSqlParser.RULE_select_item = 10; CosmosDBSqlParser.RULE_select_alias = 11; CosmosDBSqlParser.RULE_orderby_item_list = 12; CosmosDBSqlParser.RULE_orderby_item = 13; CosmosDBSqlParser.RULE_from_specification = 14; CosmosDBSqlParser.RULE_primary_from_specification = 15; CosmosDBSqlParser.RULE_input_alias = 16; CosmosDBSqlParser.RULE_input_collection = 17; CosmosDBSqlParser.RULE_relative_path = 18; CosmosDBSqlParser.RULE_relative_path_segment = 19; CosmosDBSqlParser.RULE_array_item_list = 20; CosmosDBSqlParser.RULE_array_create_expression = 21; CosmosDBSqlParser.RULE_property_name = 22; CosmosDBSqlParser.RULE_object_property = 23; CosmosDBSqlParser.RULE_object_property_list = 24; CosmosDBSqlParser.RULE_object_create_expression = 25; CosmosDBSqlParser.RULE_function_arg_list = 26; CosmosDBSqlParser.RULE_sys_function_name = 27; CosmosDBSqlParser.RULE_udf_function_name = 28; CosmosDBSqlParser.RULE_function_call_expression = 29; CosmosDBSqlParser.RULE_scalar_expression = 30; CosmosDBSqlParser.RULE_logical_scalar_expression = 31; CosmosDBSqlParser.RULE_between_scalar_expression = 32; CosmosDBSqlParser.RULE_in_scalar_expression = 33; CosmosDBSqlParser.RULE_exists_scalar_expression = 34; CosmosDBSqlParser.RULE_array_scalar_expression = 35; CosmosDBSqlParser.RULE_in_scalar_expression_item_list = 36; CosmosDBSqlParser.RULE_binary_expression = 37; CosmosDBSqlParser.RULE_unary_expression = 38; CosmosDBSqlParser.RULE_primary_expression = 39; CosmosDBSqlParser.RULE_constant = 40; CosmosDBSqlParser.RULE_array_constant = 41; CosmosDBSqlParser.RULE_array_constant_list = 42; CosmosDBSqlParser.RULE_object_constant = 43; CosmosDBSqlParser.RULE_object_constant_item = 44; CosmosDBSqlParser.RULE_object_constant_items = 45; function RootContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_root; return this; } RootContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); RootContext.prototype.constructor = RootContext; RootContext.prototype.sql_query = function () { return this.getTypedRuleContext(Sql_queryContext, 0); }; CosmosDBSqlParser.RootContext = RootContext; CosmosDBSqlParser.prototype.root = function () { var localctx = new RootContext(this, this._ctx, this.state); this.enterRule(localctx, 0, CosmosDBSqlParser.RULE_root); try { this.enterOuterAlt(localctx, 1); this.state = 92; this.sql_query(); } catch (re) { if (re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function Sql_queryContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_sql_query; return this; } Sql_queryContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); Sql_queryContext.prototype.constructor = Sql_queryContext; Sql_queryContext.prototype.select_clause = function () { return this.getTypedRuleContext(Select_clauseContext, 0); }; Sql_queryContext.prototype.from_clause = function () { return this.getTypedRuleContext(From_clauseContext, 0); }; Sql_queryContext.prototype.where_clause = function () { return this.getTypedRuleContext(Where_clauseContext, 0); }; Sql_queryContext.prototype.orderby_clause = function () { return this.getTypedRuleContext(Orderby_clauseContext, 0); }; CosmosDBSqlParser.Sql_queryContext = Sql_queryContext; CosmosDBSqlParser.prototype.sql_query = function () { var localctx = new Sql_queryContext(this, this._ctx, this.state); this.enterRule(localctx, 2, CosmosDBSqlParser.RULE_sql_query); var _la = 0; // Token type try { this.enterOuterAlt(localctx, 1); this.state = 94; this.select_clause(); this.state = 96; this._errHandler.sync(this); _la = this._input.LA(1); if (_la === CosmosDBSqlParser.FROM) { this.state = 95; this.from_clause(); } this.state = 99; this._errHandler.sync(this); _la = this._input.LA(1); if (_la === CosmosDBSqlParser.WHERE) { this.state = 98; this.where_clause(); } this.state = 102; this._errHandler.sync(this); _la = this._input.LA(1); if (_la === CosmosDBSqlParser.ORDER) { this.state = 101; this.orderby_clause(); } } catch (re) { if (re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function Select_clauseContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_select_clause; return this; } Select_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); Select_clauseContext.prototype.constructor = Select_clauseContext; Select_clauseContext.prototype.SELECT = function () { return this.getToken(CosmosDBSqlParser.SELECT, 0); }; Select_clauseContext.prototype.selection = function () { return this.getTypedRuleContext(SelectionContext, 0); }; Select_clauseContext.prototype.top_spec = function () { return this.getTypedRuleContext(Top_specContext, 0); }; CosmosDBSqlParser.Select_clauseContext = Select_clauseContext; CosmosDBSqlParser.prototype.select_clause = function () { var localctx = new Select_clauseContext(this, this._ctx, this.state); this.enterRule(localctx, 4, CosmosDBSqlParser.RULE_select_clause); var _la = 0; // Token type try { this.enterOuterAlt(localctx, 1); this.state = 104; this.match(CosmosDBSqlParser.SELECT); this.state = 106; this._errHandler.sync(this); _la = this._input.LA(1); if (_la === CosmosDBSqlParser.TOP) { this.state = 105; this.top_spec(); } this.state = 108; this.selection(); } catch (re) { if (re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function Top_specContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_top_spec; return this; } Top_specContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); Top_specContext.prototype.constructor = Top_specContext; Top_specContext.prototype.TOP = function () { return this.getToken(CosmosDBSqlParser.TOP, 0); }; Top_specContext.prototype.NUMBER = function () { return this.getToken(CosmosDBSqlParser.NUMBER, 0); }; CosmosDBSqlParser.Top_specContext = Top_specContext; CosmosDBSqlParser.prototype.top_spec = function () { var localctx = new Top_specContext(this, this._ctx, this.state); this.enterRule(localctx, 6, CosmosDBSqlParser.RULE_top_spec); try { this.enterOuterAlt(localctx, 1); this.state = 110; this.match(CosmosDBSqlParser.TOP); this.state = 111; this.match(CosmosDBSqlParser.NUMBER); } catch (re) { if (re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function From_clauseContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_from_clause; return this; } From_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); From_clauseContext.prototype.constructor = From_clauseContext; From_clauseContext.prototype.FROM = function () { return this.getToken(CosmosDBSqlParser.FROM, 0); }; From_clauseContext.prototype.from_specification = function () { return this.getTypedRuleContext(From_specificationContext, 0); }; CosmosDBSqlParser.From_clauseContext = From_clauseContext; CosmosDBSqlParser.prototype.from_clause = function () { var localctx = new From_clauseContext(this, this._ctx, this.state); this.enterRule(localctx, 8, CosmosDBSqlParser.RULE_from_clause); try { this.enterOuterAlt(localctx, 1); this.state = 113; this.match(CosmosDBSqlParser.FROM); this.state = 114; this.from_specification(0); } catch (re) { if (re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function Where_clauseContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_where_clause; return this; } Where_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); Where_clauseContext.prototype.constructor = Where_clauseContext; Where_clauseContext.prototype.WHERE = function () { return this.getToken(CosmosDBSqlParser.WHERE, 0); }; Where_clauseContext.prototype.scalar_expression = function () { return this.getTypedRuleContext(Scalar_expressionContext, 0); }; CosmosDBSqlParser.Where_clauseContext = Where_clauseContext; CosmosDBSqlParser.prototype.where_clause = function () { var localctx = new Where_clauseContext(this, this._ctx, this.state); this.enterRule(localctx, 10, CosmosDBSqlParser.RULE_where_clause); try { this.enterOuterAlt(localctx, 1); this.state = 116; this.match(CosmosDBSqlParser.WHERE); this.state = 117; this.scalar_expression(); } catch (re) { if (re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function Orderby_clauseContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_orderby_clause; return this; } Orderby_clauseContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); Orderby_clauseContext.prototype.constructor = Orderby_clauseContext; Orderby_clauseContext.prototype.ORDER = function () { return this.getToken(CosmosDBSqlParser.ORDER, 0); }; Orderby_clauseContext.prototype.BY = function () { return this.getToken(CosmosDBSqlParser.BY, 0); }; Orderby_clauseContext.prototype.orderby_item_list = function () { return this.getTypedRuleContext(Orderby_item_listContext, 0); }; CosmosDBSqlParser.Orderby_clauseContext = Orderby_clauseContext; CosmosDBSqlParser.prototype.orderby_clause = function () { var localctx = new Orderby_clauseContext(this, this._ctx, this.state); this.enterRule(localctx, 12, CosmosDBSqlParser.RULE_orderby_clause); try { this.enterOuterAlt(localctx, 1); this.state = 119; this.match(CosmosDBSqlParser.ORDER); this.state = 120; this.match(CosmosDBSqlParser.BY); this.state = 121; this.orderby_item_list(0); } catch (re) { if (re instanceof antlr4.error.RecognitionException) { localctx.exception = re; this._errHandler.reportError(this, re); this._errHandler.recover(this, re); } else { throw re; } } finally { this.exitRule(); } return localctx; }; function SelectionContext(parser, parent, invokingState) { if (parent === undefined) { parent = null; } if (invokingState === undefined || invokingState === null) { invokingState = -1; } antlr4.ParserRuleContext.call(this, parent, invokingState); this.parser = parser; this.ruleIndex = CosmosDBSqlParser.RULE_selection; return this; } SelectionContext.prototype = Object.create(antlr4.ParserRuleContext.prototype); SelectionContext.prototype.constructor = SelectionContext; SelectionContext.prototype.select_list = function () { return this.getTypedRuleContext(Select_listContext, 0); }; SelectionContext.prototype.select_value_spec = function () { return this.getTypedRuleContext(Select_value_specContext, 0); }; SelectionContext.prototype.MUL = function () { return this.getToken(CosmosDBSqlParser.MUL, 0); }; CosmosDBSqlParser.SelectionContext = SelectionContext; CosmosDBSqlParser.prototype.selection = function () { var localctx = new SelectionContext(this, this._ctx, this.state); this.enterRule(localctx, 14, CosmosDBSqlParser.RULE_selection); try { this.state = 126; this._errHandler.sync(this); switch (this._input.LA(1)) { case CosmosDBSqlParser.ARRAY: case CosmosDBSqlParser.AS: case CosmosDBSqlParser.EXISTS: case CosmosDBSqlParser.K_false: case CosmosDBSqlParser.NOT: case CosmosDBSqlParser.K_null: case CosmosDBSqlParser.K_true: case CosmosDBSqlParser.K_udf: case CosmosDBSqlParser.K_undefined: case CosmosDBSqlParser.ID: case CosmosDBSqlParser.NUMBER: case CosmosDBSqlParser.ADD: case CosmosDBSqlParser.SUB: case CosmosDBSql