frostfs-sdk-go/netmap/parser/query_visitor.go
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

50 lines
1.5 KiB
Go

package parser // Query
import "github.com/antlr4-go/antlr/v4"
// A complete Visitor for a parse tree produced by Query.
type QueryVisitor interface {
antlr.ParseTreeVisitor
// Visit a parse tree produced by Query#policy.
VisitPolicy(ctx *PolicyContext) interface{}
// Visit a parse tree produced by Query#repStmt.
VisitRepStmt(ctx *RepStmtContext) interface{}
// Visit a parse tree produced by Query#cbfStmt.
VisitCbfStmt(ctx *CbfStmtContext) interface{}
// Visit a parse tree produced by Query#selectStmt.
VisitSelectStmt(ctx *SelectStmtContext) interface{}
// Visit a parse tree produced by Query#clause.
VisitClause(ctx *ClauseContext) interface{}
// Visit a parse tree produced by Query#filterExpr.
VisitFilterExpr(ctx *FilterExprContext) interface{}
// Visit a parse tree produced by Query#filterStmt.
VisitFilterStmt(ctx *FilterStmtContext) interface{}
// Visit a parse tree produced by Query#expr.
VisitExpr(ctx *ExprContext) interface{}
// Visit a parse tree produced by Query#filterKey.
VisitFilterKey(ctx *FilterKeyContext) interface{}
// Visit a parse tree produced by Query#filterValue.
VisitFilterValue(ctx *FilterValueContext) interface{}
// Visit a parse tree produced by Query#number.
VisitNumber(ctx *NumberContext) interface{}
// Visit a parse tree produced by Query#keyword.
VisitKeyword(ctx *KeywordContext) interface{}
// Visit a parse tree produced by Query#ident.
VisitIdent(ctx *IdentContext) interface{}
// Visit a parse tree produced by Query#identWC.
VisitIdentWC(ctx *IdentWCContext) interface{}
}