mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-18 21:52:28 +03:00
122 lines
8.9 KiB
Plaintext
122 lines
8.9 KiB
Plaintext
token literal names:
|
|
null
|
|
';'
|
|
'*'
|
|
'join'
|
|
'unique'
|
|
'count'
|
|
'.['
|
|
'||'
|
|
'/'
|
|
'%'
|
|
'<<'
|
|
'>>'
|
|
'&'
|
|
'&&'
|
|
'~'
|
|
'!'
|
|
'group_by'
|
|
'+'
|
|
'-'
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
'('
|
|
')'
|
|
'['
|
|
']'
|
|
','
|
|
'|'
|
|
':'
|
|
null
|
|
null
|
|
null
|
|
'<='
|
|
'<'
|
|
'>='
|
|
'>'
|
|
'!='
|
|
'=='
|
|
null
|
|
null
|
|
null
|
|
null
|
|
|
|
token symbolic names:
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
null
|
|
GROUP_BY
|
|
ORDER_ASC
|
|
ORDER_DESC
|
|
ORDER_BY
|
|
ALIAS_RESERVED
|
|
ARG
|
|
ID
|
|
WS
|
|
LPAR
|
|
RPAR
|
|
LBRA
|
|
RBRA
|
|
COMMA
|
|
PIPE
|
|
COLON
|
|
NULL
|
|
NN
|
|
NUMBER
|
|
LT_EQ
|
|
LT
|
|
GT_EQ
|
|
GT
|
|
NEQ
|
|
EQ
|
|
NAME
|
|
HANDLE
|
|
STRING
|
|
LINECOMMENT
|
|
|
|
rule names:
|
|
stmtList
|
|
query
|
|
segment
|
|
element
|
|
cmpr
|
|
funcElement
|
|
func
|
|
funcName
|
|
join
|
|
joinConstraint
|
|
uniqueFunc
|
|
countFunc
|
|
groupByTerm
|
|
groupBy
|
|
orderByTerm
|
|
orderBy
|
|
selector
|
|
selectorElement
|
|
alias
|
|
handleTable
|
|
handle
|
|
rowRange
|
|
expr
|
|
literal
|
|
unaryOperator
|
|
|
|
|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, 1, 13, 1, 13, 1, 13, 1, 13, 5, 13, 161, 8, 13, 10, 13, 12, 13, 164, 9, 13, 1, 13, 1, 13, 1, 14, 1, 14, 3, 14, 170, 8, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 177, 8, 15, 10, 15, 12, 15, 180, 9, 15, 1, 15, 1, 15, 1, 16, 1, 16, 3, 16, 186, 8, 16, 1, 17, 1, 17, 3, 17, 190, 8, 17, 1, 18, 1, 18, 1, 18, 3, 18, 195, 8, 18, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 211, 8, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 222, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 243, 8, 22, 1, 22, 1, 22, 1, 22, 1, 22, 5, 22, 249, 8, 22, 10, 22, 12, 22, 252, 9, 22, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 0, 1, 44, 25, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 0, 8, 1, 0, 34, 39, 1, 0, 17, 18, 1, 0, 21, 22, 2, 0, 2, 2, 8, 9, 1, 0, 10, 12, 1, 0, 34, 37, 2, 0, 31, 33, 42, 42, 2, 0, 14, 15, 17, 18, 279, 0, 53, 1, 0, 0, 0, 2, 74, 1, 0, 0, 0, 4, 82, 1, 0, 0, 0, 6, 101, 1, 0, 0, 0, 8, 103, 1, 0, 0, 0, 10, 105, 1, 0, 0, 0, 12, 109, 1, 0, 0, 0, 14, 124, 1, 0, 0, 0, 16, 126, 1, 0, 0, 0, 18, 136, 1, 0, 0, 0, 20, 138, 1, 0, 0, 0, 22, 140, 1, 0, 0, 0, 24, 153, 1, 0, 0, 0, 26, 155, 1, 0, 0, 0, 28, 167, 1, 0, 0, 0, 30, 171, 1, 0, 0, 0, 32, 183, 1, 0, 0, 0, 34, 187, 1, 0, 0, 0, 36, 194, 1, 0, 0, 0, 38, 196, 1, 0, 0, 0, 40, 199, 1, 0, 0, 0, 42, 201, 1, 0, 0, 0, 44, 221, 1, 0, 0, 0, 46, 253, 1, 0, 0, 0, 48, 255, 1, 0, 0, 0, 50, 52, 5, 1, 0, 0, 51, 50, 1, 0, 0, 0, 52, 55, 1, 0, 0, 0, 53, 51, 1, 0, 0, 0, 53, 54, 1, 0, 0, 0, 54, 56, 1, 0, 0, 0, 55, 53, 1, 0, 0, 0, 56, 65, 3, 2, 1, 0, 57, 59, 5, 1, 0, 0, 58, 57, 1, 0, 0, 0, 59, 60, 1, 0, 0, 0, 60, 58, 1, 0, 0, 0, 60, 61, 1, 0, 0, 0, 61, 62, 1, 0, 0, 0, 62, 64, 3, 2, 1, 0, 63, 58, 1, 0, 0, 0, 64, 67, 1, 0, 0, 0, 65, 63, 1, 0, 0, 0, 65, 66, 1, 0, 0, 0, 66, 71, 1, 0, 0, 0, 67, 65, 1, 0, 0, 0, 68, 70, 5, 1, 0, 0, 69, 68, 1, 0, 0, 0, 70, 73, 1, 0, 0, 0, 71, 69, 1, 0, 0, 0, 71, 72, 1, 0, 0, 0, 72, 1, 1, 0, 0, 0, 73, 71, 1, 0, 0, 0, 74, 79, 3, 4, 2, 0, 75, 76, 5, 29, 0, 0, 76, 78, 3, 4, 2, 0, 77, 75, 1, 0, 0, 0, 78, 81, 1, 0, 0, 0, 79, 77, 1, 0, 0, 0, 79, 80, 1, 0, 0, 0, 80, 3, 1, 0, 0, 0, 81, 79, 1, 0, 0, 0, 82, 87, 3, 6, 3, 0, 83, 84, 5, 28, 0, 0, 84, 86, 3, 6, 3, 0, 85, 83, 1, 0, 0, 0, 86, 89, 1, 0, 0, 0, 87, 85, 1, 0, 0, 0, 87, 88, 1, 0, 0, 0, 88, 5, 1, 0, 0, 0, 89, 87, 1, 0, 0, 0, 90, 102, 3, 38, 19, 0, 91, 102, 3, 40, 20, 0, 92, 102, 3, 34, 17, 0, 93, 102, 3, 16, 8, 0, 94, 102, 3, 26, 13, 0, 95, 102, 3, 30, 15, 0, 96, 102, 3, 42, 21, 0, 97, 102, 3, 20, 10, 0, 98, 102, 3, 22, 11, 0, 99, 102, 3, 10, 5, 0, 100, 102, 3, 44, 22, 0, 101, 90, 1, 0, 0, 0, 101, 91, 1, 0, 0, 0, 101, 92, 1, 0, 0, 0, 101, 93, 1, 0, 0, 0, 101, 94, 1, 0, 0, 0, 101, 95, 1, 0, 0, 0, 101, 96, 1, 0, 0, 0, 101, 97, 1, 0, 0, 0, 101, 98, 1, 0, 0, 0, 101, 99, 1, 0, 0, 0, 101, 100, 1, 0, 0, 0, 102, 7, 1, 0, 0, 0, 103, 104, 7, 0, 0, 0, 104, 9, 1, 0, 0, 0, 105, 107, 3, 12, 6, 0, 106, 108, 3, 36, 18, 0, 107, 106, 1, 0, 0, 0, 107, 108, 1, 0, 0, 0, 108, 11, 1, 0, 0, 0, 109, 110, 3, 14, 7, 0, 110, 120, 5, 24, 0, 0, 111, 116, 3, 44, 22, 0, 112, 113, 5, 28, 0, 0, 113, 115, 3, 44, 22, 0, 114, 112, 1, 0, 0, 0, 115, 118, 1, 0, 0, 0, 116, 114, 1, 0, 0, 0, 116, 117, 1, 0, 0, 0, 117, 121, 1, 0, 0, 0, 118, 116, 1, 0, 0, 0, 119, 121, 5, 2, 0, 0, 120, 111, 1, 0, 0, 0, 120, 119, 1, 0, 0, 0, 120, 121, 1, 0, 0, 0, 121, 122, 1, 0, 0, 0, 122, 123, 5, 25, 0, 0, 123, 13, 1, 0, 0, 0, 124, 125, 5, 22, 0, 0, 125, 15, 1, 0, 0, 0, 126, 127, 5, 3, 0, 0, 127, 128, 5, 24, 0, 0, 128, 129, 3, 18, 9, 0, 129, 130, 5, 25, 0, 0, 130, 17, 1, 0, 0, 0, 131, 132, 3, 32, 16, 0, 132, 133, 3, 8, 4, 0, 133, 134, 3, 32, 16, 0, 134, 137, 1, 0, 0, 0, 135, 137, 3, 32, 16, 0, 136, 131, 1, 0, 0, 0, 136, 135, 1, 0, 0, 0, 137, 19, 1, 0, 0, 0, 138, 139, 5, 4, 0, 0, 139, 21, 1, 0, 0, 0, 140, 146, 5, 5, 0, 0, 141, 143, 5, 24, 0, 0, 142, 144, 3, 32, 16, 0, 143, 142, 1, 0, 0, 0, 143, 144, 1, 0, 0, 0, 144, 145, 1, 0, 0, 0, 145, 147, 5, 25, 0, 0, 146, 141, 1, 0, 0, 0, 146, 147, 1, 0, 0, 0, 147, 149, 1, 0, 0, 0, 148, 150, 3, 36, 18, 0, 149, 148, 1, 0, 0, 0, 149, 150, 1, 0, 0, 0, 150, 23, 1, 0, 0, 0, 151, 154, 3, 32, 16, 0, 152, 154, 3, 12, 6, 0, 153, 151, 1, 0, 0, 0, 153, 152, 1, 0, 0, 0, 154, 25, 1, 0, 0, 0, 155, 156, 5, 16, 0, 0, 156, 157, 5, 24, 0, 0, 157, 162, 3, 24, 12, 0, 158, 159, 5, 28, 0, 0, 159, 161, 3, 24, 12, 0, 160, 158, 1, 0, 0, 0, 161, 164, 1, 0, 0, 0, 162, 160, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 1, 0, 0, 0, 164, 162, 1, 0, 0, 0, 165, 166, 5, 25, 0, 0, 166, 27, 1, 0, 0, 0, 167, 169, 3, 32, 16, 0, 168, 170, 7, 1, 0, 0, 169, 168, 1, 0, 0, 0, 169, 170, 1, 0, 0, 0, 170, 29, 1, 0, 0, 0, 171, 172, 5, 19, 0, 0, 172, 173, 5, 24, 0, 0, 173, 178, 3, 28, 14, 0, 174, 175, 5, 28, 0, 0, 175, 177, 3, 28, 14, 0, 176, 174, 1, 0, 0, 0, 177, 180, 1, 0, 0, 0, 178, 176, 1, 0, 0, 0, 178, 179, 1, 0, 0, 0, 179, 181, 1, 0, 0, 0, 180, 178, 1, 0, 0, 0, 181, 182, 5, 25, 0, 0, 182, 31, 1, 0, 0, 0, 183, 185, 5, 40, 0, 0, 184, 186, 5, 40, 0, 0, 185, 184, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 33, 1, 0, 0, 0, 187, 189, 3, 32, 16, 0, 188, 190, 3, 36, 18, 0, 189, 188, 1, 0, 0, 0, 189, 190, 1, 0, 0, 0, 190, 35, 1, 0, 0, 0, 191, 195, 5, 20, 0, 0, 192, 193, 5, 30, 0, 0, 193, 195, 7, 2, 0, 0, 194, 191, 1, 0, 0, 0, 194, 192, 1, 0, 0, 0, 195, 37, 1, 0, 0, 0, 196, 197, 5, 41, 0, 0, 197, 198, 5, 40, 0, 0, 198, 39, 1, 0, 0, 0, 199, 200, 5, 41, 0, 0, 200, 41, 1, 0, 0, 0, 201, 210, 5, 6, 0, 0, 202, 203, 5, 32, 0, 0, 203, 204, 5, 30, 0, 0, 204, 211, 5, 32, 0, 0, 205, 206, 5, 32, 0, 0, 206, 211, 5, 30, 0, 0, 207, 208, 5, 30, 0, 0, 208, 211, 5, 32, 0, 0, 209, 211, 5, 32, 0, 0, 210, 202, 1, 0, 0, 0, 210, 205, 1, 0, 0, 0, 210, 207, 1, 0, 0, 0, 210, 209, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 213, 5, 27, 0, 0, 213, 43, 1, 0, 0, 0, 214, 215, 6, 22, -1, 0, 215, 222, 3, 32, 16, 0, 216, 222, 3, 46, 23, 0, 217, 218, 3, 48, 24, 0, 218, 219, 3, 44, 22, 9, 219, 222, 1, 0, 0, 0, 220, 222, 3, 12, 6, 0, 221, 214, 1, 0, 0, 0, 221, 216, 1, 0, 0, 0, 221, 217, 1, 0, 0, 0, 221, 220, 1, 0, 0, 0, 222, 250, 1, 0, 0, 0, 223, 224, 10, 8, 0, 0, 224, 225, 5, 7, 0, 0, 225, 249, 3, 44, 22, 9, 226, 227, 10, 7, 0, 0, 227, 228, 7, 3, 0, 0, 228, 249, 3, 44, 22, 8, 229, 230, 10, 6, 0, 0, 230, 231, 7, 1, 0, 0, 231, 249, 3, 44, 22, 7, 232, 233, 10, 5, 0, 0, 233, 234, 7, 4, 0, 0, 234, 249, 3, 44, 22, 6, 235, 236, 10, 4, 0, 0, 236, 237, 7, 5, 0, 0, 237, 249, 3, 44, 22, 5, 238, 242, 10, 3, 0, 0, 239, 243, 5, 39, 0, 0, 240, 243, 5, 38, 0, 0, 241, 243, 1, 0, 0, 0, 242, 239, 1, 0, 0, 0, 242, 240, 1, 0, 0, 0, 242, 241, 1, 0, 0, 0, 243, 244, 1, 0, 0, 0, 244, 249, 3, 44, 22, 4, 245, 246, 10, 2, 0, 0, 246, 247, 5, 13, 0, 0, 247, 249, 3, 44, 22, 3, 248, 223, 1, 0, 0, 0, 248, 226, 1, 0, 0, 0, 248, 229, 1, 0, 0, 0, 248, 232, 1, 0, 0, 0, 248, 235, 1, 0, 0, 0, 248, 238, 1, 0, 0, 0, 248, 245, 1, 0, 0, 0, 249, 252, 1, 0, 0, 0, 250, 248, 1, 0, 0, 0, 250, 251, 1, 0, 0, 0, 251, 45, 1, 0, 0, 0, 252, 250, 1, 0, 0, 0, 253, 254, 7, 6, 0, 0, 254, 47, 1, 0, 0, 0, 255, 256, 7, 7, 0, 0, 256, 49, 1, 0, 0, 0, 26, 53, 60, 65, 71, 79, 87, 101, 107, 116, 120, 136, 143, 146, 149, 153, 162, 169, 178, 185, 189, 194, 210, 221, 242, 248, 250] |