2020-08-23 14:16:16 +03:00
|
|
|
// Code generated from /Users/neilotoole/work/sq/sq/grammar/SLQ.g4 by ANTLR 4.7.2. DO NOT EDIT.
|
2016-10-17 07:14:01 +03:00
|
|
|
|
|
|
|
package slq
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2016-10-31 01:35:56 +03:00
|
|
|
"unicode"
|
2016-10-17 07:14:01 +03:00
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
"github.com/antlr/antlr4/runtime/Go/antlr"
|
2016-10-17 07:14:01 +03:00
|
|
|
)
|
|
|
|
|
2016-10-31 01:35:56 +03:00
|
|
|
// Suppress unused import error
|
2016-10-17 07:14:01 +03:00
|
|
|
var _ = fmt.Printf
|
2016-10-31 01:35:56 +03:00
|
|
|
var _ = unicode.IsLetter
|
2016-10-17 07:14:01 +03:00
|
|
|
|
|
|
|
var serializedLexerAtn = []uint16{
|
2020-08-06 20:58:47 +03:00
|
|
|
3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 52, 466,
|
|
|
|
8, 1, 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, 4, 50, 9, 50, 4, 51, 9, 51, 4, 52, 9, 52, 4, 53, 9, 53, 4, 54, 9, 54,
|
|
|
|
4, 55, 9, 55, 4, 56, 9, 56, 4, 57, 9, 57, 4, 58, 9, 58, 4, 59, 9, 59, 4,
|
|
|
|
60, 9, 60, 4, 61, 9, 61, 4, 62, 9, 62, 4, 63, 9, 63, 4, 64, 9, 64, 4, 65,
|
|
|
|
9, 65, 4, 66, 9, 66, 4, 67, 9, 67, 4, 68, 9, 68, 4, 69, 9, 69, 4, 70, 9,
|
|
|
|
70, 4, 71, 9, 71, 4, 72, 9, 72, 4, 73, 9, 73, 4, 74, 9, 74, 4, 75, 9, 75,
|
|
|
|
4, 76, 9, 76, 4, 77, 9, 77, 4, 78, 9, 78, 4, 79, 9, 79, 4, 80, 9, 80, 4,
|
|
|
|
81, 9, 81, 4, 82, 9, 82, 4, 83, 9, 83, 3, 2, 3, 2, 3, 3, 3, 3, 3, 4, 3,
|
|
|
|
4, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6, 3, 6, 3, 7, 3,
|
|
|
|
7, 3, 7, 3, 7, 3, 7, 3, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 9, 3,
|
|
|
|
9, 3, 10, 3, 10, 3, 10, 3, 11, 3, 11, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12,
|
|
|
|
3, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 3, 14, 3, 15, 3,
|
|
|
|
15, 3, 15, 3, 15, 3, 15, 3, 15, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16, 3, 16,
|
|
|
|
3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 17, 3, 18, 3, 18, 3, 18, 3, 18, 3,
|
|
|
|
18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 21, 3, 21, 3, 22, 3, 22,
|
|
|
|
3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 3, 25, 3, 25, 3, 25, 3, 26, 3, 26, 3,
|
|
|
|
27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 29, 3, 29, 3, 30, 3, 30, 7, 30, 269,
|
|
|
|
10, 30, 12, 30, 14, 30, 272, 11, 30, 3, 31, 6, 31, 275, 10, 31, 13, 31,
|
|
|
|
14, 31, 276, 3, 31, 3, 31, 3, 32, 3, 32, 3, 33, 3, 33, 3, 34, 3, 34, 3,
|
|
|
|
35, 3, 35, 3, 36, 3, 36, 3, 37, 3, 37, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39,
|
|
|
|
3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 5, 39, 303, 10, 39, 3, 40, 3, 40, 3,
|
|
|
|
41, 3, 41, 5, 41, 309, 10, 41, 3, 41, 3, 41, 3, 41, 6, 41, 314, 10, 41,
|
|
|
|
13, 41, 14, 41, 315, 3, 41, 5, 41, 319, 10, 41, 3, 41, 5, 41, 322, 10,
|
|
|
|
41, 3, 41, 3, 41, 3, 41, 3, 41, 5, 41, 328, 10, 41, 3, 41, 5, 41, 331,
|
|
|
|
10, 41, 3, 42, 3, 42, 3, 42, 7, 42, 336, 10, 42, 12, 42, 14, 42, 339, 11,
|
|
|
|
42, 5, 42, 341, 10, 42, 3, 43, 3, 43, 5, 43, 345, 10, 43, 3, 43, 3, 43,
|
|
|
|
3, 44, 3, 44, 3, 44, 3, 45, 3, 45, 3, 46, 3, 46, 3, 46, 3, 47, 3, 47, 3,
|
|
|
|
48, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 3, 50, 3, 50, 3, 50, 3, 50, 7, 50,
|
|
|
|
369, 10, 50, 12, 50, 14, 50, 372, 11, 50, 3, 51, 3, 51, 3, 51, 3, 52, 3,
|
|
|
|
52, 3, 52, 7, 52, 380, 10, 52, 12, 52, 14, 52, 383, 11, 52, 3, 52, 3, 52,
|
|
|
|
3, 53, 3, 53, 3, 53, 5, 53, 390, 10, 53, 3, 54, 3, 54, 3, 54, 3, 54, 3,
|
|
|
|
54, 3, 54, 3, 55, 3, 55, 3, 56, 3, 56, 3, 57, 3, 57, 3, 58, 3, 58, 3, 59,
|
|
|
|
3, 59, 3, 60, 3, 60, 3, 61, 3, 61, 3, 62, 3, 62, 3, 63, 3, 63, 3, 64, 3,
|
|
|
|
64, 3, 65, 3, 65, 3, 66, 3, 66, 3, 67, 3, 67, 3, 68, 3, 68, 3, 69, 3, 69,
|
|
|
|
3, 70, 3, 70, 3, 71, 3, 71, 3, 72, 3, 72, 3, 73, 3, 73, 3, 74, 3, 74, 3,
|
|
|
|
75, 3, 75, 3, 76, 3, 76, 3, 77, 3, 77, 3, 78, 3, 78, 3, 79, 3, 79, 3, 80,
|
|
|
|
3, 80, 3, 81, 3, 81, 3, 82, 3, 82, 3, 83, 3, 83, 3, 83, 3, 83, 7, 83, 458,
|
|
|
|
10, 83, 12, 83, 14, 83, 461, 11, 83, 3, 83, 3, 83, 3, 83, 3, 83, 3, 459,
|
|
|
|
2, 84, 3, 3, 5, 4, 7, 5, 9, 6, 11, 7, 13, 8, 15, 9, 17, 10, 19, 11, 21,
|
|
|
|
12, 23, 13, 25, 14, 27, 15, 29, 16, 31, 17, 33, 18, 35, 19, 37, 20, 39,
|
|
|
|
21, 41, 22, 43, 23, 45, 24, 47, 25, 49, 26, 51, 27, 53, 28, 55, 29, 57,
|
|
|
|
30, 59, 31, 61, 32, 63, 33, 65, 34, 67, 35, 69, 36, 71, 37, 73, 38, 75,
|
|
|
|
39, 77, 40, 79, 41, 81, 42, 83, 2, 85, 2, 87, 43, 89, 44, 91, 45, 93, 46,
|
|
|
|
95, 47, 97, 48, 99, 49, 101, 50, 103, 51, 105, 2, 107, 2, 109, 2, 111,
|
|
|
|
2, 113, 2, 115, 2, 117, 2, 119, 2, 121, 2, 123, 2, 125, 2, 127, 2, 129,
|
|
|
|
2, 131, 2, 133, 2, 135, 2, 137, 2, 139, 2, 141, 2, 143, 2, 145, 2, 147,
|
|
|
|
2, 149, 2, 151, 2, 153, 2, 155, 2, 157, 2, 159, 2, 161, 2, 163, 2, 165,
|
|
|
|
52, 3, 2, 37, 5, 2, 67, 92, 97, 97, 99, 124, 6, 2, 50, 59, 67, 92, 97,
|
|
|
|
97, 99, 124, 5, 2, 11, 12, 15, 15, 34, 34, 3, 2, 50, 59, 3, 2, 51, 59,
|
|
|
|
4, 2, 71, 71, 103, 103, 4, 2, 45, 45, 47, 47, 4, 2, 36, 36, 94, 94, 10,
|
|
|
|
2, 36, 36, 49, 49, 94, 94, 100, 100, 104, 104, 112, 112, 116, 116, 118,
|
|
|
|
118, 5, 2, 50, 59, 67, 72, 99, 104, 4, 2, 67, 67, 99, 99, 4, 2, 68, 68,
|
|
|
|
100, 100, 4, 2, 69, 69, 101, 101, 4, 2, 70, 70, 102, 102, 4, 2, 72, 72,
|
|
|
|
104, 104, 4, 2, 73, 73, 105, 105, 4, 2, 74, 74, 106, 106, 4, 2, 75, 75,
|
|
|
|
107, 107, 4, 2, 76, 76, 108, 108, 4, 2, 77, 77, 109, 109, 4, 2, 78, 78,
|
|
|
|
110, 110, 4, 2, 79, 79, 111, 111, 4, 2, 80, 80, 112, 112, 4, 2, 81, 81,
|
|
|
|
113, 113, 4, 2, 82, 82, 114, 114, 4, 2, 83, 83, 115, 115, 4, 2, 84, 84,
|
|
|
|
116, 116, 4, 2, 85, 85, 117, 117, 4, 2, 86, 86, 118, 118, 4, 2, 87, 87,
|
|
|
|
119, 119, 4, 2, 88, 88, 120, 120, 4, 2, 89, 89, 121, 121, 4, 2, 90, 90,
|
|
|
|
122, 122, 4, 2, 91, 91, 123, 123, 4, 2, 92, 92, 124, 124, 2, 452, 2, 3,
|
|
|
|
3, 2, 2, 2, 2, 5, 3, 2, 2, 2, 2, 7, 3, 2, 2, 2, 2, 9, 3, 2, 2, 2, 2, 11,
|
|
|
|
3, 2, 2, 2, 2, 13, 3, 2, 2, 2, 2, 15, 3, 2, 2, 2, 2, 17, 3, 2, 2, 2, 2,
|
|
|
|
19, 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, 29, 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, 39, 3, 2, 2, 2, 2, 41, 3, 2,
|
|
|
|
2, 2, 2, 43, 3, 2, 2, 2, 2, 45, 3, 2, 2, 2, 2, 47, 3, 2, 2, 2, 2, 49, 3,
|
|
|
|
2, 2, 2, 2, 51, 3, 2, 2, 2, 2, 53, 3, 2, 2, 2, 2, 55, 3, 2, 2, 2, 2, 57,
|
|
|
|
3, 2, 2, 2, 2, 59, 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, 2, 69, 3, 2, 2, 2, 2, 71, 3, 2, 2, 2,
|
|
|
|
2, 73, 3, 2, 2, 2, 2, 75, 3, 2, 2, 2, 2, 77, 3, 2, 2, 2, 2, 79, 3, 2, 2,
|
|
|
|
2, 2, 81, 3, 2, 2, 2, 2, 87, 3, 2, 2, 2, 2, 89, 3, 2, 2, 2, 2, 91, 3, 2,
|
|
|
|
2, 2, 2, 93, 3, 2, 2, 2, 2, 95, 3, 2, 2, 2, 2, 97, 3, 2, 2, 2, 2, 99, 3,
|
|
|
|
2, 2, 2, 2, 101, 3, 2, 2, 2, 2, 103, 3, 2, 2, 2, 2, 165, 3, 2, 2, 2, 3,
|
|
|
|
167, 3, 2, 2, 2, 5, 169, 3, 2, 2, 2, 7, 171, 3, 2, 2, 2, 9, 176, 3, 2,
|
|
|
|
2, 2, 11, 181, 3, 2, 2, 2, 13, 183, 3, 2, 2, 2, 15, 189, 3, 2, 2, 2, 17,
|
|
|
|
195, 3, 2, 2, 2, 19, 197, 3, 2, 2, 2, 21, 200, 3, 2, 2, 2, 23, 204, 3,
|
|
|
|
2, 2, 2, 25, 208, 3, 2, 2, 2, 27, 212, 3, 2, 2, 2, 29, 216, 3, 2, 2, 2,
|
|
|
|
31, 222, 3, 2, 2, 2, 33, 228, 3, 2, 2, 2, 35, 234, 3, 2, 2, 2, 37, 240,
|
|
|
|
3, 2, 2, 2, 39, 243, 3, 2, 2, 2, 41, 245, 3, 2, 2, 2, 43, 247, 3, 2, 2,
|
|
|
|
2, 45, 249, 3, 2, 2, 2, 47, 251, 3, 2, 2, 2, 49, 254, 3, 2, 2, 2, 51, 257,
|
|
|
|
3, 2, 2, 2, 53, 259, 3, 2, 2, 2, 55, 262, 3, 2, 2, 2, 57, 264, 3, 2, 2,
|
|
|
|
2, 59, 266, 3, 2, 2, 2, 61, 274, 3, 2, 2, 2, 63, 280, 3, 2, 2, 2, 65, 282,
|
|
|
|
3, 2, 2, 2, 67, 284, 3, 2, 2, 2, 69, 286, 3, 2, 2, 2, 71, 288, 3, 2, 2,
|
|
|
|
2, 73, 290, 3, 2, 2, 2, 75, 292, 3, 2, 2, 2, 77, 302, 3, 2, 2, 2, 79, 304,
|
|
|
|
3, 2, 2, 2, 81, 330, 3, 2, 2, 2, 83, 340, 3, 2, 2, 2, 85, 342, 3, 2, 2,
|
|
|
|
2, 87, 348, 3, 2, 2, 2, 89, 351, 3, 2, 2, 2, 91, 353, 3, 2, 2, 2, 93, 356,
|
|
|
|
3, 2, 2, 2, 95, 358, 3, 2, 2, 2, 97, 361, 3, 2, 2, 2, 99, 364, 3, 2, 2,
|
|
|
|
2, 101, 373, 3, 2, 2, 2, 103, 376, 3, 2, 2, 2, 105, 386, 3, 2, 2, 2, 107,
|
|
|
|
391, 3, 2, 2, 2, 109, 397, 3, 2, 2, 2, 111, 399, 3, 2, 2, 2, 113, 401,
|
|
|
|
3, 2, 2, 2, 115, 403, 3, 2, 2, 2, 117, 405, 3, 2, 2, 2, 119, 407, 3, 2,
|
|
|
|
2, 2, 121, 409, 3, 2, 2, 2, 123, 411, 3, 2, 2, 2, 125, 413, 3, 2, 2, 2,
|
|
|
|
127, 415, 3, 2, 2, 2, 129, 417, 3, 2, 2, 2, 131, 419, 3, 2, 2, 2, 133,
|
|
|
|
421, 3, 2, 2, 2, 135, 423, 3, 2, 2, 2, 137, 425, 3, 2, 2, 2, 139, 427,
|
|
|
|
3, 2, 2, 2, 141, 429, 3, 2, 2, 2, 143, 431, 3, 2, 2, 2, 145, 433, 3, 2,
|
|
|
|
2, 2, 147, 435, 3, 2, 2, 2, 149, 437, 3, 2, 2, 2, 151, 439, 3, 2, 2, 2,
|
|
|
|
153, 441, 3, 2, 2, 2, 155, 443, 3, 2, 2, 2, 157, 445, 3, 2, 2, 2, 159,
|
|
|
|
447, 3, 2, 2, 2, 161, 449, 3, 2, 2, 2, 163, 451, 3, 2, 2, 2, 165, 453,
|
|
|
|
3, 2, 2, 2, 167, 168, 7, 61, 2, 2, 168, 4, 3, 2, 2, 2, 169, 170, 7, 44,
|
|
|
|
2, 2, 170, 6, 3, 2, 2, 2, 171, 172, 7, 108, 2, 2, 172, 173, 7, 113, 2,
|
|
|
|
2, 173, 174, 7, 107, 2, 2, 174, 175, 7, 112, 2, 2, 175, 8, 3, 2, 2, 2,
|
|
|
|
176, 177, 7, 76, 2, 2, 177, 178, 7, 81, 2, 2, 178, 179, 7, 75, 2, 2, 179,
|
|
|
|
180, 7, 80, 2, 2, 180, 10, 3, 2, 2, 2, 181, 182, 7, 108, 2, 2, 182, 12,
|
|
|
|
3, 2, 2, 2, 183, 184, 7, 105, 2, 2, 184, 185, 7, 116, 2, 2, 185, 186, 7,
|
|
|
|
113, 2, 2, 186, 187, 7, 119, 2, 2, 187, 188, 7, 114, 2, 2, 188, 14, 3,
|
|
|
|
2, 2, 2, 189, 190, 7, 73, 2, 2, 190, 191, 7, 84, 2, 2, 191, 192, 7, 81,
|
|
|
|
2, 2, 192, 193, 7, 87, 2, 2, 193, 194, 7, 82, 2, 2, 194, 16, 3, 2, 2, 2,
|
|
|
|
195, 196, 7, 105, 2, 2, 196, 18, 3, 2, 2, 2, 197, 198, 7, 48, 2, 2, 198,
|
|
|
|
199, 7, 93, 2, 2, 199, 20, 3, 2, 2, 2, 200, 201, 7, 117, 2, 2, 201, 202,
|
|
|
|
7, 119, 2, 2, 202, 203, 7, 111, 2, 2, 203, 22, 3, 2, 2, 2, 204, 205, 7,
|
|
|
|
85, 2, 2, 205, 206, 7, 87, 2, 2, 206, 207, 7, 79, 2, 2, 207, 24, 3, 2,
|
|
|
|
2, 2, 208, 209, 7, 99, 2, 2, 209, 210, 7, 120, 2, 2, 210, 211, 7, 105,
|
|
|
|
2, 2, 211, 26, 3, 2, 2, 2, 212, 213, 7, 67, 2, 2, 213, 214, 7, 88, 2, 2,
|
|
|
|
214, 215, 7, 73, 2, 2, 215, 28, 3, 2, 2, 2, 216, 217, 7, 101, 2, 2, 217,
|
|
|
|
218, 7, 113, 2, 2, 218, 219, 7, 119, 2, 2, 219, 220, 7, 112, 2, 2, 220,
|
|
|
|
221, 7, 118, 2, 2, 221, 30, 3, 2, 2, 2, 222, 223, 7, 69, 2, 2, 223, 224,
|
|
|
|
7, 81, 2, 2, 224, 225, 7, 87, 2, 2, 225, 226, 7, 80, 2, 2, 226, 227, 7,
|
|
|
|
86, 2, 2, 227, 32, 3, 2, 2, 2, 228, 229, 7, 121, 2, 2, 229, 230, 7, 106,
|
|
|
|
2, 2, 230, 231, 7, 103, 2, 2, 231, 232, 7, 116, 2, 2, 232, 233, 7, 103,
|
|
|
|
2, 2, 233, 34, 3, 2, 2, 2, 234, 235, 7, 89, 2, 2, 235, 236, 7, 74, 2, 2,
|
|
|
|
236, 237, 7, 71, 2, 2, 237, 238, 7, 84, 2, 2, 238, 239, 7, 71, 2, 2, 239,
|
|
|
|
36, 3, 2, 2, 2, 240, 241, 7, 126, 2, 2, 241, 242, 7, 126, 2, 2, 242, 38,
|
|
|
|
3, 2, 2, 2, 243, 244, 7, 49, 2, 2, 244, 40, 3, 2, 2, 2, 245, 246, 7, 39,
|
|
|
|
2, 2, 246, 42, 3, 2, 2, 2, 247, 248, 7, 45, 2, 2, 248, 44, 3, 2, 2, 2,
|
|
|
|
249, 250, 7, 47, 2, 2, 250, 46, 3, 2, 2, 2, 251, 252, 7, 62, 2, 2, 252,
|
|
|
|
253, 7, 62, 2, 2, 253, 48, 3, 2, 2, 2, 254, 255, 7, 64, 2, 2, 255, 256,
|
|
|
|
7, 64, 2, 2, 256, 50, 3, 2, 2, 2, 257, 258, 7, 40, 2, 2, 258, 52, 3, 2,
|
|
|
|
2, 2, 259, 260, 7, 40, 2, 2, 260, 261, 7, 40, 2, 2, 261, 54, 3, 2, 2, 2,
|
|
|
|
262, 263, 7, 128, 2, 2, 263, 56, 3, 2, 2, 2, 264, 265, 7, 35, 2, 2, 265,
|
|
|
|
58, 3, 2, 2, 2, 266, 270, 9, 2, 2, 2, 267, 269, 9, 3, 2, 2, 268, 267, 3,
|
|
|
|
2, 2, 2, 269, 272, 3, 2, 2, 2, 270, 268, 3, 2, 2, 2, 270, 271, 3, 2, 2,
|
|
|
|
2, 271, 60, 3, 2, 2, 2, 272, 270, 3, 2, 2, 2, 273, 275, 9, 4, 2, 2, 274,
|
|
|
|
273, 3, 2, 2, 2, 275, 276, 3, 2, 2, 2, 276, 274, 3, 2, 2, 2, 276, 277,
|
|
|
|
3, 2, 2, 2, 277, 278, 3, 2, 2, 2, 278, 279, 8, 31, 2, 2, 279, 62, 3, 2,
|
|
|
|
2, 2, 280, 281, 7, 42, 2, 2, 281, 64, 3, 2, 2, 2, 282, 283, 7, 43, 2, 2,
|
|
|
|
283, 66, 3, 2, 2, 2, 284, 285, 7, 93, 2, 2, 285, 68, 3, 2, 2, 2, 286, 287,
|
|
|
|
7, 95, 2, 2, 287, 70, 3, 2, 2, 2, 288, 289, 7, 46, 2, 2, 289, 72, 3, 2,
|
|
|
|
2, 2, 290, 291, 7, 126, 2, 2, 291, 74, 3, 2, 2, 2, 292, 293, 7, 60, 2,
|
|
|
|
2, 293, 76, 3, 2, 2, 2, 294, 295, 7, 112, 2, 2, 295, 296, 7, 119, 2, 2,
|
|
|
|
296, 297, 7, 110, 2, 2, 297, 303, 7, 110, 2, 2, 298, 299, 7, 80, 2, 2,
|
|
|
|
299, 300, 7, 87, 2, 2, 300, 301, 7, 78, 2, 2, 301, 303, 7, 78, 2, 2, 302,
|
|
|
|
294, 3, 2, 2, 2, 302, 298, 3, 2, 2, 2, 303, 78, 3, 2, 2, 2, 304, 305, 5,
|
|
|
|
83, 42, 2, 305, 80, 3, 2, 2, 2, 306, 331, 5, 79, 40, 2, 307, 309, 7, 47,
|
|
|
|
2, 2, 308, 307, 3, 2, 2, 2, 308, 309, 3, 2, 2, 2, 309, 310, 3, 2, 2, 2,
|
|
|
|
310, 311, 5, 83, 42, 2, 311, 313, 7, 48, 2, 2, 312, 314, 9, 5, 2, 2, 313,
|
|
|
|
312, 3, 2, 2, 2, 314, 315, 3, 2, 2, 2, 315, 313, 3, 2, 2, 2, 315, 316,
|
|
|
|
3, 2, 2, 2, 316, 318, 3, 2, 2, 2, 317, 319, 5, 85, 43, 2, 318, 317, 3,
|
|
|
|
2, 2, 2, 318, 319, 3, 2, 2, 2, 319, 331, 3, 2, 2, 2, 320, 322, 7, 47, 2,
|
|
|
|
2, 321, 320, 3, 2, 2, 2, 321, 322, 3, 2, 2, 2, 322, 323, 3, 2, 2, 2, 323,
|
|
|
|
324, 5, 83, 42, 2, 324, 325, 5, 85, 43, 2, 325, 331, 3, 2, 2, 2, 326, 328,
|
|
|
|
7, 47, 2, 2, 327, 326, 3, 2, 2, 2, 327, 328, 3, 2, 2, 2, 328, 329, 3, 2,
|
|
|
|
2, 2, 329, 331, 5, 83, 42, 2, 330, 306, 3, 2, 2, 2, 330, 308, 3, 2, 2,
|
|
|
|
2, 330, 321, 3, 2, 2, 2, 330, 327, 3, 2, 2, 2, 331, 82, 3, 2, 2, 2, 332,
|
|
|
|
341, 7, 50, 2, 2, 333, 337, 9, 6, 2, 2, 334, 336, 9, 5, 2, 2, 335, 334,
|
|
|
|
3, 2, 2, 2, 336, 339, 3, 2, 2, 2, 337, 335, 3, 2, 2, 2, 337, 338, 3, 2,
|
|
|
|
2, 2, 338, 341, 3, 2, 2, 2, 339, 337, 3, 2, 2, 2, 340, 332, 3, 2, 2, 2,
|
|
|
|
340, 333, 3, 2, 2, 2, 341, 84, 3, 2, 2, 2, 342, 344, 9, 7, 2, 2, 343, 345,
|
|
|
|
9, 8, 2, 2, 344, 343, 3, 2, 2, 2, 344, 345, 3, 2, 2, 2, 345, 346, 3, 2,
|
|
|
|
2, 2, 346, 347, 5, 83, 42, 2, 347, 86, 3, 2, 2, 2, 348, 349, 7, 62, 2,
|
|
|
|
2, 349, 350, 7, 63, 2, 2, 350, 88, 3, 2, 2, 2, 351, 352, 7, 62, 2, 2, 352,
|
|
|
|
90, 3, 2, 2, 2, 353, 354, 7, 64, 2, 2, 354, 355, 7, 63, 2, 2, 355, 92,
|
|
|
|
3, 2, 2, 2, 356, 357, 7, 64, 2, 2, 357, 94, 3, 2, 2, 2, 358, 359, 7, 35,
|
|
|
|
2, 2, 359, 360, 7, 63, 2, 2, 360, 96, 3, 2, 2, 2, 361, 362, 7, 63, 2, 2,
|
|
|
|
362, 363, 7, 63, 2, 2, 363, 98, 3, 2, 2, 2, 364, 365, 7, 48, 2, 2, 365,
|
|
|
|
370, 5, 59, 30, 2, 366, 367, 7, 48, 2, 2, 367, 369, 5, 59, 30, 2, 368,
|
|
|
|
366, 3, 2, 2, 2, 369, 372, 3, 2, 2, 2, 370, 368, 3, 2, 2, 2, 370, 371,
|
|
|
|
3, 2, 2, 2, 371, 100, 3, 2, 2, 2, 372, 370, 3, 2, 2, 2, 373, 374, 7, 66,
|
|
|
|
2, 2, 374, 375, 5, 59, 30, 2, 375, 102, 3, 2, 2, 2, 376, 381, 7, 36, 2,
|
|
|
|
2, 377, 380, 5, 105, 53, 2, 378, 380, 10, 9, 2, 2, 379, 377, 3, 2, 2, 2,
|
|
|
|
379, 378, 3, 2, 2, 2, 380, 383, 3, 2, 2, 2, 381, 379, 3, 2, 2, 2, 381,
|
|
|
|
382, 3, 2, 2, 2, 382, 384, 3, 2, 2, 2, 383, 381, 3, 2, 2, 2, 384, 385,
|
|
|
|
7, 36, 2, 2, 385, 104, 3, 2, 2, 2, 386, 389, 7, 94, 2, 2, 387, 390, 9,
|
|
|
|
10, 2, 2, 388, 390, 5, 107, 54, 2, 389, 387, 3, 2, 2, 2, 389, 388, 3, 2,
|
|
|
|
2, 2, 390, 106, 3, 2, 2, 2, 391, 392, 7, 119, 2, 2, 392, 393, 5, 109, 55,
|
|
|
|
2, 393, 394, 5, 109, 55, 2, 394, 395, 5, 109, 55, 2, 395, 396, 5, 109,
|
|
|
|
55, 2, 396, 108, 3, 2, 2, 2, 397, 398, 9, 11, 2, 2, 398, 110, 3, 2, 2,
|
|
|
|
2, 399, 400, 9, 5, 2, 2, 400, 112, 3, 2, 2, 2, 401, 402, 9, 12, 2, 2, 402,
|
|
|
|
114, 3, 2, 2, 2, 403, 404, 9, 13, 2, 2, 404, 116, 3, 2, 2, 2, 405, 406,
|
|
|
|
9, 14, 2, 2, 406, 118, 3, 2, 2, 2, 407, 408, 9, 15, 2, 2, 408, 120, 3,
|
|
|
|
2, 2, 2, 409, 410, 9, 7, 2, 2, 410, 122, 3, 2, 2, 2, 411, 412, 9, 16, 2,
|
|
|
|
2, 412, 124, 3, 2, 2, 2, 413, 414, 9, 17, 2, 2, 414, 126, 3, 2, 2, 2, 415,
|
|
|
|
416, 9, 18, 2, 2, 416, 128, 3, 2, 2, 2, 417, 418, 9, 19, 2, 2, 418, 130,
|
|
|
|
3, 2, 2, 2, 419, 420, 9, 20, 2, 2, 420, 132, 3, 2, 2, 2, 421, 422, 9, 21,
|
|
|
|
2, 2, 422, 134, 3, 2, 2, 2, 423, 424, 9, 22, 2, 2, 424, 136, 3, 2, 2, 2,
|
|
|
|
425, 426, 9, 23, 2, 2, 426, 138, 3, 2, 2, 2, 427, 428, 9, 24, 2, 2, 428,
|
|
|
|
140, 3, 2, 2, 2, 429, 430, 9, 25, 2, 2, 430, 142, 3, 2, 2, 2, 431, 432,
|
|
|
|
9, 26, 2, 2, 432, 144, 3, 2, 2, 2, 433, 434, 9, 27, 2, 2, 434, 146, 3,
|
|
|
|
2, 2, 2, 435, 436, 9, 28, 2, 2, 436, 148, 3, 2, 2, 2, 437, 438, 9, 29,
|
|
|
|
2, 2, 438, 150, 3, 2, 2, 2, 439, 440, 9, 30, 2, 2, 440, 152, 3, 2, 2, 2,
|
|
|
|
441, 442, 9, 31, 2, 2, 442, 154, 3, 2, 2, 2, 443, 444, 9, 32, 2, 2, 444,
|
|
|
|
156, 3, 2, 2, 2, 445, 446, 9, 33, 2, 2, 446, 158, 3, 2, 2, 2, 447, 448,
|
|
|
|
9, 34, 2, 2, 448, 160, 3, 2, 2, 2, 449, 450, 9, 35, 2, 2, 450, 162, 3,
|
|
|
|
2, 2, 2, 451, 452, 9, 36, 2, 2, 452, 164, 3, 2, 2, 2, 453, 454, 7, 49,
|
|
|
|
2, 2, 454, 455, 7, 49, 2, 2, 455, 459, 3, 2, 2, 2, 456, 458, 11, 2, 2,
|
|
|
|
2, 457, 456, 3, 2, 2, 2, 458, 461, 3, 2, 2, 2, 459, 460, 3, 2, 2, 2, 459,
|
|
|
|
457, 3, 2, 2, 2, 460, 462, 3, 2, 2, 2, 461, 459, 3, 2, 2, 2, 462, 463,
|
|
|
|
7, 12, 2, 2, 463, 464, 3, 2, 2, 2, 464, 465, 8, 83, 2, 2, 465, 166, 3,
|
|
|
|
2, 2, 2, 20, 2, 270, 276, 302, 308, 315, 318, 321, 327, 330, 337, 340,
|
|
|
|
344, 370, 379, 381, 389, 459, 3, 8, 2, 2,
|
2016-10-17 07:14:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var lexerDeserializer = antlr.NewATNDeserializer(nil)
|
|
|
|
var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)
|
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
var lexerChannelNames = []string{
|
|
|
|
"DEFAULT_TOKEN_CHANNEL", "HIDDEN",
|
|
|
|
}
|
|
|
|
|
2016-10-17 07:14:01 +03:00
|
|
|
var lexerModeNames = []string{
|
|
|
|
"DEFAULT_MODE",
|
|
|
|
}
|
|
|
|
|
|
|
|
var lexerLiteralNames = []string{
|
2020-08-06 20:58:47 +03:00
|
|
|
"", "';'", "'*'", "'join'", "'JOIN'", "'j'", "'group'", "'GROUP'", "'g'",
|
|
|
|
"'.['", "'sum'", "'SUM'", "'avg'", "'AVG'", "'count'", "'COUNT'", "'where'",
|
|
|
|
"'WHERE'", "'||'", "'/'", "'%'", "'+'", "'-'", "'<<'", "'>>'", "'&'", "'&&'",
|
|
|
|
"'~'", "'!'", "", "", "'('", "')'", "'['", "']'", "','", "'|'", "':'",
|
|
|
|
"", "", "", "'<='", "'<'", "'>='", "'>'", "'!='", "'=='",
|
2016-10-17 07:14:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var lexerSymbolicNames = []string{
|
2020-08-06 20:58:47 +03:00
|
|
|
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
|
|
|
|
"", "", "", "", "", "", "", "", "", "", "", "ID", "WS", "LPAR", "RPAR",
|
|
|
|
"LBRA", "RBRA", "COMMA", "PIPE", "COLON", "NULL", "NN", "NUMBER", "LT_EQ",
|
|
|
|
"LT", "GT_EQ", "GT", "NEQ", "EQ", "SEL", "DATASOURCE", "STRING", "LINECOMMENT",
|
2016-10-17 07:14:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var lexerRuleNames = []string{
|
2020-08-06 20:58:47 +03:00
|
|
|
"T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "T__8",
|
|
|
|
"T__9", "T__10", "T__11", "T__12", "T__13", "T__14", "T__15", "T__16",
|
|
|
|
"T__17", "T__18", "T__19", "T__20", "T__21", "T__22", "T__23", "T__24",
|
|
|
|
"T__25", "T__26", "T__27", "ID", "WS", "LPAR", "RPAR", "LBRA", "RBRA",
|
|
|
|
"COMMA", "PIPE", "COLON", "NULL", "NN", "NUMBER", "INTF", "EXP", "LT_EQ",
|
|
|
|
"LT", "GT_EQ", "GT", "NEQ", "EQ", "SEL", "DATASOURCE", "STRING", "ESC",
|
|
|
|
"UNICODE", "HEX", "DIGIT", "A", "B", "C", "D", "E", "F", "G", "H", "I",
|
|
|
|
"J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X",
|
|
|
|
"Y", "Z", "LINECOMMENT",
|
2016-10-17 07:14:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type SLQLexer struct {
|
|
|
|
*antlr.BaseLexer
|
2020-08-06 20:58:47 +03:00
|
|
|
channelNames []string
|
|
|
|
modeNames []string
|
2016-10-17 07:14:01 +03:00
|
|
|
// TODO: EOF string
|
|
|
|
}
|
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
var lexerDecisionToDFA = make([]*antlr.DFA, len(lexerAtn.DecisionToState))
|
2016-10-17 07:14:01 +03:00
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
func init() {
|
2016-10-17 07:14:01 +03:00
|
|
|
for index, ds := range lexerAtn.DecisionToState {
|
|
|
|
lexerDecisionToDFA[index] = antlr.NewDFA(ds, index)
|
|
|
|
}
|
2020-08-06 20:58:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewSLQLexer(input antlr.CharStream) *SLQLexer {
|
2016-10-17 07:14:01 +03:00
|
|
|
|
2016-10-31 01:35:56 +03:00
|
|
|
l := new(SLQLexer)
|
2016-10-17 07:14:01 +03:00
|
|
|
|
2016-10-31 01:35:56 +03:00
|
|
|
l.BaseLexer = antlr.NewBaseLexer(input)
|
|
|
|
l.Interpreter = antlr.NewLexerATNSimulator(l, lexerAtn, lexerDecisionToDFA, antlr.NewPredictionContextCache())
|
2016-10-17 07:14:01 +03:00
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
l.channelNames = lexerChannelNames
|
2016-10-31 01:35:56 +03:00
|
|
|
l.modeNames = lexerModeNames
|
|
|
|
l.RuleNames = lexerRuleNames
|
|
|
|
l.LiteralNames = lexerLiteralNames
|
|
|
|
l.SymbolicNames = lexerSymbolicNames
|
|
|
|
l.GrammarFileName = "SLQ.g4"
|
|
|
|
// TODO: l.EOF = antlr.TokenEOF
|
2016-10-17 07:14:01 +03:00
|
|
|
|
2016-10-31 01:35:56 +03:00
|
|
|
return l
|
2016-10-17 07:14:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// SLQLexer tokens.
|
|
|
|
const (
|
|
|
|
SLQLexerT__0 = 1
|
|
|
|
SLQLexerT__1 = 2
|
|
|
|
SLQLexerT__2 = 3
|
|
|
|
SLQLexerT__3 = 4
|
2020-08-06 20:58:47 +03:00
|
|
|
SLQLexerT__4 = 5
|
|
|
|
SLQLexerT__5 = 6
|
|
|
|
SLQLexerT__6 = 7
|
|
|
|
SLQLexerT__7 = 8
|
|
|
|
SLQLexerT__8 = 9
|
|
|
|
SLQLexerT__9 = 10
|
|
|
|
SLQLexerT__10 = 11
|
|
|
|
SLQLexerT__11 = 12
|
|
|
|
SLQLexerT__12 = 13
|
|
|
|
SLQLexerT__13 = 14
|
|
|
|
SLQLexerT__14 = 15
|
|
|
|
SLQLexerT__15 = 16
|
|
|
|
SLQLexerT__16 = 17
|
|
|
|
SLQLexerT__17 = 18
|
|
|
|
SLQLexerT__18 = 19
|
|
|
|
SLQLexerT__19 = 20
|
|
|
|
SLQLexerT__20 = 21
|
|
|
|
SLQLexerT__21 = 22
|
|
|
|
SLQLexerT__22 = 23
|
|
|
|
SLQLexerT__23 = 24
|
|
|
|
SLQLexerT__24 = 25
|
|
|
|
SLQLexerT__25 = 26
|
|
|
|
SLQLexerT__26 = 27
|
|
|
|
SLQLexerT__27 = 28
|
|
|
|
SLQLexerID = 29
|
|
|
|
SLQLexerWS = 30
|
|
|
|
SLQLexerLPAR = 31
|
|
|
|
SLQLexerRPAR = 32
|
|
|
|
SLQLexerLBRA = 33
|
|
|
|
SLQLexerRBRA = 34
|
|
|
|
SLQLexerCOMMA = 35
|
|
|
|
SLQLexerPIPE = 36
|
|
|
|
SLQLexerCOLON = 37
|
|
|
|
SLQLexerNULL = 38
|
|
|
|
SLQLexerNN = 39
|
|
|
|
SLQLexerNUMBER = 40
|
|
|
|
SLQLexerLT_EQ = 41
|
|
|
|
SLQLexerLT = 42
|
|
|
|
SLQLexerGT_EQ = 43
|
|
|
|
SLQLexerGT = 44
|
|
|
|
SLQLexerNEQ = 45
|
|
|
|
SLQLexerEQ = 46
|
|
|
|
SLQLexerSEL = 47
|
|
|
|
SLQLexerDATASOURCE = 48
|
|
|
|
SLQLexerSTRING = 49
|
|
|
|
SLQLexerLINECOMMENT = 50
|
2016-10-17 07:14:01 +03:00
|
|
|
)
|