parser

package
v0.0.0-...-ccaeed6 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewtlLexer

func NewtlLexer(input antlr.CharStream) *tlLexer

func NewtlParser

func NewtlParser(input antlr.TokenStream) *tlParser

Types

type ActiveElementContext

type ActiveElementContext struct {
	*GexpressionContext
}

func NewActiveElementContext

func NewActiveElementContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ActiveElementContext

func (*ActiveElementContext) ACTIVEELEMENT

func (s *ActiveElementContext) ACTIVEELEMENT() antlr.TerminalNode

func (*ActiveElementContext) EnterRule

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

func (*ActiveElementContext) ExitRule

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

func (*ActiveElementContext) GetRuleContext

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

type BasetlListener

type BasetlListener struct{}

BasetlListener is a complete listener for a parse tree produced by tlParser.

func (*BasetlListener) EnterActiveElement

func (s *BasetlListener) EnterActiveElement(ctx *ActiveElementContext)

EnterActiveElement is called when production ActiveElement is entered.

func (*BasetlListener) EnterClick

func (s *BasetlListener) EnterClick(ctx *ClickContext)

EnterClick is called when production Click is entered.

func (*BasetlListener) EnterDS1

func (s *BasetlListener) EnterDS1(ctx *DS1Context)

EnterDS1 is called when production DS1 is entered.

func (*BasetlListener) EnterDS3

func (s *BasetlListener) EnterDS3(ctx *DS3Context)

EnterDS3 is called when production DS3 is entered.

func (*BasetlListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BasetlListener) EnterExpressions

func (s *BasetlListener) EnterExpressions(ctx *ExpressionsContext)

EnterExpressions is called when production expressions is entered.

func (*BasetlListener) EnterFind

func (s *BasetlListener) EnterFind(ctx *FindContext)

EnterFind is called when production Find is entered.

func (*BasetlListener) EnterFindAll

func (s *BasetlListener) EnterFindAll(ctx *FindAllContext)

EnterFindAll is called when production FindAll is entered.

func (*BasetlListener) EnterIframe

func (s *BasetlListener) EnterIframe(ctx *IframeContext)

EnterIframe is called when production Iframe is entered.

func (*BasetlListener) EnterOpen

func (s *BasetlListener) EnterOpen(ctx *OpenContext)

EnterOpen is called when production Open is entered.

func (*BasetlListener) EnterRandom

func (s *BasetlListener) EnterRandom(ctx *RandomContext)

EnterRandom is called when production Random is entered.

func (*BasetlListener) EnterRunStages

func (s *BasetlListener) EnterRunStages(ctx *RunStagesContext)

EnterRunStages is called when production RunStages is entered.

func (*BasetlListener) EnterSendKey

func (s *BasetlListener) EnterSendKey(ctx *SendKeyContext)

EnterSendKey is called when production SendKey is entered.

func (*BasetlListener) EnterTarget

func (s *BasetlListener) EnterTarget(ctx *TargetContext)

EnterTarget is called when production target is entered.

func (*BasetlListener) EnterText

func (s *BasetlListener) EnterText(ctx *TextContext)

EnterText is called when production Text is entered.

func (*BasetlListener) EnterType

func (s *BasetlListener) EnterType(ctx *TypeContext)

EnterType is called when production Type is entered.

func (*BasetlListener) EnterWait

func (s *BasetlListener) EnterWait(ctx *WaitContext)

EnterWait is called when production Wait is entered.

func (*BasetlListener) ExitActiveElement

func (s *BasetlListener) ExitActiveElement(ctx *ActiveElementContext)

ExitActiveElement is called when production ActiveElement is exited.

func (*BasetlListener) ExitClick

func (s *BasetlListener) ExitClick(ctx *ClickContext)

ExitClick is called when production Click is exited.

func (*BasetlListener) ExitDS1

func (s *BasetlListener) ExitDS1(ctx *DS1Context)

ExitDS1 is called when production DS1 is exited.

func (*BasetlListener) ExitDS3

func (s *BasetlListener) ExitDS3(ctx *DS3Context)

ExitDS3 is called when production DS3 is exited.

func (*BasetlListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BasetlListener) ExitExpressions

func (s *BasetlListener) ExitExpressions(ctx *ExpressionsContext)

ExitExpressions is called when production expressions is exited.

func (*BasetlListener) ExitFind

func (s *BasetlListener) ExitFind(ctx *FindContext)

ExitFind is called when production Find is exited.

func (*BasetlListener) ExitFindAll

func (s *BasetlListener) ExitFindAll(ctx *FindAllContext)

ExitFindAll is called when production FindAll is exited.

func (*BasetlListener) ExitIframe

func (s *BasetlListener) ExitIframe(ctx *IframeContext)

ExitIframe is called when production Iframe is exited.

func (*BasetlListener) ExitOpen

func (s *BasetlListener) ExitOpen(ctx *OpenContext)

ExitOpen is called when production Open is exited.

func (*BasetlListener) ExitRandom

func (s *BasetlListener) ExitRandom(ctx *RandomContext)

ExitRandom is called when production Random is exited.

func (*BasetlListener) ExitRunStages

func (s *BasetlListener) ExitRunStages(ctx *RunStagesContext)

ExitRunStages is called when production RunStages is exited.

func (*BasetlListener) ExitSendKey

func (s *BasetlListener) ExitSendKey(ctx *SendKeyContext)

ExitSendKey is called when production SendKey is exited.

func (*BasetlListener) ExitTarget

func (s *BasetlListener) ExitTarget(ctx *TargetContext)

ExitTarget is called when production target is exited.

func (*BasetlListener) ExitText

func (s *BasetlListener) ExitText(ctx *TextContext)

ExitText is called when production Text is exited.

func (*BasetlListener) ExitType

func (s *BasetlListener) ExitType(ctx *TypeContext)

ExitType is called when production Type is exited.

func (*BasetlListener) ExitWait

func (s *BasetlListener) ExitWait(ctx *WaitContext)

ExitWait is called when production Wait is exited.

func (*BasetlListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BasetlListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type ClickContext

type ClickContext struct {
	*GexpressionContext
}

func NewClickContext

func NewClickContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ClickContext

func (*ClickContext) CLICK

func (s *ClickContext) CLICK() antlr.TerminalNode

func (*ClickContext) EnterRule

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

func (*ClickContext) ExitRule

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

func (*ClickContext) GetRuleContext

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

func (*ClickContext) NUMBER

func (s *ClickContext) NUMBER() antlr.TerminalNode

func (*ClickContext) QUOTED_STRING

func (s *ClickContext) QUOTED_STRING() antlr.TerminalNode

func (*ClickContext) RANDOM

func (s *ClickContext) RANDOM() antlr.TerminalNode

type DS1Context

type DS1Context struct {
	*StartContext
}

func NewDS1Context

func NewDS1Context(parser antlr.Parser, ctx antlr.ParserRuleContext) *DS1Context

func (*DS1Context) AllStages

func (s *DS1Context) AllStages() []IStagesContext

func (*DS1Context) EnterRule

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

func (*DS1Context) ExitRule

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

func (*DS1Context) GetRuleContext

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

func (*DS1Context) Stages

func (s *DS1Context) Stages(i int) IStagesContext

type DS3Context

type DS3Context struct {
	*StageContext
}

func NewDS3Context

func NewDS3Context(parser antlr.Parser, ctx antlr.ParserRuleContext) *DS3Context

func (*DS3Context) EnterRule

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

func (*DS3Context) ExitRule

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

func (*DS3Context) GetRuleContext

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

func (*DS3Context) ID

func (s *DS3Context) ID() antlr.TerminalNode

func (*DS3Context) STAGE

func (s *DS3Context) STAGE() antlr.TerminalNode

type ExpressionsContext

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

func NewEmptyExpressionsContext

func NewEmptyExpressionsContext() *ExpressionsContext

func NewExpressionsContext

func NewExpressionsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionsContext

func (*ExpressionsContext) EnterRule

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

func (*ExpressionsContext) ExitRule

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

func (*ExpressionsContext) GetParser

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

func (*ExpressionsContext) GetRuleContext

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

func (*ExpressionsContext) Gexpression

func (s *ExpressionsContext) Gexpression() IGexpressionContext

func (*ExpressionsContext) IsExpressionsContext

func (*ExpressionsContext) IsExpressionsContext()

func (*ExpressionsContext) ToStringTree

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

type FindAllContext

type FindAllContext struct {
	*GexpressionContext
}

func NewFindAllContext

func NewFindAllContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FindAllContext

func (*FindAllContext) EnterRule

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

func (*FindAllContext) ExitRule

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

func (*FindAllContext) FINDALL

func (s *FindAllContext) FINDALL() antlr.TerminalNode

func (*FindAllContext) GetRuleContext

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

func (*FindAllContext) QUOTED_STRING

func (s *FindAllContext) QUOTED_STRING() antlr.TerminalNode

type FindContext

type FindContext struct {
	*GexpressionContext
}

func NewFindContext

func NewFindContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FindContext

func (*FindContext) EnterRule

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

func (*FindContext) ExitRule

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

func (*FindContext) FIND

func (s *FindContext) FIND() antlr.TerminalNode

func (*FindContext) GetRuleContext

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

func (*FindContext) QUOTED_STRING

func (s *FindContext) QUOTED_STRING() antlr.TerminalNode

type GexpressionContext

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

func NewEmptyGexpressionContext

func NewEmptyGexpressionContext() *GexpressionContext

func NewGexpressionContext

func NewGexpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GexpressionContext

func (*GexpressionContext) CopyFrom

func (s *GexpressionContext) CopyFrom(ctx *GexpressionContext)

func (*GexpressionContext) GetParser

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

func (*GexpressionContext) GetRuleContext

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

func (*GexpressionContext) IsGexpressionContext

func (*GexpressionContext) IsGexpressionContext()

func (*GexpressionContext) ToStringTree

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

type IExpressionsContext

type IExpressionsContext interface {
	antlr.ParserRuleContext

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

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

IExpressionsContext is an interface to support dynamic dispatch.

type IGexpressionContext

type IGexpressionContext interface {
	antlr.ParserRuleContext

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

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

IGexpressionContext is an interface to support dynamic dispatch.

type IStageContext

type IStageContext interface {
	antlr.ParserRuleContext

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

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

IStageContext is an interface to support dynamic dispatch.

type IStagesContext

type IStagesContext interface {
	antlr.ParserRuleContext

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

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

IStagesContext is an interface to support dynamic dispatch.

type IStartContext

type IStartContext interface {
	antlr.ParserRuleContext

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

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

IStartContext is an interface to support dynamic dispatch.

type ITargetContext

type ITargetContext interface {
	antlr.ParserRuleContext

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

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

ITargetContext is an interface to support dynamic dispatch.

type IframeContext

type IframeContext struct {
	*GexpressionContext
}

func NewIframeContext

func NewIframeContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IframeContext

func (*IframeContext) EnterRule

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

func (*IframeContext) ExitRule

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

func (*IframeContext) GetRuleContext

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

func (*IframeContext) ID

func (*IframeContext) IFRAME

func (s *IframeContext) IFRAME() antlr.TerminalNode

func (*IframeContext) QUOTED_STRING

func (s *IframeContext) QUOTED_STRING() antlr.TerminalNode

type OpenContext

type OpenContext struct {
	*GexpressionContext
}

func NewOpenContext

func NewOpenContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *OpenContext

func (*OpenContext) EnterRule

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

func (*OpenContext) ExitRule

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

func (*OpenContext) GetRuleContext

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

func (*OpenContext) OPEN

func (s *OpenContext) OPEN() antlr.TerminalNode

func (*OpenContext) QUOTED_STRING

func (s *OpenContext) QUOTED_STRING() antlr.TerminalNode

type RandomContext

type RandomContext struct {
	*GexpressionContext
}

func NewRandomContext

func NewRandomContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *RandomContext

func (*RandomContext) EnterRule

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

func (*RandomContext) ExitRule

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

func (*RandomContext) GetRuleContext

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

func (*RandomContext) RANDOM

func (s *RandomContext) RANDOM() antlr.TerminalNode

type RunStagesContext

type RunStagesContext struct {
	*StagesContext
}

func NewRunStagesContext

func NewRunStagesContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *RunStagesContext

func (*RunStagesContext) AllGexpression

func (s *RunStagesContext) AllGexpression() []IGexpressionContext

func (*RunStagesContext) EnterRule

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

func (*RunStagesContext) ExitRule

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

func (*RunStagesContext) GetRuleContext

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

func (*RunStagesContext) Gexpression

func (s *RunStagesContext) Gexpression(i int) IGexpressionContext

func (*RunStagesContext) ID

func (*RunStagesContext) STAGE

func (s *RunStagesContext) STAGE() antlr.TerminalNode

type SendKeyContext

type SendKeyContext struct {
	*GexpressionContext
}

func NewSendKeyContext

func NewSendKeyContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *SendKeyContext

func (*SendKeyContext) EnterRule

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

func (*SendKeyContext) ExitRule

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

func (*SendKeyContext) GetRuleContext

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

func (*SendKeyContext) ID

func (*SendKeyContext) SENDKEY

func (s *SendKeyContext) SENDKEY() antlr.TerminalNode

type StageContext

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

func NewEmptyStageContext

func NewEmptyStageContext() *StageContext

func NewStageContext

func NewStageContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StageContext

func (*StageContext) CopyFrom

func (s *StageContext) CopyFrom(ctx *StageContext)

func (*StageContext) GetParser

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

func (*StageContext) GetRuleContext

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

func (*StageContext) IsStageContext

func (*StageContext) IsStageContext()

func (*StageContext) ToStringTree

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

type StagesContext

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

func NewEmptyStagesContext

func NewEmptyStagesContext() *StagesContext

func NewStagesContext

func NewStagesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StagesContext

func (*StagesContext) CopyFrom

func (s *StagesContext) CopyFrom(ctx *StagesContext)

func (*StagesContext) GetParser

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

func (*StagesContext) GetRuleContext

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

func (*StagesContext) IsStagesContext

func (*StagesContext) IsStagesContext()

func (*StagesContext) ToStringTree

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

type StartContext

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

func NewEmptyStartContext

func NewEmptyStartContext() *StartContext

func NewStartContext

func NewStartContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StartContext

func (*StartContext) CopyFrom

func (s *StartContext) CopyFrom(ctx *StartContext)

func (*StartContext) GetParser

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

func (*StartContext) GetRuleContext

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

func (*StartContext) IsStartContext

func (*StartContext) IsStartContext()

func (*StartContext) ToStringTree

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

type TargetContext

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

func NewEmptyTargetContext

func NewEmptyTargetContext() *TargetContext

func NewTargetContext

func NewTargetContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TargetContext

func (*TargetContext) EnterRule

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

func (*TargetContext) ExitRule

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

func (*TargetContext) GetParser

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

func (*TargetContext) GetRuleContext

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

func (*TargetContext) IsTargetContext

func (*TargetContext) IsTargetContext()

func (*TargetContext) QUOTED_STRING

func (s *TargetContext) QUOTED_STRING() antlr.TerminalNode

func (*TargetContext) ToStringTree

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

type TextContext

type TextContext struct {
	*GexpressionContext
}

func NewTextContext

func NewTextContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TextContext

func (*TextContext) EnterRule

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

func (*TextContext) ExitRule

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

func (*TextContext) GetRuleContext

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

func (*TextContext) ID

func (s *TextContext) ID() antlr.TerminalNode

func (*TextContext) TEXT

func (s *TextContext) TEXT() antlr.TerminalNode

type TypeContext

type TypeContext struct {
	*GexpressionContext
}

func NewTypeContext

func NewTypeContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TypeContext

func (*TypeContext) EnterRule

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

func (*TypeContext) ExitRule

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

func (*TypeContext) GetRuleContext

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

func (*TypeContext) QUOTED_STRING

func (s *TypeContext) QUOTED_STRING() antlr.TerminalNode

func (*TypeContext) TYPE

func (s *TypeContext) TYPE() antlr.TerminalNode

func (*TypeContext) Target

func (s *TypeContext) Target() ITargetContext

type WaitContext

type WaitContext struct {
	*GexpressionContext
}

func NewWaitContext

func NewWaitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *WaitContext

func (*WaitContext) EnterRule

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

func (*WaitContext) ExitRule

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

func (*WaitContext) GetRuleContext

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

func (*WaitContext) NUMBER

func (s *WaitContext) NUMBER() antlr.TerminalNode

func (*WaitContext) WAIT

func (s *WaitContext) WAIT() antlr.TerminalNode

Jump to

Keyboard shortcuts

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