mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-24 03:49:29 +02:00
bd07b84736
* Added new syntax and iterator * Added FOR-WHILE loop * Added 'FOR-DO-WHILE loop'
421 lines
24 KiB
Go
421 lines
24 KiB
Go
// Code generated from antlr/FqlLexer.g4 by ANTLR 4.8. DO NOT EDIT.
|
|
|
|
package fql
|
|
|
|
import (
|
|
"fmt"
|
|
"unicode"
|
|
|
|
"github.com/antlr/antlr4/runtime/Go/antlr"
|
|
)
|
|
|
|
// Suppress unused import error
|
|
var _ = fmt.Printf
|
|
var _ = unicode.IsLetter
|
|
|
|
var serializedLexerAtn = []uint16{
|
|
3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 2, 67, 563,
|
|
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, 3, 2, 3, 2, 3, 2, 3, 2, 7, 2, 160, 10, 2, 12,
|
|
2, 14, 2, 163, 11, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 7, 3, 174, 10, 3, 12, 3, 14, 3, 177, 11, 3, 3, 3, 3, 3, 3, 4, 6, 4,
|
|
182, 10, 4, 13, 4, 14, 4, 183, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 3, 5, 3, 6,
|
|
3, 6, 3, 7, 3, 7, 3, 8, 3, 8, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3,
|
|
12, 3, 12, 3, 13, 3, 13, 3, 14, 3, 14, 3, 15, 3, 15, 3, 16, 3, 16, 3, 17,
|
|
3, 17, 3, 18, 3, 18, 3, 18, 3, 19, 3, 19, 3, 19, 3, 20, 3, 20, 3, 20, 3,
|
|
21, 3, 21, 3, 21, 3, 22, 3, 22, 3, 23, 3, 23, 3, 24, 3, 24, 3, 25, 3, 25,
|
|
3, 26, 3, 26, 3, 27, 3, 27, 3, 27, 3, 28, 3, 28, 3, 28, 3, 29, 3, 29, 3,
|
|
29, 3, 29, 3, 29, 5, 29, 249, 10, 29, 3, 30, 3, 30, 3, 30, 3, 30, 5, 30,
|
|
255, 10, 30, 3, 31, 3, 31, 3, 31, 3, 32, 3, 32, 3, 33, 3, 33, 3, 34, 3,
|
|
34, 3, 34, 3, 35, 3, 35, 3, 35, 3, 36, 3, 36, 3, 36, 3, 36, 3, 37, 3, 37,
|
|
3, 37, 3, 37, 3, 37, 3, 37, 3, 37, 3, 38, 3, 38, 3, 38, 3, 38, 3, 38, 3,
|
|
38, 3, 38, 3, 38, 3, 38, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39, 3, 39,
|
|
3, 40, 3, 40, 3, 40, 3, 40, 3, 40, 3, 41, 3, 41, 3, 41, 3, 41, 3, 41, 3,
|
|
41, 3, 42, 3, 42, 3, 42, 3, 42, 3, 43, 3, 43, 3, 43, 3, 43, 3, 43, 3, 43,
|
|
3, 43, 3, 43, 3, 44, 3, 44, 3, 44, 3, 44, 3, 44, 3, 44, 3, 44, 5, 44, 327,
|
|
10, 44, 3, 45, 3, 45, 3, 45, 3, 45, 3, 45, 3, 46, 3, 46, 3, 46, 3, 46,
|
|
3, 46, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3,
|
|
47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 3, 47, 5, 47, 357,
|
|
10, 47, 3, 48, 3, 48, 3, 48, 3, 48, 3, 49, 3, 49, 3, 49, 3, 49, 3, 49,
|
|
3, 50, 3, 50, 3, 50, 3, 50, 3, 50, 3, 51, 3, 51, 3, 51, 3, 51, 3, 51, 3,
|
|
52, 3, 52, 3, 52, 3, 52, 3, 52, 3, 52, 3, 53, 3, 53, 3, 53, 3, 53, 3, 54,
|
|
3, 54, 3, 54, 3, 54, 3, 55, 3, 55, 3, 55, 3, 55, 3, 55, 3, 55, 3, 55, 3,
|
|
55, 3, 55, 3, 55, 3, 56, 3, 56, 3, 56, 3, 56, 3, 56, 3, 57, 3, 57, 3, 57,
|
|
3, 57, 5, 57, 411, 10, 57, 3, 58, 3, 58, 3, 58, 3, 59, 3, 59, 3, 59, 3,
|
|
60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 60, 3, 61, 3, 61, 3, 62, 6, 62, 428,
|
|
10, 62, 13, 62, 14, 62, 429, 3, 62, 3, 62, 7, 62, 434, 10, 62, 12, 62,
|
|
14, 62, 437, 11, 62, 7, 62, 439, 10, 62, 12, 62, 14, 62, 442, 11, 62, 3,
|
|
62, 3, 62, 7, 62, 446, 10, 62, 12, 62, 14, 62, 449, 11, 62, 7, 62, 451,
|
|
10, 62, 12, 62, 14, 62, 454, 11, 62, 3, 63, 3, 63, 3, 63, 3, 63, 5, 63,
|
|
460, 10, 63, 3, 64, 6, 64, 463, 10, 64, 13, 64, 14, 64, 464, 3, 65, 3,
|
|
65, 3, 65, 6, 65, 470, 10, 65, 13, 65, 14, 65, 471, 3, 65, 5, 65, 475,
|
|
10, 65, 3, 65, 3, 65, 5, 65, 479, 10, 65, 5, 65, 481, 10, 65, 3, 66, 3,
|
|
66, 3, 66, 3, 67, 3, 67, 3, 68, 3, 68, 3, 68, 7, 68, 491, 10, 68, 12, 68,
|
|
14, 68, 494, 11, 68, 5, 68, 496, 10, 68, 3, 69, 3, 69, 5, 69, 500, 10,
|
|
69, 3, 69, 6, 69, 503, 10, 69, 13, 69, 14, 69, 504, 3, 70, 3, 70, 3, 71,
|
|
3, 71, 3, 72, 3, 72, 3, 73, 3, 73, 3, 73, 3, 73, 3, 73, 3, 73, 7, 73, 519,
|
|
10, 73, 12, 73, 14, 73, 522, 11, 73, 3, 73, 3, 73, 3, 74, 3, 74, 3, 74,
|
|
3, 74, 3, 74, 3, 74, 7, 74, 532, 10, 74, 12, 74, 14, 74, 535, 11, 74, 3,
|
|
74, 3, 74, 3, 75, 3, 75, 3, 75, 3, 75, 7, 75, 543, 10, 75, 12, 75, 14,
|
|
75, 546, 11, 75, 3, 75, 3, 75, 3, 76, 3, 76, 3, 76, 3, 76, 7, 76, 554,
|
|
10, 76, 12, 76, 14, 76, 557, 11, 76, 3, 76, 3, 76, 3, 77, 3, 77, 3, 77,
|
|
3, 161, 2, 78, 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, 43, 85, 44, 87, 45, 89, 46, 91,
|
|
47, 93, 48, 95, 49, 97, 50, 99, 51, 101, 52, 103, 53, 105, 54, 107, 55,
|
|
109, 56, 111, 57, 113, 58, 115, 59, 117, 60, 119, 61, 121, 62, 123, 63,
|
|
125, 64, 127, 65, 129, 66, 131, 67, 133, 2, 135, 2, 137, 2, 139, 2, 141,
|
|
2, 143, 2, 145, 2, 147, 2, 149, 2, 151, 2, 153, 2, 3, 2, 14, 5, 2, 12,
|
|
12, 15, 15, 8234, 8235, 6, 2, 11, 11, 13, 14, 34, 34, 162, 162, 3, 2, 50,
|
|
59, 5, 2, 50, 59, 67, 72, 99, 104, 3, 2, 51, 59, 4, 2, 71, 71, 103, 103,
|
|
4, 2, 45, 45, 47, 47, 4, 2, 67, 92, 99, 124, 4, 2, 36, 36, 94, 94, 4, 2,
|
|
41, 41, 94, 94, 3, 2, 98, 98, 3, 2, 182, 182, 2, 588, 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, 83, 3, 2, 2, 2, 2, 85, 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, 105, 3, 2, 2, 2, 2, 107, 3, 2, 2, 2, 2, 109, 3, 2, 2, 2, 2, 111,
|
|
3, 2, 2, 2, 2, 113, 3, 2, 2, 2, 2, 115, 3, 2, 2, 2, 2, 117, 3, 2, 2, 2,
|
|
2, 119, 3, 2, 2, 2, 2, 121, 3, 2, 2, 2, 2, 123, 3, 2, 2, 2, 2, 125, 3,
|
|
2, 2, 2, 2, 127, 3, 2, 2, 2, 2, 129, 3, 2, 2, 2, 2, 131, 3, 2, 2, 2, 3,
|
|
155, 3, 2, 2, 2, 5, 169, 3, 2, 2, 2, 7, 181, 3, 2, 2, 2, 9, 187, 3, 2,
|
|
2, 2, 11, 191, 3, 2, 2, 2, 13, 193, 3, 2, 2, 2, 15, 195, 3, 2, 2, 2, 17,
|
|
197, 3, 2, 2, 2, 19, 199, 3, 2, 2, 2, 21, 201, 3, 2, 2, 2, 23, 203, 3,
|
|
2, 2, 2, 25, 205, 3, 2, 2, 2, 27, 207, 3, 2, 2, 2, 29, 209, 3, 2, 2, 2,
|
|
31, 211, 3, 2, 2, 2, 33, 213, 3, 2, 2, 2, 35, 215, 3, 2, 2, 2, 37, 218,
|
|
3, 2, 2, 2, 39, 221, 3, 2, 2, 2, 41, 224, 3, 2, 2, 2, 43, 227, 3, 2, 2,
|
|
2, 45, 229, 3, 2, 2, 2, 47, 231, 3, 2, 2, 2, 49, 233, 3, 2, 2, 2, 51, 235,
|
|
3, 2, 2, 2, 53, 237, 3, 2, 2, 2, 55, 240, 3, 2, 2, 2, 57, 248, 3, 2, 2,
|
|
2, 59, 254, 3, 2, 2, 2, 61, 256, 3, 2, 2, 2, 63, 259, 3, 2, 2, 2, 65, 261,
|
|
3, 2, 2, 2, 67, 263, 3, 2, 2, 2, 69, 266, 3, 2, 2, 2, 71, 269, 3, 2, 2,
|
|
2, 73, 273, 3, 2, 2, 2, 75, 280, 3, 2, 2, 2, 77, 289, 3, 2, 2, 2, 79, 296,
|
|
3, 2, 2, 2, 81, 301, 3, 2, 2, 2, 83, 307, 3, 2, 2, 2, 85, 311, 3, 2, 2,
|
|
2, 87, 326, 3, 2, 2, 2, 89, 328, 3, 2, 2, 2, 91, 333, 3, 2, 2, 2, 93, 356,
|
|
3, 2, 2, 2, 95, 358, 3, 2, 2, 2, 97, 362, 3, 2, 2, 2, 99, 367, 3, 2, 2,
|
|
2, 101, 372, 3, 2, 2, 2, 103, 377, 3, 2, 2, 2, 105, 383, 3, 2, 2, 2, 107,
|
|
387, 3, 2, 2, 2, 109, 391, 3, 2, 2, 2, 111, 401, 3, 2, 2, 2, 113, 410,
|
|
3, 2, 2, 2, 115, 412, 3, 2, 2, 2, 117, 415, 3, 2, 2, 2, 119, 418, 3, 2,
|
|
2, 2, 121, 424, 3, 2, 2, 2, 123, 427, 3, 2, 2, 2, 125, 459, 3, 2, 2, 2,
|
|
127, 462, 3, 2, 2, 2, 129, 480, 3, 2, 2, 2, 131, 482, 3, 2, 2, 2, 133,
|
|
485, 3, 2, 2, 2, 135, 495, 3, 2, 2, 2, 137, 497, 3, 2, 2, 2, 139, 506,
|
|
3, 2, 2, 2, 141, 508, 3, 2, 2, 2, 143, 510, 3, 2, 2, 2, 145, 512, 3, 2,
|
|
2, 2, 147, 525, 3, 2, 2, 2, 149, 538, 3, 2, 2, 2, 151, 549, 3, 2, 2, 2,
|
|
153, 560, 3, 2, 2, 2, 155, 156, 7, 49, 2, 2, 156, 157, 7, 44, 2, 2, 157,
|
|
161, 3, 2, 2, 2, 158, 160, 11, 2, 2, 2, 159, 158, 3, 2, 2, 2, 160, 163,
|
|
3, 2, 2, 2, 161, 162, 3, 2, 2, 2, 161, 159, 3, 2, 2, 2, 162, 164, 3, 2,
|
|
2, 2, 163, 161, 3, 2, 2, 2, 164, 165, 7, 44, 2, 2, 165, 166, 7, 49, 2,
|
|
2, 166, 167, 3, 2, 2, 2, 167, 168, 8, 2, 2, 2, 168, 4, 3, 2, 2, 2, 169,
|
|
170, 7, 49, 2, 2, 170, 171, 7, 49, 2, 2, 171, 175, 3, 2, 2, 2, 172, 174,
|
|
10, 2, 2, 2, 173, 172, 3, 2, 2, 2, 174, 177, 3, 2, 2, 2, 175, 173, 3, 2,
|
|
2, 2, 175, 176, 3, 2, 2, 2, 176, 178, 3, 2, 2, 2, 177, 175, 3, 2, 2, 2,
|
|
178, 179, 8, 3, 2, 2, 179, 6, 3, 2, 2, 2, 180, 182, 9, 3, 2, 2, 181, 180,
|
|
3, 2, 2, 2, 182, 183, 3, 2, 2, 2, 183, 181, 3, 2, 2, 2, 183, 184, 3, 2,
|
|
2, 2, 184, 185, 3, 2, 2, 2, 185, 186, 8, 4, 2, 2, 186, 8, 3, 2, 2, 2, 187,
|
|
188, 9, 2, 2, 2, 188, 189, 3, 2, 2, 2, 189, 190, 8, 5, 2, 2, 190, 10, 3,
|
|
2, 2, 2, 191, 192, 7, 60, 2, 2, 192, 12, 3, 2, 2, 2, 193, 194, 7, 61, 2,
|
|
2, 194, 14, 3, 2, 2, 2, 195, 196, 7, 48, 2, 2, 196, 16, 3, 2, 2, 2, 197,
|
|
198, 7, 46, 2, 2, 198, 18, 3, 2, 2, 2, 199, 200, 7, 93, 2, 2, 200, 20,
|
|
3, 2, 2, 2, 201, 202, 7, 95, 2, 2, 202, 22, 3, 2, 2, 2, 203, 204, 7, 42,
|
|
2, 2, 204, 24, 3, 2, 2, 2, 205, 206, 7, 43, 2, 2, 206, 26, 3, 2, 2, 2,
|
|
207, 208, 7, 125, 2, 2, 208, 28, 3, 2, 2, 2, 209, 210, 7, 127, 2, 2, 210,
|
|
30, 3, 2, 2, 2, 211, 212, 7, 64, 2, 2, 212, 32, 3, 2, 2, 2, 213, 214, 7,
|
|
62, 2, 2, 214, 34, 3, 2, 2, 2, 215, 216, 7, 63, 2, 2, 216, 217, 7, 63,
|
|
2, 2, 217, 36, 3, 2, 2, 2, 218, 219, 7, 64, 2, 2, 219, 220, 7, 63, 2, 2,
|
|
220, 38, 3, 2, 2, 2, 221, 222, 7, 62, 2, 2, 222, 223, 7, 63, 2, 2, 223,
|
|
40, 3, 2, 2, 2, 224, 225, 7, 35, 2, 2, 225, 226, 7, 63, 2, 2, 226, 42,
|
|
3, 2, 2, 2, 227, 228, 7, 44, 2, 2, 228, 44, 3, 2, 2, 2, 229, 230, 7, 49,
|
|
2, 2, 230, 46, 3, 2, 2, 2, 231, 232, 7, 39, 2, 2, 232, 48, 3, 2, 2, 2,
|
|
233, 234, 7, 45, 2, 2, 234, 50, 3, 2, 2, 2, 235, 236, 7, 47, 2, 2, 236,
|
|
52, 3, 2, 2, 2, 237, 238, 7, 47, 2, 2, 238, 239, 7, 47, 2, 2, 239, 54,
|
|
3, 2, 2, 2, 240, 241, 7, 45, 2, 2, 241, 242, 7, 45, 2, 2, 242, 56, 3, 2,
|
|
2, 2, 243, 244, 7, 67, 2, 2, 244, 245, 7, 80, 2, 2, 245, 249, 7, 70, 2,
|
|
2, 246, 247, 7, 40, 2, 2, 247, 249, 7, 40, 2, 2, 248, 243, 3, 2, 2, 2,
|
|
248, 246, 3, 2, 2, 2, 249, 58, 3, 2, 2, 2, 250, 251, 7, 81, 2, 2, 251,
|
|
255, 7, 84, 2, 2, 252, 253, 7, 126, 2, 2, 253, 255, 7, 126, 2, 2, 254,
|
|
250, 3, 2, 2, 2, 254, 252, 3, 2, 2, 2, 255, 60, 3, 2, 2, 2, 256, 257, 5,
|
|
15, 8, 2, 257, 258, 5, 15, 8, 2, 258, 62, 3, 2, 2, 2, 259, 260, 7, 63,
|
|
2, 2, 260, 64, 3, 2, 2, 2, 261, 262, 7, 65, 2, 2, 262, 66, 3, 2, 2, 2,
|
|
263, 264, 7, 35, 2, 2, 264, 265, 7, 128, 2, 2, 265, 68, 3, 2, 2, 2, 266,
|
|
267, 7, 63, 2, 2, 267, 268, 7, 128, 2, 2, 268, 70, 3, 2, 2, 2, 269, 270,
|
|
7, 72, 2, 2, 270, 271, 7, 81, 2, 2, 271, 272, 7, 84, 2, 2, 272, 72, 3,
|
|
2, 2, 2, 273, 274, 7, 84, 2, 2, 274, 275, 7, 71, 2, 2, 275, 276, 7, 86,
|
|
2, 2, 276, 277, 7, 87, 2, 2, 277, 278, 7, 84, 2, 2, 278, 279, 7, 80, 2,
|
|
2, 279, 74, 3, 2, 2, 2, 280, 281, 7, 70, 2, 2, 281, 282, 7, 75, 2, 2, 282,
|
|
283, 7, 85, 2, 2, 283, 284, 7, 86, 2, 2, 284, 285, 7, 75, 2, 2, 285, 286,
|
|
7, 80, 2, 2, 286, 287, 7, 69, 2, 2, 287, 288, 7, 86, 2, 2, 288, 76, 3,
|
|
2, 2, 2, 289, 290, 7, 72, 2, 2, 290, 291, 7, 75, 2, 2, 291, 292, 7, 78,
|
|
2, 2, 292, 293, 7, 86, 2, 2, 293, 294, 7, 71, 2, 2, 294, 295, 7, 84, 2,
|
|
2, 295, 78, 3, 2, 2, 2, 296, 297, 7, 85, 2, 2, 297, 298, 7, 81, 2, 2, 298,
|
|
299, 7, 84, 2, 2, 299, 300, 7, 86, 2, 2, 300, 80, 3, 2, 2, 2, 301, 302,
|
|
7, 78, 2, 2, 302, 303, 7, 75, 2, 2, 303, 304, 7, 79, 2, 2, 304, 305, 7,
|
|
75, 2, 2, 305, 306, 7, 86, 2, 2, 306, 82, 3, 2, 2, 2, 307, 308, 7, 78,
|
|
2, 2, 308, 309, 7, 71, 2, 2, 309, 310, 7, 86, 2, 2, 310, 84, 3, 2, 2, 2,
|
|
311, 312, 7, 69, 2, 2, 312, 313, 7, 81, 2, 2, 313, 314, 7, 78, 2, 2, 314,
|
|
315, 7, 78, 2, 2, 315, 316, 7, 71, 2, 2, 316, 317, 7, 69, 2, 2, 317, 318,
|
|
7, 86, 2, 2, 318, 86, 3, 2, 2, 2, 319, 320, 7, 67, 2, 2, 320, 321, 7, 85,
|
|
2, 2, 321, 327, 7, 69, 2, 2, 322, 323, 7, 70, 2, 2, 323, 324, 7, 71, 2,
|
|
2, 324, 325, 7, 85, 2, 2, 325, 327, 7, 69, 2, 2, 326, 319, 3, 2, 2, 2,
|
|
326, 322, 3, 2, 2, 2, 327, 88, 3, 2, 2, 2, 328, 329, 7, 80, 2, 2, 329,
|
|
330, 7, 81, 2, 2, 330, 331, 7, 80, 2, 2, 331, 332, 7, 71, 2, 2, 332, 90,
|
|
3, 2, 2, 2, 333, 334, 7, 80, 2, 2, 334, 335, 7, 87, 2, 2, 335, 336, 7,
|
|
78, 2, 2, 336, 337, 7, 78, 2, 2, 337, 92, 3, 2, 2, 2, 338, 339, 7, 86,
|
|
2, 2, 339, 340, 7, 84, 2, 2, 340, 341, 7, 87, 2, 2, 341, 357, 7, 71, 2,
|
|
2, 342, 343, 7, 118, 2, 2, 343, 344, 7, 116, 2, 2, 344, 345, 7, 119, 2,
|
|
2, 345, 357, 7, 103, 2, 2, 346, 347, 7, 72, 2, 2, 347, 348, 7, 67, 2, 2,
|
|
348, 349, 7, 78, 2, 2, 349, 350, 7, 85, 2, 2, 350, 357, 7, 71, 2, 2, 351,
|
|
352, 7, 104, 2, 2, 352, 353, 7, 99, 2, 2, 353, 354, 7, 110, 2, 2, 354,
|
|
355, 7, 117, 2, 2, 355, 357, 7, 103, 2, 2, 356, 338, 3, 2, 2, 2, 356, 342,
|
|
3, 2, 2, 2, 356, 346, 3, 2, 2, 2, 356, 351, 3, 2, 2, 2, 357, 94, 3, 2,
|
|
2, 2, 358, 359, 7, 87, 2, 2, 359, 360, 7, 85, 2, 2, 360, 361, 7, 71, 2,
|
|
2, 361, 96, 3, 2, 2, 2, 362, 363, 7, 75, 2, 2, 363, 364, 7, 80, 2, 2, 364,
|
|
365, 7, 86, 2, 2, 365, 366, 7, 81, 2, 2, 366, 98, 3, 2, 2, 2, 367, 368,
|
|
7, 77, 2, 2, 368, 369, 7, 71, 2, 2, 369, 370, 7, 71, 2, 2, 370, 371, 7,
|
|
82, 2, 2, 371, 100, 3, 2, 2, 2, 372, 373, 7, 89, 2, 2, 373, 374, 7, 75,
|
|
2, 2, 374, 375, 7, 86, 2, 2, 375, 376, 7, 74, 2, 2, 376, 102, 3, 2, 2,
|
|
2, 377, 378, 7, 69, 2, 2, 378, 379, 7, 81, 2, 2, 379, 380, 7, 87, 2, 2,
|
|
380, 381, 7, 80, 2, 2, 381, 382, 7, 86, 2, 2, 382, 104, 3, 2, 2, 2, 383,
|
|
384, 7, 67, 2, 2, 384, 385, 7, 78, 2, 2, 385, 386, 7, 78, 2, 2, 386, 106,
|
|
3, 2, 2, 2, 387, 388, 7, 67, 2, 2, 388, 389, 7, 80, 2, 2, 389, 390, 7,
|
|
91, 2, 2, 390, 108, 3, 2, 2, 2, 391, 392, 7, 67, 2, 2, 392, 393, 7, 73,
|
|
2, 2, 393, 394, 7, 73, 2, 2, 394, 395, 7, 84, 2, 2, 395, 396, 7, 71, 2,
|
|
2, 396, 397, 7, 73, 2, 2, 397, 398, 7, 67, 2, 2, 398, 399, 7, 86, 2, 2,
|
|
399, 400, 7, 71, 2, 2, 400, 110, 3, 2, 2, 2, 401, 402, 7, 78, 2, 2, 402,
|
|
403, 7, 75, 2, 2, 403, 404, 7, 77, 2, 2, 404, 405, 7, 71, 2, 2, 405, 112,
|
|
3, 2, 2, 2, 406, 407, 7, 80, 2, 2, 407, 408, 7, 81, 2, 2, 408, 411, 7,
|
|
86, 2, 2, 409, 411, 7, 35, 2, 2, 410, 406, 3, 2, 2, 2, 410, 409, 3, 2,
|
|
2, 2, 411, 114, 3, 2, 2, 2, 412, 413, 7, 75, 2, 2, 413, 414, 7, 80, 2,
|
|
2, 414, 116, 3, 2, 2, 2, 415, 416, 7, 70, 2, 2, 416, 417, 7, 81, 2, 2,
|
|
417, 118, 3, 2, 2, 2, 418, 419, 7, 89, 2, 2, 419, 420, 7, 74, 2, 2, 420,
|
|
421, 7, 75, 2, 2, 421, 422, 7, 78, 2, 2, 422, 423, 7, 71, 2, 2, 423, 120,
|
|
3, 2, 2, 2, 424, 425, 7, 66, 2, 2, 425, 122, 3, 2, 2, 2, 426, 428, 5, 139,
|
|
70, 2, 427, 426, 3, 2, 2, 2, 428, 429, 3, 2, 2, 2, 429, 427, 3, 2, 2, 2,
|
|
429, 430, 3, 2, 2, 2, 430, 440, 3, 2, 2, 2, 431, 435, 5, 141, 71, 2, 432,
|
|
434, 5, 123, 62, 2, 433, 432, 3, 2, 2, 2, 434, 437, 3, 2, 2, 2, 435, 433,
|
|
3, 2, 2, 2, 435, 436, 3, 2, 2, 2, 436, 439, 3, 2, 2, 2, 437, 435, 3, 2,
|
|
2, 2, 438, 431, 3, 2, 2, 2, 439, 442, 3, 2, 2, 2, 440, 438, 3, 2, 2, 2,
|
|
440, 441, 3, 2, 2, 2, 441, 452, 3, 2, 2, 2, 442, 440, 3, 2, 2, 2, 443,
|
|
447, 5, 143, 72, 2, 444, 446, 5, 123, 62, 2, 445, 444, 3, 2, 2, 2, 446,
|
|
449, 3, 2, 2, 2, 447, 445, 3, 2, 2, 2, 447, 448, 3, 2, 2, 2, 448, 451,
|
|
3, 2, 2, 2, 449, 447, 3, 2, 2, 2, 450, 443, 3, 2, 2, 2, 451, 454, 3, 2,
|
|
2, 2, 452, 450, 3, 2, 2, 2, 452, 453, 3, 2, 2, 2, 453, 124, 3, 2, 2, 2,
|
|
454, 452, 3, 2, 2, 2, 455, 460, 5, 147, 74, 2, 456, 460, 5, 145, 73, 2,
|
|
457, 460, 5, 149, 75, 2, 458, 460, 5, 151, 76, 2, 459, 455, 3, 2, 2, 2,
|
|
459, 456, 3, 2, 2, 2, 459, 457, 3, 2, 2, 2, 459, 458, 3, 2, 2, 2, 460,
|
|
126, 3, 2, 2, 2, 461, 463, 9, 4, 2, 2, 462, 461, 3, 2, 2, 2, 463, 464,
|
|
3, 2, 2, 2, 464, 462, 3, 2, 2, 2, 464, 465, 3, 2, 2, 2, 465, 128, 3, 2,
|
|
2, 2, 466, 467, 5, 135, 68, 2, 467, 469, 5, 15, 8, 2, 468, 470, 9, 4, 2,
|
|
2, 469, 468, 3, 2, 2, 2, 470, 471, 3, 2, 2, 2, 471, 469, 3, 2, 2, 2, 471,
|
|
472, 3, 2, 2, 2, 472, 474, 3, 2, 2, 2, 473, 475, 5, 137, 69, 2, 474, 473,
|
|
3, 2, 2, 2, 474, 475, 3, 2, 2, 2, 475, 481, 3, 2, 2, 2, 476, 478, 5, 135,
|
|
68, 2, 477, 479, 5, 137, 69, 2, 478, 477, 3, 2, 2, 2, 478, 479, 3, 2, 2,
|
|
2, 479, 481, 3, 2, 2, 2, 480, 466, 3, 2, 2, 2, 480, 476, 3, 2, 2, 2, 481,
|
|
130, 3, 2, 2, 2, 482, 483, 5, 123, 62, 2, 483, 484, 5, 153, 77, 2, 484,
|
|
132, 3, 2, 2, 2, 485, 486, 9, 5, 2, 2, 486, 134, 3, 2, 2, 2, 487, 496,
|
|
7, 50, 2, 2, 488, 492, 9, 6, 2, 2, 489, 491, 9, 4, 2, 2, 490, 489, 3, 2,
|
|
2, 2, 491, 494, 3, 2, 2, 2, 492, 490, 3, 2, 2, 2, 492, 493, 3, 2, 2, 2,
|
|
493, 496, 3, 2, 2, 2, 494, 492, 3, 2, 2, 2, 495, 487, 3, 2, 2, 2, 495,
|
|
488, 3, 2, 2, 2, 496, 136, 3, 2, 2, 2, 497, 499, 9, 7, 2, 2, 498, 500,
|
|
9, 8, 2, 2, 499, 498, 3, 2, 2, 2, 499, 500, 3, 2, 2, 2, 500, 502, 3, 2,
|
|
2, 2, 501, 503, 9, 4, 2, 2, 502, 501, 3, 2, 2, 2, 503, 504, 3, 2, 2, 2,
|
|
504, 502, 3, 2, 2, 2, 504, 505, 3, 2, 2, 2, 505, 138, 3, 2, 2, 2, 506,
|
|
507, 9, 9, 2, 2, 507, 140, 3, 2, 2, 2, 508, 509, 7, 97, 2, 2, 509, 142,
|
|
3, 2, 2, 2, 510, 511, 4, 50, 59, 2, 511, 144, 3, 2, 2, 2, 512, 520, 7,
|
|
36, 2, 2, 513, 514, 7, 94, 2, 2, 514, 519, 11, 2, 2, 2, 515, 516, 7, 36,
|
|
2, 2, 516, 519, 7, 36, 2, 2, 517, 519, 10, 10, 2, 2, 518, 513, 3, 2, 2,
|
|
2, 518, 515, 3, 2, 2, 2, 518, 517, 3, 2, 2, 2, 519, 522, 3, 2, 2, 2, 520,
|
|
518, 3, 2, 2, 2, 520, 521, 3, 2, 2, 2, 521, 523, 3, 2, 2, 2, 522, 520,
|
|
3, 2, 2, 2, 523, 524, 7, 36, 2, 2, 524, 146, 3, 2, 2, 2, 525, 533, 7, 41,
|
|
2, 2, 526, 527, 7, 94, 2, 2, 527, 532, 11, 2, 2, 2, 528, 529, 7, 41, 2,
|
|
2, 529, 532, 7, 41, 2, 2, 530, 532, 10, 11, 2, 2, 531, 526, 3, 2, 2, 2,
|
|
531, 528, 3, 2, 2, 2, 531, 530, 3, 2, 2, 2, 532, 535, 3, 2, 2, 2, 533,
|
|
531, 3, 2, 2, 2, 533, 534, 3, 2, 2, 2, 534, 536, 3, 2, 2, 2, 535, 533,
|
|
3, 2, 2, 2, 536, 537, 7, 41, 2, 2, 537, 148, 3, 2, 2, 2, 538, 544, 7, 98,
|
|
2, 2, 539, 540, 7, 94, 2, 2, 540, 543, 7, 98, 2, 2, 541, 543, 10, 12, 2,
|
|
2, 542, 539, 3, 2, 2, 2, 542, 541, 3, 2, 2, 2, 543, 546, 3, 2, 2, 2, 544,
|
|
542, 3, 2, 2, 2, 544, 545, 3, 2, 2, 2, 545, 547, 3, 2, 2, 2, 546, 544,
|
|
3, 2, 2, 2, 547, 548, 7, 98, 2, 2, 548, 150, 3, 2, 2, 2, 549, 555, 7, 182,
|
|
2, 2, 550, 551, 7, 94, 2, 2, 551, 554, 7, 182, 2, 2, 552, 554, 10, 13,
|
|
2, 2, 553, 550, 3, 2, 2, 2, 553, 552, 3, 2, 2, 2, 554, 557, 3, 2, 2, 2,
|
|
555, 553, 3, 2, 2, 2, 555, 556, 3, 2, 2, 2, 556, 558, 3, 2, 2, 2, 557,
|
|
555, 3, 2, 2, 2, 558, 559, 7, 182, 2, 2, 559, 152, 3, 2, 2, 2, 560, 561,
|
|
7, 60, 2, 2, 561, 562, 7, 60, 2, 2, 562, 154, 3, 2, 2, 2, 34, 2, 161, 175,
|
|
183, 248, 254, 326, 356, 410, 429, 435, 440, 447, 452, 459, 464, 471, 474,
|
|
478, 480, 492, 495, 499, 504, 518, 520, 531, 533, 542, 544, 553, 555, 3,
|
|
2, 3, 2,
|
|
}
|
|
|
|
var lexerDeserializer = antlr.NewATNDeserializer(nil)
|
|
var lexerAtn = lexerDeserializer.DeserializeFromUInt16(serializedLexerAtn)
|
|
|
|
var lexerChannelNames = []string{
|
|
"DEFAULT_TOKEN_CHANNEL", "HIDDEN",
|
|
}
|
|
|
|
var lexerModeNames = []string{
|
|
"DEFAULT_MODE",
|
|
}
|
|
|
|
var lexerLiteralNames = []string{
|
|
"", "", "", "", "", "':'", "';'", "'.'", "','", "'['", "']'", "'('", "')'",
|
|
"'{'", "'}'", "'>'", "'<'", "'=='", "'>='", "'<='", "'!='", "'*'", "'/'",
|
|
"'%'", "'+'", "'-'", "'--'", "'++'", "", "", "", "'='", "'?'", "'!~'",
|
|
"'=~'", "'FOR'", "'RETURN'", "'DISTINCT'", "'FILTER'", "'SORT'", "'LIMIT'",
|
|
"'LET'", "'COLLECT'", "", "'NONE'", "'NULL'", "", "'USE'", "'INTO'", "'KEEP'",
|
|
"'WITH'", "'COUNT'", "'ALL'", "'ANY'", "'AGGREGATE'", "'LIKE'", "", "'IN'",
|
|
"'DO'", "'WHILE'", "'@'",
|
|
}
|
|
|
|
var lexerSymbolicNames = []string{
|
|
"", "MultiLineComment", "SingleLineComment", "WhiteSpaces", "LineTerminator",
|
|
"Colon", "SemiColon", "Dot", "Comma", "OpenBracket", "CloseBracket", "OpenParen",
|
|
"CloseParen", "OpenBrace", "CloseBrace", "Gt", "Lt", "Eq", "Gte", "Lte",
|
|
"Neq", "Multi", "Div", "Mod", "Plus", "Minus", "MinusMinus", "PlusPlus",
|
|
"And", "Or", "Range", "Assign", "QuestionMark", "RegexNotMatch", "RegexMatch",
|
|
"For", "Return", "Distinct", "Filter", "Sort", "Limit", "Let", "Collect",
|
|
"SortDirection", "None", "Null", "BooleanLiteral", "Use", "Into", "Keep",
|
|
"With", "Count", "All", "Any", "Aggregate", "Like", "Not", "In", "Do",
|
|
"While", "Param", "Identifier", "StringLiteral", "IntegerLiteral", "FloatLiteral",
|
|
"NamespaceSegment",
|
|
}
|
|
|
|
var lexerRuleNames = []string{
|
|
"MultiLineComment", "SingleLineComment", "WhiteSpaces", "LineTerminator",
|
|
"Colon", "SemiColon", "Dot", "Comma", "OpenBracket", "CloseBracket", "OpenParen",
|
|
"CloseParen", "OpenBrace", "CloseBrace", "Gt", "Lt", "Eq", "Gte", "Lte",
|
|
"Neq", "Multi", "Div", "Mod", "Plus", "Minus", "MinusMinus", "PlusPlus",
|
|
"And", "Or", "Range", "Assign", "QuestionMark", "RegexNotMatch", "RegexMatch",
|
|
"For", "Return", "Distinct", "Filter", "Sort", "Limit", "Let", "Collect",
|
|
"SortDirection", "None", "Null", "BooleanLiteral", "Use", "Into", "Keep",
|
|
"With", "Count", "All", "Any", "Aggregate", "Like", "Not", "In", "Do",
|
|
"While", "Param", "Identifier", "StringLiteral", "IntegerLiteral", "FloatLiteral",
|
|
"NamespaceSegment", "HexDigit", "DecimalIntegerLiteral", "ExponentPart",
|
|
"Letter", "Symbols", "Digit", "DQSring", "SQString", "BacktickString",
|
|
"TickString", "NamespaceSeparator",
|
|
}
|
|
|
|
type FqlLexer struct {
|
|
*antlr.BaseLexer
|
|
channelNames []string
|
|
modeNames []string
|
|
// TODO: EOF string
|
|
}
|
|
|
|
var lexerDecisionToDFA = make([]*antlr.DFA, len(lexerAtn.DecisionToState))
|
|
|
|
func init() {
|
|
for index, ds := range lexerAtn.DecisionToState {
|
|
lexerDecisionToDFA[index] = antlr.NewDFA(ds, index)
|
|
}
|
|
}
|
|
|
|
func NewFqlLexer(input antlr.CharStream) *FqlLexer {
|
|
|
|
l := new(FqlLexer)
|
|
|
|
l.BaseLexer = antlr.NewBaseLexer(input)
|
|
l.Interpreter = antlr.NewLexerATNSimulator(l, lexerAtn, lexerDecisionToDFA, antlr.NewPredictionContextCache())
|
|
|
|
l.channelNames = lexerChannelNames
|
|
l.modeNames = lexerModeNames
|
|
l.RuleNames = lexerRuleNames
|
|
l.LiteralNames = lexerLiteralNames
|
|
l.SymbolicNames = lexerSymbolicNames
|
|
l.GrammarFileName = "FqlLexer.g4"
|
|
// TODO: l.EOF = antlr.TokenEOF
|
|
|
|
return l
|
|
}
|
|
|
|
// FqlLexer tokens.
|
|
const (
|
|
FqlLexerMultiLineComment = 1
|
|
FqlLexerSingleLineComment = 2
|
|
FqlLexerWhiteSpaces = 3
|
|
FqlLexerLineTerminator = 4
|
|
FqlLexerColon = 5
|
|
FqlLexerSemiColon = 6
|
|
FqlLexerDot = 7
|
|
FqlLexerComma = 8
|
|
FqlLexerOpenBracket = 9
|
|
FqlLexerCloseBracket = 10
|
|
FqlLexerOpenParen = 11
|
|
FqlLexerCloseParen = 12
|
|
FqlLexerOpenBrace = 13
|
|
FqlLexerCloseBrace = 14
|
|
FqlLexerGt = 15
|
|
FqlLexerLt = 16
|
|
FqlLexerEq = 17
|
|
FqlLexerGte = 18
|
|
FqlLexerLte = 19
|
|
FqlLexerNeq = 20
|
|
FqlLexerMulti = 21
|
|
FqlLexerDiv = 22
|
|
FqlLexerMod = 23
|
|
FqlLexerPlus = 24
|
|
FqlLexerMinus = 25
|
|
FqlLexerMinusMinus = 26
|
|
FqlLexerPlusPlus = 27
|
|
FqlLexerAnd = 28
|
|
FqlLexerOr = 29
|
|
FqlLexerRange = 30
|
|
FqlLexerAssign = 31
|
|
FqlLexerQuestionMark = 32
|
|
FqlLexerRegexNotMatch = 33
|
|
FqlLexerRegexMatch = 34
|
|
FqlLexerFor = 35
|
|
FqlLexerReturn = 36
|
|
FqlLexerDistinct = 37
|
|
FqlLexerFilter = 38
|
|
FqlLexerSort = 39
|
|
FqlLexerLimit = 40
|
|
FqlLexerLet = 41
|
|
FqlLexerCollect = 42
|
|
FqlLexerSortDirection = 43
|
|
FqlLexerNone = 44
|
|
FqlLexerNull = 45
|
|
FqlLexerBooleanLiteral = 46
|
|
FqlLexerUse = 47
|
|
FqlLexerInto = 48
|
|
FqlLexerKeep = 49
|
|
FqlLexerWith = 50
|
|
FqlLexerCount = 51
|
|
FqlLexerAll = 52
|
|
FqlLexerAny = 53
|
|
FqlLexerAggregate = 54
|
|
FqlLexerLike = 55
|
|
FqlLexerNot = 56
|
|
FqlLexerIn = 57
|
|
FqlLexerDo = 58
|
|
FqlLexerWhile = 59
|
|
FqlLexerParam = 60
|
|
FqlLexerIdentifier = 61
|
|
FqlLexerStringLiteral = 62
|
|
FqlLexerIntegerLiteral = 63
|
|
FqlLexerFloatLiteral = 64
|
|
FqlLexerNamespaceSegment = 65
|
|
)
|