Documentation ¶
Index ¶
- Constants
- func RuleLexerInit()
- func RuleParserInit()
- type ADDSUBContext
- func (s *ADDSUBContext) ADD() antlr.TerminalNode
- func (s *ADDSUBContext) AllCalculateStatement() []ICalculateStatementContext
- func (s *ADDSUBContext) CalculateStatement(i int) ICalculateStatementContext
- func (s *ADDSUBContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ADDSUBContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ADDSUBContext) GetOp() antlr.Token
- func (s *ADDSUBContext) GetRuleContext() antlr.RuleContext
- func (s *ADDSUBContext) SUB() antlr.TerminalNode
- func (s *ADDSUBContext) SetOp(v antlr.Token)
- type ArrayContext
- func (s *ArrayContext) AllValueType() []IValueTypeContext
- func (s *ArrayContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ArrayContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ArrayContext) GetParser() antlr.Parser
- func (s *ArrayContext) GetRuleContext() antlr.RuleContext
- func (*ArrayContext) IsArrayContext()
- func (s *ArrayContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ArrayContext) ValueType(i int) IValueTypeContext
- type BOOLContext
- type BOOLOPContext
- func (s *BOOLOPContext) AllBoolStatement() []IBoolStatementContext
- func (s *BOOLOPContext) BoolOperate() IBoolOperateContext
- func (s *BOOLOPContext) BoolStatement(i int) IBoolStatementContext
- func (s *BOOLOPContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BOOLOPContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BOOLOPContext) GetOp() IBoolOperateContext
- func (s *BOOLOPContext) GetRuleContext() antlr.RuleContext
- func (s *BOOLOPContext) SetOp(v IBoolOperateContext)
- type BOOLOPXContext
- type BaseRuleListener
- func (s *BaseRuleListener) EnterADDSUB(ctx *ADDSUBContext)
- func (s *BaseRuleListener) EnterArray(ctx *ArrayContext)
- func (s *BaseRuleListener) EnterBOOL(ctx *BOOLContext)
- func (s *BaseRuleListener) EnterBOOLOP(ctx *BOOLOPContext)
- func (s *BaseRuleListener) EnterBOOLOPX(ctx *BOOLOPXContext)
- func (s *BaseRuleListener) EnterBoolOperate(ctx *BoolOperateContext)
- func (s *BaseRuleListener) EnterBoolValue(ctx *BoolValueContext)
- func (s *BaseRuleListener) EnterCALCULATEX(ctx *CALCULATEXContext)
- func (s *BaseRuleListener) EnterCOMPARE(ctx *COMPAREContext)
- func (s *BaseRuleListener) EnterCOMPAREBOOL(ctx *COMPAREBOOLContext)
- func (s *BaseRuleListener) EnterCOMPAREX(ctx *COMPAREXContext)
- func (s *BaseRuleListener) EnterCalcu(ctx *CalcuContext)
- func (s *BaseRuleListener) EnterCalculate(ctx *CalculateContext)
- func (s *BaseRuleListener) EnterCalculateValue(ctx *CalculateValueContext)
- func (s *BaseRuleListener) EnterCompare(ctx *CompareContext)
- func (s *BaseRuleListener) EnterElseIfStatement(ctx *ElseIfStatementContext)
- func (s *BaseRuleListener) EnterElseStatement(ctx *ElseStatementContext)
- func (s *BaseRuleListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseRuleListener) EnterFunCall(ctx *FunCallContext)
- func (s *BaseRuleListener) EnterGetMapOrArrayValue(ctx *GetMapOrArrayValueContext)
- func (s *BaseRuleListener) EnterIDENBOOL(ctx *IDENBOOLContext)
- func (s *BaseRuleListener) EnterIDENTIFY(ctx *IDENTIFYContext)
- func (s *BaseRuleListener) EnterITEMCALCU(ctx *ITEMCALCUContext)
- func (s *BaseRuleListener) EnterITEMCOMP(ctx *ITEMCOMPContext)
- func (s *BaseRuleListener) EnterIfStatement(ctx *IfStatementContext)
- func (s *BaseRuleListener) EnterInit(ctx *InitContext)
- func (s *BaseRuleListener) EnterLogical(ctx *LogicalContext)
- func (s *BaseRuleListener) EnterMULDIV(ctx *MULDIVContext)
- func (s *BaseRuleListener) EnterMapKey(ctx *MapKeyContext)
- func (s *BaseRuleListener) EnterMapValue(ctx *MapValueContext)
- func (s *BaseRuleListener) EnterNUM(ctx *NUMContext)
- func (s *BaseRuleListener) EnterPair(ctx *PairContext)
- func (s *BaseRuleListener) EnterReturnStatement(ctx *ReturnStatementContext)
- func (s *BaseRuleListener) EnterSTRING(ctx *STRINGContext)
- func (s *BaseRuleListener) EnterSetValueStatement(ctx *SetValueStatementContext)
- func (s *BaseRuleListener) EnterStatement(ctx *StatementContext)
- func (s *BaseRuleListener) EnterValueType(ctx *ValueTypeContext)
- func (s *BaseRuleListener) ExitADDSUB(ctx *ADDSUBContext)
- func (s *BaseRuleListener) ExitArray(ctx *ArrayContext)
- func (s *BaseRuleListener) ExitBOOL(ctx *BOOLContext)
- func (s *BaseRuleListener) ExitBOOLOP(ctx *BOOLOPContext)
- func (s *BaseRuleListener) ExitBOOLOPX(ctx *BOOLOPXContext)
- func (s *BaseRuleListener) ExitBoolOperate(ctx *BoolOperateContext)
- func (s *BaseRuleListener) ExitBoolValue(ctx *BoolValueContext)
- func (s *BaseRuleListener) ExitCALCULATEX(ctx *CALCULATEXContext)
- func (s *BaseRuleListener) ExitCOMPARE(ctx *COMPAREContext)
- func (s *BaseRuleListener) ExitCOMPAREBOOL(ctx *COMPAREBOOLContext)
- func (s *BaseRuleListener) ExitCOMPAREX(ctx *COMPAREXContext)
- func (s *BaseRuleListener) ExitCalcu(ctx *CalcuContext)
- func (s *BaseRuleListener) ExitCalculate(ctx *CalculateContext)
- func (s *BaseRuleListener) ExitCalculateValue(ctx *CalculateValueContext)
- func (s *BaseRuleListener) ExitCompare(ctx *CompareContext)
- func (s *BaseRuleListener) ExitElseIfStatement(ctx *ElseIfStatementContext)
- func (s *BaseRuleListener) ExitElseStatement(ctx *ElseStatementContext)
- func (s *BaseRuleListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseRuleListener) ExitFunCall(ctx *FunCallContext)
- func (s *BaseRuleListener) ExitGetMapOrArrayValue(ctx *GetMapOrArrayValueContext)
- func (s *BaseRuleListener) ExitIDENBOOL(ctx *IDENBOOLContext)
- func (s *BaseRuleListener) ExitIDENTIFY(ctx *IDENTIFYContext)
- func (s *BaseRuleListener) ExitITEMCALCU(ctx *ITEMCALCUContext)
- func (s *BaseRuleListener) ExitITEMCOMP(ctx *ITEMCOMPContext)
- func (s *BaseRuleListener) ExitIfStatement(ctx *IfStatementContext)
- func (s *BaseRuleListener) ExitInit(ctx *InitContext)
- func (s *BaseRuleListener) ExitLogical(ctx *LogicalContext)
- func (s *BaseRuleListener) ExitMULDIV(ctx *MULDIVContext)
- func (s *BaseRuleListener) ExitMapKey(ctx *MapKeyContext)
- func (s *BaseRuleListener) ExitMapValue(ctx *MapValueContext)
- func (s *BaseRuleListener) ExitNUM(ctx *NUMContext)
- func (s *BaseRuleListener) ExitPair(ctx *PairContext)
- func (s *BaseRuleListener) ExitReturnStatement(ctx *ReturnStatementContext)
- func (s *BaseRuleListener) ExitSTRING(ctx *STRINGContext)
- func (s *BaseRuleListener) ExitSetValueStatement(ctx *SetValueStatementContext)
- func (s *BaseRuleListener) ExitStatement(ctx *StatementContext)
- func (s *BaseRuleListener) ExitValueType(ctx *ValueTypeContext)
- func (s *BaseRuleListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseRuleListener) VisitTerminal(node antlr.TerminalNode)
- type BaseRuleVisitor
- func (v *BaseRuleVisitor) VisitADDSUB(ctx *ADDSUBContext) interface{}
- func (v *BaseRuleVisitor) VisitArray(ctx *ArrayContext) interface{}
- func (v *BaseRuleVisitor) VisitBOOL(ctx *BOOLContext) interface{}
- func (v *BaseRuleVisitor) VisitBOOLOP(ctx *BOOLOPContext) interface{}
- func (v *BaseRuleVisitor) VisitBOOLOPX(ctx *BOOLOPXContext) interface{}
- func (v *BaseRuleVisitor) VisitBoolOperate(ctx *BoolOperateContext) interface{}
- func (v *BaseRuleVisitor) VisitBoolValue(ctx *BoolValueContext) interface{}
- func (v *BaseRuleVisitor) VisitCALCULATEX(ctx *CALCULATEXContext) interface{}
- func (v *BaseRuleVisitor) VisitCOMPARE(ctx *COMPAREContext) interface{}
- func (v *BaseRuleVisitor) VisitCOMPAREBOOL(ctx *COMPAREBOOLContext) interface{}
- func (v *BaseRuleVisitor) VisitCOMPAREX(ctx *COMPAREXContext) interface{}
- func (v *BaseRuleVisitor) VisitCalcu(ctx *CalcuContext) interface{}
- func (v *BaseRuleVisitor) VisitCalculate(ctx *CalculateContext) interface{}
- func (v *BaseRuleVisitor) VisitCalculateValue(ctx *CalculateValueContext) interface{}
- func (v *BaseRuleVisitor) VisitCompare(ctx *CompareContext) interface{}
- func (v *BaseRuleVisitor) VisitElseIfStatement(ctx *ElseIfStatementContext) interface{}
- func (v *BaseRuleVisitor) VisitElseStatement(ctx *ElseStatementContext) interface{}
- func (v *BaseRuleVisitor) VisitFunCall(ctx *FunCallContext) interface{}
- func (v *BaseRuleVisitor) VisitGetMapOrArrayValue(ctx *GetMapOrArrayValueContext) interface{}
- func (v *BaseRuleVisitor) VisitIDENBOOL(ctx *IDENBOOLContext) interface{}
- func (v *BaseRuleVisitor) VisitIDENTIFY(ctx *IDENTIFYContext) interface{}
- func (v *BaseRuleVisitor) VisitITEMCALCU(ctx *ITEMCALCUContext) interface{}
- func (v *BaseRuleVisitor) VisitITEMCOMP(ctx *ITEMCOMPContext) interface{}
- func (v *BaseRuleVisitor) VisitIfStatement(ctx *IfStatementContext) interface{}
- func (v *BaseRuleVisitor) VisitInit(ctx *InitContext) interface{}
- func (v *BaseRuleVisitor) VisitLogical(ctx *LogicalContext) interface{}
- func (v *BaseRuleVisitor) VisitMULDIV(ctx *MULDIVContext) interface{}
- func (v *BaseRuleVisitor) VisitMapValue(ctx *MapValueContext) interface{}
- func (v *BaseRuleVisitor) VisitNUM(ctx *NUMContext) interface{}
- func (v *BaseRuleVisitor) VisitPair(ctx *PairContext) interface{}
- func (v *BaseRuleVisitor) VisitReturnStatement(ctx *ReturnStatementContext) interface{}
- func (v *BaseRuleVisitor) VisitSTRING(ctx *STRINGContext) interface{}
- func (v *BaseRuleVisitor) VisitSetValueStatement(ctx *SetValueStatementContext) interface{}
- func (v *BaseRuleVisitor) VisitStatement(ctx *StatementContext) interface{}
- func (v *BaseRuleVisitor) VisitValueType(ctx *ValueTypeContext) interface{}
- type BoolOperateContext
- func (s *BoolOperateContext) AND() antlr.TerminalNode
- func (s *BoolOperateContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BoolOperateContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BoolOperateContext) GetParser() antlr.Parser
- func (s *BoolOperateContext) GetRuleContext() antlr.RuleContext
- func (*BoolOperateContext) IsBoolOperateContext()
- func (s *BoolOperateContext) NOT() antlr.TerminalNode
- func (s *BoolOperateContext) OR() antlr.TerminalNode
- func (s *BoolOperateContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BoolStatementContext
- func (s *BoolStatementContext) CopyFrom(ctx *BoolStatementContext)
- func (s *BoolStatementContext) GetParser() antlr.Parser
- func (s *BoolStatementContext) GetRuleContext() antlr.RuleContext
- func (*BoolStatementContext) IsBoolStatementContext()
- func (s *BoolStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BoolValueContext
- func (s *BoolValueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BoolValueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BoolValueContext) FALSE() antlr.TerminalNode
- func (s *BoolValueContext) GetParser() antlr.Parser
- func (s *BoolValueContext) GetRuleContext() antlr.RuleContext
- func (*BoolValueContext) IsBoolValueContext()
- func (s *BoolValueContext) TRUE() antlr.TerminalNode
- func (s *BoolValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CALCULATEXContext
- type COMPAREBOOLContext
- type COMPAREContext
- func (s *COMPAREContext) AllCompareStatement() []ICompareStatementContext
- func (s *COMPAREContext) Compare() ICompareContext
- func (s *COMPAREContext) CompareStatement(i int) ICompareStatementContext
- func (s *COMPAREContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *COMPAREContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *COMPAREContext) GetOp() ICompareContext
- func (s *COMPAREContext) GetRuleContext() antlr.RuleContext
- func (s *COMPAREContext) SetOp(v ICompareContext)
- type COMPAREXContext
- type CalcuContext
- type CalculateContext
- func (s *CalculateContext) ADD() antlr.TerminalNode
- func (s *CalculateContext) DIV() antlr.TerminalNode
- func (s *CalculateContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CalculateContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CalculateContext) GetParser() antlr.Parser
- func (s *CalculateContext) GetRuleContext() antlr.RuleContext
- func (*CalculateContext) IsCalculateContext()
- func (s *CalculateContext) MUL() antlr.TerminalNode
- func (s *CalculateContext) SUB() antlr.TerminalNode
- func (s *CalculateContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CalculateStatementContext
- func (s *CalculateStatementContext) CopyFrom(ctx *CalculateStatementContext)
- func (s *CalculateStatementContext) GetParser() antlr.Parser
- func (s *CalculateStatementContext) GetRuleContext() antlr.RuleContext
- func (*CalculateStatementContext) IsCalculateStatementContext()
- func (s *CalculateStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CalculateValueContext
- func (s *CalculateValueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CalculateValueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CalculateValueContext) GetParser() antlr.Parser
- func (s *CalculateValueContext) GetRuleContext() antlr.RuleContext
- func (s *CalculateValueContext) Identify() IIdentifyContext
- func (*CalculateValueContext) IsCalculateValueContext()
- func (s *CalculateValueContext) Num() INumContext
- func (s *CalculateValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CompareContext
- func (s *CompareContext) EQ() antlr.TerminalNode
- func (s *CompareContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CompareContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CompareContext) GT() antlr.TerminalNode
- func (s *CompareContext) GTE() antlr.TerminalNode
- func (s *CompareContext) GetParser() antlr.Parser
- func (s *CompareContext) GetRuleContext() antlr.RuleContext
- func (*CompareContext) IsCompareContext()
- func (s *CompareContext) LT() antlr.TerminalNode
- func (s *CompareContext) LTE() antlr.TerminalNode
- func (s *CompareContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CompareStatementContext
- func (s *CompareStatementContext) CopyFrom(ctx *CompareStatementContext)
- func (s *CompareStatementContext) GetParser() antlr.Parser
- func (s *CompareStatementContext) GetRuleContext() antlr.RuleContext
- func (*CompareStatementContext) IsCompareStatementContext()
- func (s *CompareStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ElseIfStatementContext
- func (s *ElseIfStatementContext) AllStatement() []IStatementContext
- func (s *ElseIfStatementContext) BoolStatement() IBoolStatementContext
- func (s *ElseIfStatementContext) ELSIF() antlr.TerminalNode
- func (s *ElseIfStatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ElseIfStatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ElseIfStatementContext) GetParser() antlr.Parser
- func (s *ElseIfStatementContext) GetRuleContext() antlr.RuleContext
- func (*ElseIfStatementContext) IsElseIfStatementContext()
- func (s *ElseIfStatementContext) Statement(i int) IStatementContext
- func (s *ElseIfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ElseStatementContext
- func (s *ElseStatementContext) AllStatement() []IStatementContext
- func (s *ElseStatementContext) ELSE() antlr.TerminalNode
- func (s *ElseStatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ElseStatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ElseStatementContext) GetParser() antlr.Parser
- func (s *ElseStatementContext) GetRuleContext() antlr.RuleContext
- func (*ElseStatementContext) IsElseStatementContext()
- func (s *ElseStatementContext) Statement(i int) IStatementContext
- func (s *ElseStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FunCallContext
- func (s *FunCallContext) AllValueType() []IValueTypeContext
- func (s *FunCallContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FunCallContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FunCallContext) GetParser() antlr.Parser
- func (s *FunCallContext) GetRuleContext() antlr.RuleContext
- func (s *FunCallContext) Identify() IIdentifyContext
- func (*FunCallContext) IsFunCallContext()
- func (s *FunCallContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *FunCallContext) ValueType(i int) IValueTypeContext
- type GetMapOrArrayValueContext
- func (s *GetMapOrArrayValueContext) AllMapKey() []IMapKeyContext
- func (s *GetMapOrArrayValueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GetMapOrArrayValueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GetMapOrArrayValueContext) GetParser() antlr.Parser
- func (s *GetMapOrArrayValueContext) GetRuleContext() antlr.RuleContext
- func (s *GetMapOrArrayValueContext) Identify() IIdentifyContext
- func (*GetMapOrArrayValueContext) IsGetMapOrArrayValueContext()
- func (s *GetMapOrArrayValueContext) MapKey(i int) IMapKeyContext
- func (s *GetMapOrArrayValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IArrayContext
- type IBoolOperateContext
- type IBoolStatementContext
- type IBoolValueContext
- type ICalculateContext
- type ICalculateStatementContext
- type ICalculateValueContext
- type ICompareContext
- type ICompareStatementContext
- type IDENBOOLContext
- type IDENTIFYContext
- type IElseIfStatementContext
- type IElseStatementContext
- type IFunCallContext
- type IGetMapOrArrayValueContext
- type IIdentifyContext
- type IIfStatementContext
- type IInitContext
- type ILogicalContext
- type IMapKeyContext
- type IMapValueContext
- type INumContext
- type IPairContext
- type IReturnStatementContext
- type ISetValueStatementContext
- type IStatementContext
- type IStringValueContext
- type ITEMCALCUContext
- type ITEMCOMPContext
- type IValueTypeContext
- type IdentifyContext
- func (s *IdentifyContext) CopyFrom(ctx *IdentifyContext)
- func (s *IdentifyContext) GetParser() antlr.Parser
- func (s *IdentifyContext) GetRuleContext() antlr.RuleContext
- func (*IdentifyContext) IsIdentifyContext()
- func (s *IdentifyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IfStatementContext
- func (s *IfStatementContext) AllElseIfStatement() []IElseIfStatementContext
- func (s *IfStatementContext) AllStatement() []IStatementContext
- func (s *IfStatementContext) BoolStatement() IBoolStatementContext
- func (s *IfStatementContext) ElseIfStatement(i int) IElseIfStatementContext
- func (s *IfStatementContext) ElseStatement() IElseStatementContext
- func (s *IfStatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IfStatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IfStatementContext) GetParser() antlr.Parser
- func (s *IfStatementContext) GetRuleContext() antlr.RuleContext
- func (s *IfStatementContext) IF() antlr.TerminalNode
- func (*IfStatementContext) IsIfStatementContext()
- func (s *IfStatementContext) Statement(i int) IStatementContext
- func (s *IfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type InitContext
- func (s *InitContext) AllStatement() []IStatementContext
- func (s *InitContext) EOF() antlr.TerminalNode
- func (s *InitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *InitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *InitContext) GetParser() antlr.Parser
- func (s *InitContext) GetRuleContext() antlr.RuleContext
- func (*InitContext) IsInitContext()
- func (s *InitContext) Statement(i int) IStatementContext
- func (s *InitContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LogicalContext
- func (s *LogicalContext) AND() antlr.TerminalNode
- func (s *LogicalContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LogicalContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LogicalContext) GetParser() antlr.Parser
- func (s *LogicalContext) GetRuleContext() antlr.RuleContext
- func (*LogicalContext) IsLogicalContext()
- func (s *LogicalContext) NOT() antlr.TerminalNode
- func (s *LogicalContext) OR() antlr.TerminalNode
- func (s *LogicalContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MULDIVContext
- func (s *MULDIVContext) AllCalculateStatement() []ICalculateStatementContext
- func (s *MULDIVContext) CalculateStatement(i int) ICalculateStatementContext
- func (s *MULDIVContext) DIV() antlr.TerminalNode
- func (s *MULDIVContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MULDIVContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MULDIVContext) GetOp() antlr.Token
- func (s *MULDIVContext) GetRuleContext() antlr.RuleContext
- func (s *MULDIVContext) MUL() antlr.TerminalNode
- func (s *MULDIVContext) SetOp(v antlr.Token)
- type MapKeyContext
- func (s *MapKeyContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MapKeyContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MapKeyContext) GetParser() antlr.Parser
- func (s *MapKeyContext) GetRuleContext() antlr.RuleContext
- func (s *MapKeyContext) IDENTIFY() antlr.TerminalNode
- func (*MapKeyContext) IsMapKeyContext()
- func (s *MapKeyContext) NUM() antlr.TerminalNode
- func (s *MapKeyContext) Str() antlr.TerminalNode
- func (s *MapKeyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MapValueContext
- func (s *MapValueContext) AllPair() []IPairContext
- func (s *MapValueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MapValueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MapValueContext) GetParser() antlr.Parser
- func (s *MapValueContext) GetRuleContext() antlr.RuleContext
- func (*MapValueContext) IsMapValueContext()
- func (s *MapValueContext) Pair(i int) IPairContext
- func (s *MapValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type NUMContext
- type NumContext
- type PairContext
- func (s *PairContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *PairContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *PairContext) GetParser() antlr.Parser
- func (s *PairContext) GetRuleContext() antlr.RuleContext
- func (*PairContext) IsPairContext()
- func (s *PairContext) MapKey() IMapKeyContext
- func (s *PairContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *PairContext) ValueType() IValueTypeContext
- type ReturnStatementContext
- func (s *ReturnStatementContext) BoolStatement() IBoolStatementContext
- func (s *ReturnStatementContext) CalculateStatement() ICalculateStatementContext
- func (s *ReturnStatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ReturnStatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ReturnStatementContext) GetParser() antlr.Parser
- func (s *ReturnStatementContext) GetRuleContext() antlr.RuleContext
- func (s *ReturnStatementContext) GetValue() IValueTypeContext
- func (*ReturnStatementContext) IsReturnStatementContext()
- func (s *ReturnStatementContext) SetValue(v IValueTypeContext)
- func (s *ReturnStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ReturnStatementContext) ValueType() IValueTypeContext
- type RuleLexer
- type RuleListener
- type RuleParser
- func (p *RuleParser) Array() (localctx IArrayContext)
- func (p *RuleParser) BoolOperate() (localctx IBoolOperateContext)
- func (p *RuleParser) BoolStatement() (localctx IBoolStatementContext)
- func (p *RuleParser) BoolStatement_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *RuleParser) BoolValue() (localctx IBoolValueContext)
- func (p *RuleParser) Calculate() (localctx ICalculateContext)
- func (p *RuleParser) CalculateStatement() (localctx ICalculateStatementContext)
- func (p *RuleParser) CalculateStatement_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *RuleParser) CalculateValue() (localctx ICalculateValueContext)
- func (p *RuleParser) Compare() (localctx ICompareContext)
- func (p *RuleParser) CompareStatement() (localctx ICompareStatementContext)
- func (p *RuleParser) CompareStatement_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *RuleParser) ElseIfStatement() (localctx IElseIfStatementContext)
- func (p *RuleParser) ElseStatement() (localctx IElseStatementContext)
- func (p *RuleParser) FunCall() (localctx IFunCallContext)
- func (p *RuleParser) GetMapOrArrayValue() (localctx IGetMapOrArrayValueContext)
- func (p *RuleParser) Identify() (localctx IIdentifyContext)
- func (p *RuleParser) IfStatement() (localctx IIfStatementContext)
- func (p *RuleParser) Init() (localctx IInitContext)
- func (p *RuleParser) Logical() (localctx ILogicalContext)
- func (p *RuleParser) MapKey() (localctx IMapKeyContext)
- func (p *RuleParser) MapValue() (localctx IMapValueContext)
- func (p *RuleParser) Num() (localctx INumContext)
- func (p *RuleParser) Pair() (localctx IPairContext)
- func (p *RuleParser) ReturnStatement() (localctx IReturnStatementContext)
- func (p *RuleParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *RuleParser) SetValueStatement() (localctx ISetValueStatementContext)
- func (p *RuleParser) Statement() (localctx IStatementContext)
- func (p *RuleParser) StringValue() (localctx IStringValueContext)
- func (p *RuleParser) ValueType() (localctx IValueTypeContext)
- type RuleVisitor
- type STRINGContext
- type SetValueStatementContext
- func (s *SetValueStatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SetValueStatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SetValueStatementContext) GetParser() antlr.Parser
- func (s *SetValueStatementContext) GetRuleContext() antlr.RuleContext
- func (s *SetValueStatementContext) IDENTIFY() antlr.TerminalNode
- func (*SetValueStatementContext) IsSetValueStatementContext()
- func (s *SetValueStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *SetValueStatementContext) ValueType() IValueTypeContext
- type StatementContext
- func (s *StatementContext) BoolStatement() IBoolStatementContext
- func (s *StatementContext) CalculateStatement() ICalculateStatementContext
- func (s *StatementContext) CompareStatement() ICompareStatementContext
- func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) FunCall() IFunCallContext
- func (s *StatementContext) GetParser() antlr.Parser
- func (s *StatementContext) GetRuleContext() antlr.RuleContext
- func (s *StatementContext) IfStatement() IIfStatementContext
- func (*StatementContext) IsStatementContext()
- func (s *StatementContext) ReturnStatement() IReturnStatementContext
- func (s *StatementContext) SetValueStatement() ISetValueStatementContext
- func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StringValueContext
- func (s *StringValueContext) CopyFrom(ctx *StringValueContext)
- func (s *StringValueContext) GetParser() antlr.Parser
- func (s *StringValueContext) GetRuleContext() antlr.RuleContext
- func (*StringValueContext) IsStringValueContext()
- func (s *StringValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ValueTypeContext
- func (s *ValueTypeContext) Array() IArrayContext
- func (s *ValueTypeContext) BoolValue() IBoolValueContext
- func (s *ValueTypeContext) CalculateStatement() ICalculateStatementContext
- func (s *ValueTypeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ValueTypeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ValueTypeContext) GetMapOrArrayValue() IGetMapOrArrayValueContext
- func (s *ValueTypeContext) GetParser() antlr.Parser
- func (s *ValueTypeContext) GetRuleContext() antlr.RuleContext
- func (s *ValueTypeContext) Identify() IIdentifyContext
- func (*ValueTypeContext) IsValueTypeContext()
- func (s *ValueTypeContext) MapValue() IMapValueContext
- func (s *ValueTypeContext) Num() INumContext
- func (s *ValueTypeContext) StringValue() IStringValueContext
- func (s *ValueTypeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
const ( RuleLexerT__0 = 1 RuleLexerT__1 = 2 RuleLexerT__2 = 3 RuleLexerT__3 = 4 RuleLexerT__4 = 5 RuleLexerT__5 = 6 RuleLexerT__6 = 7 RuleLexerT__7 = 8 RuleLexerT__8 = 9 RuleLexerT__9 = 10 RuleLexerT__10 = 11 RuleLexerNUM = 12 RuleLexerNOW = 13 RuleLexerAND = 14 RuleLexerOR = 15 RuleLexerNOT = 16 RuleLexerIF = 17 RuleLexerELSIF = 18 RuleLexerELSE = 19 RuleLexerTRUE = 20 RuleLexerFALSE = 21 RuleLexerIDENTIFY = 22 RuleLexerGT = 23 RuleLexerGTE = 24 RuleLexerEQ = 25 RuleLexerLTE = 26 RuleLexerLT = 27 RuleLexerADD = 28 RuleLexerSUB = 29 RuleLexerMUL = 30 RuleLexerDIV = 31 RuleLexerWS = 32 RuleLexerStr = 33 )
RuleLexer tokens.
const ( RuleParserEOF = antlr.TokenEOF RuleParserT__0 = 1 RuleParserT__1 = 2 RuleParserT__2 = 3 RuleParserT__3 = 4 RuleParserT__4 = 5 RuleParserT__5 = 6 RuleParserT__6 = 7 RuleParserT__7 = 8 RuleParserT__8 = 9 RuleParserT__9 = 10 RuleParserT__10 = 11 RuleParserNUM = 12 RuleParserNOW = 13 RuleParserAND = 14 RuleParserOR = 15 RuleParserNOT = 16 RuleParserIF = 17 RuleParserELSIF = 18 RuleParserELSE = 19 RuleParserTRUE = 20 RuleParserFALSE = 21 RuleParserIDENTIFY = 22 RuleParserGT = 23 RuleParserGTE = 24 RuleParserEQ = 25 RuleParserLTE = 26 RuleParserLT = 27 RuleParserADD = 28 RuleParserSUB = 29 RuleParserMUL = 30 RuleParserDIV = 31 RuleParserWS = 32 RuleParserStr = 33 )
RuleParser tokens.
const ( RuleParserRULE_boolOperate = 0 RuleParserRULE_calculate = 1 RuleParserRULE_compare = 2 RuleParserRULE_logical = 3 RuleParserRULE_compareStatement = 4 RuleParserRULE_num = 5 RuleParserRULE_boolValue = 6 RuleParserRULE_identify = 7 RuleParserRULE_stringValue = 8 RuleParserRULE_calculateValue = 9 RuleParserRULE_calculateStatement = 10 RuleParserRULE_boolStatement = 11 RuleParserRULE_valueType = 12 RuleParserRULE_setValueStatement = 13 RuleParserRULE_ifStatement = 14 RuleParserRULE_elseIfStatement = 15 RuleParserRULE_elseStatement = 16 RuleParserRULE_returnStatement = 17 RuleParserRULE_mapKey = 18 RuleParserRULE_pair = 19 RuleParserRULE_mapValue = 20 RuleParserRULE_getMapOrArrayValue = 21 RuleParserRULE_funCall = 22 RuleParserRULE_array = 23 RuleParserRULE_statement = 24 RuleParserRULE_init = 25 )
RuleParser rules.
Variables ¶
This section is empty.
Functions ¶
func RuleLexerInit ¶
func RuleLexerInit()
RuleLexerInit initializes any static state used to implement RuleLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewRuleLexer(). You can call this function if you wish to initialize the static state ahead of time.
func RuleParserInit ¶
func RuleParserInit()
RuleParserInit initializes any static state used to implement RuleParser. By default the static state used to implement the parser is lazily initialized during the first call to NewRuleParser(). You can call this function if you wish to initialize the static state ahead of time.
Types ¶
type ADDSUBContext ¶
type ADDSUBContext struct { *CalculateStatementContext // contains filtered or unexported fields }
func NewADDSUBContext ¶
func NewADDSUBContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ADDSUBContext
func (*ADDSUBContext) ADD ¶
func (s *ADDSUBContext) ADD() antlr.TerminalNode
func (*ADDSUBContext) AllCalculateStatement ¶
func (s *ADDSUBContext) AllCalculateStatement() []ICalculateStatementContext
func (*ADDSUBContext) CalculateStatement ¶
func (s *ADDSUBContext) CalculateStatement(i int) ICalculateStatementContext
func (*ADDSUBContext) EnterRule ¶
func (s *ADDSUBContext) EnterRule(listener antlr.ParseTreeListener)
func (*ADDSUBContext) ExitRule ¶
func (s *ADDSUBContext) ExitRule(listener antlr.ParseTreeListener)
func (*ADDSUBContext) GetOp ¶
func (s *ADDSUBContext) GetOp() antlr.Token
func (*ADDSUBContext) GetRuleContext ¶
func (s *ADDSUBContext) GetRuleContext() antlr.RuleContext
func (*ADDSUBContext) SUB ¶
func (s *ADDSUBContext) SUB() antlr.TerminalNode
func (*ADDSUBContext) SetOp ¶
func (s *ADDSUBContext) SetOp(v antlr.Token)
type ArrayContext ¶
type ArrayContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewArrayContext ¶
func NewArrayContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArrayContext
func NewEmptyArrayContext ¶
func NewEmptyArrayContext() *ArrayContext
func (*ArrayContext) AllValueType ¶
func (s *ArrayContext) AllValueType() []IValueTypeContext
func (*ArrayContext) EnterRule ¶
func (s *ArrayContext) EnterRule(listener antlr.ParseTreeListener)
func (*ArrayContext) ExitRule ¶
func (s *ArrayContext) ExitRule(listener antlr.ParseTreeListener)
func (*ArrayContext) GetParser ¶
func (s *ArrayContext) GetParser() antlr.Parser
func (*ArrayContext) GetRuleContext ¶
func (s *ArrayContext) GetRuleContext() antlr.RuleContext
func (*ArrayContext) IsArrayContext ¶
func (*ArrayContext) IsArrayContext()
func (*ArrayContext) ToStringTree ¶
func (s *ArrayContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ArrayContext) ValueType ¶
func (s *ArrayContext) ValueType(i int) IValueTypeContext
type BOOLContext ¶
type BOOLContext struct {
*BoolStatementContext
}
func NewBOOLContext ¶
func NewBOOLContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BOOLContext
func (*BOOLContext) EnterRule ¶
func (s *BOOLContext) EnterRule(listener antlr.ParseTreeListener)
func (*BOOLContext) ExitRule ¶
func (s *BOOLContext) ExitRule(listener antlr.ParseTreeListener)
func (*BOOLContext) FALSE ¶
func (s *BOOLContext) FALSE() antlr.TerminalNode
func (*BOOLContext) GetRuleContext ¶
func (s *BOOLContext) GetRuleContext() antlr.RuleContext
func (*BOOLContext) TRUE ¶
func (s *BOOLContext) TRUE() antlr.TerminalNode
type BOOLOPContext ¶
type BOOLOPContext struct { *BoolStatementContext // contains filtered or unexported fields }
func NewBOOLOPContext ¶
func NewBOOLOPContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BOOLOPContext
func (*BOOLOPContext) AllBoolStatement ¶
func (s *BOOLOPContext) AllBoolStatement() []IBoolStatementContext
func (*BOOLOPContext) BoolOperate ¶
func (s *BOOLOPContext) BoolOperate() IBoolOperateContext
func (*BOOLOPContext) BoolStatement ¶
func (s *BOOLOPContext) BoolStatement(i int) IBoolStatementContext
func (*BOOLOPContext) EnterRule ¶
func (s *BOOLOPContext) EnterRule(listener antlr.ParseTreeListener)
func (*BOOLOPContext) ExitRule ¶
func (s *BOOLOPContext) ExitRule(listener antlr.ParseTreeListener)
func (*BOOLOPContext) GetOp ¶
func (s *BOOLOPContext) GetOp() IBoolOperateContext
func (*BOOLOPContext) GetRuleContext ¶
func (s *BOOLOPContext) GetRuleContext() antlr.RuleContext
func (*BOOLOPContext) SetOp ¶
func (s *BOOLOPContext) SetOp(v IBoolOperateContext)
type BOOLOPXContext ¶
type BOOLOPXContext struct {
*BoolStatementContext
}
func NewBOOLOPXContext ¶
func NewBOOLOPXContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BOOLOPXContext
func (*BOOLOPXContext) BoolStatement ¶
func (s *BOOLOPXContext) BoolStatement() IBoolStatementContext
func (*BOOLOPXContext) EnterRule ¶
func (s *BOOLOPXContext) EnterRule(listener antlr.ParseTreeListener)
func (*BOOLOPXContext) ExitRule ¶
func (s *BOOLOPXContext) ExitRule(listener antlr.ParseTreeListener)
func (*BOOLOPXContext) GetRuleContext ¶
func (s *BOOLOPXContext) GetRuleContext() antlr.RuleContext
type BaseRuleListener ¶
type BaseRuleListener struct{}
BaseRuleListener is a complete listener for a parse tree produced by RuleParser.
func (*BaseRuleListener) EnterADDSUB ¶
func (s *BaseRuleListener) EnterADDSUB(ctx *ADDSUBContext)
EnterADDSUB is called when production ADDSUB is entered.
func (*BaseRuleListener) EnterArray ¶
func (s *BaseRuleListener) EnterArray(ctx *ArrayContext)
EnterArray is called when production array is entered.
func (*BaseRuleListener) EnterBOOL ¶
func (s *BaseRuleListener) EnterBOOL(ctx *BOOLContext)
EnterBOOL is called when production BOOL is entered.
func (*BaseRuleListener) EnterBOOLOP ¶
func (s *BaseRuleListener) EnterBOOLOP(ctx *BOOLOPContext)
EnterBOOLOP is called when production BOOLOP is entered.
func (*BaseRuleListener) EnterBOOLOPX ¶
func (s *BaseRuleListener) EnterBOOLOPX(ctx *BOOLOPXContext)
EnterBOOLOPX is called when production BOOLOPX is entered.
func (*BaseRuleListener) EnterBoolOperate ¶
func (s *BaseRuleListener) EnterBoolOperate(ctx *BoolOperateContext)
EnterBoolOperate is called when production boolOperate is entered.
func (*BaseRuleListener) EnterBoolValue ¶
func (s *BaseRuleListener) EnterBoolValue(ctx *BoolValueContext)
EnterBoolValue is called when production boolValue is entered.
func (*BaseRuleListener) EnterCALCULATEX ¶
func (s *BaseRuleListener) EnterCALCULATEX(ctx *CALCULATEXContext)
EnterCALCULATEX is called when production CALCULATEX is entered.
func (*BaseRuleListener) EnterCOMPARE ¶
func (s *BaseRuleListener) EnterCOMPARE(ctx *COMPAREContext)
EnterCOMPARE is called when production COMPARE is entered.
func (*BaseRuleListener) EnterCOMPAREBOOL ¶
func (s *BaseRuleListener) EnterCOMPAREBOOL(ctx *COMPAREBOOLContext)
EnterCOMPAREBOOL is called when production COMPAREBOOL is entered.
func (*BaseRuleListener) EnterCOMPAREX ¶
func (s *BaseRuleListener) EnterCOMPAREX(ctx *COMPAREXContext)
EnterCOMPAREX is called when production COMPAREX is entered.
func (*BaseRuleListener) EnterCalcu ¶
func (s *BaseRuleListener) EnterCalcu(ctx *CalcuContext)
EnterCalcu is called when production Calcu is entered.
func (*BaseRuleListener) EnterCalculate ¶
func (s *BaseRuleListener) EnterCalculate(ctx *CalculateContext)
EnterCalculate is called when production calculate is entered.
func (*BaseRuleListener) EnterCalculateValue ¶
func (s *BaseRuleListener) EnterCalculateValue(ctx *CalculateValueContext)
EnterCalculateValue is called when production calculateValue is entered.
func (*BaseRuleListener) EnterCompare ¶
func (s *BaseRuleListener) EnterCompare(ctx *CompareContext)
EnterCompare is called when production compare is entered.
func (*BaseRuleListener) EnterElseIfStatement ¶
func (s *BaseRuleListener) EnterElseIfStatement(ctx *ElseIfStatementContext)
EnterElseIfStatement is called when production elseIfStatement is entered.
func (*BaseRuleListener) EnterElseStatement ¶
func (s *BaseRuleListener) EnterElseStatement(ctx *ElseStatementContext)
EnterElseStatement is called when production elseStatement is entered.
func (*BaseRuleListener) EnterEveryRule ¶
func (s *BaseRuleListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseRuleListener) EnterFunCall ¶
func (s *BaseRuleListener) EnterFunCall(ctx *FunCallContext)
EnterFunCall is called when production funCall is entered.
func (*BaseRuleListener) EnterGetMapOrArrayValue ¶
func (s *BaseRuleListener) EnterGetMapOrArrayValue(ctx *GetMapOrArrayValueContext)
EnterGetMapOrArrayValue is called when production getMapOrArrayValue is entered.
func (*BaseRuleListener) EnterIDENBOOL ¶
func (s *BaseRuleListener) EnterIDENBOOL(ctx *IDENBOOLContext)
EnterIDENBOOL is called when production IDENBOOL is entered.
func (*BaseRuleListener) EnterIDENTIFY ¶
func (s *BaseRuleListener) EnterIDENTIFY(ctx *IDENTIFYContext)
EnterIDENTIFY is called when production IDENTIFY is entered.
func (*BaseRuleListener) EnterITEMCALCU ¶
func (s *BaseRuleListener) EnterITEMCALCU(ctx *ITEMCALCUContext)
EnterITEMCALCU is called when production ITEMCALCU is entered.
func (*BaseRuleListener) EnterITEMCOMP ¶
func (s *BaseRuleListener) EnterITEMCOMP(ctx *ITEMCOMPContext)
EnterITEMCOMP is called when production ITEMCOMP is entered.
func (*BaseRuleListener) EnterIfStatement ¶
func (s *BaseRuleListener) EnterIfStatement(ctx *IfStatementContext)
EnterIfStatement is called when production ifStatement is entered.
func (*BaseRuleListener) EnterInit ¶
func (s *BaseRuleListener) EnterInit(ctx *InitContext)
EnterInit is called when production init is entered.
func (*BaseRuleListener) EnterLogical ¶
func (s *BaseRuleListener) EnterLogical(ctx *LogicalContext)
EnterLogical is called when production logical is entered.
func (*BaseRuleListener) EnterMULDIV ¶
func (s *BaseRuleListener) EnterMULDIV(ctx *MULDIVContext)
EnterMULDIV is called when production MULDIV is entered.
func (*BaseRuleListener) EnterMapKey ¶
func (s *BaseRuleListener) EnterMapKey(ctx *MapKeyContext)
EnterMapKey is called when production mapKey is entered.
func (*BaseRuleListener) EnterMapValue ¶
func (s *BaseRuleListener) EnterMapValue(ctx *MapValueContext)
EnterMapValue is called when production mapValue is entered.
func (*BaseRuleListener) EnterNUM ¶
func (s *BaseRuleListener) EnterNUM(ctx *NUMContext)
EnterNUM is called when production NUM is entered.
func (*BaseRuleListener) EnterPair ¶
func (s *BaseRuleListener) EnterPair(ctx *PairContext)
EnterPair is called when production pair is entered.
func (*BaseRuleListener) EnterReturnStatement ¶
func (s *BaseRuleListener) EnterReturnStatement(ctx *ReturnStatementContext)
EnterReturnStatement is called when production returnStatement is entered.
func (*BaseRuleListener) EnterSTRING ¶
func (s *BaseRuleListener) EnterSTRING(ctx *STRINGContext)
EnterSTRING is called when production STRING is entered.
func (*BaseRuleListener) EnterSetValueStatement ¶
func (s *BaseRuleListener) EnterSetValueStatement(ctx *SetValueStatementContext)
EnterSetValueStatement is called when production setValueStatement is entered.
func (*BaseRuleListener) EnterStatement ¶
func (s *BaseRuleListener) EnterStatement(ctx *StatementContext)
EnterStatement is called when production statement is entered.
func (*BaseRuleListener) EnterValueType ¶
func (s *BaseRuleListener) EnterValueType(ctx *ValueTypeContext)
EnterValueType is called when production valueType is entered.
func (*BaseRuleListener) ExitADDSUB ¶
func (s *BaseRuleListener) ExitADDSUB(ctx *ADDSUBContext)
ExitADDSUB is called when production ADDSUB is exited.
func (*BaseRuleListener) ExitArray ¶
func (s *BaseRuleListener) ExitArray(ctx *ArrayContext)
ExitArray is called when production array is exited.
func (*BaseRuleListener) ExitBOOL ¶
func (s *BaseRuleListener) ExitBOOL(ctx *BOOLContext)
ExitBOOL is called when production BOOL is exited.
func (*BaseRuleListener) ExitBOOLOP ¶
func (s *BaseRuleListener) ExitBOOLOP(ctx *BOOLOPContext)
ExitBOOLOP is called when production BOOLOP is exited.
func (*BaseRuleListener) ExitBOOLOPX ¶
func (s *BaseRuleListener) ExitBOOLOPX(ctx *BOOLOPXContext)
ExitBOOLOPX is called when production BOOLOPX is exited.
func (*BaseRuleListener) ExitBoolOperate ¶
func (s *BaseRuleListener) ExitBoolOperate(ctx *BoolOperateContext)
ExitBoolOperate is called when production boolOperate is exited.
func (*BaseRuleListener) ExitBoolValue ¶
func (s *BaseRuleListener) ExitBoolValue(ctx *BoolValueContext)
ExitBoolValue is called when production boolValue is exited.
func (*BaseRuleListener) ExitCALCULATEX ¶
func (s *BaseRuleListener) ExitCALCULATEX(ctx *CALCULATEXContext)
ExitCALCULATEX is called when production CALCULATEX is exited.
func (*BaseRuleListener) ExitCOMPARE ¶
func (s *BaseRuleListener) ExitCOMPARE(ctx *COMPAREContext)
ExitCOMPARE is called when production COMPARE is exited.
func (*BaseRuleListener) ExitCOMPAREBOOL ¶
func (s *BaseRuleListener) ExitCOMPAREBOOL(ctx *COMPAREBOOLContext)
ExitCOMPAREBOOL is called when production COMPAREBOOL is exited.
func (*BaseRuleListener) ExitCOMPAREX ¶
func (s *BaseRuleListener) ExitCOMPAREX(ctx *COMPAREXContext)
ExitCOMPAREX is called when production COMPAREX is exited.
func (*BaseRuleListener) ExitCalcu ¶
func (s *BaseRuleListener) ExitCalcu(ctx *CalcuContext)
ExitCalcu is called when production Calcu is exited.
func (*BaseRuleListener) ExitCalculate ¶
func (s *BaseRuleListener) ExitCalculate(ctx *CalculateContext)
ExitCalculate is called when production calculate is exited.
func (*BaseRuleListener) ExitCalculateValue ¶
func (s *BaseRuleListener) ExitCalculateValue(ctx *CalculateValueContext)
ExitCalculateValue is called when production calculateValue is exited.
func (*BaseRuleListener) ExitCompare ¶
func (s *BaseRuleListener) ExitCompare(ctx *CompareContext)
ExitCompare is called when production compare is exited.
func (*BaseRuleListener) ExitElseIfStatement ¶
func (s *BaseRuleListener) ExitElseIfStatement(ctx *ElseIfStatementContext)
ExitElseIfStatement is called when production elseIfStatement is exited.
func (*BaseRuleListener) ExitElseStatement ¶
func (s *BaseRuleListener) ExitElseStatement(ctx *ElseStatementContext)
ExitElseStatement is called when production elseStatement is exited.
func (*BaseRuleListener) ExitEveryRule ¶
func (s *BaseRuleListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseRuleListener) ExitFunCall ¶
func (s *BaseRuleListener) ExitFunCall(ctx *FunCallContext)
ExitFunCall is called when production funCall is exited.
func (*BaseRuleListener) ExitGetMapOrArrayValue ¶
func (s *BaseRuleListener) ExitGetMapOrArrayValue(ctx *GetMapOrArrayValueContext)
ExitGetMapOrArrayValue is called when production getMapOrArrayValue is exited.
func (*BaseRuleListener) ExitIDENBOOL ¶
func (s *BaseRuleListener) ExitIDENBOOL(ctx *IDENBOOLContext)
ExitIDENBOOL is called when production IDENBOOL is exited.
func (*BaseRuleListener) ExitIDENTIFY ¶
func (s *BaseRuleListener) ExitIDENTIFY(ctx *IDENTIFYContext)
ExitIDENTIFY is called when production IDENTIFY is exited.
func (*BaseRuleListener) ExitITEMCALCU ¶
func (s *BaseRuleListener) ExitITEMCALCU(ctx *ITEMCALCUContext)
ExitITEMCALCU is called when production ITEMCALCU is exited.
func (*BaseRuleListener) ExitITEMCOMP ¶
func (s *BaseRuleListener) ExitITEMCOMP(ctx *ITEMCOMPContext)
ExitITEMCOMP is called when production ITEMCOMP is exited.
func (*BaseRuleListener) ExitIfStatement ¶
func (s *BaseRuleListener) ExitIfStatement(ctx *IfStatementContext)
ExitIfStatement is called when production ifStatement is exited.
func (*BaseRuleListener) ExitInit ¶
func (s *BaseRuleListener) ExitInit(ctx *InitContext)
ExitInit is called when production init is exited.
func (*BaseRuleListener) ExitLogical ¶
func (s *BaseRuleListener) ExitLogical(ctx *LogicalContext)
ExitLogical is called when production logical is exited.
func (*BaseRuleListener) ExitMULDIV ¶
func (s *BaseRuleListener) ExitMULDIV(ctx *MULDIVContext)
ExitMULDIV is called when production MULDIV is exited.
func (*BaseRuleListener) ExitMapKey ¶
func (s *BaseRuleListener) ExitMapKey(ctx *MapKeyContext)
ExitMapKey is called when production mapKey is exited.
func (*BaseRuleListener) ExitMapValue ¶
func (s *BaseRuleListener) ExitMapValue(ctx *MapValueContext)
ExitMapValue is called when production mapValue is exited.
func (*BaseRuleListener) ExitNUM ¶
func (s *BaseRuleListener) ExitNUM(ctx *NUMContext)
ExitNUM is called when production NUM is exited.
func (*BaseRuleListener) ExitPair ¶
func (s *BaseRuleListener) ExitPair(ctx *PairContext)
ExitPair is called when production pair is exited.
func (*BaseRuleListener) ExitReturnStatement ¶
func (s *BaseRuleListener) ExitReturnStatement(ctx *ReturnStatementContext)
ExitReturnStatement is called when production returnStatement is exited.
func (*BaseRuleListener) ExitSTRING ¶
func (s *BaseRuleListener) ExitSTRING(ctx *STRINGContext)
ExitSTRING is called when production STRING is exited.
func (*BaseRuleListener) ExitSetValueStatement ¶
func (s *BaseRuleListener) ExitSetValueStatement(ctx *SetValueStatementContext)
ExitSetValueStatement is called when production setValueStatement is exited.
func (*BaseRuleListener) ExitStatement ¶
func (s *BaseRuleListener) ExitStatement(ctx *StatementContext)
ExitStatement is called when production statement is exited.
func (*BaseRuleListener) ExitValueType ¶
func (s *BaseRuleListener) ExitValueType(ctx *ValueTypeContext)
ExitValueType is called when production valueType is exited.
func (*BaseRuleListener) VisitErrorNode ¶
func (s *BaseRuleListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseRuleListener) VisitTerminal ¶
func (s *BaseRuleListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type BaseRuleVisitor ¶
type BaseRuleVisitor struct {
*antlr.BaseParseTreeVisitor
}
func (*BaseRuleVisitor) VisitADDSUB ¶
func (v *BaseRuleVisitor) VisitADDSUB(ctx *ADDSUBContext) interface{}
func (*BaseRuleVisitor) VisitArray ¶
func (v *BaseRuleVisitor) VisitArray(ctx *ArrayContext) interface{}
func (*BaseRuleVisitor) VisitBOOL ¶
func (v *BaseRuleVisitor) VisitBOOL(ctx *BOOLContext) interface{}
func (*BaseRuleVisitor) VisitBOOLOP ¶
func (v *BaseRuleVisitor) VisitBOOLOP(ctx *BOOLOPContext) interface{}
func (*BaseRuleVisitor) VisitBOOLOPX ¶
func (v *BaseRuleVisitor) VisitBOOLOPX(ctx *BOOLOPXContext) interface{}
func (*BaseRuleVisitor) VisitBoolOperate ¶
func (v *BaseRuleVisitor) VisitBoolOperate(ctx *BoolOperateContext) interface{}
func (*BaseRuleVisitor) VisitBoolValue ¶
func (v *BaseRuleVisitor) VisitBoolValue(ctx *BoolValueContext) interface{}
func (*BaseRuleVisitor) VisitCALCULATEX ¶
func (v *BaseRuleVisitor) VisitCALCULATEX(ctx *CALCULATEXContext) interface{}
func (*BaseRuleVisitor) VisitCOMPARE ¶
func (v *BaseRuleVisitor) VisitCOMPARE(ctx *COMPAREContext) interface{}
func (*BaseRuleVisitor) VisitCOMPAREBOOL ¶
func (v *BaseRuleVisitor) VisitCOMPAREBOOL(ctx *COMPAREBOOLContext) interface{}
func (*BaseRuleVisitor) VisitCOMPAREX ¶
func (v *BaseRuleVisitor) VisitCOMPAREX(ctx *COMPAREXContext) interface{}
func (*BaseRuleVisitor) VisitCalcu ¶
func (v *BaseRuleVisitor) VisitCalcu(ctx *CalcuContext) interface{}
func (*BaseRuleVisitor) VisitCalculate ¶
func (v *BaseRuleVisitor) VisitCalculate(ctx *CalculateContext) interface{}
func (*BaseRuleVisitor) VisitCalculateValue ¶
func (v *BaseRuleVisitor) VisitCalculateValue(ctx *CalculateValueContext) interface{}
func (*BaseRuleVisitor) VisitCompare ¶
func (v *BaseRuleVisitor) VisitCompare(ctx *CompareContext) interface{}
func (*BaseRuleVisitor) VisitElseIfStatement ¶
func (v *BaseRuleVisitor) VisitElseIfStatement(ctx *ElseIfStatementContext) interface{}
func (*BaseRuleVisitor) VisitElseStatement ¶
func (v *BaseRuleVisitor) VisitElseStatement(ctx *ElseStatementContext) interface{}
func (*BaseRuleVisitor) VisitFunCall ¶
func (v *BaseRuleVisitor) VisitFunCall(ctx *FunCallContext) interface{}
func (*BaseRuleVisitor) VisitGetMapOrArrayValue ¶
func (v *BaseRuleVisitor) VisitGetMapOrArrayValue(ctx *GetMapOrArrayValueContext) interface{}
func (*BaseRuleVisitor) VisitIDENBOOL ¶
func (v *BaseRuleVisitor) VisitIDENBOOL(ctx *IDENBOOLContext) interface{}
func (*BaseRuleVisitor) VisitIDENTIFY ¶
func (v *BaseRuleVisitor) VisitIDENTIFY(ctx *IDENTIFYContext) interface{}
func (*BaseRuleVisitor) VisitITEMCALCU ¶
func (v *BaseRuleVisitor) VisitITEMCALCU(ctx *ITEMCALCUContext) interface{}
func (*BaseRuleVisitor) VisitITEMCOMP ¶
func (v *BaseRuleVisitor) VisitITEMCOMP(ctx *ITEMCOMPContext) interface{}
func (*BaseRuleVisitor) VisitIfStatement ¶
func (v *BaseRuleVisitor) VisitIfStatement(ctx *IfStatementContext) interface{}
func (*BaseRuleVisitor) VisitInit ¶
func (v *BaseRuleVisitor) VisitInit(ctx *InitContext) interface{}
func (*BaseRuleVisitor) VisitLogical ¶
func (v *BaseRuleVisitor) VisitLogical(ctx *LogicalContext) interface{}
func (*BaseRuleVisitor) VisitMULDIV ¶
func (v *BaseRuleVisitor) VisitMULDIV(ctx *MULDIVContext) interface{}
func (*BaseRuleVisitor) VisitMapValue ¶
func (v *BaseRuleVisitor) VisitMapValue(ctx *MapValueContext) interface{}
func (*BaseRuleVisitor) VisitNUM ¶
func (v *BaseRuleVisitor) VisitNUM(ctx *NUMContext) interface{}
func (*BaseRuleVisitor) VisitPair ¶
func (v *BaseRuleVisitor) VisitPair(ctx *PairContext) interface{}
func (*BaseRuleVisitor) VisitReturnStatement ¶
func (v *BaseRuleVisitor) VisitReturnStatement(ctx *ReturnStatementContext) interface{}
func (*BaseRuleVisitor) VisitSTRING ¶
func (v *BaseRuleVisitor) VisitSTRING(ctx *STRINGContext) interface{}
func (*BaseRuleVisitor) VisitSetValueStatement ¶
func (v *BaseRuleVisitor) VisitSetValueStatement(ctx *SetValueStatementContext) interface{}
func (*BaseRuleVisitor) VisitStatement ¶
func (v *BaseRuleVisitor) VisitStatement(ctx *StatementContext) interface{}
func (*BaseRuleVisitor) VisitValueType ¶
func (v *BaseRuleVisitor) VisitValueType(ctx *ValueTypeContext) interface{}
type BoolOperateContext ¶
type BoolOperateContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBoolOperateContext ¶
func NewBoolOperateContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BoolOperateContext
func NewEmptyBoolOperateContext ¶
func NewEmptyBoolOperateContext() *BoolOperateContext
func (*BoolOperateContext) AND ¶
func (s *BoolOperateContext) AND() antlr.TerminalNode
func (*BoolOperateContext) EnterRule ¶
func (s *BoolOperateContext) EnterRule(listener antlr.ParseTreeListener)
func (*BoolOperateContext) ExitRule ¶
func (s *BoolOperateContext) ExitRule(listener antlr.ParseTreeListener)
func (*BoolOperateContext) GetParser ¶
func (s *BoolOperateContext) GetParser() antlr.Parser
func (*BoolOperateContext) GetRuleContext ¶
func (s *BoolOperateContext) GetRuleContext() antlr.RuleContext
func (*BoolOperateContext) IsBoolOperateContext ¶
func (*BoolOperateContext) IsBoolOperateContext()
func (*BoolOperateContext) NOT ¶
func (s *BoolOperateContext) NOT() antlr.TerminalNode
func (*BoolOperateContext) OR ¶
func (s *BoolOperateContext) OR() antlr.TerminalNode
func (*BoolOperateContext) ToStringTree ¶
func (s *BoolOperateContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BoolStatementContext ¶
type BoolStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBoolStatementContext ¶
func NewBoolStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BoolStatementContext
func NewEmptyBoolStatementContext ¶
func NewEmptyBoolStatementContext() *BoolStatementContext
func (*BoolStatementContext) CopyFrom ¶
func (s *BoolStatementContext) CopyFrom(ctx *BoolStatementContext)
func (*BoolStatementContext) GetParser ¶
func (s *BoolStatementContext) GetParser() antlr.Parser
func (*BoolStatementContext) GetRuleContext ¶
func (s *BoolStatementContext) GetRuleContext() antlr.RuleContext
func (*BoolStatementContext) IsBoolStatementContext ¶
func (*BoolStatementContext) IsBoolStatementContext()
func (*BoolStatementContext) ToStringTree ¶
func (s *BoolStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BoolValueContext ¶
type BoolValueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBoolValueContext ¶
func NewBoolValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BoolValueContext
func NewEmptyBoolValueContext ¶
func NewEmptyBoolValueContext() *BoolValueContext
func (*BoolValueContext) EnterRule ¶
func (s *BoolValueContext) EnterRule(listener antlr.ParseTreeListener)
func (*BoolValueContext) ExitRule ¶
func (s *BoolValueContext) ExitRule(listener antlr.ParseTreeListener)
func (*BoolValueContext) FALSE ¶
func (s *BoolValueContext) FALSE() antlr.TerminalNode
func (*BoolValueContext) GetParser ¶
func (s *BoolValueContext) GetParser() antlr.Parser
func (*BoolValueContext) GetRuleContext ¶
func (s *BoolValueContext) GetRuleContext() antlr.RuleContext
func (*BoolValueContext) IsBoolValueContext ¶
func (*BoolValueContext) IsBoolValueContext()
func (*BoolValueContext) TRUE ¶
func (s *BoolValueContext) TRUE() antlr.TerminalNode
func (*BoolValueContext) ToStringTree ¶
func (s *BoolValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CALCULATEXContext ¶
type CALCULATEXContext struct {
*CalculateStatementContext
}
func NewCALCULATEXContext ¶
func NewCALCULATEXContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CALCULATEXContext
func (*CALCULATEXContext) CalculateStatement ¶
func (s *CALCULATEXContext) CalculateStatement() ICalculateStatementContext
func (*CALCULATEXContext) EnterRule ¶
func (s *CALCULATEXContext) EnterRule(listener antlr.ParseTreeListener)
func (*CALCULATEXContext) ExitRule ¶
func (s *CALCULATEXContext) ExitRule(listener antlr.ParseTreeListener)
func (*CALCULATEXContext) GetRuleContext ¶
func (s *CALCULATEXContext) GetRuleContext() antlr.RuleContext
type COMPAREBOOLContext ¶
type COMPAREBOOLContext struct {
*BoolStatementContext
}
func NewCOMPAREBOOLContext ¶
func NewCOMPAREBOOLContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *COMPAREBOOLContext
func (*COMPAREBOOLContext) CompareStatement ¶
func (s *COMPAREBOOLContext) CompareStatement() ICompareStatementContext
func (*COMPAREBOOLContext) EnterRule ¶
func (s *COMPAREBOOLContext) EnterRule(listener antlr.ParseTreeListener)
func (*COMPAREBOOLContext) ExitRule ¶
func (s *COMPAREBOOLContext) ExitRule(listener antlr.ParseTreeListener)
func (*COMPAREBOOLContext) GetRuleContext ¶
func (s *COMPAREBOOLContext) GetRuleContext() antlr.RuleContext
type COMPAREContext ¶
type COMPAREContext struct { *CompareStatementContext // contains filtered or unexported fields }
func NewCOMPAREContext ¶
func NewCOMPAREContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *COMPAREContext
func (*COMPAREContext) AllCompareStatement ¶
func (s *COMPAREContext) AllCompareStatement() []ICompareStatementContext
func (*COMPAREContext) Compare ¶
func (s *COMPAREContext) Compare() ICompareContext
func (*COMPAREContext) CompareStatement ¶
func (s *COMPAREContext) CompareStatement(i int) ICompareStatementContext
func (*COMPAREContext) EnterRule ¶
func (s *COMPAREContext) EnterRule(listener antlr.ParseTreeListener)
func (*COMPAREContext) ExitRule ¶
func (s *COMPAREContext) ExitRule(listener antlr.ParseTreeListener)
func (*COMPAREContext) GetOp ¶
func (s *COMPAREContext) GetOp() ICompareContext
func (*COMPAREContext) GetRuleContext ¶
func (s *COMPAREContext) GetRuleContext() antlr.RuleContext
func (*COMPAREContext) SetOp ¶
func (s *COMPAREContext) SetOp(v ICompareContext)
type COMPAREXContext ¶
type COMPAREXContext struct {
*CompareStatementContext
}
func NewCOMPAREXContext ¶
func NewCOMPAREXContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *COMPAREXContext
func (*COMPAREXContext) CompareStatement ¶
func (s *COMPAREXContext) CompareStatement() ICompareStatementContext
func (*COMPAREXContext) EnterRule ¶
func (s *COMPAREXContext) EnterRule(listener antlr.ParseTreeListener)
func (*COMPAREXContext) ExitRule ¶
func (s *COMPAREXContext) ExitRule(listener antlr.ParseTreeListener)
func (*COMPAREXContext) GetRuleContext ¶
func (s *COMPAREXContext) GetRuleContext() antlr.RuleContext
type CalcuContext ¶
type CalcuContext struct {
*CompareStatementContext
}
func NewCalcuContext ¶
func NewCalcuContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CalcuContext
func (*CalcuContext) CalculateStatement ¶
func (s *CalcuContext) CalculateStatement() ICalculateStatementContext
func (*CalcuContext) EnterRule ¶
func (s *CalcuContext) EnterRule(listener antlr.ParseTreeListener)
func (*CalcuContext) ExitRule ¶
func (s *CalcuContext) ExitRule(listener antlr.ParseTreeListener)
func (*CalcuContext) GetRuleContext ¶
func (s *CalcuContext) GetRuleContext() antlr.RuleContext
type CalculateContext ¶
type CalculateContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCalculateContext ¶
func NewCalculateContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CalculateContext
func NewEmptyCalculateContext ¶
func NewEmptyCalculateContext() *CalculateContext
func (*CalculateContext) ADD ¶
func (s *CalculateContext) ADD() antlr.TerminalNode
func (*CalculateContext) DIV ¶
func (s *CalculateContext) DIV() antlr.TerminalNode
func (*CalculateContext) EnterRule ¶
func (s *CalculateContext) EnterRule(listener antlr.ParseTreeListener)
func (*CalculateContext) ExitRule ¶
func (s *CalculateContext) ExitRule(listener antlr.ParseTreeListener)
func (*CalculateContext) GetParser ¶
func (s *CalculateContext) GetParser() antlr.Parser
func (*CalculateContext) GetRuleContext ¶
func (s *CalculateContext) GetRuleContext() antlr.RuleContext
func (*CalculateContext) IsCalculateContext ¶
func (*CalculateContext) IsCalculateContext()
func (*CalculateContext) MUL ¶
func (s *CalculateContext) MUL() antlr.TerminalNode
func (*CalculateContext) SUB ¶
func (s *CalculateContext) SUB() antlr.TerminalNode
func (*CalculateContext) ToStringTree ¶
func (s *CalculateContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CalculateStatementContext ¶
type CalculateStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCalculateStatementContext ¶
func NewCalculateStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CalculateStatementContext
func NewEmptyCalculateStatementContext ¶
func NewEmptyCalculateStatementContext() *CalculateStatementContext
func (*CalculateStatementContext) CopyFrom ¶
func (s *CalculateStatementContext) CopyFrom(ctx *CalculateStatementContext)
func (*CalculateStatementContext) GetParser ¶
func (s *CalculateStatementContext) GetParser() antlr.Parser
func (*CalculateStatementContext) GetRuleContext ¶
func (s *CalculateStatementContext) GetRuleContext() antlr.RuleContext
func (*CalculateStatementContext) IsCalculateStatementContext ¶
func (*CalculateStatementContext) IsCalculateStatementContext()
func (*CalculateStatementContext) ToStringTree ¶
func (s *CalculateStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CalculateValueContext ¶
type CalculateValueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCalculateValueContext ¶
func NewCalculateValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CalculateValueContext
func NewEmptyCalculateValueContext ¶
func NewEmptyCalculateValueContext() *CalculateValueContext
func (*CalculateValueContext) EnterRule ¶
func (s *CalculateValueContext) EnterRule(listener antlr.ParseTreeListener)
func (*CalculateValueContext) ExitRule ¶
func (s *CalculateValueContext) ExitRule(listener antlr.ParseTreeListener)
func (*CalculateValueContext) GetParser ¶
func (s *CalculateValueContext) GetParser() antlr.Parser
func (*CalculateValueContext) GetRuleContext ¶
func (s *CalculateValueContext) GetRuleContext() antlr.RuleContext
func (*CalculateValueContext) Identify ¶
func (s *CalculateValueContext) Identify() IIdentifyContext
func (*CalculateValueContext) IsCalculateValueContext ¶
func (*CalculateValueContext) IsCalculateValueContext()
func (*CalculateValueContext) Num ¶
func (s *CalculateValueContext) Num() INumContext
func (*CalculateValueContext) ToStringTree ¶
func (s *CalculateValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CompareContext ¶
type CompareContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCompareContext ¶
func NewCompareContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CompareContext
func NewEmptyCompareContext ¶
func NewEmptyCompareContext() *CompareContext
func (*CompareContext) EQ ¶
func (s *CompareContext) EQ() antlr.TerminalNode
func (*CompareContext) EnterRule ¶
func (s *CompareContext) EnterRule(listener antlr.ParseTreeListener)
func (*CompareContext) ExitRule ¶
func (s *CompareContext) ExitRule(listener antlr.ParseTreeListener)
func (*CompareContext) GT ¶
func (s *CompareContext) GT() antlr.TerminalNode
func (*CompareContext) GTE ¶
func (s *CompareContext) GTE() antlr.TerminalNode
func (*CompareContext) GetParser ¶
func (s *CompareContext) GetParser() antlr.Parser
func (*CompareContext) GetRuleContext ¶
func (s *CompareContext) GetRuleContext() antlr.RuleContext
func (*CompareContext) IsCompareContext ¶
func (*CompareContext) IsCompareContext()
func (*CompareContext) LT ¶
func (s *CompareContext) LT() antlr.TerminalNode
func (*CompareContext) LTE ¶
func (s *CompareContext) LTE() antlr.TerminalNode
func (*CompareContext) ToStringTree ¶
func (s *CompareContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CompareStatementContext ¶
type CompareStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCompareStatementContext ¶
func NewCompareStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CompareStatementContext
func NewEmptyCompareStatementContext ¶
func NewEmptyCompareStatementContext() *CompareStatementContext
func (*CompareStatementContext) CopyFrom ¶
func (s *CompareStatementContext) CopyFrom(ctx *CompareStatementContext)
func (*CompareStatementContext) GetParser ¶
func (s *CompareStatementContext) GetParser() antlr.Parser
func (*CompareStatementContext) GetRuleContext ¶
func (s *CompareStatementContext) GetRuleContext() antlr.RuleContext
func (*CompareStatementContext) IsCompareStatementContext ¶
func (*CompareStatementContext) IsCompareStatementContext()
func (*CompareStatementContext) ToStringTree ¶
func (s *CompareStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ElseIfStatementContext ¶
type ElseIfStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewElseIfStatementContext ¶
func NewElseIfStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElseIfStatementContext
func NewEmptyElseIfStatementContext ¶
func NewEmptyElseIfStatementContext() *ElseIfStatementContext
func (*ElseIfStatementContext) AllStatement ¶
func (s *ElseIfStatementContext) AllStatement() []IStatementContext
func (*ElseIfStatementContext) BoolStatement ¶
func (s *ElseIfStatementContext) BoolStatement() IBoolStatementContext
func (*ElseIfStatementContext) ELSIF ¶
func (s *ElseIfStatementContext) ELSIF() antlr.TerminalNode
func (*ElseIfStatementContext) EnterRule ¶
func (s *ElseIfStatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*ElseIfStatementContext) ExitRule ¶
func (s *ElseIfStatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*ElseIfStatementContext) GetParser ¶
func (s *ElseIfStatementContext) GetParser() antlr.Parser
func (*ElseIfStatementContext) GetRuleContext ¶
func (s *ElseIfStatementContext) GetRuleContext() antlr.RuleContext
func (*ElseIfStatementContext) IsElseIfStatementContext ¶
func (*ElseIfStatementContext) IsElseIfStatementContext()
func (*ElseIfStatementContext) Statement ¶
func (s *ElseIfStatementContext) Statement(i int) IStatementContext
func (*ElseIfStatementContext) ToStringTree ¶
func (s *ElseIfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ElseStatementContext ¶
type ElseStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewElseStatementContext ¶
func NewElseStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElseStatementContext
func NewEmptyElseStatementContext ¶
func NewEmptyElseStatementContext() *ElseStatementContext
func (*ElseStatementContext) AllStatement ¶
func (s *ElseStatementContext) AllStatement() []IStatementContext
func (*ElseStatementContext) ELSE ¶
func (s *ElseStatementContext) ELSE() antlr.TerminalNode
func (*ElseStatementContext) EnterRule ¶
func (s *ElseStatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*ElseStatementContext) ExitRule ¶
func (s *ElseStatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*ElseStatementContext) GetParser ¶
func (s *ElseStatementContext) GetParser() antlr.Parser
func (*ElseStatementContext) GetRuleContext ¶
func (s *ElseStatementContext) GetRuleContext() antlr.RuleContext
func (*ElseStatementContext) IsElseStatementContext ¶
func (*ElseStatementContext) IsElseStatementContext()
func (*ElseStatementContext) Statement ¶
func (s *ElseStatementContext) Statement(i int) IStatementContext
func (*ElseStatementContext) ToStringTree ¶
func (s *ElseStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FunCallContext ¶
type FunCallContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFunCallContext ¶
func NewEmptyFunCallContext() *FunCallContext
func NewFunCallContext ¶
func NewFunCallContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunCallContext
func (*FunCallContext) AllValueType ¶
func (s *FunCallContext) AllValueType() []IValueTypeContext
func (*FunCallContext) EnterRule ¶
func (s *FunCallContext) EnterRule(listener antlr.ParseTreeListener)
func (*FunCallContext) ExitRule ¶
func (s *FunCallContext) ExitRule(listener antlr.ParseTreeListener)
func (*FunCallContext) GetParser ¶
func (s *FunCallContext) GetParser() antlr.Parser
func (*FunCallContext) GetRuleContext ¶
func (s *FunCallContext) GetRuleContext() antlr.RuleContext
func (*FunCallContext) Identify ¶
func (s *FunCallContext) Identify() IIdentifyContext
func (*FunCallContext) IsFunCallContext ¶
func (*FunCallContext) IsFunCallContext()
func (*FunCallContext) ToStringTree ¶
func (s *FunCallContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*FunCallContext) ValueType ¶
func (s *FunCallContext) ValueType(i int) IValueTypeContext
type GetMapOrArrayValueContext ¶
type GetMapOrArrayValueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGetMapOrArrayValueContext ¶
func NewEmptyGetMapOrArrayValueContext() *GetMapOrArrayValueContext
func NewGetMapOrArrayValueContext ¶
func NewGetMapOrArrayValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GetMapOrArrayValueContext
func (*GetMapOrArrayValueContext) AllMapKey ¶
func (s *GetMapOrArrayValueContext) AllMapKey() []IMapKeyContext
func (*GetMapOrArrayValueContext) EnterRule ¶
func (s *GetMapOrArrayValueContext) EnterRule(listener antlr.ParseTreeListener)
func (*GetMapOrArrayValueContext) ExitRule ¶
func (s *GetMapOrArrayValueContext) ExitRule(listener antlr.ParseTreeListener)
func (*GetMapOrArrayValueContext) GetParser ¶
func (s *GetMapOrArrayValueContext) GetParser() antlr.Parser
func (*GetMapOrArrayValueContext) GetRuleContext ¶
func (s *GetMapOrArrayValueContext) GetRuleContext() antlr.RuleContext
func (*GetMapOrArrayValueContext) Identify ¶
func (s *GetMapOrArrayValueContext) Identify() IIdentifyContext
func (*GetMapOrArrayValueContext) IsGetMapOrArrayValueContext ¶
func (*GetMapOrArrayValueContext) IsGetMapOrArrayValueContext()
func (*GetMapOrArrayValueContext) MapKey ¶
func (s *GetMapOrArrayValueContext) MapKey(i int) IMapKeyContext
func (*GetMapOrArrayValueContext) ToStringTree ¶
func (s *GetMapOrArrayValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IArrayContext ¶
type IArrayContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsArrayContext differentiates from other interfaces. IsArrayContext() }
IArrayContext is an interface to support dynamic dispatch.
type IBoolOperateContext ¶
type IBoolOperateContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBoolOperateContext differentiates from other interfaces. IsBoolOperateContext() }
IBoolOperateContext is an interface to support dynamic dispatch.
type IBoolStatementContext ¶
type IBoolStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBoolStatementContext differentiates from other interfaces. IsBoolStatementContext() }
IBoolStatementContext is an interface to support dynamic dispatch.
type IBoolValueContext ¶
type IBoolValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBoolValueContext differentiates from other interfaces. IsBoolValueContext() }
IBoolValueContext is an interface to support dynamic dispatch.
type ICalculateContext ¶
type ICalculateContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCalculateContext differentiates from other interfaces. IsCalculateContext() }
ICalculateContext is an interface to support dynamic dispatch.
type ICalculateStatementContext ¶
type ICalculateStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCalculateStatementContext differentiates from other interfaces. IsCalculateStatementContext() }
ICalculateStatementContext is an interface to support dynamic dispatch.
type ICalculateValueContext ¶
type ICalculateValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCalculateValueContext differentiates from other interfaces. IsCalculateValueContext() }
ICalculateValueContext is an interface to support dynamic dispatch.
type ICompareContext ¶
type ICompareContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCompareContext differentiates from other interfaces. IsCompareContext() }
ICompareContext is an interface to support dynamic dispatch.
type ICompareStatementContext ¶
type ICompareStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCompareStatementContext differentiates from other interfaces. IsCompareStatementContext() }
ICompareStatementContext is an interface to support dynamic dispatch.
type IDENBOOLContext ¶
type IDENBOOLContext struct {
*BoolStatementContext
}
func NewIDENBOOLContext ¶
func NewIDENBOOLContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IDENBOOLContext
func (*IDENBOOLContext) EnterRule ¶
func (s *IDENBOOLContext) EnterRule(listener antlr.ParseTreeListener)
func (*IDENBOOLContext) ExitRule ¶
func (s *IDENBOOLContext) ExitRule(listener antlr.ParseTreeListener)
func (*IDENBOOLContext) GetRuleContext ¶
func (s *IDENBOOLContext) GetRuleContext() antlr.RuleContext
func (*IDENBOOLContext) IDENTIFY ¶
func (s *IDENBOOLContext) IDENTIFY() antlr.TerminalNode
type IDENTIFYContext ¶
type IDENTIFYContext struct {
*IdentifyContext
}
func NewIDENTIFYContext ¶
func NewIDENTIFYContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IDENTIFYContext
func (*IDENTIFYContext) EnterRule ¶
func (s *IDENTIFYContext) EnterRule(listener antlr.ParseTreeListener)
func (*IDENTIFYContext) ExitRule ¶
func (s *IDENTIFYContext) ExitRule(listener antlr.ParseTreeListener)
func (*IDENTIFYContext) GetRuleContext ¶
func (s *IDENTIFYContext) GetRuleContext() antlr.RuleContext
func (*IDENTIFYContext) IDENTIFY ¶
func (s *IDENTIFYContext) IDENTIFY() antlr.TerminalNode
type IElseIfStatementContext ¶
type IElseIfStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsElseIfStatementContext differentiates from other interfaces. IsElseIfStatementContext() }
IElseIfStatementContext is an interface to support dynamic dispatch.
type IElseStatementContext ¶
type IElseStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsElseStatementContext differentiates from other interfaces. IsElseStatementContext() }
IElseStatementContext is an interface to support dynamic dispatch.
type IFunCallContext ¶
type IFunCallContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsFunCallContext differentiates from other interfaces. IsFunCallContext() }
IFunCallContext is an interface to support dynamic dispatch.
type IGetMapOrArrayValueContext ¶
type IGetMapOrArrayValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsGetMapOrArrayValueContext differentiates from other interfaces. IsGetMapOrArrayValueContext() }
IGetMapOrArrayValueContext is an interface to support dynamic dispatch.
type IIdentifyContext ¶
type IIdentifyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIdentifyContext differentiates from other interfaces. IsIdentifyContext() }
IIdentifyContext is an interface to support dynamic dispatch.
type IIfStatementContext ¶
type IIfStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIfStatementContext differentiates from other interfaces. IsIfStatementContext() }
IIfStatementContext is an interface to support dynamic dispatch.
type IInitContext ¶
type IInitContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsInitContext differentiates from other interfaces. IsInitContext() }
IInitContext is an interface to support dynamic dispatch.
type ILogicalContext ¶
type ILogicalContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLogicalContext differentiates from other interfaces. IsLogicalContext() }
ILogicalContext is an interface to support dynamic dispatch.
type IMapKeyContext ¶
type IMapKeyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMapKeyContext differentiates from other interfaces. IsMapKeyContext() }
IMapKeyContext is an interface to support dynamic dispatch.
type IMapValueContext ¶
type IMapValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMapValueContext differentiates from other interfaces. IsMapValueContext() }
IMapValueContext is an interface to support dynamic dispatch.
type INumContext ¶
type INumContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsNumContext differentiates from other interfaces. IsNumContext() }
INumContext is an interface to support dynamic dispatch.
type IPairContext ¶
type IPairContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsPairContext differentiates from other interfaces. IsPairContext() }
IPairContext is an interface to support dynamic dispatch.
type IReturnStatementContext ¶
type IReturnStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetValue returns the value rule contexts. GetValue() IValueTypeContext // SetValue sets the value rule contexts. SetValue(IValueTypeContext) // IsReturnStatementContext differentiates from other interfaces. IsReturnStatementContext() }
IReturnStatementContext is an interface to support dynamic dispatch.
type ISetValueStatementContext ¶
type ISetValueStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSetValueStatementContext differentiates from other interfaces. IsSetValueStatementContext() }
ISetValueStatementContext is an interface to support dynamic dispatch.
type IStatementContext ¶
type IStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStatementContext differentiates from other interfaces. IsStatementContext() }
IStatementContext is an interface to support dynamic dispatch.
type IStringValueContext ¶
type IStringValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStringValueContext differentiates from other interfaces. IsStringValueContext() }
IStringValueContext is an interface to support dynamic dispatch.
type ITEMCALCUContext ¶
type ITEMCALCUContext struct {
*CalculateStatementContext
}
func NewITEMCALCUContext ¶
func NewITEMCALCUContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ITEMCALCUContext
func (*ITEMCALCUContext) CalculateValue ¶
func (s *ITEMCALCUContext) CalculateValue() ICalculateValueContext
func (*ITEMCALCUContext) EnterRule ¶
func (s *ITEMCALCUContext) EnterRule(listener antlr.ParseTreeListener)
func (*ITEMCALCUContext) ExitRule ¶
func (s *ITEMCALCUContext) ExitRule(listener antlr.ParseTreeListener)
func (*ITEMCALCUContext) GetRuleContext ¶
func (s *ITEMCALCUContext) GetRuleContext() antlr.RuleContext
type ITEMCOMPContext ¶
type ITEMCOMPContext struct {
*CompareStatementContext
}
func NewITEMCOMPContext ¶
func NewITEMCOMPContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ITEMCOMPContext
func (*ITEMCOMPContext) CalculateValue ¶
func (s *ITEMCOMPContext) CalculateValue() ICalculateValueContext
func (*ITEMCOMPContext) EnterRule ¶
func (s *ITEMCOMPContext) EnterRule(listener antlr.ParseTreeListener)
func (*ITEMCOMPContext) ExitRule ¶
func (s *ITEMCOMPContext) ExitRule(listener antlr.ParseTreeListener)
func (*ITEMCOMPContext) GetRuleContext ¶
func (s *ITEMCOMPContext) GetRuleContext() antlr.RuleContext
type IValueTypeContext ¶
type IValueTypeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsValueTypeContext differentiates from other interfaces. IsValueTypeContext() }
IValueTypeContext is an interface to support dynamic dispatch.
type IdentifyContext ¶
type IdentifyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIdentifyContext ¶
func NewEmptyIdentifyContext() *IdentifyContext
func NewIdentifyContext ¶
func NewIdentifyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentifyContext
func (*IdentifyContext) CopyFrom ¶
func (s *IdentifyContext) CopyFrom(ctx *IdentifyContext)
func (*IdentifyContext) GetParser ¶
func (s *IdentifyContext) GetParser() antlr.Parser
func (*IdentifyContext) GetRuleContext ¶
func (s *IdentifyContext) GetRuleContext() antlr.RuleContext
func (*IdentifyContext) IsIdentifyContext ¶
func (*IdentifyContext) IsIdentifyContext()
func (*IdentifyContext) ToStringTree ¶
func (s *IdentifyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IfStatementContext ¶
type IfStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIfStatementContext ¶
func NewEmptyIfStatementContext() *IfStatementContext
func NewIfStatementContext ¶
func NewIfStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfStatementContext
func (*IfStatementContext) AllElseIfStatement ¶
func (s *IfStatementContext) AllElseIfStatement() []IElseIfStatementContext
func (*IfStatementContext) AllStatement ¶
func (s *IfStatementContext) AllStatement() []IStatementContext
func (*IfStatementContext) BoolStatement ¶
func (s *IfStatementContext) BoolStatement() IBoolStatementContext
func (*IfStatementContext) ElseIfStatement ¶
func (s *IfStatementContext) ElseIfStatement(i int) IElseIfStatementContext
func (*IfStatementContext) ElseStatement ¶
func (s *IfStatementContext) ElseStatement() IElseStatementContext
func (*IfStatementContext) EnterRule ¶
func (s *IfStatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*IfStatementContext) ExitRule ¶
func (s *IfStatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*IfStatementContext) GetParser ¶
func (s *IfStatementContext) GetParser() antlr.Parser
func (*IfStatementContext) GetRuleContext ¶
func (s *IfStatementContext) GetRuleContext() antlr.RuleContext
func (*IfStatementContext) IF ¶
func (s *IfStatementContext) IF() antlr.TerminalNode
func (*IfStatementContext) IsIfStatementContext ¶
func (*IfStatementContext) IsIfStatementContext()
func (*IfStatementContext) Statement ¶
func (s *IfStatementContext) Statement(i int) IStatementContext
func (*IfStatementContext) ToStringTree ¶
func (s *IfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type InitContext ¶
type InitContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyInitContext ¶
func NewEmptyInitContext() *InitContext
func NewInitContext ¶
func NewInitContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *InitContext
func (*InitContext) AllStatement ¶
func (s *InitContext) AllStatement() []IStatementContext
func (*InitContext) EOF ¶
func (s *InitContext) EOF() antlr.TerminalNode
func (*InitContext) EnterRule ¶
func (s *InitContext) EnterRule(listener antlr.ParseTreeListener)
func (*InitContext) ExitRule ¶
func (s *InitContext) ExitRule(listener antlr.ParseTreeListener)
func (*InitContext) GetParser ¶
func (s *InitContext) GetParser() antlr.Parser
func (*InitContext) GetRuleContext ¶
func (s *InitContext) GetRuleContext() antlr.RuleContext
func (*InitContext) IsInitContext ¶
func (*InitContext) IsInitContext()
func (*InitContext) Statement ¶
func (s *InitContext) Statement(i int) IStatementContext
func (*InitContext) ToStringTree ¶
func (s *InitContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LogicalContext ¶
type LogicalContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLogicalContext ¶
func NewEmptyLogicalContext() *LogicalContext
func NewLogicalContext ¶
func NewLogicalContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LogicalContext
func (*LogicalContext) AND ¶
func (s *LogicalContext) AND() antlr.TerminalNode
func (*LogicalContext) EnterRule ¶
func (s *LogicalContext) EnterRule(listener antlr.ParseTreeListener)
func (*LogicalContext) ExitRule ¶
func (s *LogicalContext) ExitRule(listener antlr.ParseTreeListener)
func (*LogicalContext) GetParser ¶
func (s *LogicalContext) GetParser() antlr.Parser
func (*LogicalContext) GetRuleContext ¶
func (s *LogicalContext) GetRuleContext() antlr.RuleContext
func (*LogicalContext) IsLogicalContext ¶
func (*LogicalContext) IsLogicalContext()
func (*LogicalContext) NOT ¶
func (s *LogicalContext) NOT() antlr.TerminalNode
func (*LogicalContext) OR ¶
func (s *LogicalContext) OR() antlr.TerminalNode
func (*LogicalContext) ToStringTree ¶
func (s *LogicalContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MULDIVContext ¶
type MULDIVContext struct { *CalculateStatementContext // contains filtered or unexported fields }
func NewMULDIVContext ¶
func NewMULDIVContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MULDIVContext
func (*MULDIVContext) AllCalculateStatement ¶
func (s *MULDIVContext) AllCalculateStatement() []ICalculateStatementContext
func (*MULDIVContext) CalculateStatement ¶
func (s *MULDIVContext) CalculateStatement(i int) ICalculateStatementContext
func (*MULDIVContext) DIV ¶
func (s *MULDIVContext) DIV() antlr.TerminalNode
func (*MULDIVContext) EnterRule ¶
func (s *MULDIVContext) EnterRule(listener antlr.ParseTreeListener)
func (*MULDIVContext) ExitRule ¶
func (s *MULDIVContext) ExitRule(listener antlr.ParseTreeListener)
func (*MULDIVContext) GetOp ¶
func (s *MULDIVContext) GetOp() antlr.Token
func (*MULDIVContext) GetRuleContext ¶
func (s *MULDIVContext) GetRuleContext() antlr.RuleContext
func (*MULDIVContext) MUL ¶
func (s *MULDIVContext) MUL() antlr.TerminalNode
func (*MULDIVContext) SetOp ¶
func (s *MULDIVContext) SetOp(v antlr.Token)
type MapKeyContext ¶
type MapKeyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMapKeyContext ¶
func NewEmptyMapKeyContext() *MapKeyContext
func NewMapKeyContext ¶
func NewMapKeyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MapKeyContext
func (*MapKeyContext) EnterRule ¶
func (s *MapKeyContext) EnterRule(listener antlr.ParseTreeListener)
func (*MapKeyContext) ExitRule ¶
func (s *MapKeyContext) ExitRule(listener antlr.ParseTreeListener)
func (*MapKeyContext) GetParser ¶
func (s *MapKeyContext) GetParser() antlr.Parser
func (*MapKeyContext) GetRuleContext ¶
func (s *MapKeyContext) GetRuleContext() antlr.RuleContext
func (*MapKeyContext) IDENTIFY ¶
func (s *MapKeyContext) IDENTIFY() antlr.TerminalNode
func (*MapKeyContext) IsMapKeyContext ¶
func (*MapKeyContext) IsMapKeyContext()
func (*MapKeyContext) NUM ¶
func (s *MapKeyContext) NUM() antlr.TerminalNode
func (*MapKeyContext) Str ¶
func (s *MapKeyContext) Str() antlr.TerminalNode
func (*MapKeyContext) ToStringTree ¶
func (s *MapKeyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MapValueContext ¶
type MapValueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMapValueContext ¶
func NewEmptyMapValueContext() *MapValueContext
func NewMapValueContext ¶
func NewMapValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MapValueContext
func (*MapValueContext) AllPair ¶
func (s *MapValueContext) AllPair() []IPairContext
func (*MapValueContext) EnterRule ¶
func (s *MapValueContext) EnterRule(listener antlr.ParseTreeListener)
func (*MapValueContext) ExitRule ¶
func (s *MapValueContext) ExitRule(listener antlr.ParseTreeListener)
func (*MapValueContext) GetParser ¶
func (s *MapValueContext) GetParser() antlr.Parser
func (*MapValueContext) GetRuleContext ¶
func (s *MapValueContext) GetRuleContext() antlr.RuleContext
func (*MapValueContext) IsMapValueContext ¶
func (*MapValueContext) IsMapValueContext()
func (*MapValueContext) Pair ¶
func (s *MapValueContext) Pair(i int) IPairContext
func (*MapValueContext) ToStringTree ¶
func (s *MapValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type NUMContext ¶
type NUMContext struct {
*NumContext
}
func NewNUMContext ¶
func NewNUMContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NUMContext
func (*NUMContext) EnterRule ¶
func (s *NUMContext) EnterRule(listener antlr.ParseTreeListener)
func (*NUMContext) ExitRule ¶
func (s *NUMContext) ExitRule(listener antlr.ParseTreeListener)
func (*NUMContext) GetRuleContext ¶
func (s *NUMContext) GetRuleContext() antlr.RuleContext
func (*NUMContext) NUM ¶
func (s *NUMContext) NUM() antlr.TerminalNode
type NumContext ¶
type NumContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNumContext ¶
func NewEmptyNumContext() *NumContext
func NewNumContext ¶
func NewNumContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NumContext
func (*NumContext) CopyFrom ¶
func (s *NumContext) CopyFrom(ctx *NumContext)
func (*NumContext) GetParser ¶
func (s *NumContext) GetParser() antlr.Parser
func (*NumContext) GetRuleContext ¶
func (s *NumContext) GetRuleContext() antlr.RuleContext
func (*NumContext) IsNumContext ¶
func (*NumContext) IsNumContext()
func (*NumContext) ToStringTree ¶
func (s *NumContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type PairContext ¶
type PairContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPairContext ¶
func NewEmptyPairContext() *PairContext
func NewPairContext ¶
func NewPairContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PairContext
func (*PairContext) EnterRule ¶
func (s *PairContext) EnterRule(listener antlr.ParseTreeListener)
func (*PairContext) ExitRule ¶
func (s *PairContext) ExitRule(listener antlr.ParseTreeListener)
func (*PairContext) GetParser ¶
func (s *PairContext) GetParser() antlr.Parser
func (*PairContext) GetRuleContext ¶
func (s *PairContext) GetRuleContext() antlr.RuleContext
func (*PairContext) IsPairContext ¶
func (*PairContext) IsPairContext()
func (*PairContext) MapKey ¶
func (s *PairContext) MapKey() IMapKeyContext
func (*PairContext) ToStringTree ¶
func (s *PairContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*PairContext) ValueType ¶
func (s *PairContext) ValueType() IValueTypeContext
type ReturnStatementContext ¶
type ReturnStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyReturnStatementContext ¶
func NewEmptyReturnStatementContext() *ReturnStatementContext
func NewReturnStatementContext ¶
func NewReturnStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReturnStatementContext
func (*ReturnStatementContext) BoolStatement ¶
func (s *ReturnStatementContext) BoolStatement() IBoolStatementContext
func (*ReturnStatementContext) CalculateStatement ¶
func (s *ReturnStatementContext) CalculateStatement() ICalculateStatementContext
func (*ReturnStatementContext) EnterRule ¶
func (s *ReturnStatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*ReturnStatementContext) ExitRule ¶
func (s *ReturnStatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*ReturnStatementContext) GetParser ¶
func (s *ReturnStatementContext) GetParser() antlr.Parser
func (*ReturnStatementContext) GetRuleContext ¶
func (s *ReturnStatementContext) GetRuleContext() antlr.RuleContext
func (*ReturnStatementContext) GetValue ¶
func (s *ReturnStatementContext) GetValue() IValueTypeContext
func (*ReturnStatementContext) IsReturnStatementContext ¶
func (*ReturnStatementContext) IsReturnStatementContext()
func (*ReturnStatementContext) SetValue ¶
func (s *ReturnStatementContext) SetValue(v IValueTypeContext)
func (*ReturnStatementContext) ToStringTree ¶
func (s *ReturnStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ReturnStatementContext) ValueType ¶
func (s *ReturnStatementContext) ValueType() IValueTypeContext
type RuleLexer ¶
func NewRuleLexer ¶
func NewRuleLexer(input antlr.CharStream) *RuleLexer
NewRuleLexer produces a new lexer instance for the optional input antlr.CharStream.
type RuleListener ¶
type RuleListener interface { antlr.ParseTreeListener // EnterBoolOperate is called when entering the boolOperate production. EnterBoolOperate(c *BoolOperateContext) // EnterCalculate is called when entering the calculate production. EnterCalculate(c *CalculateContext) // EnterCompare is called when entering the compare production. EnterCompare(c *CompareContext) // EnterLogical is called when entering the logical production. EnterLogical(c *LogicalContext) // EnterCOMPAREX is called when entering the COMPAREX production. EnterCOMPAREX(c *COMPAREXContext) // EnterCOMPARE is called when entering the COMPARE production. EnterCOMPARE(c *COMPAREContext) // EnterCalcu is called when entering the Calcu production. EnterCalcu(c *CalcuContext) // EnterITEMCOMP is called when entering the ITEMCOMP production. EnterITEMCOMP(c *ITEMCOMPContext) // EnterNUM is called when entering the NUM production. EnterNUM(c *NUMContext) // EnterBoolValue is called when entering the boolValue production. EnterBoolValue(c *BoolValueContext) // EnterIDENTIFY is called when entering the IDENTIFY production. EnterIDENTIFY(c *IDENTIFYContext) // EnterSTRING is called when entering the STRING production. EnterSTRING(c *STRINGContext) // EnterCalculateValue is called when entering the calculateValue production. EnterCalculateValue(c *CalculateValueContext) // EnterITEMCALCU is called when entering the ITEMCALCU production. EnterITEMCALCU(c *ITEMCALCUContext) // EnterADDSUB is called when entering the ADDSUB production. EnterADDSUB(c *ADDSUBContext) // EnterMULDIV is called when entering the MULDIV production. EnterMULDIV(c *MULDIVContext) // EnterCALCULATEX is called when entering the CALCULATEX production. EnterCALCULATEX(c *CALCULATEXContext) // EnterBOOL is called when entering the BOOL production. EnterBOOL(c *BOOLContext) // EnterBOOLOP is called when entering the BOOLOP production. EnterBOOLOP(c *BOOLOPContext) // EnterIDENBOOL is called when entering the IDENBOOL production. EnterIDENBOOL(c *IDENBOOLContext) // EnterCOMPAREBOOL is called when entering the COMPAREBOOL production. EnterCOMPAREBOOL(c *COMPAREBOOLContext) // EnterBOOLOPX is called when entering the BOOLOPX production. EnterBOOLOPX(c *BOOLOPXContext) // EnterValueType is called when entering the valueType production. EnterValueType(c *ValueTypeContext) // EnterSetValueStatement is called when entering the setValueStatement production. EnterSetValueStatement(c *SetValueStatementContext) // EnterIfStatement is called when entering the ifStatement production. EnterIfStatement(c *IfStatementContext) // EnterElseIfStatement is called when entering the elseIfStatement production. EnterElseIfStatement(c *ElseIfStatementContext) // EnterElseStatement is called when entering the elseStatement production. EnterElseStatement(c *ElseStatementContext) // EnterReturnStatement is called when entering the returnStatement production. EnterReturnStatement(c *ReturnStatementContext) // EnterMapKey is called when entering the mapKey production. EnterMapKey(c *MapKeyContext) // EnterPair is called when entering the pair production. EnterPair(c *PairContext) // EnterMapValue is called when entering the mapValue production. EnterMapValue(c *MapValueContext) // EnterGetMapOrArrayValue is called when entering the getMapOrArrayValue production. EnterGetMapOrArrayValue(c *GetMapOrArrayValueContext) // EnterFunCall is called when entering the funCall production. EnterFunCall(c *FunCallContext) // EnterArray is called when entering the array production. EnterArray(c *ArrayContext) // EnterStatement is called when entering the statement production. EnterStatement(c *StatementContext) // EnterInit is called when entering the init production. EnterInit(c *InitContext) // ExitBoolOperate is called when exiting the boolOperate production. ExitBoolOperate(c *BoolOperateContext) // ExitCalculate is called when exiting the calculate production. ExitCalculate(c *CalculateContext) // ExitCompare is called when exiting the compare production. ExitCompare(c *CompareContext) // ExitLogical is called when exiting the logical production. ExitLogical(c *LogicalContext) // ExitCOMPAREX is called when exiting the COMPAREX production. ExitCOMPAREX(c *COMPAREXContext) // ExitCOMPARE is called when exiting the COMPARE production. ExitCOMPARE(c *COMPAREContext) // ExitCalcu is called when exiting the Calcu production. ExitCalcu(c *CalcuContext) // ExitITEMCOMP is called when exiting the ITEMCOMP production. ExitITEMCOMP(c *ITEMCOMPContext) // ExitNUM is called when exiting the NUM production. ExitNUM(c *NUMContext) // ExitBoolValue is called when exiting the boolValue production. ExitBoolValue(c *BoolValueContext) // ExitIDENTIFY is called when exiting the IDENTIFY production. ExitIDENTIFY(c *IDENTIFYContext) // ExitSTRING is called when exiting the STRING production. ExitSTRING(c *STRINGContext) // ExitCalculateValue is called when exiting the calculateValue production. ExitCalculateValue(c *CalculateValueContext) // ExitITEMCALCU is called when exiting the ITEMCALCU production. ExitITEMCALCU(c *ITEMCALCUContext) // ExitADDSUB is called when exiting the ADDSUB production. ExitADDSUB(c *ADDSUBContext) // ExitMULDIV is called when exiting the MULDIV production. ExitMULDIV(c *MULDIVContext) // ExitCALCULATEX is called when exiting the CALCULATEX production. ExitCALCULATEX(c *CALCULATEXContext) // ExitBOOL is called when exiting the BOOL production. ExitBOOL(c *BOOLContext) // ExitBOOLOP is called when exiting the BOOLOP production. ExitBOOLOP(c *BOOLOPContext) // ExitIDENBOOL is called when exiting the IDENBOOL production. ExitIDENBOOL(c *IDENBOOLContext) // ExitCOMPAREBOOL is called when exiting the COMPAREBOOL production. ExitCOMPAREBOOL(c *COMPAREBOOLContext) // ExitBOOLOPX is called when exiting the BOOLOPX production. ExitBOOLOPX(c *BOOLOPXContext) // ExitValueType is called when exiting the valueType production. ExitValueType(c *ValueTypeContext) // ExitSetValueStatement is called when exiting the setValueStatement production. ExitSetValueStatement(c *SetValueStatementContext) // ExitIfStatement is called when exiting the ifStatement production. ExitIfStatement(c *IfStatementContext) // ExitElseIfStatement is called when exiting the elseIfStatement production. ExitElseIfStatement(c *ElseIfStatementContext) // ExitElseStatement is called when exiting the elseStatement production. ExitElseStatement(c *ElseStatementContext) // ExitReturnStatement is called when exiting the returnStatement production. ExitReturnStatement(c *ReturnStatementContext) // ExitMapKey is called when exiting the mapKey production. ExitMapKey(c *MapKeyContext) // ExitPair is called when exiting the pair production. ExitPair(c *PairContext) // ExitMapValue is called when exiting the mapValue production. ExitMapValue(c *MapValueContext) // ExitGetMapOrArrayValue is called when exiting the getMapOrArrayValue production. ExitGetMapOrArrayValue(c *GetMapOrArrayValueContext) // ExitFunCall is called when exiting the funCall production. ExitFunCall(c *FunCallContext) // ExitArray is called when exiting the array production. ExitArray(c *ArrayContext) // ExitStatement is called when exiting the statement production. ExitStatement(c *StatementContext) // ExitInit is called when exiting the init production. ExitInit(c *InitContext) }
RuleListener is a complete listener for a parse tree produced by RuleParser.
type RuleParser ¶
type RuleParser struct {
*antlr.BaseParser
}
func NewRuleParser ¶
func NewRuleParser(input antlr.TokenStream) *RuleParser
NewRuleParser produces a new parser instance for the optional input antlr.TokenStream.
func (*RuleParser) Array ¶
func (p *RuleParser) Array() (localctx IArrayContext)
func (*RuleParser) BoolOperate ¶
func (p *RuleParser) BoolOperate() (localctx IBoolOperateContext)
func (*RuleParser) BoolStatement ¶
func (p *RuleParser) BoolStatement() (localctx IBoolStatementContext)
func (*RuleParser) BoolStatement_Sempred ¶
func (p *RuleParser) BoolStatement_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*RuleParser) BoolValue ¶
func (p *RuleParser) BoolValue() (localctx IBoolValueContext)
func (*RuleParser) Calculate ¶
func (p *RuleParser) Calculate() (localctx ICalculateContext)
func (*RuleParser) CalculateStatement ¶
func (p *RuleParser) CalculateStatement() (localctx ICalculateStatementContext)
func (*RuleParser) CalculateStatement_Sempred ¶
func (p *RuleParser) CalculateStatement_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*RuleParser) CalculateValue ¶
func (p *RuleParser) CalculateValue() (localctx ICalculateValueContext)
func (*RuleParser) Compare ¶
func (p *RuleParser) Compare() (localctx ICompareContext)
func (*RuleParser) CompareStatement ¶
func (p *RuleParser) CompareStatement() (localctx ICompareStatementContext)
func (*RuleParser) CompareStatement_Sempred ¶
func (p *RuleParser) CompareStatement_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*RuleParser) ElseIfStatement ¶
func (p *RuleParser) ElseIfStatement() (localctx IElseIfStatementContext)
func (*RuleParser) ElseStatement ¶
func (p *RuleParser) ElseStatement() (localctx IElseStatementContext)
func (*RuleParser) FunCall ¶
func (p *RuleParser) FunCall() (localctx IFunCallContext)
func (*RuleParser) GetMapOrArrayValue ¶
func (p *RuleParser) GetMapOrArrayValue() (localctx IGetMapOrArrayValueContext)
func (*RuleParser) Identify ¶
func (p *RuleParser) Identify() (localctx IIdentifyContext)
func (*RuleParser) IfStatement ¶
func (p *RuleParser) IfStatement() (localctx IIfStatementContext)
func (*RuleParser) Init ¶
func (p *RuleParser) Init() (localctx IInitContext)
func (*RuleParser) Logical ¶
func (p *RuleParser) Logical() (localctx ILogicalContext)
func (*RuleParser) MapKey ¶
func (p *RuleParser) MapKey() (localctx IMapKeyContext)
func (*RuleParser) MapValue ¶
func (p *RuleParser) MapValue() (localctx IMapValueContext)
func (*RuleParser) Num ¶
func (p *RuleParser) Num() (localctx INumContext)
func (*RuleParser) Pair ¶
func (p *RuleParser) Pair() (localctx IPairContext)
func (*RuleParser) ReturnStatement ¶
func (p *RuleParser) ReturnStatement() (localctx IReturnStatementContext)
func (*RuleParser) Sempred ¶
func (p *RuleParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
func (*RuleParser) SetValueStatement ¶
func (p *RuleParser) SetValueStatement() (localctx ISetValueStatementContext)
func (*RuleParser) Statement ¶
func (p *RuleParser) Statement() (localctx IStatementContext)
func (*RuleParser) StringValue ¶
func (p *RuleParser) StringValue() (localctx IStringValueContext)
func (*RuleParser) ValueType ¶
func (p *RuleParser) ValueType() (localctx IValueTypeContext)
type RuleVisitor ¶
type RuleVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by RuleParser#boolOperate. VisitBoolOperate(ctx *BoolOperateContext) interface{} // Visit a parse tree produced by RuleParser#calculate. VisitCalculate(ctx *CalculateContext) interface{} // Visit a parse tree produced by RuleParser#compare. VisitCompare(ctx *CompareContext) interface{} // Visit a parse tree produced by RuleParser#logical. VisitLogical(ctx *LogicalContext) interface{} // Visit a parse tree produced by RuleParser#COMPAREX. VisitCOMPAREX(ctx *COMPAREXContext) interface{} // Visit a parse tree produced by RuleParser#COMPARE. VisitCOMPARE(ctx *COMPAREContext) interface{} // Visit a parse tree produced by RuleParser#Calcu. VisitCalcu(ctx *CalcuContext) interface{} // Visit a parse tree produced by RuleParser#ITEMCOMP. VisitITEMCOMP(ctx *ITEMCOMPContext) interface{} // Visit a parse tree produced by RuleParser#NUM. VisitNUM(ctx *NUMContext) interface{} // Visit a parse tree produced by RuleParser#boolValue. VisitBoolValue(ctx *BoolValueContext) interface{} // Visit a parse tree produced by RuleParser#IDENTIFY. VisitIDENTIFY(ctx *IDENTIFYContext) interface{} // Visit a parse tree produced by RuleParser#STRING. VisitSTRING(ctx *STRINGContext) interface{} // Visit a parse tree produced by RuleParser#calculateValue. VisitCalculateValue(ctx *CalculateValueContext) interface{} // Visit a parse tree produced by RuleParser#ITEMCALCU. VisitITEMCALCU(ctx *ITEMCALCUContext) interface{} // Visit a parse tree produced by RuleParser#ADDSUB. VisitADDSUB(ctx *ADDSUBContext) interface{} // Visit a parse tree produced by RuleParser#MULDIV. VisitMULDIV(ctx *MULDIVContext) interface{} // Visit a parse tree produced by RuleParser#CALCULATEX. VisitCALCULATEX(ctx *CALCULATEXContext) interface{} // Visit a parse tree produced by RuleParser#BOOL. VisitBOOL(ctx *BOOLContext) interface{} // Visit a parse tree produced by RuleParser#BOOLOP. VisitBOOLOP(ctx *BOOLOPContext) interface{} // Visit a parse tree produced by RuleParser#IDENBOOL. VisitIDENBOOL(ctx *IDENBOOLContext) interface{} // Visit a parse tree produced by RuleParser#COMPAREBOOL. VisitCOMPAREBOOL(ctx *COMPAREBOOLContext) interface{} // Visit a parse tree produced by RuleParser#BOOLOPX. VisitBOOLOPX(ctx *BOOLOPXContext) interface{} // Visit a parse tree produced by RuleParser#valueType. VisitValueType(ctx *ValueTypeContext) interface{} // Visit a parse tree produced by RuleParser#setValueStatement. VisitSetValueStatement(ctx *SetValueStatementContext) interface{} // Visit a parse tree produced by RuleParser#ifStatement. VisitIfStatement(ctx *IfStatementContext) interface{} // Visit a parse tree produced by RuleParser#elseIfStatement. VisitElseIfStatement(ctx *ElseIfStatementContext) interface{} // Visit a parse tree produced by RuleParser#elseStatement. VisitElseStatement(ctx *ElseStatementContext) interface{} // Visit a parse tree produced by RuleParser#returnStatement. VisitReturnStatement(ctx *ReturnStatementContext) interface{} // Visit a parse tree produced by RuleParser#pair. VisitPair(ctx *PairContext) interface{} // Visit a parse tree produced by RuleParser#mapValue. VisitMapValue(ctx *MapValueContext) interface{} // Visit a parse tree produced by RuleParser#getMapOrArrayValue. VisitGetMapOrArrayValue(ctx *GetMapOrArrayValueContext) interface{} // Visit a parse tree produced by RuleParser#funCall. VisitFunCall(ctx *FunCallContext) interface{} // Visit a parse tree produced by RuleParser#array. VisitArray(ctx *ArrayContext) interface{} // Visit a parse tree produced by RuleParser#statement. VisitStatement(ctx *StatementContext) interface{} // Visit a parse tree produced by RuleParser#init. VisitInit(ctx *InitContext) interface{} }
A complete Visitor for a parse tree produced by RuleParser.
type STRINGContext ¶
type STRINGContext struct {
*StringValueContext
}
func NewSTRINGContext ¶
func NewSTRINGContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *STRINGContext
func (*STRINGContext) EnterRule ¶
func (s *STRINGContext) EnterRule(listener antlr.ParseTreeListener)
func (*STRINGContext) ExitRule ¶
func (s *STRINGContext) ExitRule(listener antlr.ParseTreeListener)
func (*STRINGContext) GetRuleContext ¶
func (s *STRINGContext) GetRuleContext() antlr.RuleContext
func (*STRINGContext) Str ¶
func (s *STRINGContext) Str() antlr.TerminalNode
type SetValueStatementContext ¶
type SetValueStatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySetValueStatementContext ¶
func NewEmptySetValueStatementContext() *SetValueStatementContext
func NewSetValueStatementContext ¶
func NewSetValueStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SetValueStatementContext
func (*SetValueStatementContext) EnterRule ¶
func (s *SetValueStatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*SetValueStatementContext) ExitRule ¶
func (s *SetValueStatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*SetValueStatementContext) GetParser ¶
func (s *SetValueStatementContext) GetParser() antlr.Parser
func (*SetValueStatementContext) GetRuleContext ¶
func (s *SetValueStatementContext) GetRuleContext() antlr.RuleContext
func (*SetValueStatementContext) IDENTIFY ¶
func (s *SetValueStatementContext) IDENTIFY() antlr.TerminalNode
func (*SetValueStatementContext) IsSetValueStatementContext ¶
func (*SetValueStatementContext) IsSetValueStatementContext()
func (*SetValueStatementContext) ToStringTree ¶
func (s *SetValueStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*SetValueStatementContext) ValueType ¶
func (s *SetValueStatementContext) ValueType() IValueTypeContext
type StatementContext ¶
type StatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStatementContext ¶
func NewEmptyStatementContext() *StatementContext
func NewStatementContext ¶
func NewStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StatementContext
func (*StatementContext) BoolStatement ¶
func (s *StatementContext) BoolStatement() IBoolStatementContext
func (*StatementContext) CalculateStatement ¶
func (s *StatementContext) CalculateStatement() ICalculateStatementContext
func (*StatementContext) CompareStatement ¶
func (s *StatementContext) CompareStatement() ICompareStatementContext
func (*StatementContext) EnterRule ¶
func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*StatementContext) ExitRule ¶
func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*StatementContext) FunCall ¶
func (s *StatementContext) FunCall() IFunCallContext
func (*StatementContext) GetParser ¶
func (s *StatementContext) GetParser() antlr.Parser
func (*StatementContext) GetRuleContext ¶
func (s *StatementContext) GetRuleContext() antlr.RuleContext
func (*StatementContext) IfStatement ¶
func (s *StatementContext) IfStatement() IIfStatementContext
func (*StatementContext) IsStatementContext ¶
func (*StatementContext) IsStatementContext()
func (*StatementContext) ReturnStatement ¶
func (s *StatementContext) ReturnStatement() IReturnStatementContext
func (*StatementContext) SetValueStatement ¶
func (s *StatementContext) SetValueStatement() ISetValueStatementContext
func (*StatementContext) ToStringTree ¶
func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StringValueContext ¶
type StringValueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStringValueContext ¶
func NewEmptyStringValueContext() *StringValueContext
func NewStringValueContext ¶
func NewStringValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StringValueContext
func (*StringValueContext) CopyFrom ¶
func (s *StringValueContext) CopyFrom(ctx *StringValueContext)
func (*StringValueContext) GetParser ¶
func (s *StringValueContext) GetParser() antlr.Parser
func (*StringValueContext) GetRuleContext ¶
func (s *StringValueContext) GetRuleContext() antlr.RuleContext
func (*StringValueContext) IsStringValueContext ¶
func (*StringValueContext) IsStringValueContext()
func (*StringValueContext) ToStringTree ¶
func (s *StringValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ValueTypeContext ¶
type ValueTypeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyValueTypeContext ¶
func NewEmptyValueTypeContext() *ValueTypeContext
func NewValueTypeContext ¶
func NewValueTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueTypeContext
func (*ValueTypeContext) Array ¶
func (s *ValueTypeContext) Array() IArrayContext
func (*ValueTypeContext) BoolValue ¶
func (s *ValueTypeContext) BoolValue() IBoolValueContext
func (*ValueTypeContext) CalculateStatement ¶
func (s *ValueTypeContext) CalculateStatement() ICalculateStatementContext
func (*ValueTypeContext) EnterRule ¶
func (s *ValueTypeContext) EnterRule(listener antlr.ParseTreeListener)
func (*ValueTypeContext) ExitRule ¶
func (s *ValueTypeContext) ExitRule(listener antlr.ParseTreeListener)
func (*ValueTypeContext) GetMapOrArrayValue ¶
func (s *ValueTypeContext) GetMapOrArrayValue() IGetMapOrArrayValueContext
func (*ValueTypeContext) GetParser ¶
func (s *ValueTypeContext) GetParser() antlr.Parser
func (*ValueTypeContext) GetRuleContext ¶
func (s *ValueTypeContext) GetRuleContext() antlr.RuleContext
func (*ValueTypeContext) Identify ¶
func (s *ValueTypeContext) Identify() IIdentifyContext
func (*ValueTypeContext) IsValueTypeContext ¶
func (*ValueTypeContext) IsValueTypeContext()
func (*ValueTypeContext) MapValue ¶
func (s *ValueTypeContext) MapValue() IMapValueContext
func (*ValueTypeContext) Num ¶
func (s *ValueTypeContext) Num() INumContext
func (*ValueTypeContext) StringValue ¶
func (s *ValueTypeContext) StringValue() IStringValueContext
func (*ValueTypeContext) ToStringTree ¶
func (s *ValueTypeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string