Documentation
¶
Index ¶
- Constants
- Variables
- func InitEmptyArgumentExpressionListContext(p *ArgumentExpressionListContext)
- func InitEmptyBooleanExpressionContext(p *BooleanExpressionContext)
- func InitEmptyExpressionContext(p *ExpressionContext)
- func InitEmptyNumberListContext(p *NumberListContext)
- func InitEmptyPrimaryExpressionContext(p *PrimaryExpressionContext)
- func InitEmptyRulesContext(p *RulesContext)
- func InitEmptyStringListContext(p *StringListContext)
- func InitEmptyValueListContext(p *ValueListContext)
- func RulesLexerInit()
- func RulesParserInit()
- type AdditiveExprContext
- func (s *AdditiveExprContext) ADD() antlr.TerminalNode
- func (s *AdditiveExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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 BaseRulesVisitor
- func (v *BaseRulesVisitor) VisitAdditiveExpr(ctx *AdditiveExprContext) interface{}
- func (v *BaseRulesVisitor) VisitArgumentExpressionList(ctx *ArgumentExpressionListContext) interface{}
- func (v *BaseRulesVisitor) VisitBoolLit(ctx *BoolLitContext) interface{}
- func (v *BaseRulesVisitor) VisitBooleanExpr(ctx *BooleanExprContext) interface{}
- func (v *BaseRulesVisitor) VisitContainsCond(ctx *ContainsCondContext) interface{}
- func (v *BaseRulesVisitor) VisitDurationLit(ctx *DurationLitContext) interface{}
- func (v *BaseRulesVisitor) VisitEqualityExpr(ctx *EqualityExprContext) interface{}
- func (v *BaseRulesVisitor) VisitFuncExpr(ctx *FuncExprContext) interface{}
- func (v *BaseRulesVisitor) VisitIdent(ctx *IdentContext) interface{}
- func (v *BaseRulesVisitor) VisitInCond(ctx *InCondContext) interface{}
- func (v *BaseRulesVisitor) VisitLogicalExpr(ctx *LogicalExprContext) interface{}
- func (v *BaseRulesVisitor) VisitMultiplicativeExpr(ctx *MultiplicativeExprContext) interface{}
- func (v *BaseRulesVisitor) VisitNumberList(ctx *NumberListContext) interface{}
- func (v *BaseRulesVisitor) VisitNumberLit(ctx *NumberLitContext) interface{}
- func (v *BaseRulesVisitor) VisitParentExpr(ctx *ParentExprContext) interface{}
- func (v *BaseRulesVisitor) VisitPrimaryExpr(ctx *PrimaryExprContext) interface{}
- func (v *BaseRulesVisitor) VisitRelationalExpr(ctx *RelationalExprContext) interface{}
- func (v *BaseRulesVisitor) VisitRules(ctx *RulesContext) interface{}
- func (v *BaseRulesVisitor) VisitStringList(ctx *StringListContext) interface{}
- func (v *BaseRulesVisitor) VisitStringLit(ctx *StringLitContext) interface{}
- func (v *BaseRulesVisitor) VisitValueList(ctx *ValueListContext) interface{}
- type BoolLitContext
- func (s *BoolLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *BoolLitContext) BooleanLiteral() antlr.TerminalNode
- func (s *BoolLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BoolLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BoolLitContext) GetRuleContext() antlr.RuleContext
- type BooleanExprContext
- func (s *BooleanExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *BooleanExprContext) BooleanExpression() IBooleanExpressionContext
- func (s *BooleanExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BooleanExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BooleanExprContext) GetRuleContext() antlr.RuleContext
- type BooleanExpressionContext
- func (s *BooleanExpressionContext) CopyAll(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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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
- func (s *DurationLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *DurationLitContext) DurationLiteral() antlr.TerminalNode
- func (s *DurationLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DurationLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DurationLitContext) GetRuleContext() antlr.RuleContext
- type EqualityExprContext
- func (s *EqualityExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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) CopyAll(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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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
- func (s *IdentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *IdentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IdentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IdentContext) GetRuleContext() antlr.RuleContext
- func (s *IdentContext) Identifier() antlr.TerminalNode
- type InCondContext
- func (s *InCondContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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
- func (s *NumberLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *NumberLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *NumberLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *NumberLitContext) GetRuleContext() antlr.RuleContext
- func (s *NumberLitContext) NumberLiteral() antlr.TerminalNode
- type ParentExprContext
- func (s *ParentExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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
- func (s *PrimaryExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *PrimaryExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *PrimaryExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *PrimaryExprContext) GetRuleContext() antlr.RuleContext
- func (s *PrimaryExprContext) PrimaryExpression() IPrimaryExpressionContext
- type PrimaryExpressionContext
- func (s *PrimaryExpressionContext) CopyAll(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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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 RulesVisitor
- type StringListContext
- func (s *StringListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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
- func (s *StringLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *StringLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StringLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StringLitContext) GetRuleContext() antlr.RuleContext
- func (s *StringLitContext) StringLiteral() antlr.TerminalNode
- type ValueListContext
- func (s *ValueListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- 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 ¶
var RulesLexerLexerStaticData struct { ChannelNames []string ModeNames []string LiteralNames []string SymbolicNames []string RuleNames []string PredictionContextCache *antlr.PredictionContextCache // contains filtered or unexported fields }
var RulesParserStaticData struct { LiteralNames []string SymbolicNames []string RuleNames []string PredictionContextCache *antlr.PredictionContextCache // contains filtered or unexported fields }
Functions ¶
func InitEmptyArgumentExpressionListContext ¶
func InitEmptyArgumentExpressionListContext(p *ArgumentExpressionListContext)
func InitEmptyBooleanExpressionContext ¶
func InitEmptyBooleanExpressionContext(p *BooleanExpressionContext)
func InitEmptyExpressionContext ¶
func InitEmptyExpressionContext(p *ExpressionContext)
func InitEmptyNumberListContext ¶
func InitEmptyNumberListContext(p *NumberListContext)
func InitEmptyPrimaryExpressionContext ¶
func InitEmptyPrimaryExpressionContext(p *PrimaryExpressionContext)
func InitEmptyRulesContext ¶
func InitEmptyRulesContext(p *RulesContext)
func InitEmptyStringListContext ¶
func InitEmptyStringListContext(p *StringListContext)
func InitEmptyValueListContext ¶
func InitEmptyValueListContext(p *ValueListContext)
func RulesLexerInit ¶
func RulesLexerInit()
RulesLexerInit initializes any static state used to implement RulesLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewRulesLexer(). You can call this function if you wish to initialize the static state ahead of time.
func RulesParserInit ¶
func RulesParserInit()
RulesParserInit initializes any static state used to implement RulesParser. By default the static state used to implement the parser is lazily initialized during the first call to NewRulesParser(). You can call this function if you wish to initialize the static state ahead of time.
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) Accept ¶
func (s *AdditiveExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *ArgumentExpressionListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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 ¶
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 ¶
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 BaseRulesVisitor ¶
type BaseRulesVisitor struct {
*antlr.BaseParseTreeVisitor
}
func (*BaseRulesVisitor) VisitAdditiveExpr ¶
func (v *BaseRulesVisitor) VisitAdditiveExpr(ctx *AdditiveExprContext) interface{}
func (*BaseRulesVisitor) VisitArgumentExpressionList ¶
func (v *BaseRulesVisitor) VisitArgumentExpressionList(ctx *ArgumentExpressionListContext) interface{}
func (*BaseRulesVisitor) VisitBoolLit ¶
func (v *BaseRulesVisitor) VisitBoolLit(ctx *BoolLitContext) interface{}
func (*BaseRulesVisitor) VisitBooleanExpr ¶
func (v *BaseRulesVisitor) VisitBooleanExpr(ctx *BooleanExprContext) interface{}
func (*BaseRulesVisitor) VisitContainsCond ¶
func (v *BaseRulesVisitor) VisitContainsCond(ctx *ContainsCondContext) interface{}
func (*BaseRulesVisitor) VisitDurationLit ¶
func (v *BaseRulesVisitor) VisitDurationLit(ctx *DurationLitContext) interface{}
func (*BaseRulesVisitor) VisitEqualityExpr ¶
func (v *BaseRulesVisitor) VisitEqualityExpr(ctx *EqualityExprContext) interface{}
func (*BaseRulesVisitor) VisitFuncExpr ¶
func (v *BaseRulesVisitor) VisitFuncExpr(ctx *FuncExprContext) interface{}
func (*BaseRulesVisitor) VisitIdent ¶
func (v *BaseRulesVisitor) VisitIdent(ctx *IdentContext) interface{}
func (*BaseRulesVisitor) VisitInCond ¶
func (v *BaseRulesVisitor) VisitInCond(ctx *InCondContext) interface{}
func (*BaseRulesVisitor) VisitLogicalExpr ¶
func (v *BaseRulesVisitor) VisitLogicalExpr(ctx *LogicalExprContext) interface{}
func (*BaseRulesVisitor) VisitMultiplicativeExpr ¶
func (v *BaseRulesVisitor) VisitMultiplicativeExpr(ctx *MultiplicativeExprContext) interface{}
func (*BaseRulesVisitor) VisitNumberList ¶
func (v *BaseRulesVisitor) VisitNumberList(ctx *NumberListContext) interface{}
func (*BaseRulesVisitor) VisitNumberLit ¶
func (v *BaseRulesVisitor) VisitNumberLit(ctx *NumberLitContext) interface{}
func (*BaseRulesVisitor) VisitParentExpr ¶
func (v *BaseRulesVisitor) VisitParentExpr(ctx *ParentExprContext) interface{}
func (*BaseRulesVisitor) VisitPrimaryExpr ¶
func (v *BaseRulesVisitor) VisitPrimaryExpr(ctx *PrimaryExprContext) interface{}
func (*BaseRulesVisitor) VisitRelationalExpr ¶
func (v *BaseRulesVisitor) VisitRelationalExpr(ctx *RelationalExprContext) interface{}
func (*BaseRulesVisitor) VisitRules ¶
func (v *BaseRulesVisitor) VisitRules(ctx *RulesContext) interface{}
func (*BaseRulesVisitor) VisitStringList ¶
func (v *BaseRulesVisitor) VisitStringList(ctx *StringListContext) interface{}
func (*BaseRulesVisitor) VisitStringLit ¶
func (v *BaseRulesVisitor) VisitStringLit(ctx *StringLitContext) interface{}
func (*BaseRulesVisitor) VisitValueList ¶
func (v *BaseRulesVisitor) VisitValueList(ctx *ValueListContext) interface{}
type BoolLitContext ¶
type BoolLitContext struct {
PrimaryExpressionContext
}
func NewBoolLitContext ¶
func NewBoolLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BoolLitContext
func (*BoolLitContext) Accept ¶
func (s *BoolLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *BooleanExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) CopyAll ¶
func (s *BooleanExpressionContext) CopyAll(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 ¶
type ContainsCondContext struct {
PrimaryExpressionContext
}
func NewContainsCondContext ¶
func NewContainsCondContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ContainsCondContext
func (*ContainsCondContext) Accept ¶
func (s *ContainsCondContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ContainsCondContext) CONTAINS ¶
func (s *ContainsCondContext) CONTAINS() antlr.TerminalNode
func (*ContainsCondContext) EnterRule ¶
func (s *ContainsCondContext) EnterRule(listener antlr.ParseTreeListener)
func (*ContainsCondContext) ExitRule ¶
func (s *ContainsCondContext) ExitRule(listener antlr.ParseTreeListener)
func (*ContainsCondContext) GetRuleContext ¶
func (s *ContainsCondContext) GetRuleContext() antlr.RuleContext
func (*ContainsCondContext) Identifier ¶
func (s *ContainsCondContext) Identifier() antlr.TerminalNode
func (*ContainsCondContext) NumberLiteral ¶
func (s *ContainsCondContext) NumberLiteral() antlr.TerminalNode
func (*ContainsCondContext) StringLiteral ¶
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) Accept ¶
func (s *DurationLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *EqualityExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) CopyAll ¶
func (s *ExpressionContext) CopyAll(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) Accept ¶
func (s *FuncExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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
// Getter signatures
LPARENT() antlr.TerminalNode
RPARENT() antlr.TerminalNode
AllExpression() []IExpressionContext
Expression(i int) IExpressionContext
// 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
// Getter signatures
AllNumberLiteral() []antlr.TerminalNode
NumberLiteral(i int) antlr.TerminalNode
// 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
// Getter signatures
Expression() IExpressionContext
EOF() antlr.TerminalNode
// 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
// Getter signatures
AllStringLiteral() []antlr.TerminalNode
StringLiteral(i int) antlr.TerminalNode
// 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
// Getter signatures
AllNumberList() []INumberListContext
NumberList(i int) INumberListContext
AllStringList() []IStringListContext
StringList(i int) IStringListContext
// 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) Accept ¶
func (s *IdentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *InCondContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *LogicalExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *MultiplicativeExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *NumberListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *NumberLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *ParentExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *PrimaryExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) CopyAll ¶
func (s *PrimaryExpressionContext) CopyAll(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) Accept ¶
func (s *RelationalExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *RulesContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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
NewRulesLexer produces a new lexer instance for the optional input antlr.CharStream.
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
NewRulesParser produces a new parser instance for the optional input antlr.TokenStream.
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 RulesVisitor ¶
type RulesVisitor interface {
antlr.ParseTreeVisitor
// Visit a parse tree produced by RulesParser#rules.
VisitRules(ctx *RulesContext) interface{}
// Visit a parse tree produced by RulesParser#argumentExpressionList.
VisitArgumentExpressionList(ctx *ArgumentExpressionListContext) interface{}
// Visit a parse tree produced by RulesParser#numberList.
VisitNumberList(ctx *NumberListContext) interface{}
// Visit a parse tree produced by RulesParser#stringList.
VisitStringList(ctx *StringListContext) interface{}
// Visit a parse tree produced by RulesParser#valueList.
VisitValueList(ctx *ValueListContext) interface{}
// Visit a parse tree produced by RulesParser#MultiplicativeExpr.
VisitMultiplicativeExpr(ctx *MultiplicativeExprContext) interface{}
// Visit a parse tree produced by RulesParser#Ident.
VisitIdent(ctx *IdentContext) interface{}
// Visit a parse tree produced by RulesParser#ContainsCond.
VisitContainsCond(ctx *ContainsCondContext) interface{}
// Visit a parse tree produced by RulesParser#AdditiveExpr.
VisitAdditiveExpr(ctx *AdditiveExprContext) interface{}
// Visit a parse tree produced by RulesParser#NumberLit.
VisitNumberLit(ctx *NumberLitContext) interface{}
// Visit a parse tree produced by RulesParser#InCond.
VisitInCond(ctx *InCondContext) interface{}
// Visit a parse tree produced by RulesParser#DurationLit.
VisitDurationLit(ctx *DurationLitContext) interface{}
// Visit a parse tree produced by RulesParser#ParentExpr.
VisitParentExpr(ctx *ParentExprContext) interface{}
// Visit a parse tree produced by RulesParser#FuncExpr.
VisitFuncExpr(ctx *FuncExprContext) interface{}
// Visit a parse tree produced by RulesParser#BoolLit.
VisitBoolLit(ctx *BoolLitContext) interface{}
// Visit a parse tree produced by RulesParser#StringLit.
VisitStringLit(ctx *StringLitContext) interface{}
// Visit a parse tree produced by RulesParser#EqualityExpr.
VisitEqualityExpr(ctx *EqualityExprContext) interface{}
// Visit a parse tree produced by RulesParser#PrimaryExpr.
VisitPrimaryExpr(ctx *PrimaryExprContext) interface{}
// Visit a parse tree produced by RulesParser#RelationalExpr.
VisitRelationalExpr(ctx *RelationalExprContext) interface{}
// Visit a parse tree produced by RulesParser#LogicalExpr.
VisitLogicalExpr(ctx *LogicalExprContext) interface{}
// Visit a parse tree produced by RulesParser#BooleanExpr.
VisitBooleanExpr(ctx *BooleanExprContext) interface{}
}
A complete Visitor for a parse tree produced by RulesParser.
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) Accept ¶
func (s *StringListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *StringLitContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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) Accept ¶
func (s *ValueListContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
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