parser

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormulaLexerT__0     = 1
	FormulaLexerT__1     = 2
	FormulaLexerT__2     = 3
	FormulaLexerT__3     = 4
	FormulaLexerT__4     = 5
	FormulaLexerT__5     = 6
	FormulaLexerT__6     = 7
	FormulaLexerT__7     = 8
	FormulaLexerT__8     = 9
	FormulaLexerT__9     = 10
	FormulaLexerT__10    = 11
	FormulaLexerT__11    = 12
	FormulaLexerT__12    = 13
	FormulaLexerT__13    = 14
	FormulaLexerT__14    = 15
	FormulaLexerT__15    = 16
	FormulaLexerT__16    = 17
	FormulaLexerT__17    = 18
	FormulaLexerT__18    = 19
	FormulaLexerT__19    = 20
	FormulaLexerT__20    = 21
	FormulaLexerT__21    = 22
	FormulaLexerT__22    = 23
	FormulaLexerT__23    = 24
	FormulaLexerT__24    = 25
	FormulaLexerT__25    = 26
	FormulaLexerT__26    = 27
	FormulaLexerT__27    = 28
	FormulaLexerT__28    = 29
	FormulaLexerT__29    = 30
	FormulaLexerT__30    = 31
	FormulaLexerTRUE     = 32
	FormulaLexerFALSE    = 33
	FormulaLexerNAME     = 34
	FormulaLexerINTEGER  = 35
	FormulaLexerDATETIME = 36
	FormulaLexerVAR      = 37
	FormulaLexerE        = 38
	FormulaLexerFLOAT    = 39
	FormulaLexerSTRING   = 40
	FormulaLexerWS       = 41
)

FormulaLexer tokens.

View Source
const (
	FormulaParserEOF      = antlr.TokenEOF
	FormulaParserT__0     = 1
	FormulaParserT__1     = 2
	FormulaParserT__2     = 3
	FormulaParserT__3     = 4
	FormulaParserT__4     = 5
	FormulaParserT__5     = 6
	FormulaParserT__6     = 7
	FormulaParserT__7     = 8
	FormulaParserT__8     = 9
	FormulaParserT__9     = 10
	FormulaParserT__10    = 11
	FormulaParserT__11    = 12
	FormulaParserT__12    = 13
	FormulaParserT__13    = 14
	FormulaParserT__14    = 15
	FormulaParserT__15    = 16
	FormulaParserT__16    = 17
	FormulaParserT__17    = 18
	FormulaParserT__18    = 19
	FormulaParserT__19    = 20
	FormulaParserT__20    = 21
	FormulaParserT__21    = 22
	FormulaParserT__22    = 23
	FormulaParserT__23    = 24
	FormulaParserT__24    = 25
	FormulaParserT__25    = 26
	FormulaParserT__26    = 27
	FormulaParserT__27    = 28
	FormulaParserT__28    = 29
	FormulaParserT__29    = 30
	FormulaParserT__30    = 31
	FormulaParserTRUE     = 32
	FormulaParserFALSE    = 33
	FormulaParserNAME     = 34
	FormulaParserINTEGER  = 35
	FormulaParserDATETIME = 36
	FormulaParserVAR      = 37
	FormulaParserE        = 38
	FormulaParserFLOAT    = 39
	FormulaParserSTRING   = 40
	FormulaParserWS       = 41
)

FormulaParser tokens.

View Source
const (
	FormulaParserRULE_calc        = 0
	FormulaParserRULE_expr        = 1
	FormulaParserRULE_orExpr      = 2
	FormulaParserRULE_andExpr     = 3
	FormulaParserRULE_bitOrExpr   = 4
	FormulaParserRULE_bitXorExpr  = 5
	FormulaParserRULE_bitAndExpr  = 6
	FormulaParserRULE_eqExpr      = 7
	FormulaParserRULE_relExpr     = 8
	FormulaParserRULE_shiftExpr   = 9
	FormulaParserRULE_addExpr     = 10
	FormulaParserRULE_multExpr    = 11
	FormulaParserRULE_unaryExpr   = 12
	FormulaParserRULE_primaryExpr = 13
	FormulaParserRULE_value       = 14
	FormulaParserRULE_id          = 15
	FormulaParserRULE_π           = 16
)

FormulaParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddExprContext

type AddExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAddExprContext

func NewAddExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AddExprContext

func NewEmptyAddExprContext

func NewEmptyAddExprContext() *AddExprContext

func (*AddExprContext) AddExpr

func (s *AddExprContext) AddExpr() IAddExprContext

func (*AddExprContext) EnterRule

func (s *AddExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*AddExprContext) ExitRule

func (s *AddExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*AddExprContext) GetFirst

func (s *AddExprContext) GetFirst() IAddExprContext

func (*AddExprContext) GetParser

func (s *AddExprContext) GetParser() antlr.Parser

func (*AddExprContext) GetRetValue

func (s *AddExprContext) GetRetValue() *opt.LogicalExpression

func (*AddExprContext) GetRuleContext

func (s *AddExprContext) GetRuleContext() antlr.RuleContext

func (*AddExprContext) Get_multExpr

func (s *AddExprContext) Get_multExpr() IMultExprContext

func (*AddExprContext) IsAddExprContext

func (*AddExprContext) IsAddExprContext()

func (*AddExprContext) MultExpr

func (s *AddExprContext) MultExpr() IMultExprContext

func (*AddExprContext) SetFirst

func (s *AddExprContext) SetFirst(v IAddExprContext)

func (*AddExprContext) SetRetValue

func (s *AddExprContext) SetRetValue(v *opt.LogicalExpression)

func (*AddExprContext) Set_multExpr

func (s *AddExprContext) Set_multExpr(v IMultExprContext)

func (*AddExprContext) ToStringTree

func (s *AddExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type AndExprContext

type AndExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAndExprContext

func NewAndExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AndExprContext

func NewEmptyAndExprContext

func NewEmptyAndExprContext() *AndExprContext

func (*AndExprContext) AndExpr

func (s *AndExprContext) AndExpr() IAndExprContext

func (*AndExprContext) BitOrExpr

func (s *AndExprContext) BitOrExpr() IBitOrExprContext

func (*AndExprContext) EnterRule

func (s *AndExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*AndExprContext) ExitRule

func (s *AndExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*AndExprContext) GetFirst

func (s *AndExprContext) GetFirst() IAndExprContext

func (*AndExprContext) GetParser

func (s *AndExprContext) GetParser() antlr.Parser

func (*AndExprContext) GetRetValue

func (s *AndExprContext) GetRetValue() *opt.LogicalExpression

func (*AndExprContext) GetRuleContext

func (s *AndExprContext) GetRuleContext() antlr.RuleContext

func (*AndExprContext) Get_bitOrExpr

func (s *AndExprContext) Get_bitOrExpr() IBitOrExprContext

func (*AndExprContext) IsAndExprContext

func (*AndExprContext) IsAndExprContext()

func (*AndExprContext) SetFirst

func (s *AndExprContext) SetFirst(v IAndExprContext)

func (*AndExprContext) SetRetValue

func (s *AndExprContext) SetRetValue(v *opt.LogicalExpression)

func (*AndExprContext) Set_bitOrExpr

func (s *AndExprContext) Set_bitOrExpr(v IBitOrExprContext)

func (*AndExprContext) ToStringTree

func (s *AndExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BaseFormulaListener

type BaseFormulaListener struct{}

BaseFormulaListener is a complete listener for a parse tree produced by FormulaParser.

func (*BaseFormulaListener) EnterAddExpr

func (s *BaseFormulaListener) EnterAddExpr(ctx *AddExprContext)

EnterAddExpr is called when production addExpr is entered.

func (*BaseFormulaListener) EnterAndExpr

func (s *BaseFormulaListener) EnterAndExpr(ctx *AndExprContext)

EnterAndExpr is called when production andExpr is entered.

func (*BaseFormulaListener) EnterBitAndExpr

func (s *BaseFormulaListener) EnterBitAndExpr(ctx *BitAndExprContext)

EnterBitAndExpr is called when production bitAndExpr is entered.

func (*BaseFormulaListener) EnterBitOrExpr

func (s *BaseFormulaListener) EnterBitOrExpr(ctx *BitOrExprContext)

EnterBitOrExpr is called when production bitOrExpr is entered.

func (*BaseFormulaListener) EnterBitXorExpr

func (s *BaseFormulaListener) EnterBitXorExpr(ctx *BitXorExprContext)

EnterBitXorExpr is called when production bitXorExpr is entered.

func (*BaseFormulaListener) EnterCalc

func (s *BaseFormulaListener) EnterCalc(ctx *CalcContext)

EnterCalc is called when production calc is entered.

func (*BaseFormulaListener) EnterEqExpr

func (s *BaseFormulaListener) EnterEqExpr(ctx *EqExprContext)

EnterEqExpr is called when production eqExpr is entered.

func (*BaseFormulaListener) EnterEveryRule

func (s *BaseFormulaListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BaseFormulaListener) EnterExpr

func (s *BaseFormulaListener) EnterExpr(ctx *ExprContext)

EnterExpr is called when production expr is entered.

func (*BaseFormulaListener) EnterId

func (s *BaseFormulaListener) EnterId(ctx *IdContext)

EnterId is called when production id is entered.

func (*BaseFormulaListener) EnterMultExpr

func (s *BaseFormulaListener) EnterMultExpr(ctx *MultExprContext)

EnterMultExpr is called when production multExpr is entered.

func (*BaseFormulaListener) EnterOrExpr

func (s *BaseFormulaListener) EnterOrExpr(ctx *OrExprContext)

EnterOrExpr is called when production orExpr is entered.

func (*BaseFormulaListener) EnterPrimaryExpr

func (s *BaseFormulaListener) EnterPrimaryExpr(ctx *PrimaryExprContext)

EnterPrimaryExpr is called when production primaryExpr is entered.

func (*BaseFormulaListener) EnterRelExpr

func (s *BaseFormulaListener) EnterRelExpr(ctx *RelExprContext)

EnterRelExpr is called when production relExpr is entered.

func (*BaseFormulaListener) EnterShiftExpr

func (s *BaseFormulaListener) EnterShiftExpr(ctx *ShiftExprContext)

EnterShiftExpr is called when production shiftExpr is entered.

func (*BaseFormulaListener) EnterUnaryExpr

func (s *BaseFormulaListener) EnterUnaryExpr(ctx *UnaryExprContext)

EnterUnaryExpr is called when production unaryExpr is entered.

func (*BaseFormulaListener) EnterValue

func (s *BaseFormulaListener) EnterValue(ctx *ValueContext)

EnterValue is called when production value is entered.

func (*BaseFormulaListener) EnterΠ

func (s *BaseFormulaListener) EnterΠ(ctx *ΠContext)

EnterΠ is called when production π is entered.

func (*BaseFormulaListener) ExitAddExpr

func (s *BaseFormulaListener) ExitAddExpr(ctx *AddExprContext)

ExitAddExpr is called when production addExpr is exited.

func (*BaseFormulaListener) ExitAndExpr

func (s *BaseFormulaListener) ExitAndExpr(ctx *AndExprContext)

ExitAndExpr is called when production andExpr is exited.

func (*BaseFormulaListener) ExitBitAndExpr

func (s *BaseFormulaListener) ExitBitAndExpr(ctx *BitAndExprContext)

ExitBitAndExpr is called when production bitAndExpr is exited.

func (*BaseFormulaListener) ExitBitOrExpr

func (s *BaseFormulaListener) ExitBitOrExpr(ctx *BitOrExprContext)

ExitBitOrExpr is called when production bitOrExpr is exited.

func (*BaseFormulaListener) ExitBitXorExpr

func (s *BaseFormulaListener) ExitBitXorExpr(ctx *BitXorExprContext)

ExitBitXorExpr is called when production bitXorExpr is exited.

func (*BaseFormulaListener) ExitCalc

func (s *BaseFormulaListener) ExitCalc(ctx *CalcContext)

ExitCalc is called when production calc is exited.

func (*BaseFormulaListener) ExitEqExpr

func (s *BaseFormulaListener) ExitEqExpr(ctx *EqExprContext)

ExitEqExpr is called when production eqExpr is exited.

func (*BaseFormulaListener) ExitEveryRule

func (s *BaseFormulaListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BaseFormulaListener) ExitExpr

func (s *BaseFormulaListener) ExitExpr(ctx *ExprContext)

ExitExpr is called when production expr is exited.

func (*BaseFormulaListener) ExitId

func (s *BaseFormulaListener) ExitId(ctx *IdContext)

ExitId is called when production id is exited.

func (*BaseFormulaListener) ExitMultExpr

func (s *BaseFormulaListener) ExitMultExpr(ctx *MultExprContext)

ExitMultExpr is called when production multExpr is exited.

func (*BaseFormulaListener) ExitOrExpr

func (s *BaseFormulaListener) ExitOrExpr(ctx *OrExprContext)

ExitOrExpr is called when production orExpr is exited.

func (*BaseFormulaListener) ExitPrimaryExpr

func (s *BaseFormulaListener) ExitPrimaryExpr(ctx *PrimaryExprContext)

ExitPrimaryExpr is called when production primaryExpr is exited.

func (*BaseFormulaListener) ExitRelExpr

func (s *BaseFormulaListener) ExitRelExpr(ctx *RelExprContext)

ExitRelExpr is called when production relExpr is exited.

func (*BaseFormulaListener) ExitShiftExpr

func (s *BaseFormulaListener) ExitShiftExpr(ctx *ShiftExprContext)

ExitShiftExpr is called when production shiftExpr is exited.

func (*BaseFormulaListener) ExitUnaryExpr

func (s *BaseFormulaListener) ExitUnaryExpr(ctx *UnaryExprContext)

ExitUnaryExpr is called when production unaryExpr is exited.

func (*BaseFormulaListener) ExitValue

func (s *BaseFormulaListener) ExitValue(ctx *ValueContext)

ExitValue is called when production value is exited.

func (*BaseFormulaListener) ExitΠ

func (s *BaseFormulaListener) ExitΠ(ctx *ΠContext)

ExitΠ is called when production π is exited.

func (*BaseFormulaListener) VisitErrorNode

func (s *BaseFormulaListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BaseFormulaListener) VisitTerminal

func (s *BaseFormulaListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BitAndExprContext

type BitAndExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBitAndExprContext

func NewBitAndExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BitAndExprContext

func NewEmptyBitAndExprContext

func NewEmptyBitAndExprContext() *BitAndExprContext

func (*BitAndExprContext) BitAndExpr

func (s *BitAndExprContext) BitAndExpr() IBitAndExprContext

func (*BitAndExprContext) EnterRule

func (s *BitAndExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*BitAndExprContext) EqExpr

func (s *BitAndExprContext) EqExpr() IEqExprContext

func (*BitAndExprContext) ExitRule

func (s *BitAndExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*BitAndExprContext) GetFirst

func (s *BitAndExprContext) GetFirst() IBitAndExprContext

func (*BitAndExprContext) GetParser

func (s *BitAndExprContext) GetParser() antlr.Parser

func (*BitAndExprContext) GetRetValue

func (s *BitAndExprContext) GetRetValue() *opt.LogicalExpression

func (*BitAndExprContext) GetRuleContext

func (s *BitAndExprContext) GetRuleContext() antlr.RuleContext

func (*BitAndExprContext) Get_eqExpr

func (s *BitAndExprContext) Get_eqExpr() IEqExprContext

func (*BitAndExprContext) IsBitAndExprContext

func (*BitAndExprContext) IsBitAndExprContext()

func (*BitAndExprContext) SetFirst

func (s *BitAndExprContext) SetFirst(v IBitAndExprContext)

func (*BitAndExprContext) SetRetValue

func (s *BitAndExprContext) SetRetValue(v *opt.LogicalExpression)

func (*BitAndExprContext) Set_eqExpr

func (s *BitAndExprContext) Set_eqExpr(v IEqExprContext)

func (*BitAndExprContext) ToStringTree

func (s *BitAndExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BitOrExprContext

type BitOrExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBitOrExprContext

func NewBitOrExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BitOrExprContext

func NewEmptyBitOrExprContext

func NewEmptyBitOrExprContext() *BitOrExprContext

func (*BitOrExprContext) BitOrExpr

func (s *BitOrExprContext) BitOrExpr() IBitOrExprContext

func (*BitOrExprContext) BitXorExpr

func (s *BitOrExprContext) BitXorExpr() IBitXorExprContext

func (*BitOrExprContext) EnterRule

func (s *BitOrExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*BitOrExprContext) ExitRule

func (s *BitOrExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*BitOrExprContext) GetFirst

func (s *BitOrExprContext) GetFirst() IBitOrExprContext

func (*BitOrExprContext) GetParser

func (s *BitOrExprContext) GetParser() antlr.Parser

func (*BitOrExprContext) GetRetValue

func (s *BitOrExprContext) GetRetValue() *opt.LogicalExpression

func (*BitOrExprContext) GetRuleContext

func (s *BitOrExprContext) GetRuleContext() antlr.RuleContext

func (*BitOrExprContext) Get_bitXorExpr

func (s *BitOrExprContext) Get_bitXorExpr() IBitXorExprContext

func (*BitOrExprContext) IsBitOrExprContext

func (*BitOrExprContext) IsBitOrExprContext()

func (*BitOrExprContext) SetFirst

func (s *BitOrExprContext) SetFirst(v IBitOrExprContext)

func (*BitOrExprContext) SetRetValue

func (s *BitOrExprContext) SetRetValue(v *opt.LogicalExpression)

func (*BitOrExprContext) Set_bitXorExpr

func (s *BitOrExprContext) Set_bitXorExpr(v IBitXorExprContext)

func (*BitOrExprContext) ToStringTree

func (s *BitOrExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BitXorExprContext

type BitXorExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBitXorExprContext

func NewBitXorExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BitXorExprContext

func NewEmptyBitXorExprContext

func NewEmptyBitXorExprContext() *BitXorExprContext

func (*BitXorExprContext) BitAndExpr

func (s *BitXorExprContext) BitAndExpr() IBitAndExprContext

func (*BitXorExprContext) BitXorExpr

func (s *BitXorExprContext) BitXorExpr() IBitXorExprContext

func (*BitXorExprContext) EnterRule

func (s *BitXorExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*BitXorExprContext) ExitRule

func (s *BitXorExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*BitXorExprContext) GetFirst

func (s *BitXorExprContext) GetFirst() IBitXorExprContext

func (*BitXorExprContext) GetParser

func (s *BitXorExprContext) GetParser() antlr.Parser

func (*BitXorExprContext) GetRetValue

func (s *BitXorExprContext) GetRetValue() *opt.LogicalExpression

func (*BitXorExprContext) GetRuleContext

func (s *BitXorExprContext) GetRuleContext() antlr.RuleContext

func (*BitXorExprContext) Get_bitAndExpr

func (s *BitXorExprContext) Get_bitAndExpr() IBitAndExprContext

func (*BitXorExprContext) IsBitXorExprContext

func (*BitXorExprContext) IsBitXorExprContext()

func (*BitXorExprContext) SetFirst

func (s *BitXorExprContext) SetFirst(v IBitXorExprContext)

func (*BitXorExprContext) SetRetValue

func (s *BitXorExprContext) SetRetValue(v *opt.LogicalExpression)

func (*BitXorExprContext) Set_bitAndExpr

func (s *BitXorExprContext) Set_bitAndExpr(v IBitAndExprContext)

func (*BitXorExprContext) ToStringTree

func (s *BitXorExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type CalcContext

type CalcContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewCalcContext

func NewCalcContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CalcContext

func NewEmptyCalcContext

func NewEmptyCalcContext() *CalcContext

func (*CalcContext) EOF

func (s *CalcContext) EOF() antlr.TerminalNode

func (*CalcContext) EnterRule

func (s *CalcContext) EnterRule(listener antlr.ParseTreeListener)

func (*CalcContext) ExitRule

func (s *CalcContext) ExitRule(listener antlr.ParseTreeListener)

func (*CalcContext) Expr

func (s *CalcContext) Expr() IExprContext

func (*CalcContext) GetParser

func (s *CalcContext) GetParser() antlr.Parser

func (*CalcContext) GetRetValue

func (s *CalcContext) GetRetValue() *opt.LogicalExpression

func (*CalcContext) GetRuleContext

func (s *CalcContext) GetRuleContext() antlr.RuleContext

func (*CalcContext) Get_expr

func (s *CalcContext) Get_expr() IExprContext

func (*CalcContext) IsCalcContext

func (*CalcContext) IsCalcContext()

func (*CalcContext) SetRetValue

func (s *CalcContext) SetRetValue(v *opt.LogicalExpression)

func (*CalcContext) Set_expr

func (s *CalcContext) Set_expr(v IExprContext)

func (*CalcContext) ToStringTree

func (s *CalcContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type EqExprContext

type EqExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyEqExprContext

func NewEmptyEqExprContext() *EqExprContext

func NewEqExprContext

func NewEqExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EqExprContext

func (*EqExprContext) EnterRule

func (s *EqExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*EqExprContext) EqExpr

func (s *EqExprContext) EqExpr() IEqExprContext

func (*EqExprContext) ExitRule

func (s *EqExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*EqExprContext) GetFirst

func (s *EqExprContext) GetFirst() IEqExprContext

func (*EqExprContext) GetParser

func (s *EqExprContext) GetParser() antlr.Parser

func (*EqExprContext) GetRetValue

func (s *EqExprContext) GetRetValue() *opt.LogicalExpression

func (*EqExprContext) GetRuleContext

func (s *EqExprContext) GetRuleContext() antlr.RuleContext

func (*EqExprContext) Get_relExpr

func (s *EqExprContext) Get_relExpr() IRelExprContext

func (*EqExprContext) IsEqExprContext

func (*EqExprContext) IsEqExprContext()

func (*EqExprContext) RelExpr

func (s *EqExprContext) RelExpr() IRelExprContext

func (*EqExprContext) SetFirst

func (s *EqExprContext) SetFirst(v IEqExprContext)

func (*EqExprContext) SetRetValue

func (s *EqExprContext) SetRetValue(v *opt.LogicalExpression)

func (*EqExprContext) Set_relExpr

func (s *EqExprContext) Set_relExpr(v IRelExprContext)

func (*EqExprContext) ToStringTree

func (s *EqExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ExprContext

type ExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExprContext

func NewEmptyExprContext() *ExprContext

func NewExprContext

func NewExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExprContext

func (*ExprContext) AllExpr

func (s *ExprContext) AllExpr() []IExprContext

func (*ExprContext) EnterRule

func (s *ExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*ExprContext) ExitRule

func (s *ExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*ExprContext) Expr

func (s *ExprContext) Expr(i int) IExprContext

func (*ExprContext) GetFirst

func (s *ExprContext) GetFirst() IOrExprContext

func (*ExprContext) GetMiddle

func (s *ExprContext) GetMiddle() IExprContext

func (*ExprContext) GetParser

func (s *ExprContext) GetParser() antlr.Parser

func (*ExprContext) GetRetValue

func (s *ExprContext) GetRetValue() *opt.LogicalExpression

func (*ExprContext) GetRight

func (s *ExprContext) GetRight() IExprContext

func (*ExprContext) GetRuleContext

func (s *ExprContext) GetRuleContext() antlr.RuleContext

func (*ExprContext) Get_orExpr

func (s *ExprContext) Get_orExpr() IOrExprContext

func (*ExprContext) IsExprContext

func (*ExprContext) IsExprContext()

func (*ExprContext) OrExpr

func (s *ExprContext) OrExpr() IOrExprContext

func (*ExprContext) SetFirst

func (s *ExprContext) SetFirst(v IOrExprContext)

func (*ExprContext) SetMiddle

func (s *ExprContext) SetMiddle(v IExprContext)

func (*ExprContext) SetRetValue

func (s *ExprContext) SetRetValue(v *opt.LogicalExpression)

func (*ExprContext) SetRight

func (s *ExprContext) SetRight(v IExprContext)

func (*ExprContext) Set_orExpr

func (s *ExprContext) Set_orExpr(v IOrExprContext)

func (*ExprContext) ToStringTree

func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FormulaLexer

type FormulaLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewFormulaLexer

func NewFormulaLexer(input antlr.CharStream) *FormulaLexer

type FormulaListener

type FormulaListener interface {
	antlr.ParseTreeListener

	// EnterCalc is called when entering the calc production.
	EnterCalc(c *CalcContext)

	// EnterExpr is called when entering the expr production.
	EnterExpr(c *ExprContext)

	// EnterOrExpr is called when entering the orExpr production.
	EnterOrExpr(c *OrExprContext)

	// EnterAndExpr is called when entering the andExpr production.
	EnterAndExpr(c *AndExprContext)

	// EnterBitOrExpr is called when entering the bitOrExpr production.
	EnterBitOrExpr(c *BitOrExprContext)

	// EnterBitXorExpr is called when entering the bitXorExpr production.
	EnterBitXorExpr(c *BitXorExprContext)

	// EnterBitAndExpr is called when entering the bitAndExpr production.
	EnterBitAndExpr(c *BitAndExprContext)

	// EnterEqExpr is called when entering the eqExpr production.
	EnterEqExpr(c *EqExprContext)

	// EnterRelExpr is called when entering the relExpr production.
	EnterRelExpr(c *RelExprContext)

	// EnterShiftExpr is called when entering the shiftExpr production.
	EnterShiftExpr(c *ShiftExprContext)

	// EnterAddExpr is called when entering the addExpr production.
	EnterAddExpr(c *AddExprContext)

	// EnterMultExpr is called when entering the multExpr production.
	EnterMultExpr(c *MultExprContext)

	// EnterUnaryExpr is called when entering the unaryExpr production.
	EnterUnaryExpr(c *UnaryExprContext)

	// EnterPrimaryExpr is called when entering the primaryExpr production.
	EnterPrimaryExpr(c *PrimaryExprContext)

	// EnterValue is called when entering the value production.
	EnterValue(c *ValueContext)

	// EnterId is called when entering the id production.
	EnterId(c *IdContext)

	// EnterΠ is called when entering the π production.
	EnterΠ(c *ΠContext)

	// ExitCalc is called when exiting the calc production.
	ExitCalc(c *CalcContext)

	// ExitExpr is called when exiting the expr production.
	ExitExpr(c *ExprContext)

	// ExitOrExpr is called when exiting the orExpr production.
	ExitOrExpr(c *OrExprContext)

	// ExitAndExpr is called when exiting the andExpr production.
	ExitAndExpr(c *AndExprContext)

	// ExitBitOrExpr is called when exiting the bitOrExpr production.
	ExitBitOrExpr(c *BitOrExprContext)

	// ExitBitXorExpr is called when exiting the bitXorExpr production.
	ExitBitXorExpr(c *BitXorExprContext)

	// ExitBitAndExpr is called when exiting the bitAndExpr production.
	ExitBitAndExpr(c *BitAndExprContext)

	// ExitEqExpr is called when exiting the eqExpr production.
	ExitEqExpr(c *EqExprContext)

	// ExitRelExpr is called when exiting the relExpr production.
	ExitRelExpr(c *RelExprContext)

	// ExitShiftExpr is called when exiting the shiftExpr production.
	ExitShiftExpr(c *ShiftExprContext)

	// ExitAddExpr is called when exiting the addExpr production.
	ExitAddExpr(c *AddExprContext)

	// ExitMultExpr is called when exiting the multExpr production.
	ExitMultExpr(c *MultExprContext)

	// ExitUnaryExpr is called when exiting the unaryExpr production.
	ExitUnaryExpr(c *UnaryExprContext)

	// ExitPrimaryExpr is called when exiting the primaryExpr production.
	ExitPrimaryExpr(c *PrimaryExprContext)

	// ExitValue is called when exiting the value production.
	ExitValue(c *ValueContext)

	// ExitId is called when exiting the id production.
	ExitId(c *IdContext)

	// ExitΠ is called when exiting the π production.
	ExitΠ(c *ΠContext)
}

FormulaListener is a complete listener for a parse tree produced by FormulaParser.

type FormulaParser

type FormulaParser struct {
	*antlr.BaseParser
}

func NewFormulaParser

func NewFormulaParser(input antlr.TokenStream) *FormulaParser

func (*FormulaParser) AddExpr

func (p *FormulaParser) AddExpr() (localctx IAddExprContext)

func (*FormulaParser) AddExpr_Sempred

func (p *FormulaParser) AddExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) AndExpr

func (p *FormulaParser) AndExpr() (localctx IAndExprContext)

func (*FormulaParser) AndExpr_Sempred

func (p *FormulaParser) AndExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) BitAndExpr

func (p *FormulaParser) BitAndExpr() (localctx IBitAndExprContext)

func (*FormulaParser) BitAndExpr_Sempred

func (p *FormulaParser) BitAndExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) BitOrExpr

func (p *FormulaParser) BitOrExpr() (localctx IBitOrExprContext)

func (*FormulaParser) BitOrExpr_Sempred

func (p *FormulaParser) BitOrExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) BitXorExpr

func (p *FormulaParser) BitXorExpr() (localctx IBitXorExprContext)

func (*FormulaParser) BitXorExpr_Sempred

func (p *FormulaParser) BitXorExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) Calc

func (p *FormulaParser) Calc() (localctx ICalcContext)

func (*FormulaParser) EqExpr

func (p *FormulaParser) EqExpr() (localctx IEqExprContext)

func (*FormulaParser) EqExpr_Sempred

func (p *FormulaParser) EqExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) Expr

func (p *FormulaParser) Expr() (localctx IExprContext)

func (*FormulaParser) Id

func (p *FormulaParser) Id() (localctx IIdContext)

func (*FormulaParser) MultExpr

func (p *FormulaParser) MultExpr() (localctx IMultExprContext)

func (*FormulaParser) MultExpr_Sempred

func (p *FormulaParser) MultExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) OrExpr

func (p *FormulaParser) OrExpr() (localctx IOrExprContext)

func (*FormulaParser) OrExpr_Sempred

func (p *FormulaParser) OrExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) PrimaryExpr

func (p *FormulaParser) PrimaryExpr() (localctx IPrimaryExprContext)

func (*FormulaParser) RelExpr

func (p *FormulaParser) RelExpr() (localctx IRelExprContext)

func (*FormulaParser) RelExpr_Sempred

func (p *FormulaParser) RelExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) Sempred

func (p *FormulaParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool

func (*FormulaParser) ShiftExpr

func (p *FormulaParser) ShiftExpr() (localctx IShiftExprContext)

func (*FormulaParser) ShiftExpr_Sempred

func (p *FormulaParser) ShiftExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*FormulaParser) UnaryExpr

func (p *FormulaParser) UnaryExpr() (localctx IUnaryExprContext)

func (*FormulaParser) Value

func (p *FormulaParser) Value() (localctx IValueContext)

func (*FormulaParser) Π

func (p *FormulaParser) Π() (localctx IΠContext)

type IAddExprContext

type IAddExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IAddExprContext

	// Get_multExpr returns the _multExpr rule contexts.
	Get_multExpr() IMultExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IAddExprContext)

	// Set_multExpr sets the _multExpr rule contexts.
	Set_multExpr(IMultExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsAddExprContext differentiates from other interfaces.
	IsAddExprContext()
}

IAddExprContext is an interface to support dynamic dispatch.

type IAndExprContext

type IAndExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IAndExprContext

	// Get_bitOrExpr returns the _bitOrExpr rule contexts.
	Get_bitOrExpr() IBitOrExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IAndExprContext)

	// Set_bitOrExpr sets the _bitOrExpr rule contexts.
	Set_bitOrExpr(IBitOrExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsAndExprContext differentiates from other interfaces.
	IsAndExprContext()
}

IAndExprContext is an interface to support dynamic dispatch.

type IBitAndExprContext

type IBitAndExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IBitAndExprContext

	// Get_eqExpr returns the _eqExpr rule contexts.
	Get_eqExpr() IEqExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IBitAndExprContext)

	// Set_eqExpr sets the _eqExpr rule contexts.
	Set_eqExpr(IEqExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsBitAndExprContext differentiates from other interfaces.
	IsBitAndExprContext()
}

IBitAndExprContext is an interface to support dynamic dispatch.

type IBitOrExprContext

type IBitOrExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IBitOrExprContext

	// Get_bitXorExpr returns the _bitXorExpr rule contexts.
	Get_bitXorExpr() IBitXorExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IBitOrExprContext)

	// Set_bitXorExpr sets the _bitXorExpr rule contexts.
	Set_bitXorExpr(IBitXorExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsBitOrExprContext differentiates from other interfaces.
	IsBitOrExprContext()
}

IBitOrExprContext is an interface to support dynamic dispatch.

type IBitXorExprContext

type IBitXorExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IBitXorExprContext

	// Get_bitAndExpr returns the _bitAndExpr rule contexts.
	Get_bitAndExpr() IBitAndExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IBitXorExprContext)

	// Set_bitAndExpr sets the _bitAndExpr rule contexts.
	Set_bitAndExpr(IBitAndExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsBitXorExprContext differentiates from other interfaces.
	IsBitXorExprContext()
}

IBitXorExprContext is an interface to support dynamic dispatch.

type ICalcContext

type ICalcContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Get_expr returns the _expr rule contexts.
	Get_expr() IExprContext

	// Set_expr sets the _expr rule contexts.
	Set_expr(IExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsCalcContext differentiates from other interfaces.
	IsCalcContext()
}

ICalcContext is an interface to support dynamic dispatch.

type IEqExprContext

type IEqExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IEqExprContext

	// Get_relExpr returns the _relExpr rule contexts.
	Get_relExpr() IRelExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IEqExprContext)

	// Set_relExpr sets the _relExpr rule contexts.
	Set_relExpr(IRelExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsEqExprContext differentiates from other interfaces.
	IsEqExprContext()
}

IEqExprContext is an interface to support dynamic dispatch.

type IExprContext

type IExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IOrExprContext

	// GetMiddle returns the middle rule contexts.
	GetMiddle() IExprContext

	// GetRight returns the right rule contexts.
	GetRight() IExprContext

	// Get_orExpr returns the _orExpr rule contexts.
	Get_orExpr() IOrExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IOrExprContext)

	// SetMiddle sets the middle rule contexts.
	SetMiddle(IExprContext)

	// SetRight sets the right rule contexts.
	SetRight(IExprContext)

	// Set_orExpr sets the _orExpr rule contexts.
	Set_orExpr(IOrExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsExprContext differentiates from other interfaces.
	IsExprContext()
}

IExprContext is an interface to support dynamic dispatch.

type IIdContext

type IIdContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Get_NAME returns the _NAME token.
	Get_NAME() antlr.Token

	// Get_VAR returns the _VAR token.
	Get_VAR() antlr.Token

	// Set_NAME sets the _NAME token.
	Set_NAME(antlr.Token)

	// Set_VAR sets the _VAR token.
	Set_VAR(antlr.Token)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsIdContext differentiates from other interfaces.
	IsIdContext()
}

IIdContext is an interface to support dynamic dispatch.

type IMultExprContext

type IMultExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IMultExprContext

	// Get_unaryExpr returns the _unaryExpr rule contexts.
	Get_unaryExpr() IUnaryExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IMultExprContext)

	// Set_unaryExpr sets the _unaryExpr rule contexts.
	Set_unaryExpr(IUnaryExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsMultExprContext differentiates from other interfaces.
	IsMultExprContext()
}

IMultExprContext is an interface to support dynamic dispatch.

type IOrExprContext

type IOrExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IOrExprContext

	// Get_andExpr returns the _andExpr rule contexts.
	Get_andExpr() IAndExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IOrExprContext)

	// Set_andExpr sets the _andExpr rule contexts.
	Set_andExpr(IAndExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsOrExprContext differentiates from other interfaces.
	IsOrExprContext()
}

IOrExprContext is an interface to support dynamic dispatch.

type IPrimaryExprContext

type IPrimaryExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Get_expr returns the _expr rule contexts.
	Get_expr() IExprContext

	// Get_value returns the _value rule contexts.
	Get_value() IValueContext

	// Get_id returns the _id rule contexts.
	Get_id() IIdContext

	// Set_expr sets the _expr rule contexts.
	Set_expr(IExprContext)

	// Set_value sets the _value rule contexts.
	Set_value(IValueContext)

	// Set_id sets the _id rule contexts.
	Set_id(IIdContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsPrimaryExprContext differentiates from other interfaces.
	IsPrimaryExprContext()
}

IPrimaryExprContext is an interface to support dynamic dispatch.

type IRelExprContext

type IRelExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IRelExprContext

	// Get_shiftExpr returns the _shiftExpr rule contexts.
	Get_shiftExpr() IShiftExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IRelExprContext)

	// Set_shiftExpr sets the _shiftExpr rule contexts.
	Set_shiftExpr(IShiftExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsRelExprContext differentiates from other interfaces.
	IsRelExprContext()
}

IRelExprContext is an interface to support dynamic dispatch.

type IShiftExprContext

type IShiftExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// GetFirst returns the first rule contexts.
	GetFirst() IShiftExprContext

	// Get_addExpr returns the _addExpr rule contexts.
	Get_addExpr() IAddExprContext

	// SetFirst sets the first rule contexts.
	SetFirst(IShiftExprContext)

	// Set_addExpr sets the _addExpr rule contexts.
	Set_addExpr(IAddExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsShiftExprContext differentiates from other interfaces.
	IsShiftExprContext()
}

IShiftExprContext is an interface to support dynamic dispatch.

type IUnaryExprContext

type IUnaryExprContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Get_primaryExpr returns the _primaryExpr rule contexts.
	Get_primaryExpr() IPrimaryExprContext

	// Set_primaryExpr sets the _primaryExpr rule contexts.
	Set_primaryExpr(IPrimaryExprContext)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsUnaryExprContext differentiates from other interfaces.
	IsUnaryExprContext()
}

IUnaryExprContext is an interface to support dynamic dispatch.

type IValueContext

type IValueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Get_INTEGER returns the _INTEGER token.
	Get_INTEGER() antlr.Token

	// Get_FLOAT returns the _FLOAT token.
	Get_FLOAT() antlr.Token

	// Get_STRING returns the _STRING token.
	Get_STRING() antlr.Token

	// Get_DATETIME returns the _DATETIME token.
	Get_DATETIME() antlr.Token

	// Set_INTEGER sets the _INTEGER token.
	Set_INTEGER(antlr.Token)

	// Set_FLOAT sets the _FLOAT token.
	Set_FLOAT(antlr.Token)

	// Set_STRING sets the _STRING token.
	Set_STRING(antlr.Token)

	// Set_DATETIME sets the _DATETIME token.
	Set_DATETIME(antlr.Token)

	// GetRetValue returns the retValue attribute.
	GetRetValue() *opt.LogicalExpression

	// SetRetValue sets the retValue attribute.
	SetRetValue(*opt.LogicalExpression)

	// IsValueContext differentiates from other interfaces.
	IsValueContext()
}

IValueContext is an interface to support dynamic dispatch.

type IdContext

type IdContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIdContext

func NewEmptyIdContext() *IdContext

func NewIdContext

func NewIdContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdContext

func (*IdContext) EnterRule

func (s *IdContext) EnterRule(listener antlr.ParseTreeListener)

func (*IdContext) ExitRule

func (s *IdContext) ExitRule(listener antlr.ParseTreeListener)

func (*IdContext) GetParser

func (s *IdContext) GetParser() antlr.Parser

func (*IdContext) GetRetValue

func (s *IdContext) GetRetValue() *opt.LogicalExpression

func (*IdContext) GetRuleContext

func (s *IdContext) GetRuleContext() antlr.RuleContext

func (*IdContext) Get_NAME

func (s *IdContext) Get_NAME() antlr.Token

func (*IdContext) Get_VAR

func (s *IdContext) Get_VAR() antlr.Token

func (*IdContext) IsIdContext

func (*IdContext) IsIdContext()

func (*IdContext) NAME

func (s *IdContext) NAME() antlr.TerminalNode

func (*IdContext) SetRetValue

func (s *IdContext) SetRetValue(v *opt.LogicalExpression)

func (*IdContext) Set_NAME

func (s *IdContext) Set_NAME(v antlr.Token)

func (*IdContext) Set_VAR

func (s *IdContext) Set_VAR(v antlr.Token)

func (*IdContext) ToStringTree

func (s *IdContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*IdContext) VAR

func (s *IdContext) VAR() antlr.TerminalNode

type IΠContext

type IΠContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsΠContext differentiates from other interfaces.
	IsΠContext()
}

IΠContext is an interface to support dynamic dispatch.

type MultExprContext

type MultExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyMultExprContext

func NewEmptyMultExprContext() *MultExprContext

func NewMultExprContext

func NewMultExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MultExprContext

func (*MultExprContext) EnterRule

func (s *MultExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*MultExprContext) ExitRule

func (s *MultExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*MultExprContext) GetFirst

func (s *MultExprContext) GetFirst() IMultExprContext

func (*MultExprContext) GetParser

func (s *MultExprContext) GetParser() antlr.Parser

func (*MultExprContext) GetRetValue

func (s *MultExprContext) GetRetValue() *opt.LogicalExpression

func (*MultExprContext) GetRuleContext

func (s *MultExprContext) GetRuleContext() antlr.RuleContext

func (*MultExprContext) Get_unaryExpr

func (s *MultExprContext) Get_unaryExpr() IUnaryExprContext

func (*MultExprContext) IsMultExprContext

func (*MultExprContext) IsMultExprContext()

func (*MultExprContext) MultExpr

func (s *MultExprContext) MultExpr() IMultExprContext

func (*MultExprContext) SetFirst

func (s *MultExprContext) SetFirst(v IMultExprContext)

func (*MultExprContext) SetRetValue

func (s *MultExprContext) SetRetValue(v *opt.LogicalExpression)

func (*MultExprContext) Set_unaryExpr

func (s *MultExprContext) Set_unaryExpr(v IUnaryExprContext)

func (*MultExprContext) ToStringTree

func (s *MultExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*MultExprContext) UnaryExpr

func (s *MultExprContext) UnaryExpr() IUnaryExprContext

type OrExprContext

type OrExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyOrExprContext

func NewEmptyOrExprContext() *OrExprContext

func NewOrExprContext

func NewOrExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OrExprContext

func (*OrExprContext) AndExpr

func (s *OrExprContext) AndExpr() IAndExprContext

func (*OrExprContext) EnterRule

func (s *OrExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*OrExprContext) ExitRule

func (s *OrExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*OrExprContext) GetFirst

func (s *OrExprContext) GetFirst() IOrExprContext

func (*OrExprContext) GetParser

func (s *OrExprContext) GetParser() antlr.Parser

func (*OrExprContext) GetRetValue

func (s *OrExprContext) GetRetValue() *opt.LogicalExpression

func (*OrExprContext) GetRuleContext

func (s *OrExprContext) GetRuleContext() antlr.RuleContext

func (*OrExprContext) Get_andExpr

func (s *OrExprContext) Get_andExpr() IAndExprContext

func (*OrExprContext) IsOrExprContext

func (*OrExprContext) IsOrExprContext()

func (*OrExprContext) OrExpr

func (s *OrExprContext) OrExpr() IOrExprContext

func (*OrExprContext) SetFirst

func (s *OrExprContext) SetFirst(v IOrExprContext)

func (*OrExprContext) SetRetValue

func (s *OrExprContext) SetRetValue(v *opt.LogicalExpression)

func (*OrExprContext) Set_andExpr

func (s *OrExprContext) Set_andExpr(v IAndExprContext)

func (*OrExprContext) ToStringTree

func (s *OrExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type PrimaryExprContext

type PrimaryExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPrimaryExprContext

func NewEmptyPrimaryExprContext() *PrimaryExprContext

func NewPrimaryExprContext

func NewPrimaryExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PrimaryExprContext

func (*PrimaryExprContext) AllExpr

func (s *PrimaryExprContext) AllExpr() []IExprContext

func (*PrimaryExprContext) EnterRule

func (s *PrimaryExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*PrimaryExprContext) ExitRule

func (s *PrimaryExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*PrimaryExprContext) Expr

func (s *PrimaryExprContext) Expr(i int) IExprContext

func (*PrimaryExprContext) GetParser

func (s *PrimaryExprContext) GetParser() antlr.Parser

func (*PrimaryExprContext) GetRetValue

func (s *PrimaryExprContext) GetRetValue() *opt.LogicalExpression

func (*PrimaryExprContext) GetRuleContext

func (s *PrimaryExprContext) GetRuleContext() antlr.RuleContext

func (*PrimaryExprContext) Get_expr

func (s *PrimaryExprContext) Get_expr() IExprContext

func (*PrimaryExprContext) Get_id

func (s *PrimaryExprContext) Get_id() IIdContext

func (*PrimaryExprContext) Get_value

func (s *PrimaryExprContext) Get_value() IValueContext

func (*PrimaryExprContext) Id

func (*PrimaryExprContext) IsPrimaryExprContext

func (*PrimaryExprContext) IsPrimaryExprContext()

func (*PrimaryExprContext) SetRetValue

func (s *PrimaryExprContext) SetRetValue(v *opt.LogicalExpression)

func (*PrimaryExprContext) Set_expr

func (s *PrimaryExprContext) Set_expr(v IExprContext)

func (*PrimaryExprContext) Set_id

func (s *PrimaryExprContext) Set_id(v IIdContext)

func (*PrimaryExprContext) Set_value

func (s *PrimaryExprContext) Set_value(v IValueContext)

func (*PrimaryExprContext) ToStringTree

func (s *PrimaryExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*PrimaryExprContext) Value

func (s *PrimaryExprContext) Value() IValueContext

type RelExprContext

type RelExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyRelExprContext

func NewEmptyRelExprContext() *RelExprContext

func NewRelExprContext

func NewRelExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RelExprContext

func (*RelExprContext) EnterRule

func (s *RelExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*RelExprContext) ExitRule

func (s *RelExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*RelExprContext) GetFirst

func (s *RelExprContext) GetFirst() IRelExprContext

func (*RelExprContext) GetParser

func (s *RelExprContext) GetParser() antlr.Parser

func (*RelExprContext) GetRetValue

func (s *RelExprContext) GetRetValue() *opt.LogicalExpression

func (*RelExprContext) GetRuleContext

func (s *RelExprContext) GetRuleContext() antlr.RuleContext

func (*RelExprContext) Get_shiftExpr

func (s *RelExprContext) Get_shiftExpr() IShiftExprContext

func (*RelExprContext) IsRelExprContext

func (*RelExprContext) IsRelExprContext()

func (*RelExprContext) RelExpr

func (s *RelExprContext) RelExpr() IRelExprContext

func (*RelExprContext) SetFirst

func (s *RelExprContext) SetFirst(v IRelExprContext)

func (*RelExprContext) SetRetValue

func (s *RelExprContext) SetRetValue(v *opt.LogicalExpression)

func (*RelExprContext) Set_shiftExpr

func (s *RelExprContext) Set_shiftExpr(v IShiftExprContext)

func (*RelExprContext) ShiftExpr

func (s *RelExprContext) ShiftExpr() IShiftExprContext

func (*RelExprContext) ToStringTree

func (s *RelExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ShiftExprContext

type ShiftExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyShiftExprContext

func NewEmptyShiftExprContext() *ShiftExprContext

func NewShiftExprContext

func NewShiftExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ShiftExprContext

func (*ShiftExprContext) AddExpr

func (s *ShiftExprContext) AddExpr() IAddExprContext

func (*ShiftExprContext) EnterRule

func (s *ShiftExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*ShiftExprContext) ExitRule

func (s *ShiftExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*ShiftExprContext) GetFirst

func (s *ShiftExprContext) GetFirst() IShiftExprContext

func (*ShiftExprContext) GetParser

func (s *ShiftExprContext) GetParser() antlr.Parser

func (*ShiftExprContext) GetRetValue

func (s *ShiftExprContext) GetRetValue() *opt.LogicalExpression

func (*ShiftExprContext) GetRuleContext

func (s *ShiftExprContext) GetRuleContext() antlr.RuleContext

func (*ShiftExprContext) Get_addExpr

func (s *ShiftExprContext) Get_addExpr() IAddExprContext

func (*ShiftExprContext) IsShiftExprContext

func (*ShiftExprContext) IsShiftExprContext()

func (*ShiftExprContext) SetFirst

func (s *ShiftExprContext) SetFirst(v IShiftExprContext)

func (*ShiftExprContext) SetRetValue

func (s *ShiftExprContext) SetRetValue(v *opt.LogicalExpression)

func (*ShiftExprContext) Set_addExpr

func (s *ShiftExprContext) Set_addExpr(v IAddExprContext)

func (*ShiftExprContext) ShiftExpr

func (s *ShiftExprContext) ShiftExpr() IShiftExprContext

func (*ShiftExprContext) ToStringTree

func (s *ShiftExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type UnaryExprContext

type UnaryExprContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyUnaryExprContext

func NewEmptyUnaryExprContext() *UnaryExprContext

func NewUnaryExprContext

func NewUnaryExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnaryExprContext

func (*UnaryExprContext) EnterRule

func (s *UnaryExprContext) EnterRule(listener antlr.ParseTreeListener)

func (*UnaryExprContext) ExitRule

func (s *UnaryExprContext) ExitRule(listener antlr.ParseTreeListener)

func (*UnaryExprContext) GetParser

func (s *UnaryExprContext) GetParser() antlr.Parser

func (*UnaryExprContext) GetRetValue

func (s *UnaryExprContext) GetRetValue() *opt.LogicalExpression

func (*UnaryExprContext) GetRuleContext

func (s *UnaryExprContext) GetRuleContext() antlr.RuleContext

func (*UnaryExprContext) Get_primaryExpr

func (s *UnaryExprContext) Get_primaryExpr() IPrimaryExprContext

func (*UnaryExprContext) IsUnaryExprContext

func (*UnaryExprContext) IsUnaryExprContext()

func (*UnaryExprContext) PrimaryExpr

func (s *UnaryExprContext) PrimaryExpr() IPrimaryExprContext

func (*UnaryExprContext) SetRetValue

func (s *UnaryExprContext) SetRetValue(v *opt.LogicalExpression)

func (*UnaryExprContext) Set_primaryExpr

func (s *UnaryExprContext) Set_primaryExpr(v IPrimaryExprContext)

func (*UnaryExprContext) ToStringTree

func (s *UnaryExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ValueContext

type ValueContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyValueContext

func NewEmptyValueContext() *ValueContext

func NewValueContext

func NewValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueContext

func (*ValueContext) DATETIME

func (s *ValueContext) DATETIME() antlr.TerminalNode

func (*ValueContext) EnterRule

func (s *ValueContext) EnterRule(listener antlr.ParseTreeListener)

func (*ValueContext) ExitRule

func (s *ValueContext) ExitRule(listener antlr.ParseTreeListener)

func (*ValueContext) FALSE

func (s *ValueContext) FALSE() antlr.TerminalNode

func (*ValueContext) FLOAT

func (s *ValueContext) FLOAT() antlr.TerminalNode

func (*ValueContext) GetParser

func (s *ValueContext) GetParser() antlr.Parser

func (*ValueContext) GetRetValue

func (s *ValueContext) GetRetValue() *opt.LogicalExpression

func (*ValueContext) GetRuleContext

func (s *ValueContext) GetRuleContext() antlr.RuleContext

func (*ValueContext) Get_DATETIME

func (s *ValueContext) Get_DATETIME() antlr.Token

func (*ValueContext) Get_FLOAT

func (s *ValueContext) Get_FLOAT() antlr.Token

func (*ValueContext) Get_INTEGER

func (s *ValueContext) Get_INTEGER() antlr.Token

func (*ValueContext) Get_STRING

func (s *ValueContext) Get_STRING() antlr.Token

func (*ValueContext) INTEGER

func (s *ValueContext) INTEGER() antlr.TerminalNode

func (*ValueContext) IsValueContext

func (*ValueContext) IsValueContext()

func (*ValueContext) STRING

func (s *ValueContext) STRING() antlr.TerminalNode

func (*ValueContext) SetRetValue

func (s *ValueContext) SetRetValue(v *opt.LogicalExpression)

func (*ValueContext) Set_DATETIME

func (s *ValueContext) Set_DATETIME(v antlr.Token)

func (*ValueContext) Set_FLOAT

func (s *ValueContext) Set_FLOAT(v antlr.Token)

func (*ValueContext) Set_INTEGER

func (s *ValueContext) Set_INTEGER(v antlr.Token)

func (*ValueContext) Set_STRING

func (s *ValueContext) Set_STRING(v antlr.Token)

func (*ValueContext) TRUE

func (s *ValueContext) TRUE() antlr.TerminalNode

func (*ValueContext) ToStringTree

func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*ValueContext) Π

func (s *ValueContext) Π() IΠContext

type ΠContext

type ΠContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyΠContext

func NewEmptyΠContext() *ΠContext

func NewΠContext

func NewΠContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ΠContext

func (*ΠContext) EnterRule

func (s *ΠContext) EnterRule(listener antlr.ParseTreeListener)

func (*ΠContext) ExitRule

func (s *ΠContext) ExitRule(listener antlr.ParseTreeListener)

func (*ΠContext) GetParser

func (s *ΠContext) GetParser() antlr.Parser

func (*ΠContext) GetRuleContext

func (s *ΠContext) GetRuleContext() antlr.RuleContext

func (*ΠContext) IsΠContext

func (*ΠContext) IsΠContext()

func (*ΠContext) ToStringTree

func (s *ΠContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL