Documentation ¶
Index ¶
- Constants
- func SLQLexerInit()
- func SLQParserInit()
- type AliasContext
- func (s *AliasContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *AliasContext) COLON() antlr.TerminalNode
- func (s *AliasContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AliasContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AliasContext) GetParser() antlr.Parser
- func (s *AliasContext) GetRuleContext() antlr.RuleContext
- func (s *AliasContext) ID() antlr.TerminalNode
- func (*AliasContext) IsAliasContext()
- func (s *AliasContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaseSLQListener
- func (s *BaseSLQListener) EnterAlias(ctx *AliasContext)
- func (s *BaseSLQListener) EnterCmpr(ctx *CmprContext)
- func (s *BaseSLQListener) EnterDsElement(ctx *DsElementContext)
- func (s *BaseSLQListener) EnterDsTblElement(ctx *DsTblElementContext)
- func (s *BaseSLQListener) EnterElement(ctx *ElementContext)
- func (s *BaseSLQListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseSLQListener) EnterExpr(ctx *ExprContext)
- func (s *BaseSLQListener) EnterFn(ctx *FnContext)
- func (s *BaseSLQListener) EnterFnElement(ctx *FnElementContext)
- func (s *BaseSLQListener) EnterFnName(ctx *FnNameContext)
- func (s *BaseSLQListener) EnterGroup(ctx *GroupContext)
- func (s *BaseSLQListener) EnterJoin(ctx *JoinContext)
- func (s *BaseSLQListener) EnterJoinConstraint(ctx *JoinConstraintContext)
- func (s *BaseSLQListener) EnterLiteral(ctx *LiteralContext)
- func (s *BaseSLQListener) EnterQuery(ctx *QueryContext)
- func (s *BaseSLQListener) EnterRowRange(ctx *RowRangeContext)
- func (s *BaseSLQListener) EnterSegment(ctx *SegmentContext)
- func (s *BaseSLQListener) EnterSelElement(ctx *SelElementContext)
- func (s *BaseSLQListener) EnterStmtList(ctx *StmtListContext)
- func (s *BaseSLQListener) EnterUnaryOperator(ctx *UnaryOperatorContext)
- func (s *BaseSLQListener) ExitAlias(ctx *AliasContext)
- func (s *BaseSLQListener) ExitCmpr(ctx *CmprContext)
- func (s *BaseSLQListener) ExitDsElement(ctx *DsElementContext)
- func (s *BaseSLQListener) ExitDsTblElement(ctx *DsTblElementContext)
- func (s *BaseSLQListener) ExitElement(ctx *ElementContext)
- func (s *BaseSLQListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseSLQListener) ExitExpr(ctx *ExprContext)
- func (s *BaseSLQListener) ExitFn(ctx *FnContext)
- func (s *BaseSLQListener) ExitFnElement(ctx *FnElementContext)
- func (s *BaseSLQListener) ExitFnName(ctx *FnNameContext)
- func (s *BaseSLQListener) ExitGroup(ctx *GroupContext)
- func (s *BaseSLQListener) ExitJoin(ctx *JoinContext)
- func (s *BaseSLQListener) ExitJoinConstraint(ctx *JoinConstraintContext)
- func (s *BaseSLQListener) ExitLiteral(ctx *LiteralContext)
- func (s *BaseSLQListener) ExitQuery(ctx *QueryContext)
- func (s *BaseSLQListener) ExitRowRange(ctx *RowRangeContext)
- func (s *BaseSLQListener) ExitSegment(ctx *SegmentContext)
- func (s *BaseSLQListener) ExitSelElement(ctx *SelElementContext)
- func (s *BaseSLQListener) ExitStmtList(ctx *StmtListContext)
- func (s *BaseSLQListener) ExitUnaryOperator(ctx *UnaryOperatorContext)
- func (s *BaseSLQListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseSLQListener) VisitTerminal(node antlr.TerminalNode)
- type BaseSLQVisitor
- func (v *BaseSLQVisitor) VisitAlias(ctx *AliasContext) interface{}
- func (v *BaseSLQVisitor) VisitCmpr(ctx *CmprContext) interface{}
- func (v *BaseSLQVisitor) VisitDsElement(ctx *DsElementContext) interface{}
- func (v *BaseSLQVisitor) VisitDsTblElement(ctx *DsTblElementContext) interface{}
- func (v *BaseSLQVisitor) VisitElement(ctx *ElementContext) interface{}
- func (v *BaseSLQVisitor) VisitExpr(ctx *ExprContext) interface{}
- func (v *BaseSLQVisitor) VisitFn(ctx *FnContext) interface{}
- func (v *BaseSLQVisitor) VisitFnElement(ctx *FnElementContext) interface{}
- func (v *BaseSLQVisitor) VisitFnName(ctx *FnNameContext) interface{}
- func (v *BaseSLQVisitor) VisitGroup(ctx *GroupContext) interface{}
- func (v *BaseSLQVisitor) VisitJoin(ctx *JoinContext) interface{}
- func (v *BaseSLQVisitor) VisitJoinConstraint(ctx *JoinConstraintContext) interface{}
- func (v *BaseSLQVisitor) VisitLiteral(ctx *LiteralContext) interface{}
- func (v *BaseSLQVisitor) VisitQuery(ctx *QueryContext) interface{}
- func (v *BaseSLQVisitor) VisitRowRange(ctx *RowRangeContext) interface{}
- func (v *BaseSLQVisitor) VisitSegment(ctx *SegmentContext) interface{}
- func (v *BaseSLQVisitor) VisitSelElement(ctx *SelElementContext) interface{}
- func (v *BaseSLQVisitor) VisitStmtList(ctx *StmtListContext) interface{}
- func (v *BaseSLQVisitor) VisitUnaryOperator(ctx *UnaryOperatorContext) interface{}
- type CmprContext
- func (s *CmprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *CmprContext) EQ() antlr.TerminalNode
- func (s *CmprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CmprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CmprContext) GT() antlr.TerminalNode
- func (s *CmprContext) GT_EQ() antlr.TerminalNode
- func (s *CmprContext) GetParser() antlr.Parser
- func (s *CmprContext) GetRuleContext() antlr.RuleContext
- func (*CmprContext) IsCmprContext()
- func (s *CmprContext) LT() antlr.TerminalNode
- func (s *CmprContext) LT_EQ() antlr.TerminalNode
- func (s *CmprContext) NEQ() antlr.TerminalNode
- func (s *CmprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DsElementContext
- func (s *DsElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *DsElementContext) DATASOURCE() antlr.TerminalNode
- func (s *DsElementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DsElementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DsElementContext) GetParser() antlr.Parser
- func (s *DsElementContext) GetRuleContext() antlr.RuleContext
- func (*DsElementContext) IsDsElementContext()
- func (s *DsElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DsTblElementContext
- func (s *DsTblElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *DsTblElementContext) DATASOURCE() antlr.TerminalNode
- func (s *DsTblElementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DsTblElementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DsTblElementContext) GetParser() antlr.Parser
- func (s *DsTblElementContext) GetRuleContext() antlr.RuleContext
- func (*DsTblElementContext) IsDsTblElementContext()
- func (s *DsTblElementContext) SEL() antlr.TerminalNode
- func (s *DsTblElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ElementContext
- func (s *ElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ElementContext) DsElement() IDsElementContext
- func (s *ElementContext) DsTblElement() IDsTblElementContext
- func (s *ElementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ElementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ElementContext) Expr() IExprContext
- func (s *ElementContext) FnElement() IFnElementContext
- func (s *ElementContext) GetParser() antlr.Parser
- func (s *ElementContext) GetRuleContext() antlr.RuleContext
- func (s *ElementContext) Group() IGroupContext
- func (*ElementContext) IsElementContext()
- func (s *ElementContext) Join() IJoinContext
- func (s *ElementContext) RowRange() IRowRangeContext
- func (s *ElementContext) SelElement() ISelElementContext
- func (s *ElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExprContext
- func (s *ExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ExprContext) AllExpr() []IExprContext
- func (s *ExprContext) EQ() antlr.TerminalNode
- func (s *ExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ExprContext) Expr(i int) IExprContext
- func (s *ExprContext) Fn() IFnContext
- func (s *ExprContext) GT() antlr.TerminalNode
- func (s *ExprContext) GT_EQ() antlr.TerminalNode
- func (s *ExprContext) GetParser() antlr.Parser
- func (s *ExprContext) GetRuleContext() antlr.RuleContext
- func (*ExprContext) IsExprContext()
- func (s *ExprContext) LT() antlr.TerminalNode
- func (s *ExprContext) LT_EQ() antlr.TerminalNode
- func (s *ExprContext) Literal() ILiteralContext
- func (s *ExprContext) NEQ() antlr.TerminalNode
- func (s *ExprContext) SEL() antlr.TerminalNode
- func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ExprContext) UnaryOperator() IUnaryOperatorContext
- type FnContext
- func (s *FnContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FnContext) AllCOMMA() []antlr.TerminalNode
- func (s *FnContext) AllExpr() []IExprContext
- func (s *FnContext) COMMA(i int) antlr.TerminalNode
- func (s *FnContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FnContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FnContext) Expr(i int) IExprContext
- func (s *FnContext) FnName() IFnNameContext
- func (s *FnContext) GetParser() antlr.Parser
- func (s *FnContext) GetRuleContext() antlr.RuleContext
- func (*FnContext) IsFnContext()
- func (s *FnContext) LPAR() antlr.TerminalNode
- func (s *FnContext) RPAR() antlr.TerminalNode
- func (s *FnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FnElementContext
- func (s *FnElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FnElementContext) Alias() IAliasContext
- func (s *FnElementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FnElementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FnElementContext) Fn() IFnContext
- func (s *FnElementContext) GetParser() antlr.Parser
- func (s *FnElementContext) GetRuleContext() antlr.RuleContext
- func (*FnElementContext) IsFnElementContext()
- func (s *FnElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FnNameContext
- func (s *FnNameContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FnNameContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FnNameContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FnNameContext) GetParser() antlr.Parser
- func (s *FnNameContext) GetRuleContext() antlr.RuleContext
- func (*FnNameContext) IsFnNameContext()
- func (s *FnNameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type GroupContext
- func (s *GroupContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *GroupContext) AllCOMMA() []antlr.TerminalNode
- func (s *GroupContext) AllSEL() []antlr.TerminalNode
- func (s *GroupContext) COMMA(i int) antlr.TerminalNode
- func (s *GroupContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GroupContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GroupContext) GetParser() antlr.Parser
- func (s *GroupContext) GetRuleContext() antlr.RuleContext
- func (*GroupContext) IsGroupContext()
- func (s *GroupContext) LPAR() antlr.TerminalNode
- func (s *GroupContext) RPAR() antlr.TerminalNode
- func (s *GroupContext) SEL(i int) antlr.TerminalNode
- func (s *GroupContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IAliasContext
- type ICmprContext
- type IDsElementContext
- type IDsTblElementContext
- type IElementContext
- type IExprContext
- type IFnContext
- type IFnElementContext
- type IFnNameContext
- type IGroupContext
- type IJoinConstraintContext
- type IJoinContext
- type ILiteralContext
- type IQueryContext
- type IRowRangeContext
- type ISegmentContext
- type ISelElementContext
- type IStmtListContext
- type IUnaryOperatorContext
- type JoinConstraintContext
- func (s *JoinConstraintContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *JoinConstraintContext) AllSEL() []antlr.TerminalNode
- func (s *JoinConstraintContext) Cmpr() ICmprContext
- func (s *JoinConstraintContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *JoinConstraintContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *JoinConstraintContext) GetParser() antlr.Parser
- func (s *JoinConstraintContext) GetRuleContext() antlr.RuleContext
- func (*JoinConstraintContext) IsJoinConstraintContext()
- func (s *JoinConstraintContext) SEL(i int) antlr.TerminalNode
- func (s *JoinConstraintContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type JoinContext
- func (s *JoinContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *JoinContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *JoinContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *JoinContext) GetParser() antlr.Parser
- func (s *JoinContext) GetRuleContext() antlr.RuleContext
- func (*JoinContext) IsJoinContext()
- func (s *JoinContext) JoinConstraint() IJoinConstraintContext
- func (s *JoinContext) LPAR() antlr.TerminalNode
- func (s *JoinContext) RPAR() antlr.TerminalNode
- func (s *JoinContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LiteralContext
- func (s *LiteralContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *LiteralContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LiteralContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LiteralContext) GetParser() antlr.Parser
- func (s *LiteralContext) GetRuleContext() antlr.RuleContext
- func (*LiteralContext) IsLiteralContext()
- func (s *LiteralContext) NN() antlr.TerminalNode
- func (s *LiteralContext) NULL() antlr.TerminalNode
- func (s *LiteralContext) NUMBER() antlr.TerminalNode
- func (s *LiteralContext) STRING() antlr.TerminalNode
- func (s *LiteralContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type QueryContext
- func (s *QueryContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *QueryContext) AllPIPE() []antlr.TerminalNode
- func (s *QueryContext) AllSegment() []ISegmentContext
- func (s *QueryContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *QueryContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *QueryContext) GetParser() antlr.Parser
- func (s *QueryContext) GetRuleContext() antlr.RuleContext
- func (*QueryContext) IsQueryContext()
- func (s *QueryContext) PIPE(i int) antlr.TerminalNode
- func (s *QueryContext) Segment(i int) ISegmentContext
- func (s *QueryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RowRangeContext
- func (s *RowRangeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *RowRangeContext) AllNN() []antlr.TerminalNode
- func (s *RowRangeContext) COLON() antlr.TerminalNode
- func (s *RowRangeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RowRangeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RowRangeContext) GetParser() antlr.Parser
- func (s *RowRangeContext) GetRuleContext() antlr.RuleContext
- func (*RowRangeContext) IsRowRangeContext()
- func (s *RowRangeContext) NN(i int) antlr.TerminalNode
- func (s *RowRangeContext) RBRA() antlr.TerminalNode
- func (s *RowRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SLQLexer
- type SLQListener
- type SLQParser
- func (p *SLQParser) Alias() (localctx IAliasContext)
- func (p *SLQParser) Cmpr() (localctx ICmprContext)
- func (p *SLQParser) DsElement() (localctx IDsElementContext)
- func (p *SLQParser) DsTblElement() (localctx IDsTblElementContext)
- func (p *SLQParser) Element() (localctx IElementContext)
- func (p *SLQParser) Expr() (localctx IExprContext)
- func (p *SLQParser) Expr_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *SLQParser) Fn() (localctx IFnContext)
- func (p *SLQParser) FnElement() (localctx IFnElementContext)
- func (p *SLQParser) FnName() (localctx IFnNameContext)
- func (p *SLQParser) Group() (localctx IGroupContext)
- func (p *SLQParser) Join() (localctx IJoinContext)
- func (p *SLQParser) JoinConstraint() (localctx IJoinConstraintContext)
- func (p *SLQParser) Literal() (localctx ILiteralContext)
- func (p *SLQParser) Query() (localctx IQueryContext)
- func (p *SLQParser) RowRange() (localctx IRowRangeContext)
- func (p *SLQParser) Segment() (localctx ISegmentContext)
- func (p *SLQParser) SelElement() (localctx ISelElementContext)
- func (p *SLQParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *SLQParser) StmtList() (localctx IStmtListContext)
- func (p *SLQParser) UnaryOperator() (localctx IUnaryOperatorContext)
- type SLQVisitor
- type SegmentContext
- func (s *SegmentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SegmentContext) AllCOMMA() []antlr.TerminalNode
- func (s *SegmentContext) AllElement() []IElementContext
- func (s *SegmentContext) COMMA(i int) antlr.TerminalNode
- func (s *SegmentContext) Element(i int) IElementContext
- func (s *SegmentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SegmentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SegmentContext) GetParser() antlr.Parser
- func (s *SegmentContext) GetRuleContext() antlr.RuleContext
- func (*SegmentContext) IsSegmentContext()
- func (s *SegmentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SelElementContext
- func (s *SelElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SelElementContext) Alias() IAliasContext
- func (s *SelElementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SelElementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SelElementContext) GetParser() antlr.Parser
- func (s *SelElementContext) GetRuleContext() antlr.RuleContext
- func (*SelElementContext) IsSelElementContext()
- func (s *SelElementContext) SEL() antlr.TerminalNode
- func (s *SelElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StmtListContext
- func (s *StmtListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *StmtListContext) AllQuery() []IQueryContext
- func (s *StmtListContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StmtListContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StmtListContext) GetParser() antlr.Parser
- func (s *StmtListContext) GetRuleContext() antlr.RuleContext
- func (*StmtListContext) IsStmtListContext()
- func (s *StmtListContext) Query(i int) IQueryContext
- func (s *StmtListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type UnaryOperatorContext
- func (s *UnaryOperatorContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *UnaryOperatorContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *UnaryOperatorContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *UnaryOperatorContext) GetParser() antlr.Parser
- func (s *UnaryOperatorContext) GetRuleContext() antlr.RuleContext
- func (*UnaryOperatorContext) IsUnaryOperatorContext()
- func (s *UnaryOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
const ( SLQLexerT__0 = 1 SLQLexerT__1 = 2 SLQLexerT__2 = 3 SLQLexerT__3 = 4 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 )
SLQLexer tokens.
const ( SLQParserEOF = antlr.TokenEOF SLQParserT__0 = 1 SLQParserT__1 = 2 SLQParserT__2 = 3 SLQParserT__3 = 4 SLQParserT__4 = 5 SLQParserT__5 = 6 SLQParserT__6 = 7 SLQParserT__7 = 8 SLQParserT__8 = 9 SLQParserT__9 = 10 SLQParserT__10 = 11 SLQParserT__11 = 12 SLQParserT__12 = 13 SLQParserT__13 = 14 SLQParserT__14 = 15 SLQParserT__15 = 16 SLQParserT__16 = 17 SLQParserT__17 = 18 SLQParserT__18 = 19 SLQParserT__19 = 20 SLQParserT__20 = 21 SLQParserT__21 = 22 SLQParserT__22 = 23 SLQParserT__23 = 24 SLQParserT__24 = 25 SLQParserT__25 = 26 SLQParserT__26 = 27 SLQParserT__27 = 28 SLQParserID = 29 SLQParserWS = 30 SLQParserLPAR = 31 SLQParserRPAR = 32 SLQParserLBRA = 33 SLQParserRBRA = 34 SLQParserCOMMA = 35 SLQParserPIPE = 36 SLQParserCOLON = 37 SLQParserNULL = 38 SLQParserNN = 39 SLQParserNUMBER = 40 SLQParserLT_EQ = 41 SLQParserLT = 42 SLQParserGT_EQ = 43 SLQParserGT = 44 SLQParserNEQ = 45 SLQParserEQ = 46 SLQParserSEL = 47 SLQParserDATASOURCE = 48 SLQParserSTRING = 49 SLQParserLINECOMMENT = 50 )
SLQParser tokens.
const ( SLQParserRULE_stmtList = 0 SLQParserRULE_query = 1 SLQParserRULE_segment = 2 SLQParserRULE_element = 3 SLQParserRULE_cmpr = 4 SLQParserRULE_fn = 5 SLQParserRULE_fnElement = 6 SLQParserRULE_join = 7 SLQParserRULE_joinConstraint = 8 SLQParserRULE_group = 9 SLQParserRULE_alias = 10 SLQParserRULE_selElement = 11 SLQParserRULE_dsTblElement = 12 SLQParserRULE_dsElement = 13 SLQParserRULE_rowRange = 14 SLQParserRULE_fnName = 15 SLQParserRULE_expr = 16 SLQParserRULE_literal = 17 SLQParserRULE_unaryOperator = 18 )
SLQParser rules.
Variables ¶
This section is empty.
Functions ¶
func SLQLexerInit ¶ added in v0.17.0
func SLQLexerInit()
SLQLexerInit initializes any static state used to implement SLQLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewSLQLexer(). You can call this function if you wish to initialize the static state ahead of time.
func SLQParserInit ¶ added in v0.17.0
func SLQParserInit()
SLQParserInit initializes any static state used to implement SLQParser. By default the static state used to implement the parser is lazily initialized during the first call to NewSLQParser(). You can call this function if you wish to initialize the static state ahead of time.
Types ¶
type AliasContext ¶ added in v0.25.0
type AliasContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAliasContext ¶ added in v0.25.0
func NewAliasContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AliasContext
func NewEmptyAliasContext ¶ added in v0.25.0
func NewEmptyAliasContext() *AliasContext
func (*AliasContext) Accept ¶ added in v0.25.0
func (s *AliasContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*AliasContext) COLON ¶ added in v0.25.0
func (s *AliasContext) COLON() antlr.TerminalNode
func (*AliasContext) EnterRule ¶ added in v0.25.0
func (s *AliasContext) EnterRule(listener antlr.ParseTreeListener)
func (*AliasContext) ExitRule ¶ added in v0.25.0
func (s *AliasContext) ExitRule(listener antlr.ParseTreeListener)
func (*AliasContext) GetParser ¶ added in v0.25.0
func (s *AliasContext) GetParser() antlr.Parser
func (*AliasContext) GetRuleContext ¶ added in v0.25.0
func (s *AliasContext) GetRuleContext() antlr.RuleContext
func (*AliasContext) ID ¶ added in v0.25.0
func (s *AliasContext) ID() antlr.TerminalNode
func (*AliasContext) IsAliasContext ¶ added in v0.25.0
func (*AliasContext) IsAliasContext()
func (*AliasContext) ToStringTree ¶ added in v0.25.0
func (s *AliasContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaseSLQListener ¶
type BaseSLQListener struct{}
BaseSLQListener is a complete listener for a parse tree produced by SLQParser.
func (*BaseSLQListener) EnterAlias ¶ added in v0.25.0
func (s *BaseSLQListener) EnterAlias(ctx *AliasContext)
EnterAlias is called when production alias is entered.
func (*BaseSLQListener) EnterCmpr ¶
func (s *BaseSLQListener) EnterCmpr(ctx *CmprContext)
EnterCmpr is called when production cmpr is entered.
func (*BaseSLQListener) EnterDsElement ¶
func (s *BaseSLQListener) EnterDsElement(ctx *DsElementContext)
EnterDsElement is called when production dsElement is entered.
func (*BaseSLQListener) EnterDsTblElement ¶
func (s *BaseSLQListener) EnterDsTblElement(ctx *DsTblElementContext)
EnterDsTblElement is called when production dsTblElement is entered.
func (*BaseSLQListener) EnterElement ¶
func (s *BaseSLQListener) EnterElement(ctx *ElementContext)
EnterElement is called when production element is entered.
func (*BaseSLQListener) EnterEveryRule ¶
func (s *BaseSLQListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseSLQListener) EnterExpr ¶
func (s *BaseSLQListener) EnterExpr(ctx *ExprContext)
EnterExpr is called when production expr is entered.
func (*BaseSLQListener) EnterFn ¶
func (s *BaseSLQListener) EnterFn(ctx *FnContext)
EnterFn is called when production fn is entered.
func (*BaseSLQListener) EnterFnElement ¶ added in v0.25.0
func (s *BaseSLQListener) EnterFnElement(ctx *FnElementContext)
EnterFnElement is called when production fnElement is entered.
func (*BaseSLQListener) EnterFnName ¶
func (s *BaseSLQListener) EnterFnName(ctx *FnNameContext)
EnterFnName is called when production fnName is entered.
func (*BaseSLQListener) EnterGroup ¶
func (s *BaseSLQListener) EnterGroup(ctx *GroupContext)
EnterGroup is called when production group is entered.
func (*BaseSLQListener) EnterJoin ¶
func (s *BaseSLQListener) EnterJoin(ctx *JoinContext)
EnterJoin is called when production join is entered.
func (*BaseSLQListener) EnterJoinConstraint ¶
func (s *BaseSLQListener) EnterJoinConstraint(ctx *JoinConstraintContext)
EnterJoinConstraint is called when production joinConstraint is entered.
func (*BaseSLQListener) EnterLiteral ¶
func (s *BaseSLQListener) EnterLiteral(ctx *LiteralContext)
EnterLiteral is called when production literal is entered.
func (*BaseSLQListener) EnterQuery ¶
func (s *BaseSLQListener) EnterQuery(ctx *QueryContext)
EnterQuery is called when production query is entered.
func (*BaseSLQListener) EnterRowRange ¶
func (s *BaseSLQListener) EnterRowRange(ctx *RowRangeContext)
EnterRowRange is called when production rowRange is entered.
func (*BaseSLQListener) EnterSegment ¶
func (s *BaseSLQListener) EnterSegment(ctx *SegmentContext)
EnterSegment is called when production segment is entered.
func (*BaseSLQListener) EnterSelElement ¶
func (s *BaseSLQListener) EnterSelElement(ctx *SelElementContext)
EnterSelElement is called when production selElement is entered.
func (*BaseSLQListener) EnterStmtList ¶
func (s *BaseSLQListener) EnterStmtList(ctx *StmtListContext)
EnterStmtList is called when production stmtList is entered.
func (*BaseSLQListener) EnterUnaryOperator ¶
func (s *BaseSLQListener) EnterUnaryOperator(ctx *UnaryOperatorContext)
EnterUnaryOperator is called when production unaryOperator is entered.
func (*BaseSLQListener) ExitAlias ¶ added in v0.25.0
func (s *BaseSLQListener) ExitAlias(ctx *AliasContext)
ExitAlias is called when production alias is exited.
func (*BaseSLQListener) ExitCmpr ¶
func (s *BaseSLQListener) ExitCmpr(ctx *CmprContext)
ExitCmpr is called when production cmpr is exited.
func (*BaseSLQListener) ExitDsElement ¶
func (s *BaseSLQListener) ExitDsElement(ctx *DsElementContext)
ExitDsElement is called when production dsElement is exited.
func (*BaseSLQListener) ExitDsTblElement ¶
func (s *BaseSLQListener) ExitDsTblElement(ctx *DsTblElementContext)
ExitDsTblElement is called when production dsTblElement is exited.
func (*BaseSLQListener) ExitElement ¶
func (s *BaseSLQListener) ExitElement(ctx *ElementContext)
ExitElement is called when production element is exited.
func (*BaseSLQListener) ExitEveryRule ¶
func (s *BaseSLQListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseSLQListener) ExitExpr ¶
func (s *BaseSLQListener) ExitExpr(ctx *ExprContext)
ExitExpr is called when production expr is exited.
func (*BaseSLQListener) ExitFn ¶
func (s *BaseSLQListener) ExitFn(ctx *FnContext)
ExitFn is called when production fn is exited.
func (*BaseSLQListener) ExitFnElement ¶ added in v0.25.0
func (s *BaseSLQListener) ExitFnElement(ctx *FnElementContext)
ExitFnElement is called when production fnElement is exited.
func (*BaseSLQListener) ExitFnName ¶
func (s *BaseSLQListener) ExitFnName(ctx *FnNameContext)
ExitFnName is called when production fnName is exited.
func (*BaseSLQListener) ExitGroup ¶
func (s *BaseSLQListener) ExitGroup(ctx *GroupContext)
ExitGroup is called when production group is exited.
func (*BaseSLQListener) ExitJoin ¶
func (s *BaseSLQListener) ExitJoin(ctx *JoinContext)
ExitJoin is called when production join is exited.
func (*BaseSLQListener) ExitJoinConstraint ¶
func (s *BaseSLQListener) ExitJoinConstraint(ctx *JoinConstraintContext)
ExitJoinConstraint is called when production joinConstraint is exited.
func (*BaseSLQListener) ExitLiteral ¶
func (s *BaseSLQListener) ExitLiteral(ctx *LiteralContext)
ExitLiteral is called when production literal is exited.
func (*BaseSLQListener) ExitQuery ¶
func (s *BaseSLQListener) ExitQuery(ctx *QueryContext)
ExitQuery is called when production query is exited.
func (*BaseSLQListener) ExitRowRange ¶
func (s *BaseSLQListener) ExitRowRange(ctx *RowRangeContext)
ExitRowRange is called when production rowRange is exited.
func (*BaseSLQListener) ExitSegment ¶
func (s *BaseSLQListener) ExitSegment(ctx *SegmentContext)
ExitSegment is called when production segment is exited.
func (*BaseSLQListener) ExitSelElement ¶
func (s *BaseSLQListener) ExitSelElement(ctx *SelElementContext)
ExitSelElement is called when production selElement is exited.
func (*BaseSLQListener) ExitStmtList ¶
func (s *BaseSLQListener) ExitStmtList(ctx *StmtListContext)
ExitStmtList is called when production stmtList is exited.
func (*BaseSLQListener) ExitUnaryOperator ¶
func (s *BaseSLQListener) ExitUnaryOperator(ctx *UnaryOperatorContext)
ExitUnaryOperator is called when production unaryOperator is exited.
func (*BaseSLQListener) VisitErrorNode ¶
func (s *BaseSLQListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseSLQListener) VisitTerminal ¶
func (s *BaseSLQListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type BaseSLQVisitor ¶
type BaseSLQVisitor struct {
*antlr.BaseParseTreeVisitor
}
func (*BaseSLQVisitor) VisitAlias ¶ added in v0.25.0
func (v *BaseSLQVisitor) VisitAlias(ctx *AliasContext) interface{}
func (*BaseSLQVisitor) VisitCmpr ¶
func (v *BaseSLQVisitor) VisitCmpr(ctx *CmprContext) interface{}
func (*BaseSLQVisitor) VisitDsElement ¶
func (v *BaseSLQVisitor) VisitDsElement(ctx *DsElementContext) interface{}
func (*BaseSLQVisitor) VisitDsTblElement ¶
func (v *BaseSLQVisitor) VisitDsTblElement(ctx *DsTblElementContext) interface{}
func (*BaseSLQVisitor) VisitElement ¶
func (v *BaseSLQVisitor) VisitElement(ctx *ElementContext) interface{}
func (*BaseSLQVisitor) VisitExpr ¶
func (v *BaseSLQVisitor) VisitExpr(ctx *ExprContext) interface{}
func (*BaseSLQVisitor) VisitFn ¶
func (v *BaseSLQVisitor) VisitFn(ctx *FnContext) interface{}
func (*BaseSLQVisitor) VisitFnElement ¶ added in v0.25.0
func (v *BaseSLQVisitor) VisitFnElement(ctx *FnElementContext) interface{}
func (*BaseSLQVisitor) VisitFnName ¶
func (v *BaseSLQVisitor) VisitFnName(ctx *FnNameContext) interface{}
func (*BaseSLQVisitor) VisitGroup ¶
func (v *BaseSLQVisitor) VisitGroup(ctx *GroupContext) interface{}
func (*BaseSLQVisitor) VisitJoin ¶
func (v *BaseSLQVisitor) VisitJoin(ctx *JoinContext) interface{}
func (*BaseSLQVisitor) VisitJoinConstraint ¶
func (v *BaseSLQVisitor) VisitJoinConstraint(ctx *JoinConstraintContext) interface{}
func (*BaseSLQVisitor) VisitLiteral ¶
func (v *BaseSLQVisitor) VisitLiteral(ctx *LiteralContext) interface{}
func (*BaseSLQVisitor) VisitQuery ¶
func (v *BaseSLQVisitor) VisitQuery(ctx *QueryContext) interface{}
func (*BaseSLQVisitor) VisitRowRange ¶
func (v *BaseSLQVisitor) VisitRowRange(ctx *RowRangeContext) interface{}
func (*BaseSLQVisitor) VisitSegment ¶
func (v *BaseSLQVisitor) VisitSegment(ctx *SegmentContext) interface{}
func (*BaseSLQVisitor) VisitSelElement ¶
func (v *BaseSLQVisitor) VisitSelElement(ctx *SelElementContext) interface{}
func (*BaseSLQVisitor) VisitStmtList ¶
func (v *BaseSLQVisitor) VisitStmtList(ctx *StmtListContext) interface{}
func (*BaseSLQVisitor) VisitUnaryOperator ¶
func (v *BaseSLQVisitor) VisitUnaryOperator(ctx *UnaryOperatorContext) interface{}
type CmprContext ¶
type CmprContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCmprContext ¶
func NewCmprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CmprContext
func NewEmptyCmprContext ¶
func NewEmptyCmprContext() *CmprContext
func (*CmprContext) Accept ¶
func (s *CmprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*CmprContext) EQ ¶
func (s *CmprContext) EQ() antlr.TerminalNode
func (*CmprContext) EnterRule ¶
func (s *CmprContext) EnterRule(listener antlr.ParseTreeListener)
func (*CmprContext) ExitRule ¶
func (s *CmprContext) ExitRule(listener antlr.ParseTreeListener)
func (*CmprContext) GT ¶
func (s *CmprContext) GT() antlr.TerminalNode
func (*CmprContext) GT_EQ ¶
func (s *CmprContext) GT_EQ() antlr.TerminalNode
func (*CmprContext) GetParser ¶
func (s *CmprContext) GetParser() antlr.Parser
func (*CmprContext) GetRuleContext ¶
func (s *CmprContext) GetRuleContext() antlr.RuleContext
func (*CmprContext) IsCmprContext ¶
func (*CmprContext) IsCmprContext()
func (*CmprContext) LT ¶
func (s *CmprContext) LT() antlr.TerminalNode
func (*CmprContext) LT_EQ ¶
func (s *CmprContext) LT_EQ() antlr.TerminalNode
func (*CmprContext) NEQ ¶
func (s *CmprContext) NEQ() antlr.TerminalNode
func (*CmprContext) ToStringTree ¶
func (s *CmprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DsElementContext ¶
type DsElementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDsElementContext ¶
func NewDsElementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DsElementContext
func NewEmptyDsElementContext ¶
func NewEmptyDsElementContext() *DsElementContext
func (*DsElementContext) Accept ¶
func (s *DsElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*DsElementContext) DATASOURCE ¶
func (s *DsElementContext) DATASOURCE() antlr.TerminalNode
func (*DsElementContext) EnterRule ¶
func (s *DsElementContext) EnterRule(listener antlr.ParseTreeListener)
func (*DsElementContext) ExitRule ¶
func (s *DsElementContext) ExitRule(listener antlr.ParseTreeListener)
func (*DsElementContext) GetParser ¶
func (s *DsElementContext) GetParser() antlr.Parser
func (*DsElementContext) GetRuleContext ¶
func (s *DsElementContext) GetRuleContext() antlr.RuleContext
func (*DsElementContext) IsDsElementContext ¶
func (*DsElementContext) IsDsElementContext()
func (*DsElementContext) ToStringTree ¶
func (s *DsElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DsTblElementContext ¶
type DsTblElementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDsTblElementContext ¶
func NewDsTblElementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DsTblElementContext
func NewEmptyDsTblElementContext ¶
func NewEmptyDsTblElementContext() *DsTblElementContext
func (*DsTblElementContext) Accept ¶
func (s *DsTblElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*DsTblElementContext) DATASOURCE ¶
func (s *DsTblElementContext) DATASOURCE() antlr.TerminalNode
func (*DsTblElementContext) EnterRule ¶
func (s *DsTblElementContext) EnterRule(listener antlr.ParseTreeListener)
func (*DsTblElementContext) ExitRule ¶
func (s *DsTblElementContext) ExitRule(listener antlr.ParseTreeListener)
func (*DsTblElementContext) GetParser ¶
func (s *DsTblElementContext) GetParser() antlr.Parser
func (*DsTblElementContext) GetRuleContext ¶
func (s *DsTblElementContext) GetRuleContext() antlr.RuleContext
func (*DsTblElementContext) IsDsTblElementContext ¶
func (*DsTblElementContext) IsDsTblElementContext()
func (*DsTblElementContext) SEL ¶
func (s *DsTblElementContext) SEL() antlr.TerminalNode
func (*DsTblElementContext) ToStringTree ¶
func (s *DsTblElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ElementContext ¶
type ElementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewElementContext ¶
func NewElementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElementContext
func NewEmptyElementContext ¶
func NewEmptyElementContext() *ElementContext
func (*ElementContext) Accept ¶
func (s *ElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ElementContext) DsElement ¶
func (s *ElementContext) DsElement() IDsElementContext
func (*ElementContext) DsTblElement ¶
func (s *ElementContext) DsTblElement() IDsTblElementContext
func (*ElementContext) EnterRule ¶
func (s *ElementContext) EnterRule(listener antlr.ParseTreeListener)
func (*ElementContext) ExitRule ¶
func (s *ElementContext) ExitRule(listener antlr.ParseTreeListener)
func (*ElementContext) Expr ¶
func (s *ElementContext) Expr() IExprContext
func (*ElementContext) FnElement ¶ added in v0.25.0
func (s *ElementContext) FnElement() IFnElementContext
func (*ElementContext) GetParser ¶
func (s *ElementContext) GetParser() antlr.Parser
func (*ElementContext) GetRuleContext ¶
func (s *ElementContext) GetRuleContext() antlr.RuleContext
func (*ElementContext) Group ¶
func (s *ElementContext) Group() IGroupContext
func (*ElementContext) IsElementContext ¶
func (*ElementContext) IsElementContext()
func (*ElementContext) Join ¶
func (s *ElementContext) Join() IJoinContext
func (*ElementContext) RowRange ¶
func (s *ElementContext) RowRange() IRowRangeContext
func (*ElementContext) SelElement ¶
func (s *ElementContext) SelElement() ISelElementContext
func (*ElementContext) ToStringTree ¶
func (s *ElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ExprContext ¶
type ExprContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyExprContext ¶
func NewEmptyExprContext() *ExprContext
func NewExprContext ¶
func NewExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExprContext
func (*ExprContext) Accept ¶
func (s *ExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ExprContext) AllExpr ¶
func (s *ExprContext) AllExpr() []IExprContext
func (*ExprContext) EQ ¶
func (s *ExprContext) EQ() antlr.TerminalNode
func (*ExprContext) EnterRule ¶
func (s *ExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*ExprContext) ExitRule ¶
func (s *ExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*ExprContext) Expr ¶
func (s *ExprContext) Expr(i int) IExprContext
func (*ExprContext) Fn ¶
func (s *ExprContext) Fn() IFnContext
func (*ExprContext) GT ¶
func (s *ExprContext) GT() antlr.TerminalNode
func (*ExprContext) GT_EQ ¶
func (s *ExprContext) GT_EQ() antlr.TerminalNode
func (*ExprContext) GetParser ¶
func (s *ExprContext) GetParser() antlr.Parser
func (*ExprContext) GetRuleContext ¶
func (s *ExprContext) GetRuleContext() antlr.RuleContext
func (*ExprContext) IsExprContext ¶
func (*ExprContext) IsExprContext()
func (*ExprContext) LT ¶
func (s *ExprContext) LT() antlr.TerminalNode
func (*ExprContext) LT_EQ ¶
func (s *ExprContext) LT_EQ() antlr.TerminalNode
func (*ExprContext) Literal ¶
func (s *ExprContext) Literal() ILiteralContext
func (*ExprContext) NEQ ¶
func (s *ExprContext) NEQ() antlr.TerminalNode
func (*ExprContext) SEL ¶
func (s *ExprContext) SEL() antlr.TerminalNode
func (*ExprContext) ToStringTree ¶
func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ExprContext) UnaryOperator ¶
func (s *ExprContext) UnaryOperator() IUnaryOperatorContext
type FnContext ¶
type FnContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFnContext ¶
func NewEmptyFnContext() *FnContext
func NewFnContext ¶
func (*FnContext) AllExpr ¶
func (s *FnContext) AllExpr() []IExprContext
func (*FnContext) Expr ¶
func (s *FnContext) Expr(i int) IExprContext
func (*FnContext) FnName ¶
func (s *FnContext) FnName() IFnNameContext
func (*FnContext) GetRuleContext ¶
func (s *FnContext) GetRuleContext() antlr.RuleContext
func (*FnContext) IsFnContext ¶
func (*FnContext) IsFnContext()
func (*FnContext) ToStringTree ¶
type FnElementContext ¶ added in v0.25.0
type FnElementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFnElementContext ¶ added in v0.25.0
func NewEmptyFnElementContext() *FnElementContext
func NewFnElementContext ¶ added in v0.25.0
func NewFnElementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FnElementContext
func (*FnElementContext) Accept ¶ added in v0.25.0
func (s *FnElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*FnElementContext) Alias ¶ added in v0.25.0
func (s *FnElementContext) Alias() IAliasContext
func (*FnElementContext) EnterRule ¶ added in v0.25.0
func (s *FnElementContext) EnterRule(listener antlr.ParseTreeListener)
func (*FnElementContext) ExitRule ¶ added in v0.25.0
func (s *FnElementContext) ExitRule(listener antlr.ParseTreeListener)
func (*FnElementContext) Fn ¶ added in v0.25.0
func (s *FnElementContext) Fn() IFnContext
func (*FnElementContext) GetParser ¶ added in v0.25.0
func (s *FnElementContext) GetParser() antlr.Parser
func (*FnElementContext) GetRuleContext ¶ added in v0.25.0
func (s *FnElementContext) GetRuleContext() antlr.RuleContext
func (*FnElementContext) IsFnElementContext ¶ added in v0.25.0
func (*FnElementContext) IsFnElementContext()
func (*FnElementContext) ToStringTree ¶ added in v0.25.0
func (s *FnElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FnNameContext ¶
type FnNameContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFnNameContext ¶
func NewEmptyFnNameContext() *FnNameContext
func NewFnNameContext ¶
func NewFnNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FnNameContext
func (*FnNameContext) Accept ¶
func (s *FnNameContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*FnNameContext) EnterRule ¶
func (s *FnNameContext) EnterRule(listener antlr.ParseTreeListener)
func (*FnNameContext) ExitRule ¶
func (s *FnNameContext) ExitRule(listener antlr.ParseTreeListener)
func (*FnNameContext) GetParser ¶
func (s *FnNameContext) GetParser() antlr.Parser
func (*FnNameContext) GetRuleContext ¶
func (s *FnNameContext) GetRuleContext() antlr.RuleContext
func (*FnNameContext) IsFnNameContext ¶
func (*FnNameContext) IsFnNameContext()
func (*FnNameContext) ToStringTree ¶
func (s *FnNameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type GroupContext ¶
type GroupContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGroupContext ¶
func NewEmptyGroupContext() *GroupContext
func NewGroupContext ¶
func NewGroupContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GroupContext
func (*GroupContext) Accept ¶
func (s *GroupContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*GroupContext) AllCOMMA ¶
func (s *GroupContext) AllCOMMA() []antlr.TerminalNode
func (*GroupContext) AllSEL ¶
func (s *GroupContext) AllSEL() []antlr.TerminalNode
func (*GroupContext) COMMA ¶
func (s *GroupContext) COMMA(i int) antlr.TerminalNode
func (*GroupContext) EnterRule ¶
func (s *GroupContext) EnterRule(listener antlr.ParseTreeListener)
func (*GroupContext) ExitRule ¶
func (s *GroupContext) ExitRule(listener antlr.ParseTreeListener)
func (*GroupContext) GetParser ¶
func (s *GroupContext) GetParser() antlr.Parser
func (*GroupContext) GetRuleContext ¶
func (s *GroupContext) GetRuleContext() antlr.RuleContext
func (*GroupContext) IsGroupContext ¶
func (*GroupContext) IsGroupContext()
func (*GroupContext) LPAR ¶
func (s *GroupContext) LPAR() antlr.TerminalNode
func (*GroupContext) RPAR ¶
func (s *GroupContext) RPAR() antlr.TerminalNode
func (*GroupContext) SEL ¶
func (s *GroupContext) SEL(i int) antlr.TerminalNode
func (*GroupContext) ToStringTree ¶
func (s *GroupContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IAliasContext ¶ added in v0.25.0
type IAliasContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures COLON() antlr.TerminalNode ID() antlr.TerminalNode // IsAliasContext differentiates from other interfaces. IsAliasContext() }
IAliasContext is an interface to support dynamic dispatch.
type ICmprContext ¶
type ICmprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures LT_EQ() antlr.TerminalNode LT() antlr.TerminalNode GT_EQ() antlr.TerminalNode GT() antlr.TerminalNode EQ() antlr.TerminalNode NEQ() antlr.TerminalNode // IsCmprContext differentiates from other interfaces. IsCmprContext() }
ICmprContext is an interface to support dynamic dispatch.
type IDsElementContext ¶
type IDsElementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures DATASOURCE() antlr.TerminalNode // IsDsElementContext differentiates from other interfaces. IsDsElementContext() }
IDsElementContext is an interface to support dynamic dispatch.
type IDsTblElementContext ¶
type IDsTblElementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures DATASOURCE() antlr.TerminalNode SEL() antlr.TerminalNode // IsDsTblElementContext differentiates from other interfaces. IsDsTblElementContext() }
IDsTblElementContext is an interface to support dynamic dispatch.
type IElementContext ¶
type IElementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures DsTblElement() IDsTblElementContext DsElement() IDsElementContext SelElement() ISelElementContext Join() IJoinContext Group() IGroupContext RowRange() IRowRangeContext FnElement() IFnElementContext Expr() IExprContext // IsElementContext differentiates from other interfaces. IsElementContext() }
IElementContext is an interface to support dynamic dispatch.
type IExprContext ¶
type IExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures SEL() antlr.TerminalNode Literal() ILiteralContext UnaryOperator() IUnaryOperatorContext AllExpr() []IExprContext Expr(i int) IExprContext Fn() IFnContext LT() antlr.TerminalNode LT_EQ() antlr.TerminalNode GT() antlr.TerminalNode GT_EQ() antlr.TerminalNode EQ() antlr.TerminalNode NEQ() antlr.TerminalNode // IsExprContext differentiates from other interfaces. IsExprContext() }
IExprContext is an interface to support dynamic dispatch.
type IFnContext ¶
type IFnContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures FnName() IFnNameContext LPAR() antlr.TerminalNode RPAR() antlr.TerminalNode AllExpr() []IExprContext Expr(i int) IExprContext AllCOMMA() []antlr.TerminalNode COMMA(i int) antlr.TerminalNode // IsFnContext differentiates from other interfaces. IsFnContext() }
IFnContext is an interface to support dynamic dispatch.
type IFnElementContext ¶ added in v0.25.0
type IFnElementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Fn() IFnContext Alias() IAliasContext // IsFnElementContext differentiates from other interfaces. IsFnElementContext() }
IFnElementContext is an interface to support dynamic dispatch.
type IFnNameContext ¶
type IFnNameContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsFnNameContext differentiates from other interfaces. IsFnNameContext() }
IFnNameContext is an interface to support dynamic dispatch.
type IGroupContext ¶
type IGroupContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures LPAR() antlr.TerminalNode AllSEL() []antlr.TerminalNode SEL(i int) antlr.TerminalNode RPAR() antlr.TerminalNode AllCOMMA() []antlr.TerminalNode COMMA(i int) antlr.TerminalNode // IsGroupContext differentiates from other interfaces. IsGroupContext() }
IGroupContext is an interface to support dynamic dispatch.
type IJoinConstraintContext ¶
type IJoinConstraintContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures AllSEL() []antlr.TerminalNode SEL(i int) antlr.TerminalNode Cmpr() ICmprContext // IsJoinConstraintContext differentiates from other interfaces. IsJoinConstraintContext() }
IJoinConstraintContext is an interface to support dynamic dispatch.
type IJoinContext ¶
type IJoinContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures LPAR() antlr.TerminalNode JoinConstraint() IJoinConstraintContext RPAR() antlr.TerminalNode // IsJoinContext differentiates from other interfaces. IsJoinContext() }
IJoinContext is an interface to support dynamic dispatch.
type ILiteralContext ¶
type ILiteralContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures NN() antlr.TerminalNode NUMBER() antlr.TerminalNode STRING() antlr.TerminalNode NULL() antlr.TerminalNode // IsLiteralContext differentiates from other interfaces. IsLiteralContext() }
ILiteralContext is an interface to support dynamic dispatch.
type IQueryContext ¶
type IQueryContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures AllSegment() []ISegmentContext Segment(i int) ISegmentContext AllPIPE() []antlr.TerminalNode PIPE(i int) antlr.TerminalNode // IsQueryContext differentiates from other interfaces. IsQueryContext() }
IQueryContext is an interface to support dynamic dispatch.
type IRowRangeContext ¶
type IRowRangeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures RBRA() antlr.TerminalNode AllNN() []antlr.TerminalNode NN(i int) antlr.TerminalNode COLON() antlr.TerminalNode // IsRowRangeContext differentiates from other interfaces. IsRowRangeContext() }
IRowRangeContext is an interface to support dynamic dispatch.
type ISegmentContext ¶
type ISegmentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures AllElement() []IElementContext Element(i int) IElementContext AllCOMMA() []antlr.TerminalNode COMMA(i int) antlr.TerminalNode // IsSegmentContext differentiates from other interfaces. IsSegmentContext() }
ISegmentContext is an interface to support dynamic dispatch.
type ISelElementContext ¶
type ISelElementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures SEL() antlr.TerminalNode Alias() IAliasContext // IsSelElementContext differentiates from other interfaces. IsSelElementContext() }
ISelElementContext is an interface to support dynamic dispatch.
type IStmtListContext ¶
type IStmtListContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures AllQuery() []IQueryContext Query(i int) IQueryContext // IsStmtListContext differentiates from other interfaces. IsStmtListContext() }
IStmtListContext is an interface to support dynamic dispatch.
type IUnaryOperatorContext ¶
type IUnaryOperatorContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsUnaryOperatorContext differentiates from other interfaces. IsUnaryOperatorContext() }
IUnaryOperatorContext is an interface to support dynamic dispatch.
type JoinConstraintContext ¶
type JoinConstraintContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyJoinConstraintContext ¶
func NewEmptyJoinConstraintContext() *JoinConstraintContext
func NewJoinConstraintContext ¶
func NewJoinConstraintContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *JoinConstraintContext
func (*JoinConstraintContext) Accept ¶
func (s *JoinConstraintContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*JoinConstraintContext) AllSEL ¶
func (s *JoinConstraintContext) AllSEL() []antlr.TerminalNode
func (*JoinConstraintContext) Cmpr ¶
func (s *JoinConstraintContext) Cmpr() ICmprContext
func (*JoinConstraintContext) EnterRule ¶
func (s *JoinConstraintContext) EnterRule(listener antlr.ParseTreeListener)
func (*JoinConstraintContext) ExitRule ¶
func (s *JoinConstraintContext) ExitRule(listener antlr.ParseTreeListener)
func (*JoinConstraintContext) GetParser ¶
func (s *JoinConstraintContext) GetParser() antlr.Parser
func (*JoinConstraintContext) GetRuleContext ¶
func (s *JoinConstraintContext) GetRuleContext() antlr.RuleContext
func (*JoinConstraintContext) IsJoinConstraintContext ¶
func (*JoinConstraintContext) IsJoinConstraintContext()
func (*JoinConstraintContext) SEL ¶
func (s *JoinConstraintContext) SEL(i int) antlr.TerminalNode
func (*JoinConstraintContext) ToStringTree ¶
func (s *JoinConstraintContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type JoinContext ¶
type JoinContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyJoinContext ¶
func NewEmptyJoinContext() *JoinContext
func NewJoinContext ¶
func NewJoinContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *JoinContext
func (*JoinContext) Accept ¶
func (s *JoinContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*JoinContext) EnterRule ¶
func (s *JoinContext) EnterRule(listener antlr.ParseTreeListener)
func (*JoinContext) ExitRule ¶
func (s *JoinContext) ExitRule(listener antlr.ParseTreeListener)
func (*JoinContext) GetParser ¶
func (s *JoinContext) GetParser() antlr.Parser
func (*JoinContext) GetRuleContext ¶
func (s *JoinContext) GetRuleContext() antlr.RuleContext
func (*JoinContext) IsJoinContext ¶
func (*JoinContext) IsJoinContext()
func (*JoinContext) JoinConstraint ¶
func (s *JoinContext) JoinConstraint() IJoinConstraintContext
func (*JoinContext) LPAR ¶
func (s *JoinContext) LPAR() antlr.TerminalNode
func (*JoinContext) RPAR ¶
func (s *JoinContext) RPAR() antlr.TerminalNode
func (*JoinContext) ToStringTree ¶
func (s *JoinContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LiteralContext ¶
type LiteralContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLiteralContext ¶
func NewEmptyLiteralContext() *LiteralContext
func NewLiteralContext ¶
func NewLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LiteralContext
func (*LiteralContext) Accept ¶
func (s *LiteralContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*LiteralContext) EnterRule ¶
func (s *LiteralContext) EnterRule(listener antlr.ParseTreeListener)
func (*LiteralContext) ExitRule ¶
func (s *LiteralContext) ExitRule(listener antlr.ParseTreeListener)
func (*LiteralContext) GetParser ¶
func (s *LiteralContext) GetParser() antlr.Parser
func (*LiteralContext) GetRuleContext ¶
func (s *LiteralContext) GetRuleContext() antlr.RuleContext
func (*LiteralContext) IsLiteralContext ¶
func (*LiteralContext) IsLiteralContext()
func (*LiteralContext) NN ¶
func (s *LiteralContext) NN() antlr.TerminalNode
func (*LiteralContext) NULL ¶
func (s *LiteralContext) NULL() antlr.TerminalNode
func (*LiteralContext) NUMBER ¶
func (s *LiteralContext) NUMBER() antlr.TerminalNode
func (*LiteralContext) STRING ¶
func (s *LiteralContext) STRING() antlr.TerminalNode
func (*LiteralContext) ToStringTree ¶
func (s *LiteralContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type QueryContext ¶
type QueryContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyQueryContext ¶
func NewEmptyQueryContext() *QueryContext
func NewQueryContext ¶
func NewQueryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QueryContext
func (*QueryContext) Accept ¶
func (s *QueryContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*QueryContext) AllPIPE ¶
func (s *QueryContext) AllPIPE() []antlr.TerminalNode
func (*QueryContext) AllSegment ¶
func (s *QueryContext) AllSegment() []ISegmentContext
func (*QueryContext) EnterRule ¶
func (s *QueryContext) EnterRule(listener antlr.ParseTreeListener)
func (*QueryContext) ExitRule ¶
func (s *QueryContext) ExitRule(listener antlr.ParseTreeListener)
func (*QueryContext) GetParser ¶
func (s *QueryContext) GetParser() antlr.Parser
func (*QueryContext) GetRuleContext ¶
func (s *QueryContext) GetRuleContext() antlr.RuleContext
func (*QueryContext) IsQueryContext ¶
func (*QueryContext) IsQueryContext()
func (*QueryContext) PIPE ¶
func (s *QueryContext) PIPE(i int) antlr.TerminalNode
func (*QueryContext) Segment ¶
func (s *QueryContext) Segment(i int) ISegmentContext
func (*QueryContext) ToStringTree ¶
func (s *QueryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RowRangeContext ¶
type RowRangeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRowRangeContext ¶
func NewEmptyRowRangeContext() *RowRangeContext
func NewRowRangeContext ¶
func NewRowRangeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RowRangeContext
func (*RowRangeContext) Accept ¶
func (s *RowRangeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*RowRangeContext) AllNN ¶
func (s *RowRangeContext) AllNN() []antlr.TerminalNode
func (*RowRangeContext) COLON ¶
func (s *RowRangeContext) COLON() antlr.TerminalNode
func (*RowRangeContext) EnterRule ¶
func (s *RowRangeContext) EnterRule(listener antlr.ParseTreeListener)
func (*RowRangeContext) ExitRule ¶
func (s *RowRangeContext) ExitRule(listener antlr.ParseTreeListener)
func (*RowRangeContext) GetParser ¶
func (s *RowRangeContext) GetParser() antlr.Parser
func (*RowRangeContext) GetRuleContext ¶
func (s *RowRangeContext) GetRuleContext() antlr.RuleContext
func (*RowRangeContext) IsRowRangeContext ¶
func (*RowRangeContext) IsRowRangeContext()
func (*RowRangeContext) NN ¶
func (s *RowRangeContext) NN(i int) antlr.TerminalNode
func (*RowRangeContext) RBRA ¶
func (s *RowRangeContext) RBRA() antlr.TerminalNode
func (*RowRangeContext) ToStringTree ¶
func (s *RowRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SLQLexer ¶
type SLQLexer struct { *antlr.BaseLexer // contains filtered or unexported fields }
func NewSLQLexer ¶
func NewSLQLexer(input antlr.CharStream) *SLQLexer
NewSLQLexer produces a new lexer instance for the optional input antlr.CharStream.
type SLQListener ¶
type SLQListener interface { antlr.ParseTreeListener // EnterStmtList is called when entering the stmtList production. EnterStmtList(c *StmtListContext) // EnterQuery is called when entering the query production. EnterQuery(c *QueryContext) // EnterSegment is called when entering the segment production. EnterSegment(c *SegmentContext) // EnterElement is called when entering the element production. EnterElement(c *ElementContext) // EnterCmpr is called when entering the cmpr production. EnterCmpr(c *CmprContext) // EnterFn is called when entering the fn production. EnterFn(c *FnContext) // EnterFnElement is called when entering the fnElement production. EnterFnElement(c *FnElementContext) // EnterJoin is called when entering the join production. EnterJoin(c *JoinContext) // EnterJoinConstraint is called when entering the joinConstraint production. EnterJoinConstraint(c *JoinConstraintContext) // EnterGroup is called when entering the group production. EnterGroup(c *GroupContext) // EnterAlias is called when entering the alias production. EnterAlias(c *AliasContext) // EnterSelElement is called when entering the selElement production. EnterSelElement(c *SelElementContext) // EnterDsTblElement is called when entering the dsTblElement production. EnterDsTblElement(c *DsTblElementContext) // EnterDsElement is called when entering the dsElement production. EnterDsElement(c *DsElementContext) // EnterRowRange is called when entering the rowRange production. EnterRowRange(c *RowRangeContext) // EnterFnName is called when entering the fnName production. EnterFnName(c *FnNameContext) // EnterExpr is called when entering the expr production. EnterExpr(c *ExprContext) // EnterLiteral is called when entering the literal production. EnterLiteral(c *LiteralContext) // EnterUnaryOperator is called when entering the unaryOperator production. EnterUnaryOperator(c *UnaryOperatorContext) // ExitStmtList is called when exiting the stmtList production. ExitStmtList(c *StmtListContext) // ExitQuery is called when exiting the query production. ExitQuery(c *QueryContext) // ExitSegment is called when exiting the segment production. ExitSegment(c *SegmentContext) // ExitElement is called when exiting the element production. ExitElement(c *ElementContext) // ExitCmpr is called when exiting the cmpr production. ExitCmpr(c *CmprContext) // ExitFn is called when exiting the fn production. ExitFn(c *FnContext) // ExitFnElement is called when exiting the fnElement production. ExitFnElement(c *FnElementContext) // ExitJoin is called when exiting the join production. ExitJoin(c *JoinContext) // ExitJoinConstraint is called when exiting the joinConstraint production. ExitJoinConstraint(c *JoinConstraintContext) // ExitGroup is called when exiting the group production. ExitGroup(c *GroupContext) // ExitAlias is called when exiting the alias production. ExitAlias(c *AliasContext) // ExitSelElement is called when exiting the selElement production. ExitSelElement(c *SelElementContext) // ExitDsTblElement is called when exiting the dsTblElement production. ExitDsTblElement(c *DsTblElementContext) // ExitDsElement is called when exiting the dsElement production. ExitDsElement(c *DsElementContext) // ExitRowRange is called when exiting the rowRange production. ExitRowRange(c *RowRangeContext) // ExitFnName is called when exiting the fnName production. ExitFnName(c *FnNameContext) // ExitExpr is called when exiting the expr production. ExitExpr(c *ExprContext) // ExitLiteral is called when exiting the literal production. ExitLiteral(c *LiteralContext) // ExitUnaryOperator is called when exiting the unaryOperator production. ExitUnaryOperator(c *UnaryOperatorContext) }
SLQListener is a complete listener for a parse tree produced by SLQParser.
type SLQParser ¶
type SLQParser struct {
*antlr.BaseParser
}
func NewSLQParser ¶
func NewSLQParser(input antlr.TokenStream) *SLQParser
NewSLQParser produces a new parser instance for the optional input antlr.TokenStream.
func (*SLQParser) Alias ¶ added in v0.25.0
func (p *SLQParser) Alias() (localctx IAliasContext)
func (*SLQParser) Cmpr ¶
func (p *SLQParser) Cmpr() (localctx ICmprContext)
func (*SLQParser) DsElement ¶
func (p *SLQParser) DsElement() (localctx IDsElementContext)
func (*SLQParser) DsTblElement ¶
func (p *SLQParser) DsTblElement() (localctx IDsTblElementContext)
func (*SLQParser) Element ¶
func (p *SLQParser) Element() (localctx IElementContext)
func (*SLQParser) Expr ¶
func (p *SLQParser) Expr() (localctx IExprContext)
func (*SLQParser) Expr_Sempred ¶
func (*SLQParser) Fn ¶
func (p *SLQParser) Fn() (localctx IFnContext)
func (*SLQParser) FnElement ¶ added in v0.25.0
func (p *SLQParser) FnElement() (localctx IFnElementContext)
func (*SLQParser) FnName ¶
func (p *SLQParser) FnName() (localctx IFnNameContext)
func (*SLQParser) Group ¶
func (p *SLQParser) Group() (localctx IGroupContext)
func (*SLQParser) Join ¶
func (p *SLQParser) Join() (localctx IJoinContext)
func (*SLQParser) JoinConstraint ¶
func (p *SLQParser) JoinConstraint() (localctx IJoinConstraintContext)
func (*SLQParser) Literal ¶
func (p *SLQParser) Literal() (localctx ILiteralContext)
func (*SLQParser) Query ¶
func (p *SLQParser) Query() (localctx IQueryContext)
func (*SLQParser) RowRange ¶
func (p *SLQParser) RowRange() (localctx IRowRangeContext)
func (*SLQParser) Segment ¶
func (p *SLQParser) Segment() (localctx ISegmentContext)
func (*SLQParser) SelElement ¶
func (p *SLQParser) SelElement() (localctx ISelElementContext)
func (*SLQParser) StmtList ¶
func (p *SLQParser) StmtList() (localctx IStmtListContext)
func (*SLQParser) UnaryOperator ¶
func (p *SLQParser) UnaryOperator() (localctx IUnaryOperatorContext)
type SLQVisitor ¶
type SLQVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by SLQParser#stmtList. VisitStmtList(ctx *StmtListContext) interface{} // Visit a parse tree produced by SLQParser#query. VisitQuery(ctx *QueryContext) interface{} // Visit a parse tree produced by SLQParser#segment. VisitSegment(ctx *SegmentContext) interface{} // Visit a parse tree produced by SLQParser#element. VisitElement(ctx *ElementContext) interface{} // Visit a parse tree produced by SLQParser#cmpr. VisitCmpr(ctx *CmprContext) interface{} // Visit a parse tree produced by SLQParser#fn. VisitFn(ctx *FnContext) interface{} // Visit a parse tree produced by SLQParser#fnElement. VisitFnElement(ctx *FnElementContext) interface{} // Visit a parse tree produced by SLQParser#join. VisitJoin(ctx *JoinContext) interface{} // Visit a parse tree produced by SLQParser#joinConstraint. VisitJoinConstraint(ctx *JoinConstraintContext) interface{} // Visit a parse tree produced by SLQParser#group. VisitGroup(ctx *GroupContext) interface{} // Visit a parse tree produced by SLQParser#alias. VisitAlias(ctx *AliasContext) interface{} // Visit a parse tree produced by SLQParser#selElement. VisitSelElement(ctx *SelElementContext) interface{} // Visit a parse tree produced by SLQParser#dsTblElement. VisitDsTblElement(ctx *DsTblElementContext) interface{} // Visit a parse tree produced by SLQParser#dsElement. VisitDsElement(ctx *DsElementContext) interface{} // Visit a parse tree produced by SLQParser#rowRange. VisitRowRange(ctx *RowRangeContext) interface{} // Visit a parse tree produced by SLQParser#fnName. VisitFnName(ctx *FnNameContext) interface{} // Visit a parse tree produced by SLQParser#expr. VisitExpr(ctx *ExprContext) interface{} // Visit a parse tree produced by SLQParser#literal. VisitLiteral(ctx *LiteralContext) interface{} // Visit a parse tree produced by SLQParser#unaryOperator. VisitUnaryOperator(ctx *UnaryOperatorContext) interface{} }
A complete Visitor for a parse tree produced by SLQParser.
type SegmentContext ¶
type SegmentContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySegmentContext ¶
func NewEmptySegmentContext() *SegmentContext
func NewSegmentContext ¶
func NewSegmentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SegmentContext
func (*SegmentContext) Accept ¶
func (s *SegmentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SegmentContext) AllCOMMA ¶
func (s *SegmentContext) AllCOMMA() []antlr.TerminalNode
func (*SegmentContext) AllElement ¶
func (s *SegmentContext) AllElement() []IElementContext
func (*SegmentContext) COMMA ¶
func (s *SegmentContext) COMMA(i int) antlr.TerminalNode
func (*SegmentContext) Element ¶
func (s *SegmentContext) Element(i int) IElementContext
func (*SegmentContext) EnterRule ¶
func (s *SegmentContext) EnterRule(listener antlr.ParseTreeListener)
func (*SegmentContext) ExitRule ¶
func (s *SegmentContext) ExitRule(listener antlr.ParseTreeListener)
func (*SegmentContext) GetParser ¶
func (s *SegmentContext) GetParser() antlr.Parser
func (*SegmentContext) GetRuleContext ¶
func (s *SegmentContext) GetRuleContext() antlr.RuleContext
func (*SegmentContext) IsSegmentContext ¶
func (*SegmentContext) IsSegmentContext()
func (*SegmentContext) ToStringTree ¶
func (s *SegmentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SelElementContext ¶
type SelElementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySelElementContext ¶
func NewEmptySelElementContext() *SelElementContext
func NewSelElementContext ¶
func NewSelElementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SelElementContext
func (*SelElementContext) Accept ¶
func (s *SelElementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SelElementContext) Alias ¶ added in v0.25.0
func (s *SelElementContext) Alias() IAliasContext
func (*SelElementContext) EnterRule ¶
func (s *SelElementContext) EnterRule(listener antlr.ParseTreeListener)
func (*SelElementContext) ExitRule ¶
func (s *SelElementContext) ExitRule(listener antlr.ParseTreeListener)
func (*SelElementContext) GetParser ¶
func (s *SelElementContext) GetParser() antlr.Parser
func (*SelElementContext) GetRuleContext ¶
func (s *SelElementContext) GetRuleContext() antlr.RuleContext
func (*SelElementContext) IsSelElementContext ¶
func (*SelElementContext) IsSelElementContext()
func (*SelElementContext) SEL ¶
func (s *SelElementContext) SEL() antlr.TerminalNode
func (*SelElementContext) ToStringTree ¶
func (s *SelElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StmtListContext ¶
type StmtListContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStmtListContext ¶
func NewEmptyStmtListContext() *StmtListContext
func NewStmtListContext ¶
func NewStmtListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StmtListContext
func (*StmtListContext) Accept ¶
func (s *StmtListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*StmtListContext) AllQuery ¶
func (s *StmtListContext) AllQuery() []IQueryContext
func (*StmtListContext) EnterRule ¶
func (s *StmtListContext) EnterRule(listener antlr.ParseTreeListener)
func (*StmtListContext) ExitRule ¶
func (s *StmtListContext) ExitRule(listener antlr.ParseTreeListener)
func (*StmtListContext) GetParser ¶
func (s *StmtListContext) GetParser() antlr.Parser
func (*StmtListContext) GetRuleContext ¶
func (s *StmtListContext) GetRuleContext() antlr.RuleContext
func (*StmtListContext) IsStmtListContext ¶
func (*StmtListContext) IsStmtListContext()
func (*StmtListContext) Query ¶
func (s *StmtListContext) Query(i int) IQueryContext
func (*StmtListContext) ToStringTree ¶
func (s *StmtListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type UnaryOperatorContext ¶
type UnaryOperatorContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyUnaryOperatorContext ¶
func NewEmptyUnaryOperatorContext() *UnaryOperatorContext
func NewUnaryOperatorContext ¶
func NewUnaryOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnaryOperatorContext
func (*UnaryOperatorContext) Accept ¶
func (s *UnaryOperatorContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*UnaryOperatorContext) EnterRule ¶
func (s *UnaryOperatorContext) EnterRule(listener antlr.ParseTreeListener)
func (*UnaryOperatorContext) ExitRule ¶
func (s *UnaryOperatorContext) ExitRule(listener antlr.ParseTreeListener)
func (*UnaryOperatorContext) GetParser ¶
func (s *UnaryOperatorContext) GetParser() antlr.Parser
func (*UnaryOperatorContext) GetRuleContext ¶
func (s *UnaryOperatorContext) GetRuleContext() antlr.RuleContext
func (*UnaryOperatorContext) IsUnaryOperatorContext ¶
func (*UnaryOperatorContext) IsUnaryOperatorContext()
func (*UnaryOperatorContext) ToStringTree ¶
func (s *UnaryOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string