Documentation ¶
Index ¶
- Constants
- type AdditiveExprContext
- func (s *AdditiveExprContext) ADD() antlr.TerminalNode
- func (s *AdditiveExprContext) AllPrimaryExpression() []IPrimaryExpressionContext
- func (s *AdditiveExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AdditiveExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AdditiveExprContext) GetOp() antlr.Token
- func (s *AdditiveExprContext) GetRuleContext() antlr.RuleContext
- func (s *AdditiveExprContext) PrimaryExpression(i int) IPrimaryExpressionContext
- func (s *AdditiveExprContext) SUB() antlr.TerminalNode
- func (s *AdditiveExprContext) SetOp(v antlr.Token)
- type ArgumentExpressionListContext
- func (s *ArgumentExpressionListContext) AllExpression() []IExpressionContext
- func (s *ArgumentExpressionListContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ArgumentExpressionListContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ArgumentExpressionListContext) Expression(i int) IExpressionContext
- func (s *ArgumentExpressionListContext) GetParser() antlr.Parser
- func (s *ArgumentExpressionListContext) GetRuleContext() antlr.RuleContext
- func (*ArgumentExpressionListContext) IsArgumentExpressionListContext()
- func (s *ArgumentExpressionListContext) LPARENT() antlr.TerminalNode
- func (s *ArgumentExpressionListContext) RPARENT() antlr.TerminalNode
- func (s *ArgumentExpressionListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaseRulesListener
- func (s *BaseRulesListener) EnterAdditiveExpr(ctx *AdditiveExprContext)
- func (s *BaseRulesListener) EnterArgumentExpressionList(ctx *ArgumentExpressionListContext)
- func (s *BaseRulesListener) EnterBoolLit(ctx *BoolLitContext)
- func (s *BaseRulesListener) EnterBooleanExpr(ctx *BooleanExprContext)
- func (s *BaseRulesListener) EnterContainsCond(ctx *ContainsCondContext)
- func (s *BaseRulesListener) EnterDurationLit(ctx *DurationLitContext)
- func (s *BaseRulesListener) EnterEqualityExpr(ctx *EqualityExprContext)
- func (s *BaseRulesListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseRulesListener) EnterFuncExpr(ctx *FuncExprContext)
- func (s *BaseRulesListener) EnterIdent(ctx *IdentContext)
- func (s *BaseRulesListener) EnterInCond(ctx *InCondContext)
- func (s *BaseRulesListener) EnterLogicalExpr(ctx *LogicalExprContext)
- func (s *BaseRulesListener) EnterMultiplicativeExpr(ctx *MultiplicativeExprContext)
- func (s *BaseRulesListener) EnterNumberList(ctx *NumberListContext)
- func (s *BaseRulesListener) EnterNumberLit(ctx *NumberLitContext)
- func (s *BaseRulesListener) EnterParentExpr(ctx *ParentExprContext)
- func (s *BaseRulesListener) EnterPrimaryExpr(ctx *PrimaryExprContext)
- func (s *BaseRulesListener) EnterRelationalExpr(ctx *RelationalExprContext)
- func (s *BaseRulesListener) EnterRules(ctx *RulesContext)
- func (s *BaseRulesListener) EnterStringList(ctx *StringListContext)
- func (s *BaseRulesListener) EnterStringLit(ctx *StringLitContext)
- func (s *BaseRulesListener) EnterValueList(ctx *ValueListContext)
- func (s *BaseRulesListener) ExitAdditiveExpr(ctx *AdditiveExprContext)
- func (s *BaseRulesListener) ExitArgumentExpressionList(ctx *ArgumentExpressionListContext)
- func (s *BaseRulesListener) ExitBoolLit(ctx *BoolLitContext)
- func (s *BaseRulesListener) ExitBooleanExpr(ctx *BooleanExprContext)
- func (s *BaseRulesListener) ExitContainsCond(ctx *ContainsCondContext)
- func (s *BaseRulesListener) ExitDurationLit(ctx *DurationLitContext)
- func (s *BaseRulesListener) ExitEqualityExpr(ctx *EqualityExprContext)
- func (s *BaseRulesListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseRulesListener) ExitFuncExpr(ctx *FuncExprContext)
- func (s *BaseRulesListener) ExitIdent(ctx *IdentContext)
- func (s *BaseRulesListener) ExitInCond(ctx *InCondContext)
- func (s *BaseRulesListener) ExitLogicalExpr(ctx *LogicalExprContext)
- func (s *BaseRulesListener) ExitMultiplicativeExpr(ctx *MultiplicativeExprContext)
- func (s *BaseRulesListener) ExitNumberList(ctx *NumberListContext)
- func (s *BaseRulesListener) ExitNumberLit(ctx *NumberLitContext)
- func (s *BaseRulesListener) ExitParentExpr(ctx *ParentExprContext)
- func (s *BaseRulesListener) ExitPrimaryExpr(ctx *PrimaryExprContext)
- func (s *BaseRulesListener) ExitRelationalExpr(ctx *RelationalExprContext)
- func (s *BaseRulesListener) ExitRules(ctx *RulesContext)
- func (s *BaseRulesListener) ExitStringList(ctx *StringListContext)
- func (s *BaseRulesListener) ExitStringLit(ctx *StringLitContext)
- func (s *BaseRulesListener) ExitValueList(ctx *ValueListContext)
- func (s *BaseRulesListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseRulesListener) VisitTerminal(node antlr.TerminalNode)
- type BoolLitContext
- type BooleanExprContext
- type BooleanExpressionContext
- func (s *BooleanExpressionContext) CopyFrom(ctx *BooleanExpressionContext)
- func (s *BooleanExpressionContext) GetParser() antlr.Parser
- func (s *BooleanExpressionContext) GetRuleContext() antlr.RuleContext
- func (*BooleanExpressionContext) IsBooleanExpressionContext()
- func (s *BooleanExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ContainsCondContext
- func (s *ContainsCondContext) CONTAINS() antlr.TerminalNode
- func (s *ContainsCondContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ContainsCondContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ContainsCondContext) GetRuleContext() antlr.RuleContext
- func (s *ContainsCondContext) Identifier() antlr.TerminalNode
- func (s *ContainsCondContext) NumberLiteral() antlr.TerminalNode
- func (s *ContainsCondContext) StringLiteral() antlr.TerminalNode
- type DurationLitContext
- type EqualityExprContext
- func (s *EqualityExprContext) BooleanExpression() IBooleanExpressionContext
- func (s *EqualityExprContext) EQ() antlr.TerminalNode
- func (s *EqualityExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EqualityExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EqualityExprContext) GetOp() antlr.Token
- func (s *EqualityExprContext) GetRuleContext() antlr.RuleContext
- func (s *EqualityExprContext) NEQ() antlr.TerminalNode
- func (s *EqualityExprContext) PrimaryExpression() IPrimaryExpressionContext
- func (s *EqualityExprContext) SetOp(v antlr.Token)
- type ExpressionContext
- func (s *ExpressionContext) CopyFrom(ctx *ExpressionContext)
- func (s *ExpressionContext) GetParser() antlr.Parser
- func (s *ExpressionContext) GetRuleContext() antlr.RuleContext
- func (*ExpressionContext) IsExpressionContext()
- func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FuncExprContext
- func (s *FuncExprContext) ArgumentExpressionList() IArgumentExpressionListContext
- func (s *FuncExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FuncExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FuncExprContext) GetRuleContext() antlr.RuleContext
- func (s *FuncExprContext) Identifier() antlr.TerminalNode
- type IArgumentExpressionListContext
- type IBooleanExpressionContext
- type IExpressionContext
- type INumberListContext
- type IPrimaryExpressionContext
- type IRulesContext
- type IStringListContext
- type IValueListContext
- type IdentContext
- type InCondContext
- func (s *InCondContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *InCondContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *InCondContext) GetRuleContext() antlr.RuleContext
- func (s *InCondContext) IN() antlr.TerminalNode
- func (s *InCondContext) Identifier() antlr.TerminalNode
- func (s *InCondContext) ValueList() IValueListContext
- type LogicalExprContext
- func (s *LogicalExprContext) AND() antlr.TerminalNode
- func (s *LogicalExprContext) BooleanExpression() IBooleanExpressionContext
- func (s *LogicalExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LogicalExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LogicalExprContext) Expression() IExpressionContext
- func (s *LogicalExprContext) GetOp() antlr.Token
- func (s *LogicalExprContext) GetRuleContext() antlr.RuleContext
- func (s *LogicalExprContext) OR() antlr.TerminalNode
- func (s *LogicalExprContext) SetOp(v antlr.Token)
- type MultiplicativeExprContext
- func (s *MultiplicativeExprContext) AllPrimaryExpression() []IPrimaryExpressionContext
- func (s *MultiplicativeExprContext) DIV() antlr.TerminalNode
- func (s *MultiplicativeExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MultiplicativeExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MultiplicativeExprContext) GetOp() antlr.Token
- func (s *MultiplicativeExprContext) GetRuleContext() antlr.RuleContext
- func (s *MultiplicativeExprContext) MOD() antlr.TerminalNode
- func (s *MultiplicativeExprContext) MUL() antlr.TerminalNode
- func (s *MultiplicativeExprContext) PrimaryExpression(i int) IPrimaryExpressionContext
- func (s *MultiplicativeExprContext) SetOp(v antlr.Token)
- type NumberListContext
- func (s *NumberListContext) AllNumberLiteral() []antlr.TerminalNode
- func (s *NumberListContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *NumberListContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *NumberListContext) GetParser() antlr.Parser
- func (s *NumberListContext) GetRuleContext() antlr.RuleContext
- func (*NumberListContext) IsNumberListContext()
- func (s *NumberListContext) NumberLiteral(i int) antlr.TerminalNode
- func (s *NumberListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type NumberLitContext
- type ParentExprContext
- func (s *ParentExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ParentExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ParentExprContext) Expression() IExpressionContext
- func (s *ParentExprContext) GetRuleContext() antlr.RuleContext
- func (s *ParentExprContext) LPARENT() antlr.TerminalNode
- func (s *ParentExprContext) RPARENT() antlr.TerminalNode
- type PrimaryExprContext
- type PrimaryExpressionContext
- func (s *PrimaryExpressionContext) CopyFrom(ctx *PrimaryExpressionContext)
- func (s *PrimaryExpressionContext) GetParser() antlr.Parser
- func (s *PrimaryExpressionContext) GetRuleContext() antlr.RuleContext
- func (*PrimaryExpressionContext) IsPrimaryExpressionContext()
- func (s *PrimaryExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RelationalExprContext
- func (s *RelationalExprContext) BooleanExpression() IBooleanExpressionContext
- func (s *RelationalExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RelationalExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RelationalExprContext) GT() antlr.TerminalNode
- func (s *RelationalExprContext) GTE() antlr.TerminalNode
- func (s *RelationalExprContext) GetOp() antlr.Token
- func (s *RelationalExprContext) GetRuleContext() antlr.RuleContext
- func (s *RelationalExprContext) LT() antlr.TerminalNode
- func (s *RelationalExprContext) LTE() antlr.TerminalNode
- func (s *RelationalExprContext) PrimaryExpression() IPrimaryExpressionContext
- func (s *RelationalExprContext) SetOp(v antlr.Token)
- type RulesContext
- func (s *RulesContext) EOF() antlr.TerminalNode
- func (s *RulesContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RulesContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RulesContext) Expression() IExpressionContext
- func (s *RulesContext) GetParser() antlr.Parser
- func (s *RulesContext) GetRuleContext() antlr.RuleContext
- func (*RulesContext) IsRulesContext()
- func (s *RulesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RulesLexer
- type RulesListener
- type RulesParser
- func (p *RulesParser) ArgumentExpressionList() (localctx IArgumentExpressionListContext)
- func (p *RulesParser) BooleanExpression() (localctx IBooleanExpressionContext)
- func (p *RulesParser) BooleanExpression_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *RulesParser) Expression() (localctx IExpressionContext)
- func (p *RulesParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *RulesParser) NumberList() (localctx INumberListContext)
- func (p *RulesParser) PrimaryExpression() (localctx IPrimaryExpressionContext)
- func (p *RulesParser) PrimaryExpression_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *RulesParser) Rules() (localctx IRulesContext)
- func (p *RulesParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *RulesParser) StringList() (localctx IStringListContext)
- func (p *RulesParser) ValueList() (localctx IValueListContext)
- type StringListContext
- func (s *StringListContext) AllStringLiteral() []antlr.TerminalNode
- func (s *StringListContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StringListContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StringListContext) GetParser() antlr.Parser
- func (s *StringListContext) GetRuleContext() antlr.RuleContext
- func (*StringListContext) IsStringListContext()
- func (s *StringListContext) StringLiteral(i int) antlr.TerminalNode
- func (s *StringListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StringLitContext
- type ValueListContext
- func (s *ValueListContext) AllNumberList() []INumberListContext
- func (s *ValueListContext) AllStringList() []IStringListContext
- func (s *ValueListContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ValueListContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ValueListContext) GetParser() antlr.Parser
- func (s *ValueListContext) GetRuleContext() antlr.RuleContext
- func (*ValueListContext) IsValueListContext()
- func (s *ValueListContext) NumberList(i int) INumberListContext
- func (s *ValueListContext) StringList(i int) IStringListContext
- func (s *ValueListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
const ( RulesLexerT__0 = 1 RulesLexerT__1 = 2 RulesLexerT__2 = 3 RulesLexerAND = 4 RulesLexerOR = 5 RulesLexerEQ = 6 RulesLexerNEQ = 7 RulesLexerLT = 8 RulesLexerLTE = 9 RulesLexerGT = 10 RulesLexerGTE = 11 RulesLexerIN = 12 RulesLexerADD = 13 RulesLexerSUB = 14 RulesLexerMUL = 15 RulesLexerDIV = 16 RulesLexerMOD = 17 RulesLexerCONTAINS = 18 RulesLexerLPARENT = 19 RulesLexerRPARENT = 20 RulesLexerBooleanLiteral = 21 RulesLexerNumberLiteral = 22 RulesLexerDurationLiteral = 23 RulesLexerStringLiteral = 24 RulesLexerIdentifier = 25 RulesLexerWS = 26 )
RulesLexer tokens.
const ( RulesParserEOF = antlr.TokenEOF RulesParserT__0 = 1 RulesParserT__1 = 2 RulesParserT__2 = 3 RulesParserAND = 4 RulesParserOR = 5 RulesParserEQ = 6 RulesParserNEQ = 7 RulesParserLT = 8 RulesParserLTE = 9 RulesParserGT = 10 RulesParserGTE = 11 RulesParserIN = 12 RulesParserADD = 13 RulesParserSUB = 14 RulesParserMUL = 15 RulesParserDIV = 16 RulesParserMOD = 17 RulesParserCONTAINS = 18 RulesParserLPARENT = 19 RulesParserRPARENT = 20 RulesParserBooleanLiteral = 21 RulesParserNumberLiteral = 22 RulesParserDurationLiteral = 23 RulesParserStringLiteral = 24 RulesParserIdentifier = 25 RulesParserWS = 26 )
RulesParser tokens.
const ( RulesParserRULE_rules = 0 RulesParserRULE_argumentExpressionList = 1 RulesParserRULE_numberList = 2 RulesParserRULE_stringList = 3 RulesParserRULE_valueList = 4 RulesParserRULE_primaryExpression = 5 RulesParserRULE_booleanExpression = 6 RulesParserRULE_expression = 7 )
RulesParser rules.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditiveExprContext ¶
type AdditiveExprContext struct { *PrimaryExpressionContext // contains filtered or unexported fields }
func NewAdditiveExprContext ¶
func NewAdditiveExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AdditiveExprContext
func (*AdditiveExprContext) ADD ¶
func (s *AdditiveExprContext) ADD() antlr.TerminalNode
func (*AdditiveExprContext) AllPrimaryExpression ¶
func (s *AdditiveExprContext) AllPrimaryExpression() []IPrimaryExpressionContext
func (*AdditiveExprContext) EnterRule ¶
func (s *AdditiveExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*AdditiveExprContext) ExitRule ¶
func (s *AdditiveExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*AdditiveExprContext) GetOp ¶
func (s *AdditiveExprContext) GetOp() antlr.Token
func (*AdditiveExprContext) GetRuleContext ¶
func (s *AdditiveExprContext) GetRuleContext() antlr.RuleContext
func (*AdditiveExprContext) PrimaryExpression ¶
func (s *AdditiveExprContext) PrimaryExpression(i int) IPrimaryExpressionContext
func (*AdditiveExprContext) SUB ¶
func (s *AdditiveExprContext) SUB() antlr.TerminalNode
func (*AdditiveExprContext) SetOp ¶
func (s *AdditiveExprContext) SetOp(v antlr.Token)
type ArgumentExpressionListContext ¶
type ArgumentExpressionListContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewArgumentExpressionListContext ¶
func NewArgumentExpressionListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgumentExpressionListContext
func NewEmptyArgumentExpressionListContext ¶
func NewEmptyArgumentExpressionListContext() *ArgumentExpressionListContext
func (*ArgumentExpressionListContext) AllExpression ¶
func (s *ArgumentExpressionListContext) AllExpression() []IExpressionContext
func (*ArgumentExpressionListContext) EnterRule ¶
func (s *ArgumentExpressionListContext) EnterRule(listener antlr.ParseTreeListener)
func (*ArgumentExpressionListContext) ExitRule ¶
func (s *ArgumentExpressionListContext) ExitRule(listener antlr.ParseTreeListener)
func (*ArgumentExpressionListContext) Expression ¶
func (s *ArgumentExpressionListContext) Expression(i int) IExpressionContext
func (*ArgumentExpressionListContext) GetParser ¶
func (s *ArgumentExpressionListContext) GetParser() antlr.Parser
func (*ArgumentExpressionListContext) GetRuleContext ¶
func (s *ArgumentExpressionListContext) GetRuleContext() antlr.RuleContext
func (*ArgumentExpressionListContext) IsArgumentExpressionListContext ¶
func (*ArgumentExpressionListContext) IsArgumentExpressionListContext()
func (*ArgumentExpressionListContext) LPARENT ¶
func (s *ArgumentExpressionListContext) LPARENT() antlr.TerminalNode
func (*ArgumentExpressionListContext) RPARENT ¶
func (s *ArgumentExpressionListContext) RPARENT() antlr.TerminalNode
func (*ArgumentExpressionListContext) ToStringTree ¶
func (s *ArgumentExpressionListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaseRulesListener ¶
type BaseRulesListener struct{}
BaseRulesListener is a complete listener for a parse tree produced by RulesParser.
func (*BaseRulesListener) EnterAdditiveExpr ¶
func (s *BaseRulesListener) EnterAdditiveExpr(ctx *AdditiveExprContext)
EnterAdditiveExpr is called when production AdditiveExpr is entered.
func (*BaseRulesListener) EnterArgumentExpressionList ¶
func (s *BaseRulesListener) EnterArgumentExpressionList(ctx *ArgumentExpressionListContext)
EnterArgumentExpressionList is called when production argumentExpressionList is entered.
func (*BaseRulesListener) EnterBoolLit ¶
func (s *BaseRulesListener) EnterBoolLit(ctx *BoolLitContext)
EnterBoolLit is called when production BoolLit is entered.
func (*BaseRulesListener) EnterBooleanExpr ¶
func (s *BaseRulesListener) EnterBooleanExpr(ctx *BooleanExprContext)
EnterBooleanExpr is called when production BooleanExpr is entered.
func (*BaseRulesListener) EnterContainsCond ¶ added in v1.3.0
func (s *BaseRulesListener) EnterContainsCond(ctx *ContainsCondContext)
EnterContainsCond is called when production ContainsCond is entered.
func (*BaseRulesListener) EnterDurationLit ¶
func (s *BaseRulesListener) EnterDurationLit(ctx *DurationLitContext)
EnterDurationLit is called when production DurationLit is entered.
func (*BaseRulesListener) EnterEqualityExpr ¶
func (s *BaseRulesListener) EnterEqualityExpr(ctx *EqualityExprContext)
EnterEqualityExpr is called when production EqualityExpr is entered.
func (*BaseRulesListener) EnterEveryRule ¶
func (s *BaseRulesListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseRulesListener) EnterFuncExpr ¶
func (s *BaseRulesListener) EnterFuncExpr(ctx *FuncExprContext)
EnterFuncExpr is called when production FuncExpr is entered.
func (*BaseRulesListener) EnterIdent ¶
func (s *BaseRulesListener) EnterIdent(ctx *IdentContext)
EnterIdent is called when production Ident is entered.
func (*BaseRulesListener) EnterInCond ¶
func (s *BaseRulesListener) EnterInCond(ctx *InCondContext)
EnterInCond is called when production InCond is entered.
func (*BaseRulesListener) EnterLogicalExpr ¶
func (s *BaseRulesListener) EnterLogicalExpr(ctx *LogicalExprContext)
EnterLogicalExpr is called when production LogicalExpr is entered.
func (*BaseRulesListener) EnterMultiplicativeExpr ¶
func (s *BaseRulesListener) EnterMultiplicativeExpr(ctx *MultiplicativeExprContext)
EnterMultiplicativeExpr is called when production MultiplicativeExpr is entered.
func (*BaseRulesListener) EnterNumberList ¶
func (s *BaseRulesListener) EnterNumberList(ctx *NumberListContext)
EnterNumberList is called when production numberList is entered.
func (*BaseRulesListener) EnterNumberLit ¶
func (s *BaseRulesListener) EnterNumberLit(ctx *NumberLitContext)
EnterNumberLit is called when production NumberLit is entered.
func (*BaseRulesListener) EnterParentExpr ¶
func (s *BaseRulesListener) EnterParentExpr(ctx *ParentExprContext)
EnterParentExpr is called when production ParentExpr is entered.
func (*BaseRulesListener) EnterPrimaryExpr ¶
func (s *BaseRulesListener) EnterPrimaryExpr(ctx *PrimaryExprContext)
EnterPrimaryExpr is called when production PrimaryExpr is entered.
func (*BaseRulesListener) EnterRelationalExpr ¶
func (s *BaseRulesListener) EnterRelationalExpr(ctx *RelationalExprContext)
EnterRelationalExpr is called when production RelationalExpr is entered.
func (*BaseRulesListener) EnterRules ¶
func (s *BaseRulesListener) EnterRules(ctx *RulesContext)
EnterRules is called when production rules is entered.
func (*BaseRulesListener) EnterStringList ¶
func (s *BaseRulesListener) EnterStringList(ctx *StringListContext)
EnterStringList is called when production stringList is entered.
func (*BaseRulesListener) EnterStringLit ¶
func (s *BaseRulesListener) EnterStringLit(ctx *StringLitContext)
EnterStringLit is called when production StringLit is entered.
func (*BaseRulesListener) EnterValueList ¶
func (s *BaseRulesListener) EnterValueList(ctx *ValueListContext)
EnterValueList is called when production valueList is entered.
func (*BaseRulesListener) ExitAdditiveExpr ¶
func (s *BaseRulesListener) ExitAdditiveExpr(ctx *AdditiveExprContext)
ExitAdditiveExpr is called when production AdditiveExpr is exited.
func (*BaseRulesListener) ExitArgumentExpressionList ¶
func (s *BaseRulesListener) ExitArgumentExpressionList(ctx *ArgumentExpressionListContext)
ExitArgumentExpressionList is called when production argumentExpressionList is exited.
func (*BaseRulesListener) ExitBoolLit ¶
func (s *BaseRulesListener) ExitBoolLit(ctx *BoolLitContext)
ExitBoolLit is called when production BoolLit is exited.
func (*BaseRulesListener) ExitBooleanExpr ¶
func (s *BaseRulesListener) ExitBooleanExpr(ctx *BooleanExprContext)
ExitBooleanExpr is called when production BooleanExpr is exited.
func (*BaseRulesListener) ExitContainsCond ¶ added in v1.3.0
func (s *BaseRulesListener) ExitContainsCond(ctx *ContainsCondContext)
ExitContainsCond is called when production ContainsCond is exited.
func (*BaseRulesListener) ExitDurationLit ¶
func (s *BaseRulesListener) ExitDurationLit(ctx *DurationLitContext)
ExitDurationLit is called when production DurationLit is exited.
func (*BaseRulesListener) ExitEqualityExpr ¶
func (s *BaseRulesListener) ExitEqualityExpr(ctx *EqualityExprContext)
ExitEqualityExpr is called when production EqualityExpr is exited.
func (*BaseRulesListener) ExitEveryRule ¶
func (s *BaseRulesListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseRulesListener) ExitFuncExpr ¶
func (s *BaseRulesListener) ExitFuncExpr(ctx *FuncExprContext)
ExitFuncExpr is called when production FuncExpr is exited.
func (*BaseRulesListener) ExitIdent ¶
func (s *BaseRulesListener) ExitIdent(ctx *IdentContext)
ExitIdent is called when production Ident is exited.
func (*BaseRulesListener) ExitInCond ¶
func (s *BaseRulesListener) ExitInCond(ctx *InCondContext)
ExitInCond is called when production InCond is exited.
func (*BaseRulesListener) ExitLogicalExpr ¶
func (s *BaseRulesListener) ExitLogicalExpr(ctx *LogicalExprContext)
ExitLogicalExpr is called when production LogicalExpr is exited.
func (*BaseRulesListener) ExitMultiplicativeExpr ¶
func (s *BaseRulesListener) ExitMultiplicativeExpr(ctx *MultiplicativeExprContext)
ExitMultiplicativeExpr is called when production MultiplicativeExpr is exited.
func (*BaseRulesListener) ExitNumberList ¶
func (s *BaseRulesListener) ExitNumberList(ctx *NumberListContext)
ExitNumberList is called when production numberList is exited.
func (*BaseRulesListener) ExitNumberLit ¶
func (s *BaseRulesListener) ExitNumberLit(ctx *NumberLitContext)
ExitNumberLit is called when production NumberLit is exited.
func (*BaseRulesListener) ExitParentExpr ¶
func (s *BaseRulesListener) ExitParentExpr(ctx *ParentExprContext)
ExitParentExpr is called when production ParentExpr is exited.
func (*BaseRulesListener) ExitPrimaryExpr ¶
func (s *BaseRulesListener) ExitPrimaryExpr(ctx *PrimaryExprContext)
ExitPrimaryExpr is called when production PrimaryExpr is exited.
func (*BaseRulesListener) ExitRelationalExpr ¶
func (s *BaseRulesListener) ExitRelationalExpr(ctx *RelationalExprContext)
ExitRelationalExpr is called when production RelationalExpr is exited.
func (*BaseRulesListener) ExitRules ¶
func (s *BaseRulesListener) ExitRules(ctx *RulesContext)
ExitRules is called when production rules is exited.
func (*BaseRulesListener) ExitStringList ¶
func (s *BaseRulesListener) ExitStringList(ctx *StringListContext)
ExitStringList is called when production stringList is exited.
func (*BaseRulesListener) ExitStringLit ¶
func (s *BaseRulesListener) ExitStringLit(ctx *StringLitContext)
ExitStringLit is called when production StringLit is exited.
func (*BaseRulesListener) ExitValueList ¶
func (s *BaseRulesListener) ExitValueList(ctx *ValueListContext)
ExitValueList is called when production valueList is exited.
func (*BaseRulesListener) VisitErrorNode ¶
func (s *BaseRulesListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseRulesListener) VisitTerminal ¶
func (s *BaseRulesListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type BoolLitContext ¶
type BoolLitContext struct {
*PrimaryExpressionContext
}
func NewBoolLitContext ¶
func NewBoolLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BoolLitContext
func (*BoolLitContext) BooleanLiteral ¶
func (s *BoolLitContext) BooleanLiteral() antlr.TerminalNode
func (*BoolLitContext) EnterRule ¶
func (s *BoolLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*BoolLitContext) ExitRule ¶
func (s *BoolLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*BoolLitContext) GetRuleContext ¶
func (s *BoolLitContext) GetRuleContext() antlr.RuleContext
type BooleanExprContext ¶
type BooleanExprContext struct {
*ExpressionContext
}
func NewBooleanExprContext ¶
func NewBooleanExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BooleanExprContext
func (*BooleanExprContext) BooleanExpression ¶
func (s *BooleanExprContext) BooleanExpression() IBooleanExpressionContext
func (*BooleanExprContext) EnterRule ¶
func (s *BooleanExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*BooleanExprContext) ExitRule ¶
func (s *BooleanExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*BooleanExprContext) GetRuleContext ¶
func (s *BooleanExprContext) GetRuleContext() antlr.RuleContext
type BooleanExpressionContext ¶
type BooleanExpressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBooleanExpressionContext ¶
func NewBooleanExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BooleanExpressionContext
func NewEmptyBooleanExpressionContext ¶
func NewEmptyBooleanExpressionContext() *BooleanExpressionContext
func (*BooleanExpressionContext) CopyFrom ¶
func (s *BooleanExpressionContext) CopyFrom(ctx *BooleanExpressionContext)
func (*BooleanExpressionContext) GetParser ¶
func (s *BooleanExpressionContext) GetParser() antlr.Parser
func (*BooleanExpressionContext) GetRuleContext ¶
func (s *BooleanExpressionContext) GetRuleContext() antlr.RuleContext
func (*BooleanExpressionContext) IsBooleanExpressionContext ¶
func (*BooleanExpressionContext) IsBooleanExpressionContext()
func (*BooleanExpressionContext) ToStringTree ¶
func (s *BooleanExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ContainsCondContext ¶ added in v1.3.0
type ContainsCondContext struct {
*PrimaryExpressionContext
}
func NewContainsCondContext ¶ added in v1.3.0
func NewContainsCondContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ContainsCondContext
func (*ContainsCondContext) CONTAINS ¶ added in v1.3.0
func (s *ContainsCondContext) CONTAINS() antlr.TerminalNode
func (*ContainsCondContext) EnterRule ¶ added in v1.3.0
func (s *ContainsCondContext) EnterRule(listener antlr.ParseTreeListener)
func (*ContainsCondContext) ExitRule ¶ added in v1.3.0
func (s *ContainsCondContext) ExitRule(listener antlr.ParseTreeListener)
func (*ContainsCondContext) GetRuleContext ¶ added in v1.3.0
func (s *ContainsCondContext) GetRuleContext() antlr.RuleContext
func (*ContainsCondContext) Identifier ¶ added in v1.3.0
func (s *ContainsCondContext) Identifier() antlr.TerminalNode
func (*ContainsCondContext) NumberLiteral ¶ added in v1.3.0
func (s *ContainsCondContext) NumberLiteral() antlr.TerminalNode
func (*ContainsCondContext) StringLiteral ¶ added in v1.3.0
func (s *ContainsCondContext) StringLiteral() antlr.TerminalNode
type DurationLitContext ¶
type DurationLitContext struct {
*PrimaryExpressionContext
}
func NewDurationLitContext ¶
func NewDurationLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DurationLitContext
func (*DurationLitContext) DurationLiteral ¶
func (s *DurationLitContext) DurationLiteral() antlr.TerminalNode
func (*DurationLitContext) EnterRule ¶
func (s *DurationLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*DurationLitContext) ExitRule ¶
func (s *DurationLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*DurationLitContext) GetRuleContext ¶
func (s *DurationLitContext) GetRuleContext() antlr.RuleContext
type EqualityExprContext ¶
type EqualityExprContext struct { *BooleanExpressionContext // contains filtered or unexported fields }
func NewEqualityExprContext ¶
func NewEqualityExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *EqualityExprContext
func (*EqualityExprContext) BooleanExpression ¶
func (s *EqualityExprContext) BooleanExpression() IBooleanExpressionContext
func (*EqualityExprContext) EQ ¶
func (s *EqualityExprContext) EQ() antlr.TerminalNode
func (*EqualityExprContext) EnterRule ¶
func (s *EqualityExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*EqualityExprContext) ExitRule ¶
func (s *EqualityExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*EqualityExprContext) GetOp ¶
func (s *EqualityExprContext) GetOp() antlr.Token
func (*EqualityExprContext) GetRuleContext ¶
func (s *EqualityExprContext) GetRuleContext() antlr.RuleContext
func (*EqualityExprContext) NEQ ¶
func (s *EqualityExprContext) NEQ() antlr.TerminalNode
func (*EqualityExprContext) PrimaryExpression ¶
func (s *EqualityExprContext) PrimaryExpression() IPrimaryExpressionContext
func (*EqualityExprContext) SetOp ¶
func (s *EqualityExprContext) SetOp(v antlr.Token)
type ExpressionContext ¶
type ExpressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyExpressionContext ¶
func NewEmptyExpressionContext() *ExpressionContext
func NewExpressionContext ¶
func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext
func (*ExpressionContext) CopyFrom ¶
func (s *ExpressionContext) CopyFrom(ctx *ExpressionContext)
func (*ExpressionContext) GetParser ¶
func (s *ExpressionContext) GetParser() antlr.Parser
func (*ExpressionContext) GetRuleContext ¶
func (s *ExpressionContext) GetRuleContext() antlr.RuleContext
func (*ExpressionContext) IsExpressionContext ¶
func (*ExpressionContext) IsExpressionContext()
func (*ExpressionContext) ToStringTree ¶
func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FuncExprContext ¶
type FuncExprContext struct {
*PrimaryExpressionContext
}
func NewFuncExprContext ¶
func NewFuncExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FuncExprContext
func (*FuncExprContext) ArgumentExpressionList ¶
func (s *FuncExprContext) ArgumentExpressionList() IArgumentExpressionListContext
func (*FuncExprContext) EnterRule ¶
func (s *FuncExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*FuncExprContext) ExitRule ¶
func (s *FuncExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*FuncExprContext) GetRuleContext ¶
func (s *FuncExprContext) GetRuleContext() antlr.RuleContext
func (*FuncExprContext) Identifier ¶
func (s *FuncExprContext) Identifier() antlr.TerminalNode
type IArgumentExpressionListContext ¶
type IArgumentExpressionListContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsArgumentExpressionListContext differentiates from other interfaces. IsArgumentExpressionListContext() }
IArgumentExpressionListContext is an interface to support dynamic dispatch.
type IBooleanExpressionContext ¶
type IBooleanExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBooleanExpressionContext differentiates from other interfaces. IsBooleanExpressionContext() }
IBooleanExpressionContext is an interface to support dynamic dispatch.
type IExpressionContext ¶
type IExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsExpressionContext differentiates from other interfaces. IsExpressionContext() }
IExpressionContext is an interface to support dynamic dispatch.
type INumberListContext ¶
type INumberListContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsNumberListContext differentiates from other interfaces. IsNumberListContext() }
INumberListContext is an interface to support dynamic dispatch.
type IPrimaryExpressionContext ¶
type IPrimaryExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsPrimaryExpressionContext differentiates from other interfaces. IsPrimaryExpressionContext() }
IPrimaryExpressionContext is an interface to support dynamic dispatch.
type IRulesContext ¶
type IRulesContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRulesContext differentiates from other interfaces. IsRulesContext() }
IRulesContext is an interface to support dynamic dispatch.
type IStringListContext ¶
type IStringListContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStringListContext differentiates from other interfaces. IsStringListContext() }
IStringListContext is an interface to support dynamic dispatch.
type IValueListContext ¶
type IValueListContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsValueListContext differentiates from other interfaces. IsValueListContext() }
IValueListContext is an interface to support dynamic dispatch.
type IdentContext ¶
type IdentContext struct {
*PrimaryExpressionContext
}
func NewIdentContext ¶
func NewIdentContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IdentContext
func (*IdentContext) EnterRule ¶
func (s *IdentContext) EnterRule(listener antlr.ParseTreeListener)
func (*IdentContext) ExitRule ¶
func (s *IdentContext) ExitRule(listener antlr.ParseTreeListener)
func (*IdentContext) GetRuleContext ¶
func (s *IdentContext) GetRuleContext() antlr.RuleContext
func (*IdentContext) Identifier ¶
func (s *IdentContext) Identifier() antlr.TerminalNode
type InCondContext ¶
type InCondContext struct {
*PrimaryExpressionContext
}
func NewInCondContext ¶
func NewInCondContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *InCondContext
func (*InCondContext) EnterRule ¶
func (s *InCondContext) EnterRule(listener antlr.ParseTreeListener)
func (*InCondContext) ExitRule ¶
func (s *InCondContext) ExitRule(listener antlr.ParseTreeListener)
func (*InCondContext) GetRuleContext ¶
func (s *InCondContext) GetRuleContext() antlr.RuleContext
func (*InCondContext) IN ¶
func (s *InCondContext) IN() antlr.TerminalNode
func (*InCondContext) Identifier ¶
func (s *InCondContext) Identifier() antlr.TerminalNode
func (*InCondContext) ValueList ¶
func (s *InCondContext) ValueList() IValueListContext
type LogicalExprContext ¶
type LogicalExprContext struct { *ExpressionContext // contains filtered or unexported fields }
func NewLogicalExprContext ¶
func NewLogicalExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LogicalExprContext
func (*LogicalExprContext) AND ¶
func (s *LogicalExprContext) AND() antlr.TerminalNode
func (*LogicalExprContext) BooleanExpression ¶
func (s *LogicalExprContext) BooleanExpression() IBooleanExpressionContext
func (*LogicalExprContext) EnterRule ¶
func (s *LogicalExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*LogicalExprContext) ExitRule ¶
func (s *LogicalExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*LogicalExprContext) Expression ¶
func (s *LogicalExprContext) Expression() IExpressionContext
func (*LogicalExprContext) GetOp ¶
func (s *LogicalExprContext) GetOp() antlr.Token
func (*LogicalExprContext) GetRuleContext ¶
func (s *LogicalExprContext) GetRuleContext() antlr.RuleContext
func (*LogicalExprContext) OR ¶
func (s *LogicalExprContext) OR() antlr.TerminalNode
func (*LogicalExprContext) SetOp ¶
func (s *LogicalExprContext) SetOp(v antlr.Token)
type MultiplicativeExprContext ¶
type MultiplicativeExprContext struct { *PrimaryExpressionContext // contains filtered or unexported fields }
func NewMultiplicativeExprContext ¶
func NewMultiplicativeExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MultiplicativeExprContext
func (*MultiplicativeExprContext) AllPrimaryExpression ¶
func (s *MultiplicativeExprContext) AllPrimaryExpression() []IPrimaryExpressionContext
func (*MultiplicativeExprContext) DIV ¶
func (s *MultiplicativeExprContext) DIV() antlr.TerminalNode
func (*MultiplicativeExprContext) EnterRule ¶
func (s *MultiplicativeExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*MultiplicativeExprContext) ExitRule ¶
func (s *MultiplicativeExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*MultiplicativeExprContext) GetOp ¶
func (s *MultiplicativeExprContext) GetOp() antlr.Token
func (*MultiplicativeExprContext) GetRuleContext ¶
func (s *MultiplicativeExprContext) GetRuleContext() antlr.RuleContext
func (*MultiplicativeExprContext) MOD ¶
func (s *MultiplicativeExprContext) MOD() antlr.TerminalNode
func (*MultiplicativeExprContext) MUL ¶
func (s *MultiplicativeExprContext) MUL() antlr.TerminalNode
func (*MultiplicativeExprContext) PrimaryExpression ¶
func (s *MultiplicativeExprContext) PrimaryExpression(i int) IPrimaryExpressionContext
func (*MultiplicativeExprContext) SetOp ¶
func (s *MultiplicativeExprContext) SetOp(v antlr.Token)
type NumberListContext ¶
type NumberListContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNumberListContext ¶
func NewEmptyNumberListContext() *NumberListContext
func NewNumberListContext ¶
func NewNumberListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NumberListContext
func (*NumberListContext) AllNumberLiteral ¶
func (s *NumberListContext) AllNumberLiteral() []antlr.TerminalNode
func (*NumberListContext) EnterRule ¶
func (s *NumberListContext) EnterRule(listener antlr.ParseTreeListener)
func (*NumberListContext) ExitRule ¶
func (s *NumberListContext) ExitRule(listener antlr.ParseTreeListener)
func (*NumberListContext) GetParser ¶
func (s *NumberListContext) GetParser() antlr.Parser
func (*NumberListContext) GetRuleContext ¶
func (s *NumberListContext) GetRuleContext() antlr.RuleContext
func (*NumberListContext) IsNumberListContext ¶
func (*NumberListContext) IsNumberListContext()
func (*NumberListContext) NumberLiteral ¶
func (s *NumberListContext) NumberLiteral(i int) antlr.TerminalNode
func (*NumberListContext) ToStringTree ¶
func (s *NumberListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type NumberLitContext ¶
type NumberLitContext struct {
*PrimaryExpressionContext
}
func NewNumberLitContext ¶
func NewNumberLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NumberLitContext
func (*NumberLitContext) EnterRule ¶
func (s *NumberLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*NumberLitContext) ExitRule ¶
func (s *NumberLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*NumberLitContext) GetRuleContext ¶
func (s *NumberLitContext) GetRuleContext() antlr.RuleContext
func (*NumberLitContext) NumberLiteral ¶
func (s *NumberLitContext) NumberLiteral() antlr.TerminalNode
type ParentExprContext ¶
type ParentExprContext struct {
*PrimaryExpressionContext
}
func NewParentExprContext ¶
func NewParentExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ParentExprContext
func (*ParentExprContext) EnterRule ¶
func (s *ParentExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*ParentExprContext) ExitRule ¶
func (s *ParentExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*ParentExprContext) Expression ¶
func (s *ParentExprContext) Expression() IExpressionContext
func (*ParentExprContext) GetRuleContext ¶
func (s *ParentExprContext) GetRuleContext() antlr.RuleContext
func (*ParentExprContext) LPARENT ¶
func (s *ParentExprContext) LPARENT() antlr.TerminalNode
func (*ParentExprContext) RPARENT ¶
func (s *ParentExprContext) RPARENT() antlr.TerminalNode
type PrimaryExprContext ¶
type PrimaryExprContext struct {
*BooleanExpressionContext
}
func NewPrimaryExprContext ¶
func NewPrimaryExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PrimaryExprContext
func (*PrimaryExprContext) EnterRule ¶
func (s *PrimaryExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*PrimaryExprContext) ExitRule ¶
func (s *PrimaryExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*PrimaryExprContext) GetRuleContext ¶
func (s *PrimaryExprContext) GetRuleContext() antlr.RuleContext
func (*PrimaryExprContext) PrimaryExpression ¶
func (s *PrimaryExprContext) PrimaryExpression() IPrimaryExpressionContext
type PrimaryExpressionContext ¶
type PrimaryExpressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPrimaryExpressionContext ¶
func NewEmptyPrimaryExpressionContext() *PrimaryExpressionContext
func NewPrimaryExpressionContext ¶
func NewPrimaryExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PrimaryExpressionContext
func (*PrimaryExpressionContext) CopyFrom ¶
func (s *PrimaryExpressionContext) CopyFrom(ctx *PrimaryExpressionContext)
func (*PrimaryExpressionContext) GetParser ¶
func (s *PrimaryExpressionContext) GetParser() antlr.Parser
func (*PrimaryExpressionContext) GetRuleContext ¶
func (s *PrimaryExpressionContext) GetRuleContext() antlr.RuleContext
func (*PrimaryExpressionContext) IsPrimaryExpressionContext ¶
func (*PrimaryExpressionContext) IsPrimaryExpressionContext()
func (*PrimaryExpressionContext) ToStringTree ¶
func (s *PrimaryExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RelationalExprContext ¶
type RelationalExprContext struct { *BooleanExpressionContext // contains filtered or unexported fields }
func NewRelationalExprContext ¶
func NewRelationalExprContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *RelationalExprContext
func (*RelationalExprContext) BooleanExpression ¶
func (s *RelationalExprContext) BooleanExpression() IBooleanExpressionContext
func (*RelationalExprContext) EnterRule ¶
func (s *RelationalExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*RelationalExprContext) ExitRule ¶
func (s *RelationalExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*RelationalExprContext) GT ¶
func (s *RelationalExprContext) GT() antlr.TerminalNode
func (*RelationalExprContext) GTE ¶
func (s *RelationalExprContext) GTE() antlr.TerminalNode
func (*RelationalExprContext) GetOp ¶
func (s *RelationalExprContext) GetOp() antlr.Token
func (*RelationalExprContext) GetRuleContext ¶
func (s *RelationalExprContext) GetRuleContext() antlr.RuleContext
func (*RelationalExprContext) LT ¶
func (s *RelationalExprContext) LT() antlr.TerminalNode
func (*RelationalExprContext) LTE ¶
func (s *RelationalExprContext) LTE() antlr.TerminalNode
func (*RelationalExprContext) PrimaryExpression ¶
func (s *RelationalExprContext) PrimaryExpression() IPrimaryExpressionContext
func (*RelationalExprContext) SetOp ¶
func (s *RelationalExprContext) SetOp(v antlr.Token)
type RulesContext ¶
type RulesContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRulesContext ¶
func NewEmptyRulesContext() *RulesContext
func NewRulesContext ¶
func NewRulesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RulesContext
func (*RulesContext) EOF ¶
func (s *RulesContext) EOF() antlr.TerminalNode
func (*RulesContext) EnterRule ¶
func (s *RulesContext) EnterRule(listener antlr.ParseTreeListener)
func (*RulesContext) ExitRule ¶
func (s *RulesContext) ExitRule(listener antlr.ParseTreeListener)
func (*RulesContext) Expression ¶
func (s *RulesContext) Expression() IExpressionContext
func (*RulesContext) GetParser ¶
func (s *RulesContext) GetParser() antlr.Parser
func (*RulesContext) GetRuleContext ¶
func (s *RulesContext) GetRuleContext() antlr.RuleContext
func (*RulesContext) IsRulesContext ¶
func (*RulesContext) IsRulesContext()
func (*RulesContext) ToStringTree ¶
func (s *RulesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RulesLexer ¶
func NewRulesLexer ¶
func NewRulesLexer(input antlr.CharStream) *RulesLexer
type RulesListener ¶
type RulesListener interface { antlr.ParseTreeListener // EnterRules is called when entering the rules production. EnterRules(c *RulesContext) // EnterArgumentExpressionList is called when entering the argumentExpressionList production. EnterArgumentExpressionList(c *ArgumentExpressionListContext) // EnterNumberList is called when entering the numberList production. EnterNumberList(c *NumberListContext) // EnterStringList is called when entering the stringList production. EnterStringList(c *StringListContext) // EnterValueList is called when entering the valueList production. EnterValueList(c *ValueListContext) // EnterMultiplicativeExpr is called when entering the MultiplicativeExpr production. EnterMultiplicativeExpr(c *MultiplicativeExprContext) // EnterIdent is called when entering the Ident production. EnterIdent(c *IdentContext) // EnterContainsCond is called when entering the ContainsCond production. EnterContainsCond(c *ContainsCondContext) // EnterAdditiveExpr is called when entering the AdditiveExpr production. EnterAdditiveExpr(c *AdditiveExprContext) // EnterNumberLit is called when entering the NumberLit production. EnterNumberLit(c *NumberLitContext) // EnterInCond is called when entering the InCond production. EnterInCond(c *InCondContext) // EnterDurationLit is called when entering the DurationLit production. EnterDurationLit(c *DurationLitContext) // EnterParentExpr is called when entering the ParentExpr production. EnterParentExpr(c *ParentExprContext) // EnterFuncExpr is called when entering the FuncExpr production. EnterFuncExpr(c *FuncExprContext) // EnterBoolLit is called when entering the BoolLit production. EnterBoolLit(c *BoolLitContext) // EnterStringLit is called when entering the StringLit production. EnterStringLit(c *StringLitContext) // EnterEqualityExpr is called when entering the EqualityExpr production. EnterEqualityExpr(c *EqualityExprContext) // EnterPrimaryExpr is called when entering the PrimaryExpr production. EnterPrimaryExpr(c *PrimaryExprContext) // EnterRelationalExpr is called when entering the RelationalExpr production. EnterRelationalExpr(c *RelationalExprContext) // EnterLogicalExpr is called when entering the LogicalExpr production. EnterLogicalExpr(c *LogicalExprContext) // EnterBooleanExpr is called when entering the BooleanExpr production. EnterBooleanExpr(c *BooleanExprContext) // ExitRules is called when exiting the rules production. ExitRules(c *RulesContext) // ExitArgumentExpressionList is called when exiting the argumentExpressionList production. ExitArgumentExpressionList(c *ArgumentExpressionListContext) // ExitNumberList is called when exiting the numberList production. ExitNumberList(c *NumberListContext) // ExitStringList is called when exiting the stringList production. ExitStringList(c *StringListContext) // ExitValueList is called when exiting the valueList production. ExitValueList(c *ValueListContext) // ExitMultiplicativeExpr is called when exiting the MultiplicativeExpr production. ExitMultiplicativeExpr(c *MultiplicativeExprContext) // ExitIdent is called when exiting the Ident production. ExitIdent(c *IdentContext) // ExitContainsCond is called when exiting the ContainsCond production. ExitContainsCond(c *ContainsCondContext) // ExitAdditiveExpr is called when exiting the AdditiveExpr production. ExitAdditiveExpr(c *AdditiveExprContext) // ExitNumberLit is called when exiting the NumberLit production. ExitNumberLit(c *NumberLitContext) // ExitInCond is called when exiting the InCond production. ExitInCond(c *InCondContext) // ExitDurationLit is called when exiting the DurationLit production. ExitDurationLit(c *DurationLitContext) // ExitParentExpr is called when exiting the ParentExpr production. ExitParentExpr(c *ParentExprContext) // ExitFuncExpr is called when exiting the FuncExpr production. ExitFuncExpr(c *FuncExprContext) // ExitBoolLit is called when exiting the BoolLit production. ExitBoolLit(c *BoolLitContext) // ExitStringLit is called when exiting the StringLit production. ExitStringLit(c *StringLitContext) // ExitEqualityExpr is called when exiting the EqualityExpr production. ExitEqualityExpr(c *EqualityExprContext) // ExitPrimaryExpr is called when exiting the PrimaryExpr production. ExitPrimaryExpr(c *PrimaryExprContext) // ExitRelationalExpr is called when exiting the RelationalExpr production. ExitRelationalExpr(c *RelationalExprContext) // ExitLogicalExpr is called when exiting the LogicalExpr production. ExitLogicalExpr(c *LogicalExprContext) // ExitBooleanExpr is called when exiting the BooleanExpr production. ExitBooleanExpr(c *BooleanExprContext) }
RulesListener is a complete listener for a parse tree produced by RulesParser.
type RulesParser ¶
type RulesParser struct {
*antlr.BaseParser
}
func NewRulesParser ¶
func NewRulesParser(input antlr.TokenStream) *RulesParser
func (*RulesParser) ArgumentExpressionList ¶
func (p *RulesParser) ArgumentExpressionList() (localctx IArgumentExpressionListContext)
func (*RulesParser) BooleanExpression ¶
func (p *RulesParser) BooleanExpression() (localctx IBooleanExpressionContext)
func (*RulesParser) BooleanExpression_Sempred ¶
func (p *RulesParser) BooleanExpression_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*RulesParser) Expression ¶
func (p *RulesParser) Expression() (localctx IExpressionContext)
func (*RulesParser) Expression_Sempred ¶
func (p *RulesParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*RulesParser) NumberList ¶
func (p *RulesParser) NumberList() (localctx INumberListContext)
func (*RulesParser) PrimaryExpression ¶
func (p *RulesParser) PrimaryExpression() (localctx IPrimaryExpressionContext)
func (*RulesParser) PrimaryExpression_Sempred ¶
func (p *RulesParser) PrimaryExpression_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*RulesParser) Rules ¶
func (p *RulesParser) Rules() (localctx IRulesContext)
func (*RulesParser) Sempred ¶
func (p *RulesParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
func (*RulesParser) StringList ¶
func (p *RulesParser) StringList() (localctx IStringListContext)
func (*RulesParser) ValueList ¶
func (p *RulesParser) ValueList() (localctx IValueListContext)
type StringListContext ¶
type StringListContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStringListContext ¶
func NewEmptyStringListContext() *StringListContext
func NewStringListContext ¶
func NewStringListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StringListContext
func (*StringListContext) AllStringLiteral ¶
func (s *StringListContext) AllStringLiteral() []antlr.TerminalNode
func (*StringListContext) EnterRule ¶
func (s *StringListContext) EnterRule(listener antlr.ParseTreeListener)
func (*StringListContext) ExitRule ¶
func (s *StringListContext) ExitRule(listener antlr.ParseTreeListener)
func (*StringListContext) GetParser ¶
func (s *StringListContext) GetParser() antlr.Parser
func (*StringListContext) GetRuleContext ¶
func (s *StringListContext) GetRuleContext() antlr.RuleContext
func (*StringListContext) IsStringListContext ¶
func (*StringListContext) IsStringListContext()
func (*StringListContext) StringLiteral ¶
func (s *StringListContext) StringLiteral(i int) antlr.TerminalNode
func (*StringListContext) ToStringTree ¶
func (s *StringListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StringLitContext ¶
type StringLitContext struct {
*PrimaryExpressionContext
}
func NewStringLitContext ¶
func NewStringLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StringLitContext
func (*StringLitContext) EnterRule ¶
func (s *StringLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*StringLitContext) ExitRule ¶
func (s *StringLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*StringLitContext) GetRuleContext ¶
func (s *StringLitContext) GetRuleContext() antlr.RuleContext
func (*StringLitContext) StringLiteral ¶
func (s *StringLitContext) StringLiteral() antlr.TerminalNode
type ValueListContext ¶
type ValueListContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyValueListContext ¶
func NewEmptyValueListContext() *ValueListContext
func NewValueListContext ¶
func NewValueListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueListContext
func (*ValueListContext) AllNumberList ¶
func (s *ValueListContext) AllNumberList() []INumberListContext
func (*ValueListContext) AllStringList ¶
func (s *ValueListContext) AllStringList() []IStringListContext
func (*ValueListContext) EnterRule ¶
func (s *ValueListContext) EnterRule(listener antlr.ParseTreeListener)
func (*ValueListContext) ExitRule ¶
func (s *ValueListContext) ExitRule(listener antlr.ParseTreeListener)
func (*ValueListContext) GetParser ¶
func (s *ValueListContext) GetParser() antlr.Parser
func (*ValueListContext) GetRuleContext ¶
func (s *ValueListContext) GetRuleContext() antlr.RuleContext
func (*ValueListContext) IsValueListContext ¶
func (*ValueListContext) IsValueListContext()
func (*ValueListContext) NumberList ¶
func (s *ValueListContext) NumberList(i int) INumberListContext
func (*ValueListContext) StringList ¶
func (s *ValueListContext) StringList(i int) IStringListContext
func (*ValueListContext) ToStringTree ¶
func (s *ValueListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string