gen

package
v0.54.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContactQLLexerLPAREN     = 1
	ContactQLLexerRPAREN     = 2
	ContactQLLexerAND        = 3
	ContactQLLexerOR         = 4
	ContactQLLexerCOMPARATOR = 5
	ContactQLLexerTEXT       = 6
	ContactQLLexerSTRING     = 7
	ContactQLLexerWS         = 8
	ContactQLLexerERROR      = 9
)

ContactQLLexer tokens.

View Source
const (
	ContactQLParserEOF        = antlr.TokenEOF
	ContactQLParserLPAREN     = 1
	ContactQLParserRPAREN     = 2
	ContactQLParserAND        = 3
	ContactQLParserOR         = 4
	ContactQLParserCOMPARATOR = 5
	ContactQLParserTEXT       = 6
	ContactQLParserSTRING     = 7
	ContactQLParserWS         = 8
	ContactQLParserERROR      = 9
)

ContactQLParser tokens.

View Source
const (
	ContactQLParserRULE_parse      = 0
	ContactQLParserRULE_expression = 1
	ContactQLParserRULE_literal    = 2
)

ContactQLParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContactQLListener

type BaseContactQLListener struct{}

BaseContactQLListener is a complete listener for a parse tree produced by ContactQLParser.

func (*BaseContactQLListener) EnterCombinationAnd

func (s *BaseContactQLListener) EnterCombinationAnd(ctx *CombinationAndContext)

EnterCombinationAnd is called when production combinationAnd is entered.

func (*BaseContactQLListener) EnterCombinationImpicitAnd

func (s *BaseContactQLListener) EnterCombinationImpicitAnd(ctx *CombinationImpicitAndContext)

EnterCombinationImpicitAnd is called when production combinationImpicitAnd is entered.

func (*BaseContactQLListener) EnterCombinationOr

func (s *BaseContactQLListener) EnterCombinationOr(ctx *CombinationOrContext)

EnterCombinationOr is called when production combinationOr is entered.

func (*BaseContactQLListener) EnterCondition

func (s *BaseContactQLListener) EnterCondition(ctx *ConditionContext)

EnterCondition is called when production condition is entered.

func (*BaseContactQLListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseContactQLListener) EnterExpressionGrouping

func (s *BaseContactQLListener) EnterExpressionGrouping(ctx *ExpressionGroupingContext)

EnterExpressionGrouping is called when production expressionGrouping is entered.

func (*BaseContactQLListener) EnterImplicitCondition

func (s *BaseContactQLListener) EnterImplicitCondition(ctx *ImplicitConditionContext)

EnterImplicitCondition is called when production implicitCondition is entered.

func (*BaseContactQLListener) EnterParse

func (s *BaseContactQLListener) EnterParse(ctx *ParseContext)

EnterParse is called when production parse is entered.

func (*BaseContactQLListener) EnterStringLiteral

func (s *BaseContactQLListener) EnterStringLiteral(ctx *StringLiteralContext)

EnterStringLiteral is called when production stringLiteral is entered.

func (*BaseContactQLListener) EnterTextLiteral

func (s *BaseContactQLListener) EnterTextLiteral(ctx *TextLiteralContext)

EnterTextLiteral is called when production textLiteral is entered.

func (*BaseContactQLListener) ExitCombinationAnd

func (s *BaseContactQLListener) ExitCombinationAnd(ctx *CombinationAndContext)

ExitCombinationAnd is called when production combinationAnd is exited.

func (*BaseContactQLListener) ExitCombinationImpicitAnd

func (s *BaseContactQLListener) ExitCombinationImpicitAnd(ctx *CombinationImpicitAndContext)

ExitCombinationImpicitAnd is called when production combinationImpicitAnd is exited.

func (*BaseContactQLListener) ExitCombinationOr

func (s *BaseContactQLListener) ExitCombinationOr(ctx *CombinationOrContext)

ExitCombinationOr is called when production combinationOr is exited.

func (*BaseContactQLListener) ExitCondition

func (s *BaseContactQLListener) ExitCondition(ctx *ConditionContext)

ExitCondition is called when production condition is exited.

func (*BaseContactQLListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseContactQLListener) ExitExpressionGrouping

func (s *BaseContactQLListener) ExitExpressionGrouping(ctx *ExpressionGroupingContext)

ExitExpressionGrouping is called when production expressionGrouping is exited.

func (*BaseContactQLListener) ExitImplicitCondition

func (s *BaseContactQLListener) ExitImplicitCondition(ctx *ImplicitConditionContext)

ExitImplicitCondition is called when production implicitCondition is exited.

func (*BaseContactQLListener) ExitParse

func (s *BaseContactQLListener) ExitParse(ctx *ParseContext)

ExitParse is called when production parse is exited.

func (*BaseContactQLListener) ExitStringLiteral

func (s *BaseContactQLListener) ExitStringLiteral(ctx *StringLiteralContext)

ExitStringLiteral is called when production stringLiteral is exited.

func (*BaseContactQLListener) ExitTextLiteral

func (s *BaseContactQLListener) ExitTextLiteral(ctx *TextLiteralContext)

ExitTextLiteral is called when production textLiteral is exited.

func (*BaseContactQLListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseContactQLListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type BaseContactQLVisitor

type BaseContactQLVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseContactQLVisitor) VisitCombinationAnd

func (v *BaseContactQLVisitor) VisitCombinationAnd(ctx *CombinationAndContext) interface{}

func (*BaseContactQLVisitor) VisitCombinationImpicitAnd

func (v *BaseContactQLVisitor) VisitCombinationImpicitAnd(ctx *CombinationImpicitAndContext) interface{}

func (*BaseContactQLVisitor) VisitCombinationOr

func (v *BaseContactQLVisitor) VisitCombinationOr(ctx *CombinationOrContext) interface{}

func (*BaseContactQLVisitor) VisitCondition

func (v *BaseContactQLVisitor) VisitCondition(ctx *ConditionContext) interface{}

func (*BaseContactQLVisitor) VisitExpressionGrouping

func (v *BaseContactQLVisitor) VisitExpressionGrouping(ctx *ExpressionGroupingContext) interface{}

func (*BaseContactQLVisitor) VisitImplicitCondition

func (v *BaseContactQLVisitor) VisitImplicitCondition(ctx *ImplicitConditionContext) interface{}

func (*BaseContactQLVisitor) VisitParse

func (v *BaseContactQLVisitor) VisitParse(ctx *ParseContext) interface{}

func (*BaseContactQLVisitor) VisitStringLiteral

func (v *BaseContactQLVisitor) VisitStringLiteral(ctx *StringLiteralContext) interface{}

func (*BaseContactQLVisitor) VisitTextLiteral

func (v *BaseContactQLVisitor) VisitTextLiteral(ctx *TextLiteralContext) interface{}

type CombinationAndContext

type CombinationAndContext struct {
	*ExpressionContext
}

func NewCombinationAndContext

func NewCombinationAndContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CombinationAndContext

func (*CombinationAndContext) AND

func (*CombinationAndContext) Accept

func (s *CombinationAndContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*CombinationAndContext) AllExpression

func (s *CombinationAndContext) AllExpression() []IExpressionContext

func (*CombinationAndContext) EnterRule

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

func (*CombinationAndContext) ExitRule

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

func (*CombinationAndContext) Expression

func (s *CombinationAndContext) Expression(i int) IExpressionContext

func (*CombinationAndContext) GetRuleContext

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

type CombinationImpicitAndContext

type CombinationImpicitAndContext struct {
	*ExpressionContext
}

func NewCombinationImpicitAndContext

func NewCombinationImpicitAndContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CombinationImpicitAndContext

func (*CombinationImpicitAndContext) Accept

func (s *CombinationImpicitAndContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*CombinationImpicitAndContext) AllExpression

func (s *CombinationImpicitAndContext) AllExpression() []IExpressionContext

func (*CombinationImpicitAndContext) EnterRule

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

func (*CombinationImpicitAndContext) ExitRule

func (*CombinationImpicitAndContext) Expression

func (*CombinationImpicitAndContext) GetRuleContext

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

type CombinationOrContext

type CombinationOrContext struct {
	*ExpressionContext
}

func NewCombinationOrContext

func NewCombinationOrContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CombinationOrContext

func (*CombinationOrContext) Accept

func (s *CombinationOrContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*CombinationOrContext) AllExpression

func (s *CombinationOrContext) AllExpression() []IExpressionContext

func (*CombinationOrContext) EnterRule

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

func (*CombinationOrContext) ExitRule

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

func (*CombinationOrContext) Expression

func (s *CombinationOrContext) Expression(i int) IExpressionContext

func (*CombinationOrContext) GetRuleContext

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

func (*CombinationOrContext) OR

type ConditionContext

type ConditionContext struct {
	*ExpressionContext
}

func NewConditionContext

func NewConditionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ConditionContext

func (*ConditionContext) Accept

func (s *ConditionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ConditionContext) COMPARATOR

func (s *ConditionContext) COMPARATOR() antlr.TerminalNode

func (*ConditionContext) EnterRule

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

func (*ConditionContext) ExitRule

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

func (*ConditionContext) GetRuleContext

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

func (*ConditionContext) Literal

func (s *ConditionContext) Literal() ILiteralContext

func (*ConditionContext) TEXT

type ContactQLLexer

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

func NewContactQLLexer

func NewContactQLLexer(input antlr.CharStream) *ContactQLLexer

type ContactQLListener

type ContactQLListener interface {
	antlr.ParseTreeListener

	// EnterParse is called when entering the parse production.
	EnterParse(c *ParseContext)

	// EnterImplicitCondition is called when entering the implicitCondition production.
	EnterImplicitCondition(c *ImplicitConditionContext)

	// EnterCondition is called when entering the condition production.
	EnterCondition(c *ConditionContext)

	// EnterCombinationAnd is called when entering the combinationAnd production.
	EnterCombinationAnd(c *CombinationAndContext)

	// EnterCombinationImpicitAnd is called when entering the combinationImpicitAnd production.
	EnterCombinationImpicitAnd(c *CombinationImpicitAndContext)

	// EnterCombinationOr is called when entering the combinationOr production.
	EnterCombinationOr(c *CombinationOrContext)

	// EnterExpressionGrouping is called when entering the expressionGrouping production.
	EnterExpressionGrouping(c *ExpressionGroupingContext)

	// EnterTextLiteral is called when entering the textLiteral production.
	EnterTextLiteral(c *TextLiteralContext)

	// EnterStringLiteral is called when entering the stringLiteral production.
	EnterStringLiteral(c *StringLiteralContext)

	// ExitParse is called when exiting the parse production.
	ExitParse(c *ParseContext)

	// ExitImplicitCondition is called when exiting the implicitCondition production.
	ExitImplicitCondition(c *ImplicitConditionContext)

	// ExitCondition is called when exiting the condition production.
	ExitCondition(c *ConditionContext)

	// ExitCombinationAnd is called when exiting the combinationAnd production.
	ExitCombinationAnd(c *CombinationAndContext)

	// ExitCombinationImpicitAnd is called when exiting the combinationImpicitAnd production.
	ExitCombinationImpicitAnd(c *CombinationImpicitAndContext)

	// ExitCombinationOr is called when exiting the combinationOr production.
	ExitCombinationOr(c *CombinationOrContext)

	// ExitExpressionGrouping is called when exiting the expressionGrouping production.
	ExitExpressionGrouping(c *ExpressionGroupingContext)

	// ExitTextLiteral is called when exiting the textLiteral production.
	ExitTextLiteral(c *TextLiteralContext)

	// ExitStringLiteral is called when exiting the stringLiteral production.
	ExitStringLiteral(c *StringLiteralContext)
}

ContactQLListener is a complete listener for a parse tree produced by ContactQLParser.

type ContactQLParser

type ContactQLParser struct {
	*antlr.BaseParser
}

func NewContactQLParser

func NewContactQLParser(input antlr.TokenStream) *ContactQLParser

func (*ContactQLParser) Expression

func (p *ContactQLParser) Expression() (localctx IExpressionContext)

func (*ContactQLParser) Expression_Sempred

func (p *ContactQLParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*ContactQLParser) Literal

func (p *ContactQLParser) Literal() (localctx ILiteralContext)

func (*ContactQLParser) Parse

func (p *ContactQLParser) Parse() (localctx IParseContext)

func (*ContactQLParser) Sempred

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

type ContactQLVisitor

type ContactQLVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by ContactQLParser#parse.
	VisitParse(ctx *ParseContext) interface{}

	// Visit a parse tree produced by ContactQLParser#implicitCondition.
	VisitImplicitCondition(ctx *ImplicitConditionContext) interface{}

	// Visit a parse tree produced by ContactQLParser#condition.
	VisitCondition(ctx *ConditionContext) interface{}

	// Visit a parse tree produced by ContactQLParser#combinationAnd.
	VisitCombinationAnd(ctx *CombinationAndContext) interface{}

	// Visit a parse tree produced by ContactQLParser#combinationImpicitAnd.
	VisitCombinationImpicitAnd(ctx *CombinationImpicitAndContext) interface{}

	// Visit a parse tree produced by ContactQLParser#combinationOr.
	VisitCombinationOr(ctx *CombinationOrContext) interface{}

	// Visit a parse tree produced by ContactQLParser#expressionGrouping.
	VisitExpressionGrouping(ctx *ExpressionGroupingContext) interface{}

	// Visit a parse tree produced by ContactQLParser#textLiteral.
	VisitTextLiteral(ctx *TextLiteralContext) interface{}

	// Visit a parse tree produced by ContactQLParser#stringLiteral.
	VisitStringLiteral(ctx *StringLiteralContext) interface{}
}

A complete Visitor for a parse tree produced by ContactQLParser.

type ExpressionContext

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

func NewEmptyExpressionContext

func NewEmptyExpressionContext() *ExpressionContext

func NewExpressionContext

func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext

func (*ExpressionContext) CopyFrom

func (s *ExpressionContext) CopyFrom(ctx *ExpressionContext)

func (*ExpressionContext) GetParser

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

func (*ExpressionContext) GetRuleContext

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

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) ToStringTree

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

type ExpressionGroupingContext

type ExpressionGroupingContext struct {
	*ExpressionContext
}

func NewExpressionGroupingContext

func NewExpressionGroupingContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ExpressionGroupingContext

func (*ExpressionGroupingContext) Accept

func (s *ExpressionGroupingContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ExpressionGroupingContext) EnterRule

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

func (*ExpressionGroupingContext) ExitRule

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

func (*ExpressionGroupingContext) Expression

func (*ExpressionGroupingContext) GetRuleContext

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

func (*ExpressionGroupingContext) LPAREN

func (*ExpressionGroupingContext) RPAREN

type IExpressionContext

type IExpressionContext interface {
	antlr.ParserRuleContext

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

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

IExpressionContext is an interface to support dynamic dispatch.

type ILiteralContext

type ILiteralContext interface {
	antlr.ParserRuleContext

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

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

ILiteralContext is an interface to support dynamic dispatch.

type IParseContext

type IParseContext interface {
	antlr.ParserRuleContext

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

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

IParseContext is an interface to support dynamic dispatch.

type ImplicitConditionContext

type ImplicitConditionContext struct {
	*ExpressionContext
}

func NewImplicitConditionContext

func NewImplicitConditionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ImplicitConditionContext

func (*ImplicitConditionContext) Accept

func (s *ImplicitConditionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ImplicitConditionContext) EnterRule

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

func (*ImplicitConditionContext) ExitRule

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

func (*ImplicitConditionContext) GetRuleContext

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

func (*ImplicitConditionContext) TEXT

type LiteralContext

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

func NewEmptyLiteralContext

func NewEmptyLiteralContext() *LiteralContext

func NewLiteralContext

func NewLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LiteralContext

func (*LiteralContext) CopyFrom

func (s *LiteralContext) CopyFrom(ctx *LiteralContext)

func (*LiteralContext) GetParser

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

func (*LiteralContext) GetRuleContext

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

func (*LiteralContext) IsLiteralContext

func (*LiteralContext) IsLiteralContext()

func (*LiteralContext) ToStringTree

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

type ParseContext

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

func NewEmptyParseContext

func NewEmptyParseContext() *ParseContext

func NewParseContext

func NewParseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParseContext

func (*ParseContext) Accept

func (s *ParseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ParseContext) EOF

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

func (*ParseContext) EnterRule

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

func (*ParseContext) ExitRule

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

func (*ParseContext) Expression

func (s *ParseContext) Expression() IExpressionContext

func (*ParseContext) GetParser

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

func (*ParseContext) GetRuleContext

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

func (*ParseContext) IsParseContext

func (*ParseContext) IsParseContext()

func (*ParseContext) ToStringTree

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

type StringLiteralContext

type StringLiteralContext struct {
	*LiteralContext
}

func NewStringLiteralContext

func NewStringLiteralContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StringLiteralContext

func (*StringLiteralContext) Accept

func (s *StringLiteralContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*StringLiteralContext) EnterRule

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

func (*StringLiteralContext) ExitRule

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

func (*StringLiteralContext) GetRuleContext

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

func (*StringLiteralContext) STRING

type TextLiteralContext

type TextLiteralContext struct {
	*LiteralContext
}

func NewTextLiteralContext

func NewTextLiteralContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TextLiteralContext

func (*TextLiteralContext) Accept

func (s *TextLiteralContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*TextLiteralContext) EnterRule

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

func (*TextLiteralContext) ExitRule

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

func (*TextLiteralContext) GetRuleContext

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

func (*TextLiteralContext) TEXT

Jump to

Keyboard shortcuts

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