frostfs-sdk-go/netmap/parser/Query.tokens
Airat Arifullin 4f48f6c9e0 [#78] netmap: Add new keywords NOT and UNIQUE
* Add the rule for NOT operation to the policy parser grammar
* Regenerate query parse
* Implement NOT in filter
* Add unit-tests

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
2023-06-02 17:47:20 +03:00

39 lines
350 B
Text

NOT_OP=1
AND_OP=2
OR_OP=3
SIMPLE_OP=4
REP=5
IN=6
AS=7
CBF=8
SELECT=9
FROM=10
FILTER=11
WILDCARD=12
CLAUSE_SAME=13
CLAUSE_DISTINCT=14
L_PAREN=15
R_PAREN=16
AT=17
IDENT=18
NUMBER1=19
ZERO=20
STRING=21
WS=22
'NOT'=1
'AND'=2
'OR'=3
'REP'=5
'IN'=6
'AS'=7
'CBF'=8
'SELECT'=9
'FROM'=10
'FILTER'=11
'*'=12
'SAME'=13
'DISTINCT'=14
'('=15
')'=16
'@'=17
'0'=20