// Code generated from antlr/FqlParser.g4 by ANTLR 4.7.1. DO NOT EDIT. package fql // FqlParser import ( "fmt" "reflect" "strconv" "github.com/antlr/antlr4/runtime/Go/antlr" ) // Suppress unused import errors var _ = fmt.Printf var _ = reflect.Copy var _ = strconv.Itoa var parserATN = []uint16{ 3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 62, 478, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 4, 29, 9, 29, 4, 30, 9, 30, 4, 31, 9, 31, 4, 32, 9, 32, 4, 33, 9, 33, 4, 34, 9, 34, 4, 35, 9, 35, 4, 36, 9, 36, 4, 37, 9, 37, 4, 38, 9, 38, 4, 39, 9, 39, 4, 40, 9, 40, 4, 41, 9, 41, 4, 42, 9, 42, 4, 43, 9, 43, 4, 44, 9, 44, 4, 45, 9, 45, 4, 46, 9, 46, 4, 47, 9, 47, 4, 48, 9, 48, 4, 49, 9, 49, 3, 2, 3, 2, 3, 3, 7, 3, 102, 10, 3, 12, 3, 14, 3, 105, 11, 3, 3, 3, 3, 3, 3, 4, 3, 4, 5, 4, 111, 10, 4, 3, 5, 3, 5, 5, 5, 115, 10, 5, 3, 6, 3, 6, 5, 6, 119, 10, 6, 3, 6, 3, 6, 3, 6, 5, 6, 124, 10, 6, 3, 6, 3, 6, 3, 6, 3, 6, 5, 6, 130, 10, 6, 3, 7, 3, 7, 3, 7, 3, 7, 5, 7, 136, 10, 7, 3, 7, 3, 7, 3, 7, 7, 7, 141, 10, 7, 12, 7, 14, 7, 144, 11, 7, 3, 7, 7, 7, 147, 10, 7, 12, 7, 14, 7, 150, 11, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 3, 10, 5, 10, 164, 10, 10, 3, 11, 3, 11, 3, 11, 3, 11, 5, 11, 170, 10, 11, 3, 12, 3, 12, 3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 5, 13, 179, 10, 13, 3, 14, 3, 14, 3, 14, 3, 14, 7, 14, 185, 10, 14, 12, 14, 14, 14, 188, 11, 14, 3, 15, 3, 15, 5, 15, 192, 10, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 5, 16, 243, 10, 16, 3, 17, 3, 17, 3, 18, 3, 18, 3, 19, 3, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24, 3, 24, 5, 24, 261, 10, 24, 3, 25, 3, 25, 5, 25, 265, 10, 25, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 3, 26, 5, 26, 278, 10, 26, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 28, 3, 29, 3, 29, 5, 29, 288, 10, 29, 3, 29, 3, 29, 3, 30, 3, 30, 3, 30, 3, 30, 7, 30, 296, 10, 30, 12, 30, 14, 30, 299, 11, 30, 5, 30, 301, 10, 30, 3, 30, 5, 30, 304, 10, 30, 3, 30, 3, 30, 3, 31, 3, 31, 3, 32, 3, 32, 3, 33, 3, 33, 3, 34, 3, 34, 3, 35, 3, 35, 3, 36, 3, 36, 6, 36, 320, 10, 36, 13, 36, 14, 36, 321, 3, 36, 7, 36, 325, 10, 36, 12, 36, 14, 36, 328, 11, 36, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 5, 37, 339, 10, 37, 3, 38, 3, 38, 3, 38, 3, 38, 7, 38, 345, 10, 38, 12, 38, 14, 38, 348, 11, 38, 6, 38, 350, 10, 38, 13, 38, 14, 38, 351, 3, 38, 3, 38, 3, 38, 3, 38, 3, 38, 7, 38, 359, 10, 38, 12, 38, 14, 38, 362, 11, 38, 7, 38, 364, 10, 38, 12, 38, 14, 38, 367, 11, 38, 3, 38, 3, 38, 3, 38, 7, 38, 372, 10, 38, 12, 38, 14, 38, 375, 11, 38, 7, 38, 377, 10, 38, 12, 38, 14, 38, 380, 11, 38, 5, 38, 382, 10, 38, 3, 39, 3, 39, 3, 40, 3, 40, 3, 40, 3, 40, 3, 41, 3, 41, 3, 42, 3, 42, 3, 42, 7, 42, 395, 10, 42, 12, 42, 14, 42, 398, 11, 42, 3, 43, 3, 43, 3, 43, 3, 44, 3, 44, 3, 44, 3, 44, 7, 44, 407, 10, 44, 12, 44, 14, 44, 410, 11, 44, 5, 44, 412, 10, 44, 3, 44, 3, 44, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 5, 45, 438, 10, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 5, 45, 454, 10, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 5, 45, 461, 10, 45, 3, 45, 3, 45, 7, 45, 465, 10, 45, 12, 45, 14, 45, 468, 11, 45, 3, 46, 3, 46, 3, 47, 3, 47, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 2, 3, 88, 50, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 2, 7, 3, 2, 46, 47, 3, 2, 17, 22, 3, 2, 30, 31, 4, 2, 23, 24, 27, 29, 4, 2, 23, 24, 56, 57, 2, 497, 2, 98, 3, 2, 2, 2, 4, 103, 3, 2, 2, 2, 6, 110, 3, 2, 2, 2, 8, 114, 3, 2, 2, 2, 10, 129, 3, 2, 2, 2, 12, 131, 3, 2, 2, 2, 14, 153, 3, 2, 2, 2, 16, 155, 3, 2, 2, 2, 18, 163, 3, 2, 2, 2, 20, 169, 3, 2, 2, 2, 22, 171, 3, 2, 2, 2, 24, 174, 3, 2, 2, 2, 26, 180, 3, 2, 2, 2, 28, 189, 3, 2, 2, 2, 30, 242, 3, 2, 2, 2, 32, 244, 3, 2, 2, 2, 34, 246, 3, 2, 2, 2, 36, 248, 3, 2, 2, 2, 38, 250, 3, 2, 2, 2, 40, 252, 3, 2, 2, 2, 42, 254, 3, 2, 2, 2, 44, 256, 3, 2, 2, 2, 46, 260, 3, 2, 2, 2, 48, 264, 3, 2, 2, 2, 50, 277, 3, 2, 2, 2, 52, 279, 3, 2, 2, 2, 54, 281, 3, 2, 2, 2, 56, 285, 3, 2, 2, 2, 58, 291, 3, 2, 2, 2, 60, 307, 3, 2, 2, 2, 62, 309, 3, 2, 2, 2, 64, 311, 3, 2, 2, 2, 66, 313, 3, 2, 2, 2, 68, 315, 3, 2, 2, 2, 70, 317, 3, 2, 2, 2, 72, 338, 3, 2, 2, 2, 74, 381, 3, 2, 2, 2, 76, 383, 3, 2, 2, 2, 78, 385, 3, 2, 2, 2, 80, 389, 3, 2, 2, 2, 82, 391, 3, 2, 2, 2, 84, 399, 3, 2, 2, 2, 86, 402, 3, 2, 2, 2, 88, 437, 3, 2, 2, 2, 90, 469, 3, 2, 2, 2, 92, 471, 3, 2, 2, 2, 94, 473, 3, 2, 2, 2, 96, 475, 3, 2, 2, 2, 98, 99, 5, 4, 3, 2, 99, 3, 3, 2, 2, 2, 100, 102, 5, 6, 4, 2, 101, 100, 3, 2, 2, 2, 102, 105, 3, 2, 2, 2, 103, 101, 3, 2, 2, 2, 103, 104, 3, 2, 2, 2, 104, 106, 3, 2, 2, 2, 105, 103, 3, 2, 2, 2, 106, 107, 5, 8, 5, 2, 107, 5, 3, 2, 2, 2, 108, 111, 5, 84, 43, 2, 109, 111, 5, 50, 26, 2, 110, 108, 3, 2, 2, 2, 110, 109, 3, 2, 2, 2, 111, 7, 3, 2, 2, 2, 112, 115, 5, 10, 6, 2, 113, 115, 5, 12, 7, 2, 114, 112, 3, 2, 2, 2, 114, 113, 3, 2, 2, 2, 115, 9, 3, 2, 2, 2, 116, 118, 7, 38, 2, 2, 117, 119, 7, 39, 2, 2, 118, 117, 3, 2, 2, 2, 118, 119, 3, 2, 2, 2, 119, 120, 3, 2, 2, 2, 120, 130, 5, 88, 45, 2, 121, 123, 7, 38, 2, 2, 122, 124, 7, 39, 2, 2, 123, 122, 3, 2, 2, 2, 123, 124, 3, 2, 2, 2, 124, 125, 3, 2, 2, 2, 125, 126, 7, 13, 2, 2, 126, 127, 5, 12, 7, 2, 127, 128, 7, 14, 2, 2, 128, 130, 3, 2, 2, 2, 129, 116, 3, 2, 2, 2, 129, 121, 3, 2, 2, 2, 130, 11, 3, 2, 2, 2, 131, 132, 7, 37, 2, 2, 132, 135, 5, 14, 8, 2, 133, 134, 7, 10, 2, 2, 134, 136, 5, 16, 9, 2, 135, 133, 3, 2, 2, 2, 135, 136, 3, 2, 2, 2, 136, 137, 3, 2, 2, 2, 137, 138, 7, 58, 2, 2, 138, 142, 5, 18, 10, 2, 139, 141, 5, 20, 11, 2, 140, 139, 3, 2, 2, 2, 141, 144, 3, 2, 2, 2, 142, 140, 3, 2, 2, 2, 142, 143, 3, 2, 2, 2, 143, 148, 3, 2, 2, 2, 144, 142, 3, 2, 2, 2, 145, 147, 5, 46, 24, 2, 146, 145, 3, 2, 2, 2, 147, 150, 3, 2, 2, 2, 148, 146, 3, 2, 2, 2, 148, 149, 3, 2, 2, 2, 149, 151, 3, 2, 2, 2, 150, 148, 3, 2, 2, 2, 151, 152, 5, 48, 25, 2, 152, 13, 3, 2, 2, 2, 153, 154, 7, 59, 2, 2, 154, 15, 3, 2, 2, 2, 155, 156, 7, 59, 2, 2, 156, 17, 3, 2, 2, 2, 157, 164, 5, 84, 43, 2, 158, 164, 5, 56, 29, 2, 159, 164, 5, 58, 30, 2, 160, 164, 5, 52, 27, 2, 161, 164, 5, 74, 38, 2, 162, 164, 5, 54, 28, 2, 163, 157, 3, 2, 2, 2, 163, 158, 3, 2, 2, 2, 163, 159, 3, 2, 2, 2, 163, 160, 3, 2, 2, 2, 163, 161, 3, 2, 2, 2, 163, 162, 3, 2, 2, 2, 164, 19, 3, 2, 2, 2, 165, 170, 5, 24, 13, 2, 166, 170, 5, 26, 14, 2, 167, 170, 5, 22, 12, 2, 168, 170, 5, 30, 16, 2, 169, 165, 3, 2, 2, 2, 169, 166, 3, 2, 2, 2, 169, 167, 3, 2, 2, 2, 169, 168, 3, 2, 2, 2, 170, 21, 3, 2, 2, 2, 171, 172, 7, 40, 2, 2, 172, 173, 5, 88, 45, 2, 173, 23, 3, 2, 2, 2, 174, 175, 7, 42, 2, 2, 175, 178, 7, 61, 2, 2, 176, 177, 7, 10, 2, 2, 177, 179, 7, 61, 2, 2, 178, 176, 3, 2, 2, 2, 178, 179, 3, 2, 2, 2, 179, 25, 3, 2, 2, 2, 180, 181, 7, 41, 2, 2, 181, 186, 5, 28, 15, 2, 182, 183, 7, 10, 2, 2, 183, 185, 5, 28, 15, 2, 184, 182, 3, 2, 2, 2, 185, 188, 3, 2, 2, 2, 186, 184, 3, 2, 2, 2, 186, 187, 3, 2, 2, 2, 187, 27, 3, 2, 2, 2, 188, 186, 3, 2, 2, 2, 189, 191, 5, 88, 45, 2, 190, 192, 7, 45, 2, 2, 191, 190, 3, 2, 2, 2, 191, 192, 3, 2, 2, 2, 192, 29, 3, 2, 2, 2, 193, 194, 7, 44, 2, 2, 194, 195, 5, 32, 17, 2, 195, 196, 7, 33, 2, 2, 196, 197, 5, 88, 45, 2, 197, 243, 3, 2, 2, 2, 198, 199, 7, 44, 2, 2, 199, 200, 5, 32, 17, 2, 200, 201, 7, 33, 2, 2, 201, 202, 5, 88, 45, 2, 202, 203, 7, 49, 2, 2, 203, 204, 5, 34, 18, 2, 204, 243, 3, 2, 2, 2, 205, 206, 7, 44, 2, 2, 206, 207, 5, 32, 17, 2, 207, 208, 7, 33, 2, 2, 208, 209, 5, 88, 45, 2, 209, 210, 7, 49, 2, 2, 210, 211, 5, 34, 18, 2, 211, 212, 7, 50, 2, 2, 212, 213, 5, 36, 19, 2, 213, 243, 3, 2, 2, 2, 214, 215, 7, 44, 2, 2, 215, 216, 5, 32, 17, 2, 216, 217, 7, 33, 2, 2, 217, 218, 5, 88, 45, 2, 218, 219, 7, 51, 2, 2, 219, 220, 7, 52, 2, 2, 220, 221, 5, 38, 20, 2, 221, 243, 3, 2, 2, 2, 222, 223, 7, 44, 2, 2, 223, 224, 5, 32, 17, 2, 224, 225, 7, 33, 2, 2, 225, 226, 5, 88, 45, 2, 226, 227, 7, 55, 2, 2, 227, 228, 5, 40, 21, 2, 228, 229, 7, 33, 2, 2, 229, 230, 5, 42, 22, 2, 230, 243, 3, 2, 2, 2, 231, 232, 7, 44, 2, 2, 232, 233, 7, 55, 2, 2, 233, 234, 5, 40, 21, 2, 234, 235, 7, 33, 2, 2, 235, 236, 5, 42, 22, 2, 236, 243, 3, 2, 2, 2, 237, 238, 7, 44, 2, 2, 238, 239, 7, 51, 2, 2, 239, 240, 7, 52, 2, 2, 240, 241, 7, 49, 2, 2, 241, 243, 5, 38, 20, 2, 242, 193, 3, 2, 2, 2, 242, 198, 3, 2, 2, 2, 242, 205, 3, 2, 2, 2, 242, 214, 3, 2, 2, 2, 242, 222, 3, 2, 2, 2, 242, 231, 3, 2, 2, 2, 242, 237, 3, 2, 2, 2, 243, 31, 3, 2, 2, 2, 244, 245, 7, 59, 2, 2, 245, 33, 3, 2, 2, 2, 246, 247, 7, 59, 2, 2, 247, 35, 3, 2, 2, 2, 248, 249, 7, 59, 2, 2, 249, 37, 3, 2, 2, 2, 250, 251, 7, 59, 2, 2, 251, 39, 3, 2, 2, 2, 252, 253, 7, 59, 2, 2, 253, 41, 3, 2, 2, 2, 254, 255, 5, 88, 45, 2, 255, 43, 3, 2, 2, 2, 256, 257, 3, 2, 2, 2, 257, 45, 3, 2, 2, 2, 258, 261, 5, 50, 26, 2, 259, 261, 5, 84, 43, 2, 260, 258, 3, 2, 2, 2, 260, 259, 3, 2, 2, 2, 261, 47, 3, 2, 2, 2, 262, 265, 5, 10, 6, 2, 263, 265, 5, 12, 7, 2, 264, 262, 3, 2, 2, 2, 264, 263, 3, 2, 2, 2, 265, 49, 3, 2, 2, 2, 266, 267, 7, 43, 2, 2, 267, 268, 7, 59, 2, 2, 268, 269, 7, 33, 2, 2, 269, 278, 5, 88, 45, 2, 270, 271, 7, 43, 2, 2, 271, 272, 7, 59, 2, 2, 272, 273, 7, 33, 2, 2, 273, 274, 7, 13, 2, 2, 274, 275, 5, 12, 7, 2, 275, 276, 7, 14, 2, 2, 276, 278, 3, 2, 2, 2, 277, 266, 3, 2, 2, 2, 277, 270, 3, 2, 2, 2, 278, 51, 3, 2, 2, 2, 279, 280, 7, 59, 2, 2, 280, 53, 3, 2, 2, 2, 281, 282, 5, 64, 33, 2, 282, 283, 7, 32, 2, 2, 283, 284, 5, 64, 33, 2, 284, 55, 3, 2, 2, 2, 285, 287, 7, 11, 2, 2, 286, 288, 5, 70, 36, 2, 287, 286, 3, 2, 2, 2, 287, 288, 3, 2, 2, 2, 288, 289, 3, 2, 2, 2, 289, 290, 7, 12, 2, 2, 290, 57, 3, 2, 2, 2, 291, 300, 7, 15, 2, 2, 292, 297, 5, 72, 37, 2, 293, 294, 7, 10, 2, 2, 294, 296, 5, 72, 37, 2, 295, 293, 3, 2, 2, 2, 296, 299, 3, 2, 2, 2, 297, 295, 3, 2, 2, 2, 297, 298, 3, 2, 2, 2, 298, 301, 3, 2, 2, 2, 299, 297, 3, 2, 2, 2, 300, 292, 3, 2, 2, 2, 300, 301, 3, 2, 2, 2, 301, 303, 3, 2, 2, 2, 302, 304, 7, 10, 2, 2, 303, 302, 3, 2, 2, 2, 303, 304, 3, 2, 2, 2, 304, 305, 3, 2, 2, 2, 305, 306, 7, 16, 2, 2, 306, 59, 3, 2, 2, 2, 307, 308, 7, 48, 2, 2, 308, 61, 3, 2, 2, 2, 309, 310, 7, 60, 2, 2, 310, 63, 3, 2, 2, 2, 311, 312, 7, 61, 2, 2, 312, 65, 3, 2, 2, 2, 313, 314, 7, 62, 2, 2, 314, 67, 3, 2, 2, 2, 315, 316, 9, 2, 2, 2, 316, 69, 3, 2, 2, 2, 317, 326, 5, 88, 45, 2, 318, 320, 7, 10, 2, 2, 319, 318, 3, 2, 2, 2, 320, 321, 3, 2, 2, 2, 321, 319, 3, 2, 2, 2, 321, 322, 3, 2, 2, 2, 322, 323, 3, 2, 2, 2, 323, 325, 5, 88, 45, 2, 324, 319, 3, 2, 2, 2, 325, 328, 3, 2, 2, 2, 326, 324, 3, 2, 2, 2, 326, 327, 3, 2, 2, 2, 327, 71, 3, 2, 2, 2, 328, 326, 3, 2, 2, 2, 329, 330, 5, 80, 41, 2, 330, 331, 7, 7, 2, 2, 331, 332, 5, 88, 45, 2, 332, 339, 3, 2, 2, 2, 333, 334, 5, 78, 40, 2, 334, 335, 7, 7, 2, 2, 335, 336, 5, 88, 45, 2, 336, 339, 3, 2, 2, 2, 337, 339, 5, 76, 39, 2, 338, 329, 3, 2, 2, 2, 338, 333, 3, 2, 2, 2, 338, 337, 3, 2, 2, 2, 339, 73, 3, 2, 2, 2, 340, 349, 7, 59, 2, 2, 341, 342, 7, 9, 2, 2, 342, 346, 5, 80, 41, 2, 343, 345, 5, 78, 40, 2, 344, 343, 3, 2, 2, 2, 345, 348, 3, 2, 2, 2, 346, 344, 3, 2, 2, 2, 346, 347, 3, 2, 2, 2, 347, 350, 3, 2, 2, 2, 348, 346, 3, 2, 2, 2, 349, 341, 3, 2, 2, 2, 350, 351, 3, 2, 2, 2, 351, 349, 3, 2, 2, 2, 351, 352, 3, 2, 2, 2, 352, 382, 3, 2, 2, 2, 353, 354, 7, 59, 2, 2, 354, 365, 5, 78, 40, 2, 355, 356, 7, 9, 2, 2, 356, 360, 5, 80, 41, 2, 357, 359, 5, 78, 40, 2, 358, 357, 3, 2, 2, 2, 359, 362, 3, 2, 2, 2, 360, 358, 3, 2, 2, 2, 360, 361, 3, 2, 2, 2, 361, 364, 3, 2, 2, 2, 362, 360, 3, 2, 2, 2, 363, 355, 3, 2, 2, 2, 364, 367, 3, 2, 2, 2, 365, 363, 3, 2, 2, 2, 365, 366, 3, 2, 2, 2, 366, 378, 3, 2, 2, 2, 367, 365, 3, 2, 2, 2, 368, 373, 5, 78, 40, 2, 369, 370, 7, 9, 2, 2, 370, 372, 5, 80, 41, 2, 371, 369, 3, 2, 2, 2, 372, 375, 3, 2, 2, 2, 373, 371, 3, 2, 2, 2, 373, 374, 3, 2, 2, 2, 374, 377, 3, 2, 2, 2, 375, 373, 3, 2, 2, 2, 376, 368, 3, 2, 2, 2, 377, 380, 3, 2, 2, 2, 378, 376, 3, 2, 2, 2, 378, 379, 3, 2, 2, 2, 379, 382, 3, 2, 2, 2, 380, 378, 3, 2, 2, 2, 381, 340, 3, 2, 2, 2, 381, 353, 3, 2, 2, 2, 382, 75, 3, 2, 2, 2, 383, 384, 5, 52, 27, 2, 384, 77, 3, 2, 2, 2, 385, 386, 7, 11, 2, 2, 386, 387, 5, 88, 45, 2, 387, 388, 7, 12, 2, 2, 388, 79, 3, 2, 2, 2, 389, 390, 7, 59, 2, 2, 390, 81, 3, 2, 2, 2, 391, 396, 5, 88, 45, 2, 392, 393, 7, 10, 2, 2, 393, 395, 5, 88, 45, 2, 394, 392, 3, 2, 2, 2, 395, 398, 3, 2, 2, 2, 396, 394, 3, 2, 2, 2, 396, 397, 3, 2, 2, 2, 397, 83, 3, 2, 2, 2, 398, 396, 3, 2, 2, 2, 399, 400, 7, 59, 2, 2, 400, 401, 5, 86, 44, 2, 401, 85, 3, 2, 2, 2, 402, 411, 7, 13, 2, 2, 403, 408, 5, 88, 45, 2, 404, 405, 7, 10, 2, 2, 405, 407, 5, 88, 45, 2, 406, 404, 3, 2, 2, 2, 407, 410, 3, 2, 2, 2, 408, 406, 3, 2, 2, 2, 408, 409, 3, 2, 2, 2, 409, 412, 3, 2, 2, 2, 410, 408, 3, 2, 2, 2, 411, 403, 3, 2, 2, 2, 411, 412, 3, 2, 2, 2, 412, 413, 3, 2, 2, 2, 413, 414, 7, 14, 2, 2, 414, 87, 3, 2, 2, 2, 415, 416, 8, 45, 1, 2, 416, 438, 5, 84, 43, 2, 417, 418, 7, 13, 2, 2, 418, 419, 5, 82, 42, 2, 419, 420, 7, 14, 2, 2, 420, 438, 3, 2, 2, 2, 421, 422, 7, 23, 2, 2, 422, 438, 5, 88, 45, 17, 423, 424, 7, 24, 2, 2, 424, 438, 5, 88, 45, 16, 425, 426, 7, 57, 2, 2, 426, 438, 5, 88, 45, 14, 427, 438, 5, 54, 28, 2, 428, 438, 5, 62, 32, 2, 429, 438, 5, 64, 33, 2, 430, 438, 5, 66, 34, 2, 431, 438, 5, 60, 31, 2, 432, 438, 5, 56, 29, 2, 433, 438, 5, 58, 30, 2, 434, 438, 5, 52, 27, 2, 435, 438, 5, 74, 38, 2, 436, 438, 5, 68, 35, 2, 437, 415, 3, 2, 2, 2, 437, 417, 3, 2, 2, 2, 437, 421, 3, 2, 2, 2, 437, 423, 3, 2, 2, 2, 437, 425, 3, 2, 2, 2, 437, 427, 3, 2, 2, 2, 437, 428, 3, 2, 2, 2, 437, 429, 3, 2, 2, 2, 437, 430, 3, 2, 2, 2, 437, 431, 3, 2, 2, 2, 437, 432, 3, 2, 2, 2, 437, 433, 3, 2, 2, 2, 437, 434, 3, 2, 2, 2, 437, 435, 3, 2, 2, 2, 437, 436, 3, 2, 2, 2, 438, 466, 3, 2, 2, 2, 439, 440, 12, 22, 2, 2, 440, 441, 5, 90, 46, 2, 441, 442, 5, 88, 45, 23, 442, 465, 3, 2, 2, 2, 443, 444, 12, 21, 2, 2, 444, 445, 5, 92, 47, 2, 445, 446, 5, 88, 45, 22, 446, 465, 3, 2, 2, 2, 447, 448, 12, 20, 2, 2, 448, 449, 5, 94, 48, 2, 449, 450, 5, 88, 45, 21, 450, 465, 3, 2, 2, 2, 451, 453, 12, 15, 2, 2, 452, 454, 7, 57, 2, 2, 453, 452, 3, 2, 2, 2, 453, 454, 3, 2, 2, 2, 454, 455, 3, 2, 2, 2, 455, 456, 7, 58, 2, 2, 456, 465, 5, 88, 45, 16, 457, 458, 12, 13, 2, 2, 458, 460, 7, 34, 2, 2, 459, 461, 5, 88, 45, 2, 460, 459, 3, 2, 2, 2, 460, 461, 3, 2, 2, 2, 461, 462, 3, 2, 2, 2, 462, 463, 7, 7, 2, 2, 463, 465, 5, 88, 45, 14, 464, 439, 3, 2, 2, 2, 464, 443, 3, 2, 2, 2, 464, 447, 3, 2, 2, 2, 464, 451, 3, 2, 2, 2, 464, 457, 3, 2, 2, 2, 465, 468, 3, 2, 2, 2, 466, 464, 3, 2, 2, 2, 466, 467, 3, 2, 2, 2, 467, 89, 3, 2, 2, 2, 468, 466, 3, 2, 2, 2, 469, 470, 9, 3, 2, 2, 470, 91, 3, 2, 2, 2, 471, 472, 9, 4, 2, 2, 472, 93, 3, 2, 2, 2, 473, 474, 9, 5, 2, 2, 474, 95, 3, 2, 2, 2, 475, 476, 9, 6, 2, 2, 476, 97, 3, 2, 2, 2, 42, 103, 110, 114, 118, 123, 129, 135, 142, 148, 163, 169, 178, 186, 191, 242, 260, 264, 277, 287, 297, 300, 303, 321, 326, 338, 346, 351, 360, 365, 373, 378, 381, 396, 408, 411, 437, 453, 460, 464, 466, } var deserializer = antlr.NewATNDeserializer(nil) var deserializedATN = deserializer.DeserializeFromUInt16(parserATN) var literalNames = []string{ "", "", "", "", "", "':'", "';'", "'.'", "','", "'['", "']'", "'('", "')'", "'{'", "'}'", "'>'", "'<'", "'=='", "'>='", "'<='", "'!='", "'+'", "'-'", "'--'", "'++'", "'*'", "'/'", "'%'", "", "", "", "'='", "'?'", "'!~'", "'=~'", "'FOR'", "'RETURN'", "'DISTINCT'", "'FILTER'", "'SORT'", "'LIMIT'", "'LET'", "'COLLECT'", "", "'NONE'", "'NULL'", "", "'INTO'", "'KEEP'", "'WITH'", "'COUNT'", "'ALL'", "'ANY'", "'AGGREGATE'", "'LIKE'", "", "'IN'", } var symbolicNames = []string{ "", "MultiLineComment", "SingleLineComment", "WhiteSpaces", "LineTerminator", "Colon", "SemiColon", "Dot", "Comma", "OpenBracket", "CloseBracket", "OpenParen", "CloseParen", "OpenBrace", "CloseBrace", "Gt", "Lt", "Eq", "Gte", "Lte", "Neq", "Plus", "Minus", "MinusMinus", "PlusPlus", "Multi", "Div", "Mod", "And", "Or", "Range", "Assign", "QuestionMark", "RegexNotMatch", "RegexMatch", "For", "Return", "Distinct", "Filter", "Sort", "Limit", "Let", "Collect", "SortDirection", "None", "Null", "BooleanLiteral", "Into", "Keep", "With", "Count", "All", "Any", "Aggregate", "Like", "Not", "In", "Identifier", "StringLiteral", "IntegerLiteral", "FloatLiteral", } var ruleNames = []string{ "program", "body", "bodyStatement", "bodyExpression", "returnExpression", "forExpression", "forExpressionValueVariable", "forExpressionKeyVariable", "forExpressionSource", "forExpressionClause", "filterClause", "limitClause", "sortClause", "sortClauseExpression", "collectClause", "collectVariable", "collectGroupVariable", "collectKeepVariable", "collectCountVariable", "collectAggregateVariable", "collectAggregateExpression", "collectOption", "forExpressionBody", "forExpressionReturn", "variableDeclaration", "variable", "rangeOperator", "arrayLiteral", "objectLiteral", "booleanLiteral", "stringLiteral", "integerLiteral", "floatLiteral", "noneLiteral", "arrayElementList", "propertyAssignment", "memberExpression", "shorthandPropertyName", "computedPropertyName", "propertyName", "expressionSequence", "functionCallExpression", "arguments", "expression", "equalityOperator", "logicalOperator", "mathOperator", "unaryOperator", } var decisionToDFA = make([]*antlr.DFA, len(deserializedATN.DecisionToState)) func init() { for index, ds := range deserializedATN.DecisionToState { decisionToDFA[index] = antlr.NewDFA(ds, index) } } type FqlParser struct { *antlr.BaseParser } func NewFqlParser(input antlr.TokenStream) *FqlParser { this := new(FqlParser) this.BaseParser = antlr.NewBaseParser(input) this.Interpreter = antlr.NewParserATNSimulator(this, deserializedATN, decisionToDFA, antlr.NewPredictionContextCache()) this.RuleNames = ruleNames this.LiteralNames = literalNames this.SymbolicNames = symbolicNames this.GrammarFileName = "FqlParser.g4" return this } // FqlParser tokens. const ( FqlParserEOF = antlr.TokenEOF FqlParserMultiLineComment = 1 FqlParserSingleLineComment = 2 FqlParserWhiteSpaces = 3 FqlParserLineTerminator = 4 FqlParserColon = 5 FqlParserSemiColon = 6 FqlParserDot = 7 FqlParserComma = 8 FqlParserOpenBracket = 9 FqlParserCloseBracket = 10 FqlParserOpenParen = 11 FqlParserCloseParen = 12 FqlParserOpenBrace = 13 FqlParserCloseBrace = 14 FqlParserGt = 15 FqlParserLt = 16 FqlParserEq = 17 FqlParserGte = 18 FqlParserLte = 19 FqlParserNeq = 20 FqlParserPlus = 21 FqlParserMinus = 22 FqlParserMinusMinus = 23 FqlParserPlusPlus = 24 FqlParserMulti = 25 FqlParserDiv = 26 FqlParserMod = 27 FqlParserAnd = 28 FqlParserOr = 29 FqlParserRange = 30 FqlParserAssign = 31 FqlParserQuestionMark = 32 FqlParserRegexNotMatch = 33 FqlParserRegexMatch = 34 FqlParserFor = 35 FqlParserReturn = 36 FqlParserDistinct = 37 FqlParserFilter = 38 FqlParserSort = 39 FqlParserLimit = 40 FqlParserLet = 41 FqlParserCollect = 42 FqlParserSortDirection = 43 FqlParserNone = 44 FqlParserNull = 45 FqlParserBooleanLiteral = 46 FqlParserInto = 47 FqlParserKeep = 48 FqlParserWith = 49 FqlParserCount = 50 FqlParserAll = 51 FqlParserAny = 52 FqlParserAggregate = 53 FqlParserLike = 54 FqlParserNot = 55 FqlParserIn = 56 FqlParserIdentifier = 57 FqlParserStringLiteral = 58 FqlParserIntegerLiteral = 59 FqlParserFloatLiteral = 60 ) // FqlParser rules. const ( FqlParserRULE_program = 0 FqlParserRULE_body = 1 FqlParserRULE_bodyStatement = 2 FqlParserRULE_bodyExpression = 3 FqlParserRULE_returnExpression = 4 FqlParserRULE_forExpression = 5 FqlParserRULE_forExpressionValueVariable = 6 FqlParserRULE_forExpressionKeyVariable = 7 FqlParserRULE_forExpressionSource = 8 FqlParserRULE_forExpressionClause = 9 FqlParserRULE_filterClause = 10 FqlParserRULE_limitClause = 11 FqlParserRULE_sortClause = 12 FqlParserRULE_sortClauseExpression = 13 FqlParserRULE_collectClause = 14 FqlParserRULE_collectVariable = 15 FqlParserRULE_collectGroupVariable = 16 FqlParserRULE_collectKeepVariable = 17 FqlParserRULE_collectCountVariable = 18 FqlParserRULE_collectAggregateVariable = 19 FqlParserRULE_collectAggregateExpression = 20 FqlParserRULE_collectOption = 21 FqlParserRULE_forExpressionBody = 22 FqlParserRULE_forExpressionReturn = 23 FqlParserRULE_variableDeclaration = 24 FqlParserRULE_variable = 25 FqlParserRULE_rangeOperator = 26 FqlParserRULE_arrayLiteral = 27 FqlParserRULE_objectLiteral = 28 FqlParserRULE_booleanLiteral = 29 FqlParserRULE_stringLiteral = 30 FqlParserRULE_integerLiteral = 31 FqlParserRULE_floatLiteral = 32 FqlParserRULE_noneLiteral = 33 FqlParserRULE_arrayElementList = 34 FqlParserRULE_propertyAssignment = 35 FqlParserRULE_memberExpression = 36 FqlParserRULE_shorthandPropertyName = 37 FqlParserRULE_computedPropertyName = 38 FqlParserRULE_propertyName = 39 FqlParserRULE_expressionSequence = 40 FqlParserRULE_functionCallExpression = 41 FqlParserRULE_arguments = 42 FqlParserRULE_expression = 43 FqlParserRULE_equalityOperator = 44 FqlParserRULE_logicalOperator = 45 FqlParserRULE_mathOperator = 46 FqlParserRULE_unaryOperator = 47 ) // IProgramContext is an interface to support dynamic dispatch. type IProgramContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProgramContext differentiates from other interfaces. IsProgramContext() } type ProgramContext struct { *antlr.BaseParserRuleContext parser antlr.Parser } func NewEmptyProgramContext() *ProgramContext { var p = new(ProgramContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1) p.RuleIndex = FqlParserRULE_program return p } func (*ProgramContext) IsProgramContext() {} func NewProgramContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProgramContext { var p = new(ProgramContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState) p.parser = parser p.RuleIndex = FqlParserRULE_program return p } func (s *ProgramContext) GetParser() antlr.Parser { return s.parser } func (s *ProgramContext) Body() IBodyContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IBodyContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IBodyContext) } func (s *ProgramContext) GetRuleContext() antlr.RuleContext { return s } func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string { return antlr.TreesStringTree(s, ruleNames, recog) } func (s *ProgramContext) EnterRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.EnterProgram(s) } } func (s *ProgramContext) ExitRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.ExitProgram(s) } } func (s *ProgramContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { switch t := visitor.(type) { case FqlParserVisitor: return t.VisitProgram(s) default: return t.VisitChildren(s) } } func (p *FqlParser) Program() (localctx IProgramContext) { localctx = NewProgramContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 0, FqlParserRULE_program) defer func() { p.ExitRule() }() defer func() { if err := recover(); err != nil { if v, ok := err.(antlr.RecognitionException); ok { localctx.SetException(v) p.GetErrorHandler().ReportError(p, v) p.GetErrorHandler().Recover(p, v) } else { panic(err) } } }() p.EnterOuterAlt(localctx, 1) { p.SetState(96) p.Body() } return localctx } // IBodyContext is an interface to support dynamic dispatch. type IBodyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBodyContext differentiates from other interfaces. IsBodyContext() } type BodyContext struct { *antlr.BaseParserRuleContext parser antlr.Parser } func NewEmptyBodyContext() *BodyContext { var p = new(BodyContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1) p.RuleIndex = FqlParserRULE_body return p } func (*BodyContext) IsBodyContext() {} func NewBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BodyContext { var p = new(BodyContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState) p.parser = parser p.RuleIndex = FqlParserRULE_body return p } func (s *BodyContext) GetParser() antlr.Parser { return s.parser } func (s *BodyContext) BodyExpression() IBodyExpressionContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IBodyExpressionContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IBodyExpressionContext) } func (s *BodyContext) AllBodyStatement() []IBodyStatementContext { var ts = s.GetTypedRuleContexts(reflect.TypeOf((*IBodyStatementContext)(nil)).Elem()) var tst = make([]IBodyStatementContext, len(ts)) for i, t := range ts { if t != nil { tst[i] = t.(IBodyStatementContext) } } return tst } func (s *BodyContext) BodyStatement(i int) IBodyStatementContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IBodyStatementContext)(nil)).Elem(), i) if t == nil { return nil } return t.(IBodyStatementContext) } func (s *BodyContext) GetRuleContext() antlr.RuleContext { return s } func (s *BodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string { return antlr.TreesStringTree(s, ruleNames, recog) } func (s *BodyContext) EnterRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.EnterBody(s) } } func (s *BodyContext) ExitRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.ExitBody(s) } } func (s *BodyContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { switch t := visitor.(type) { case FqlParserVisitor: return t.VisitBody(s) default: return t.VisitChildren(s) } } func (p *FqlParser) Body() (localctx IBodyContext) { localctx = NewBodyContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 2, FqlParserRULE_body) var _la int defer func() { p.ExitRule() }() defer func() { if err := recover(); err != nil { if v, ok := err.(antlr.RecognitionException); ok { localctx.SetException(v) p.GetErrorHandler().ReportError(p, v) p.GetErrorHandler().Recover(p, v) } else { panic(err) } } }() p.EnterOuterAlt(localctx, 1) p.SetState(101) p.GetErrorHandler().Sync(p) _la = p.GetTokenStream().LA(1) for _la == FqlParserLet || _la == FqlParserIdentifier { { p.SetState(98) p.BodyStatement() } p.SetState(103) p.GetErrorHandler().Sync(p) _la = p.GetTokenStream().LA(1) } { p.SetState(104) p.BodyExpression() } return localctx } // IBodyStatementContext is an interface to support dynamic dispatch. type IBodyStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBodyStatementContext differentiates from other interfaces. IsBodyStatementContext() } type BodyStatementContext struct { *antlr.BaseParserRuleContext parser antlr.Parser } func NewEmptyBodyStatementContext() *BodyStatementContext { var p = new(BodyStatementContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1) p.RuleIndex = FqlParserRULE_bodyStatement return p } func (*BodyStatementContext) IsBodyStatementContext() {} func NewBodyStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BodyStatementContext { var p = new(BodyStatementContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState) p.parser = parser p.RuleIndex = FqlParserRULE_bodyStatement return p } func (s *BodyStatementContext) GetParser() antlr.Parser { return s.parser } func (s *BodyStatementContext) FunctionCallExpression() IFunctionCallExpressionContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IFunctionCallExpressionContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IFunctionCallExpressionContext) } func (s *BodyStatementContext) VariableDeclaration() IVariableDeclarationContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IVariableDeclarationContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IVariableDeclarationContext) } func (s *BodyStatementContext) GetRuleContext() antlr.RuleContext { return s } func (s *BodyStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string { return antlr.TreesStringTree(s, ruleNames, recog) } func (s *BodyStatementContext) EnterRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.EnterBodyStatement(s) } } func (s *BodyStatementContext) ExitRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.ExitBodyStatement(s) } } func (s *BodyStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { switch t := visitor.(type) { case FqlParserVisitor: return t.VisitBodyStatement(s) default: return t.VisitChildren(s) } } func (p *FqlParser) BodyStatement() (localctx IBodyStatementContext) { localctx = NewBodyStatementContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 4, FqlParserRULE_bodyStatement) defer func() { p.ExitRule() }() defer func() { if err := recover(); err != nil { if v, ok := err.(antlr.RecognitionException); ok { localctx.SetException(v) p.GetErrorHandler().ReportError(p, v) p.GetErrorHandler().Recover(p, v) } else { panic(err) } } }() p.SetState(108) p.GetErrorHandler().Sync(p) switch p.GetTokenStream().LA(1) { case FqlParserIdentifier: p.EnterOuterAlt(localctx, 1) { p.SetState(106) p.FunctionCallExpression() } case FqlParserLet: p.EnterOuterAlt(localctx, 2) { p.SetState(107) p.VariableDeclaration() } default: panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil)) } return localctx } // IBodyExpressionContext is an interface to support dynamic dispatch. type IBodyExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBodyExpressionContext differentiates from other interfaces. IsBodyExpressionContext() } type BodyExpressionContext struct { *antlr.BaseParserRuleContext parser antlr.Parser } func NewEmptyBodyExpressionContext() *BodyExpressionContext { var p = new(BodyExpressionContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1) p.RuleIndex = FqlParserRULE_bodyExpression return p } func (*BodyExpressionContext) IsBodyExpressionContext() {} func NewBodyExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BodyExpressionContext { var p = new(BodyExpressionContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState) p.parser = parser p.RuleIndex = FqlParserRULE_bodyExpression return p } func (s *BodyExpressionContext) GetParser() antlr.Parser { return s.parser } func (s *BodyExpressionContext) ReturnExpression() IReturnExpressionContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IReturnExpressionContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IReturnExpressionContext) } func (s *BodyExpressionContext) ForExpression() IForExpressionContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IForExpressionContext) } func (s *BodyExpressionContext) GetRuleContext() antlr.RuleContext { return s } func (s *BodyExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string { return antlr.TreesStringTree(s, ruleNames, recog) } func (s *BodyExpressionContext) EnterRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.EnterBodyExpression(s) } } func (s *BodyExpressionContext) ExitRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.ExitBodyExpression(s) } } func (s *BodyExpressionContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { switch t := visitor.(type) { case FqlParserVisitor: return t.VisitBodyExpression(s) default: return t.VisitChildren(s) } } func (p *FqlParser) BodyExpression() (localctx IBodyExpressionContext) { localctx = NewBodyExpressionContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 6, FqlParserRULE_bodyExpression) defer func() { p.ExitRule() }() defer func() { if err := recover(); err != nil { if v, ok := err.(antlr.RecognitionException); ok { localctx.SetException(v) p.GetErrorHandler().ReportError(p, v) p.GetErrorHandler().Recover(p, v) } else { panic(err) } } }() p.SetState(112) p.GetErrorHandler().Sync(p) switch p.GetTokenStream().LA(1) { case FqlParserReturn: p.EnterOuterAlt(localctx, 1) { p.SetState(110) p.ReturnExpression() } case FqlParserFor: p.EnterOuterAlt(localctx, 2) { p.SetState(111) p.ForExpression() } default: panic(antlr.NewNoViableAltException(p, nil, nil, nil, nil, nil)) } return localctx } // IReturnExpressionContext is an interface to support dynamic dispatch. type IReturnExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsReturnExpressionContext differentiates from other interfaces. IsReturnExpressionContext() } type ReturnExpressionContext struct { *antlr.BaseParserRuleContext parser antlr.Parser } func NewEmptyReturnExpressionContext() *ReturnExpressionContext { var p = new(ReturnExpressionContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1) p.RuleIndex = FqlParserRULE_returnExpression return p } func (*ReturnExpressionContext) IsReturnExpressionContext() {} func NewReturnExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReturnExpressionContext { var p = new(ReturnExpressionContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState) p.parser = parser p.RuleIndex = FqlParserRULE_returnExpression return p } func (s *ReturnExpressionContext) GetParser() antlr.Parser { return s.parser } func (s *ReturnExpressionContext) Return() antlr.TerminalNode { return s.GetToken(FqlParserReturn, 0) } func (s *ReturnExpressionContext) Expression() IExpressionContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IExpressionContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IExpressionContext) } func (s *ReturnExpressionContext) Distinct() antlr.TerminalNode { return s.GetToken(FqlParserDistinct, 0) } func (s *ReturnExpressionContext) OpenParen() antlr.TerminalNode { return s.GetToken(FqlParserOpenParen, 0) } func (s *ReturnExpressionContext) ForExpression() IForExpressionContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IForExpressionContext) } func (s *ReturnExpressionContext) CloseParen() antlr.TerminalNode { return s.GetToken(FqlParserCloseParen, 0) } func (s *ReturnExpressionContext) GetRuleContext() antlr.RuleContext { return s } func (s *ReturnExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string { return antlr.TreesStringTree(s, ruleNames, recog) } func (s *ReturnExpressionContext) EnterRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.EnterReturnExpression(s) } } func (s *ReturnExpressionContext) ExitRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.ExitReturnExpression(s) } } func (s *ReturnExpressionContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { switch t := visitor.(type) { case FqlParserVisitor: return t.VisitReturnExpression(s) default: return t.VisitChildren(s) } } func (p *FqlParser) ReturnExpression() (localctx IReturnExpressionContext) { localctx = NewReturnExpressionContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 8, FqlParserRULE_returnExpression) var _la int defer func() { p.ExitRule() }() defer func() { if err := recover(); err != nil { if v, ok := err.(antlr.RecognitionException); ok { localctx.SetException(v) p.GetErrorHandler().ReportError(p, v) p.GetErrorHandler().Recover(p, v) } else { panic(err) } } }() p.SetState(127) p.GetErrorHandler().Sync(p) switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 5, p.GetParserRuleContext()) { case 1: p.EnterOuterAlt(localctx, 1) { p.SetState(114) p.Match(FqlParserReturn) } p.SetState(116) p.GetErrorHandler().Sync(p) _la = p.GetTokenStream().LA(1) if _la == FqlParserDistinct { { p.SetState(115) p.Match(FqlParserDistinct) } } { p.SetState(118) p.expression(0) } case 2: p.EnterOuterAlt(localctx, 2) { p.SetState(119) p.Match(FqlParserReturn) } p.SetState(121) p.GetErrorHandler().Sync(p) _la = p.GetTokenStream().LA(1) if _la == FqlParserDistinct { { p.SetState(120) p.Match(FqlParserDistinct) } } { p.SetState(123) p.Match(FqlParserOpenParen) } { p.SetState(124) p.ForExpression() } { p.SetState(125) p.Match(FqlParserCloseParen) } } return localctx } // IForExpressionContext is an interface to support dynamic dispatch. type IForExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsForExpressionContext differentiates from other interfaces. IsForExpressionContext() } type ForExpressionContext struct { *antlr.BaseParserRuleContext parser antlr.Parser } func NewEmptyForExpressionContext() *ForExpressionContext { var p = new(ForExpressionContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(nil, -1) p.RuleIndex = FqlParserRULE_forExpression return p } func (*ForExpressionContext) IsForExpressionContext() {} func NewForExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ForExpressionContext { var p = new(ForExpressionContext) p.BaseParserRuleContext = antlr.NewBaseParserRuleContext(parent, invokingState) p.parser = parser p.RuleIndex = FqlParserRULE_forExpression return p } func (s *ForExpressionContext) GetParser() antlr.Parser { return s.parser } func (s *ForExpressionContext) For() antlr.TerminalNode { return s.GetToken(FqlParserFor, 0) } func (s *ForExpressionContext) ForExpressionValueVariable() IForExpressionValueVariableContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionValueVariableContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IForExpressionValueVariableContext) } func (s *ForExpressionContext) In() antlr.TerminalNode { return s.GetToken(FqlParserIn, 0) } func (s *ForExpressionContext) ForExpressionSource() IForExpressionSourceContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionSourceContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IForExpressionSourceContext) } func (s *ForExpressionContext) ForExpressionReturn() IForExpressionReturnContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionReturnContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IForExpressionReturnContext) } func (s *ForExpressionContext) Comma() antlr.TerminalNode { return s.GetToken(FqlParserComma, 0) } func (s *ForExpressionContext) ForExpressionKeyVariable() IForExpressionKeyVariableContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionKeyVariableContext)(nil)).Elem(), 0) if t == nil { return nil } return t.(IForExpressionKeyVariableContext) } func (s *ForExpressionContext) AllForExpressionClause() []IForExpressionClauseContext { var ts = s.GetTypedRuleContexts(reflect.TypeOf((*IForExpressionClauseContext)(nil)).Elem()) var tst = make([]IForExpressionClauseContext, len(ts)) for i, t := range ts { if t != nil { tst[i] = t.(IForExpressionClauseContext) } } return tst } func (s *ForExpressionContext) ForExpressionClause(i int) IForExpressionClauseContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionClauseContext)(nil)).Elem(), i) if t == nil { return nil } return t.(IForExpressionClauseContext) } func (s *ForExpressionContext) AllForExpressionBody() []IForExpressionBodyContext { var ts = s.GetTypedRuleContexts(reflect.TypeOf((*IForExpressionBodyContext)(nil)).Elem()) var tst = make([]IForExpressionBodyContext, len(ts)) for i, t := range ts { if t != nil { tst[i] = t.(IForExpressionBodyContext) } } return tst } func (s *ForExpressionContext) ForExpressionBody(i int) IForExpressionBodyContext { var t = s.GetTypedRuleContext(reflect.TypeOf((*IForExpressionBodyContext)(nil)).Elem(), i) if t == nil { return nil } return t.(IForExpressionBodyContext) } func (s *ForExpressionContext) GetRuleContext() antlr.RuleContext { return s } func (s *ForExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string { return antlr.TreesStringTree(s, ruleNames, recog) } func (s *ForExpressionContext) EnterRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.EnterForExpression(s) } } func (s *ForExpressionContext) ExitRule(listener antlr.ParseTreeListener) { if listenerT, ok := listener.(FqlParserListener); ok { listenerT.ExitForExpression(s) } } func (s *ForExpressionContext) Accept(visitor antlr.ParseTreeVisitor) interface{} { switch t := visitor.(type) { case FqlParserVisitor: return t.VisitForExpression(s) default: return t.VisitChildren(s) } } func (p *FqlParser) ForExpression() (localctx IForExpressionContext) { localctx = NewForExpressionContext(p, p.GetParserRuleContext(), p.GetState()) p.EnterRule(localctx, 10, FqlParserRULE_forExpression) var _la int defer func() { p.ExitRule() }() defer func() { if err := recover(); err != nil { if v, ok := err.(antlr.RecognitionException); ok { localctx.SetException(v) p.GetErrorHandler().ReportError(p, v) p.GetErrorHandler().Recover(p, v) } else { panic(err) } } }() p.EnterOuterAlt(localctx, 1) { p.SetState(129) p.Match(FqlParserFor) } { p.SetState(130) p.ForExpressionValueVariable() } p.SetState(133) p.GetErrorHandler().Sync(p) _la = p.GetTokenStream().LA(1) if _la == FqlParserComma { { p.SetState(131) p.Match(FqlParserComma) } { p.SetState(132) p.ForExpressionKeyVariable() } } { p.SetState(135) p.Match(FqlParserIn) } { p.SetState(136) p.ForExpressionSource() } p.SetState(140) p.GetErrorHandler().Sync(p) _la = p.GetTokenStream().LA(1) for ((_la-38)&-(0x1f+1)) == 0 && ((1<