sequence

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SequenceLexerWHITESPACE   = 1
	SequenceLexerZERO         = 2
	SequenceLexerNUM          = 3
	SequenceLexerWILDCARDAS   = 4
	SequenceLexerLEGACYAS     = 5
	SequenceLexerAS           = 6
	SequenceLexerHASH         = 7
	SequenceLexerCOMMA        = 8
	SequenceLexerQUESTIONMARK = 9
	SequenceLexerPLUS         = 10
	SequenceLexerASTERISK     = 11
	SequenceLexerOR           = 12
	SequenceLexerLPAR         = 13
	SequenceLexerRPAR         = 14
)

SequenceLexer tokens.

View Source
const (
	SequenceParserEOF          = antlr.TokenEOF
	SequenceParserWHITESPACE   = 1
	SequenceParserZERO         = 2
	SequenceParserNUM          = 3
	SequenceParserWILDCARDAS   = 4
	SequenceParserLEGACYAS     = 5
	SequenceParserAS           = 6
	SequenceParserHASH         = 7
	SequenceParserCOMMA        = 8
	SequenceParserQUESTIONMARK = 9
	SequenceParserPLUS         = 10
	SequenceParserASTERISK     = 11
	SequenceParserOR           = 12
	SequenceParserLPAR         = 13
	SequenceParserRPAR         = 14
)

SequenceParser tokens.

View Source
const (
	SequenceParserRULE_start    = 0
	SequenceParserRULE_sequence = 1
	SequenceParserRULE_onehop   = 2
	SequenceParserRULE_isd      = 3
	SequenceParserRULE_as       = 4
	SequenceParserRULE_iface    = 5
)

SequenceParser rules.

Variables

View Source
var SequenceLexerLexerStaticData struct {
	ChannelNames           []string
	ModeNames              []string
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}
View Source
var SequenceParserStaticData struct {
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}

Functions

func InitEmptyAsContext added in v0.12.0

func InitEmptyAsContext(p *AsContext)

func InitEmptyIfaceContext added in v0.12.0

func InitEmptyIfaceContext(p *IfaceContext)

func InitEmptyIsdContext added in v0.12.0

func InitEmptyIsdContext(p *IsdContext)

func InitEmptyOnehopContext added in v0.12.0

func InitEmptyOnehopContext(p *OnehopContext)

func InitEmptySequenceContext added in v0.12.0

func InitEmptySequenceContext(p *SequenceContext)

func InitEmptyStartContext added in v0.12.0

func InitEmptyStartContext(p *StartContext)

func SequenceLexerInit added in v0.12.0

func SequenceLexerInit()

SequenceLexerInit initializes any static state used to implement SequenceLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewSequenceLexer(). You can call this function if you wish to initialize the static state ahead of time.

func SequenceParserInit added in v0.12.0

func SequenceParserInit()

SequenceParserInit initializes any static state used to implement SequenceParser. By default the static state used to implement the parser is lazily initialized during the first call to NewSequenceParser(). You can call this function if you wish to initialize the static state ahead of time.

Types

type ASContext

type ASContext struct {
	AsContext
}

func NewASContext

func NewASContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ASContext

func (*ASContext) AS

func (s *ASContext) AS() antlr.TerminalNode

func (*ASContext) EnterRule

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

func (*ASContext) ExitRule

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

func (*ASContext) GetRuleContext

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

type AsContext

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

func NewAsContext

func NewAsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AsContext

func NewEmptyAsContext

func NewEmptyAsContext() *AsContext

func (*AsContext) CopyAll added in v0.12.0

func (s *AsContext) CopyAll(ctx *AsContext)

func (*AsContext) GetParser

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

func (*AsContext) GetRuleContext

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

func (*AsContext) IsAsContext

func (*AsContext) IsAsContext()

func (*AsContext) ToStringTree

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

type AsteriskContext

type AsteriskContext struct {
	SequenceContext
}

func NewAsteriskContext

func NewAsteriskContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AsteriskContext

func (*AsteriskContext) ASTERISK

func (s *AsteriskContext) ASTERISK() antlr.TerminalNode

func (*AsteriskContext) EnterRule

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

func (*AsteriskContext) ExitRule

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

func (*AsteriskContext) GetRuleContext

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

func (*AsteriskContext) Sequence

func (s *AsteriskContext) Sequence() ISequenceContext

type BaseSequenceListener

type BaseSequenceListener struct{}

BaseSequenceListener is a complete listener for a parse tree produced by SequenceParser.

func (*BaseSequenceListener) EnterAS

func (s *BaseSequenceListener) EnterAS(ctx *ASContext)

EnterAS is called when production AS is entered.

func (*BaseSequenceListener) EnterAsterisk

func (s *BaseSequenceListener) EnterAsterisk(ctx *AsteriskContext)

EnterAsterisk is called when production Asterisk is entered.

func (*BaseSequenceListener) EnterConcatenation

func (s *BaseSequenceListener) EnterConcatenation(ctx *ConcatenationContext)

EnterConcatenation is called when production Concatenation is entered.

func (*BaseSequenceListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseSequenceListener) EnterHop

func (s *BaseSequenceListener) EnterHop(ctx *HopContext)

EnterHop is called when production Hop is entered.

func (*BaseSequenceListener) EnterIFace

func (s *BaseSequenceListener) EnterIFace(ctx *IFaceContext)

EnterIFace is called when production IFace is entered.

func (*BaseSequenceListener) EnterISD

func (s *BaseSequenceListener) EnterISD(ctx *ISDContext)

EnterISD is called when production ISD is entered.

func (*BaseSequenceListener) EnterISDASHop

func (s *BaseSequenceListener) EnterISDASHop(ctx *ISDASHopContext)

EnterISDASHop is called when production ISDASHop is entered.

func (*BaseSequenceListener) EnterISDASIFHop

func (s *BaseSequenceListener) EnterISDASIFHop(ctx *ISDASIFHopContext)

EnterISDASIFHop is called when production ISDASIFHop is entered.

func (*BaseSequenceListener) EnterISDASIFIFHop

func (s *BaseSequenceListener) EnterISDASIFIFHop(ctx *ISDASIFIFHopContext)

EnterISDASIFIFHop is called when production ISDASIFIFHop is entered.

func (*BaseSequenceListener) EnterISDHop

func (s *BaseSequenceListener) EnterISDHop(ctx *ISDHopContext)

EnterISDHop is called when production ISDHop is entered.

func (*BaseSequenceListener) EnterLegacyAS

func (s *BaseSequenceListener) EnterLegacyAS(ctx *LegacyASContext)

EnterLegacyAS is called when production LegacyAS is entered.

func (*BaseSequenceListener) EnterOr

func (s *BaseSequenceListener) EnterOr(ctx *OrContext)

EnterOr is called when production Or is entered.

func (*BaseSequenceListener) EnterParentheses

func (s *BaseSequenceListener) EnterParentheses(ctx *ParenthesesContext)

EnterParentheses is called when production Parentheses is entered.

func (*BaseSequenceListener) EnterPlus

func (s *BaseSequenceListener) EnterPlus(ctx *PlusContext)

EnterPlus is called when production Plus is entered.

func (*BaseSequenceListener) EnterQuestionMark

func (s *BaseSequenceListener) EnterQuestionMark(ctx *QuestionMarkContext)

EnterQuestionMark is called when production QuestionMark is entered.

func (*BaseSequenceListener) EnterStart

func (s *BaseSequenceListener) EnterStart(ctx *StartContext)

EnterStart is called when production start is entered.

func (*BaseSequenceListener) EnterWildcardAS

func (s *BaseSequenceListener) EnterWildcardAS(ctx *WildcardASContext)

EnterWildcardAS is called when production WildcardAS is entered.

func (*BaseSequenceListener) EnterWildcardIFace

func (s *BaseSequenceListener) EnterWildcardIFace(ctx *WildcardIFaceContext)

EnterWildcardIFace is called when production WildcardIFace is entered.

func (*BaseSequenceListener) EnterWildcardISD

func (s *BaseSequenceListener) EnterWildcardISD(ctx *WildcardISDContext)

EnterWildcardISD is called when production WildcardISD is entered.

func (*BaseSequenceListener) ExitAS

func (s *BaseSequenceListener) ExitAS(ctx *ASContext)

ExitAS is called when production AS is exited.

func (*BaseSequenceListener) ExitAsterisk

func (s *BaseSequenceListener) ExitAsterisk(ctx *AsteriskContext)

ExitAsterisk is called when production Asterisk is exited.

func (*BaseSequenceListener) ExitConcatenation

func (s *BaseSequenceListener) ExitConcatenation(ctx *ConcatenationContext)

ExitConcatenation is called when production Concatenation is exited.

func (*BaseSequenceListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseSequenceListener) ExitHop

func (s *BaseSequenceListener) ExitHop(ctx *HopContext)

ExitHop is called when production Hop is exited.

func (*BaseSequenceListener) ExitIFace

func (s *BaseSequenceListener) ExitIFace(ctx *IFaceContext)

ExitIFace is called when production IFace is exited.

func (*BaseSequenceListener) ExitISD

func (s *BaseSequenceListener) ExitISD(ctx *ISDContext)

ExitISD is called when production ISD is exited.

func (*BaseSequenceListener) ExitISDASHop

func (s *BaseSequenceListener) ExitISDASHop(ctx *ISDASHopContext)

ExitISDASHop is called when production ISDASHop is exited.

func (*BaseSequenceListener) ExitISDASIFHop

func (s *BaseSequenceListener) ExitISDASIFHop(ctx *ISDASIFHopContext)

ExitISDASIFHop is called when production ISDASIFHop is exited.

func (*BaseSequenceListener) ExitISDASIFIFHop

func (s *BaseSequenceListener) ExitISDASIFIFHop(ctx *ISDASIFIFHopContext)

ExitISDASIFIFHop is called when production ISDASIFIFHop is exited.

func (*BaseSequenceListener) ExitISDHop

func (s *BaseSequenceListener) ExitISDHop(ctx *ISDHopContext)

ExitISDHop is called when production ISDHop is exited.

func (*BaseSequenceListener) ExitLegacyAS

func (s *BaseSequenceListener) ExitLegacyAS(ctx *LegacyASContext)

ExitLegacyAS is called when production LegacyAS is exited.

func (*BaseSequenceListener) ExitOr

func (s *BaseSequenceListener) ExitOr(ctx *OrContext)

ExitOr is called when production Or is exited.

func (*BaseSequenceListener) ExitParentheses

func (s *BaseSequenceListener) ExitParentheses(ctx *ParenthesesContext)

ExitParentheses is called when production Parentheses is exited.

func (*BaseSequenceListener) ExitPlus

func (s *BaseSequenceListener) ExitPlus(ctx *PlusContext)

ExitPlus is called when production Plus is exited.

func (*BaseSequenceListener) ExitQuestionMark

func (s *BaseSequenceListener) ExitQuestionMark(ctx *QuestionMarkContext)

ExitQuestionMark is called when production QuestionMark is exited.

func (*BaseSequenceListener) ExitStart

func (s *BaseSequenceListener) ExitStart(ctx *StartContext)

ExitStart is called when production start is exited.

func (*BaseSequenceListener) ExitWildcardAS

func (s *BaseSequenceListener) ExitWildcardAS(ctx *WildcardASContext)

ExitWildcardAS is called when production WildcardAS is exited.

func (*BaseSequenceListener) ExitWildcardIFace

func (s *BaseSequenceListener) ExitWildcardIFace(ctx *WildcardIFaceContext)

ExitWildcardIFace is called when production WildcardIFace is exited.

func (*BaseSequenceListener) ExitWildcardISD

func (s *BaseSequenceListener) ExitWildcardISD(ctx *WildcardISDContext)

ExitWildcardISD is called when production WildcardISD is exited.

func (*BaseSequenceListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseSequenceListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type ConcatenationContext

type ConcatenationContext struct {
	SequenceContext
}

func NewConcatenationContext

func NewConcatenationContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ConcatenationContext

func (*ConcatenationContext) AllSequence

func (s *ConcatenationContext) AllSequence() []ISequenceContext

func (*ConcatenationContext) EnterRule

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

func (*ConcatenationContext) ExitRule

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

func (*ConcatenationContext) GetRuleContext

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

func (*ConcatenationContext) Sequence

func (s *ConcatenationContext) Sequence(i int) ISequenceContext

type HopContext

type HopContext struct {
	SequenceContext
}

func NewHopContext

func NewHopContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *HopContext

func (*HopContext) EnterRule

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

func (*HopContext) ExitRule

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

func (*HopContext) GetRuleContext

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

func (*HopContext) Onehop

func (s *HopContext) Onehop() IOnehopContext

type IAsContext

type IAsContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsAsContext differentiates from other interfaces.
	IsAsContext()
}

IAsContext is an interface to support dynamic dispatch.

type IFaceContext

type IFaceContext struct {
	IfaceContext
}

func NewIFaceContext

func NewIFaceContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IFaceContext

func (*IFaceContext) EnterRule

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

func (*IFaceContext) ExitRule

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

func (*IFaceContext) GetRuleContext

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

func (*IFaceContext) NUM

func (s *IFaceContext) NUM() antlr.TerminalNode

type IIfaceContext

type IIfaceContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsIfaceContext differentiates from other interfaces.
	IsIfaceContext()
}

IIfaceContext is an interface to support dynamic dispatch.

type IIsdContext

type IIsdContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsIsdContext differentiates from other interfaces.
	IsIsdContext()
}

IIsdContext is an interface to support dynamic dispatch.

type IOnehopContext

type IOnehopContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsOnehopContext differentiates from other interfaces.
	IsOnehopContext()
}

IOnehopContext is an interface to support dynamic dispatch.

type ISDASHopContext

type ISDASHopContext struct {
	OnehopContext
}

func NewISDASHopContext

func NewISDASHopContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ISDASHopContext

func (*ISDASHopContext) As

func (s *ISDASHopContext) As() IAsContext

func (*ISDASHopContext) EnterRule

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

func (*ISDASHopContext) ExitRule

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

func (*ISDASHopContext) GetRuleContext

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

func (*ISDASHopContext) Isd

func (s *ISDASHopContext) Isd() IIsdContext

type ISDASIFHopContext

type ISDASIFHopContext struct {
	OnehopContext
}

func NewISDASIFHopContext

func NewISDASIFHopContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ISDASIFHopContext

func (*ISDASIFHopContext) As

func (s *ISDASIFHopContext) As() IAsContext

func (*ISDASIFHopContext) EnterRule

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

func (*ISDASIFHopContext) ExitRule

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

func (*ISDASIFHopContext) GetRuleContext

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

func (*ISDASIFHopContext) HASH

func (*ISDASIFHopContext) Iface

func (s *ISDASIFHopContext) Iface() IIfaceContext

func (*ISDASIFHopContext) Isd

func (s *ISDASIFHopContext) Isd() IIsdContext

type ISDASIFIFHopContext

type ISDASIFIFHopContext struct {
	OnehopContext
}

func NewISDASIFIFHopContext

func NewISDASIFIFHopContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ISDASIFIFHopContext

func (*ISDASIFIFHopContext) AllIface

func (s *ISDASIFIFHopContext) AllIface() []IIfaceContext

func (*ISDASIFIFHopContext) As

func (*ISDASIFIFHopContext) COMMA

func (*ISDASIFIFHopContext) EnterRule

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

func (*ISDASIFIFHopContext) ExitRule

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

func (*ISDASIFIFHopContext) GetRuleContext

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

func (*ISDASIFIFHopContext) HASH

func (*ISDASIFIFHopContext) Iface

func (*ISDASIFIFHopContext) Isd

type ISDContext

type ISDContext struct {
	IsdContext
}

func NewISDContext

func NewISDContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ISDContext

func (*ISDContext) EnterRule

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

func (*ISDContext) ExitRule

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

func (*ISDContext) GetRuleContext

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

func (*ISDContext) NUM

func (s *ISDContext) NUM() antlr.TerminalNode

type ISDHopContext

type ISDHopContext struct {
	OnehopContext
}

func NewISDHopContext

func NewISDHopContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ISDHopContext

func (*ISDHopContext) EnterRule

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

func (*ISDHopContext) ExitRule

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

func (*ISDHopContext) GetRuleContext

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

func (*ISDHopContext) Isd

func (s *ISDHopContext) Isd() IIsdContext

type ISequenceContext

type ISequenceContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsSequenceContext differentiates from other interfaces.
	IsSequenceContext()
}

ISequenceContext is an interface to support dynamic dispatch.

type IStartContext

type IStartContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	Sequence() ISequenceContext
	EOF() antlr.TerminalNode

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

IStartContext is an interface to support dynamic dispatch.

type IfaceContext

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

func NewEmptyIfaceContext

func NewEmptyIfaceContext() *IfaceContext

func NewIfaceContext

func NewIfaceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfaceContext

func (*IfaceContext) CopyAll added in v0.12.0

func (s *IfaceContext) CopyAll(ctx *IfaceContext)

func (*IfaceContext) GetParser

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

func (*IfaceContext) GetRuleContext

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

func (*IfaceContext) IsIfaceContext

func (*IfaceContext) IsIfaceContext()

func (*IfaceContext) ToStringTree

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

type IsdContext

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

func NewEmptyIsdContext

func NewEmptyIsdContext() *IsdContext

func NewIsdContext

func NewIsdContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IsdContext

func (*IsdContext) CopyAll added in v0.12.0

func (s *IsdContext) CopyAll(ctx *IsdContext)

func (*IsdContext) GetParser

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

func (*IsdContext) GetRuleContext

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

func (*IsdContext) IsIsdContext

func (*IsdContext) IsIsdContext()

func (*IsdContext) ToStringTree

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

type LegacyASContext

type LegacyASContext struct {
	AsContext
}

func NewLegacyASContext

func NewLegacyASContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LegacyASContext

func (*LegacyASContext) EnterRule

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

func (*LegacyASContext) ExitRule

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

func (*LegacyASContext) GetRuleContext

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

func (*LegacyASContext) LEGACYAS

func (s *LegacyASContext) LEGACYAS() antlr.TerminalNode

type OnehopContext

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

func NewEmptyOnehopContext

func NewEmptyOnehopContext() *OnehopContext

func NewOnehopContext

func NewOnehopContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OnehopContext

func (*OnehopContext) CopyAll added in v0.12.0

func (s *OnehopContext) CopyAll(ctx *OnehopContext)

func (*OnehopContext) GetParser

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

func (*OnehopContext) GetRuleContext

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

func (*OnehopContext) IsOnehopContext

func (*OnehopContext) IsOnehopContext()

func (*OnehopContext) ToStringTree

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

type OrContext

type OrContext struct {
	SequenceContext
}

func NewOrContext

func NewOrContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *OrContext

func (*OrContext) AllSequence

func (s *OrContext) AllSequence() []ISequenceContext

func (*OrContext) EnterRule

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

func (*OrContext) ExitRule

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

func (*OrContext) GetRuleContext

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

func (*OrContext) OR

func (s *OrContext) OR() antlr.TerminalNode

func (*OrContext) Sequence

func (s *OrContext) Sequence(i int) ISequenceContext

type ParenthesesContext

type ParenthesesContext struct {
	SequenceContext
}

func NewParenthesesContext

func NewParenthesesContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ParenthesesContext

func (*ParenthesesContext) EnterRule

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

func (*ParenthesesContext) ExitRule

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

func (*ParenthesesContext) GetRuleContext

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

func (*ParenthesesContext) LPAR

func (*ParenthesesContext) RPAR

func (*ParenthesesContext) Sequence

func (s *ParenthesesContext) Sequence() ISequenceContext

type PlusContext

type PlusContext struct {
	SequenceContext
}

func NewPlusContext

func NewPlusContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PlusContext

func (*PlusContext) EnterRule

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

func (*PlusContext) ExitRule

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

func (*PlusContext) GetRuleContext

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

func (*PlusContext) PLUS

func (s *PlusContext) PLUS() antlr.TerminalNode

func (*PlusContext) Sequence

func (s *PlusContext) Sequence() ISequenceContext

type QuestionMarkContext

type QuestionMarkContext struct {
	SequenceContext
}

func NewQuestionMarkContext

func NewQuestionMarkContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *QuestionMarkContext

func (*QuestionMarkContext) EnterRule

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

func (*QuestionMarkContext) ExitRule

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

func (*QuestionMarkContext) GetRuleContext

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

func (*QuestionMarkContext) QUESTIONMARK

func (s *QuestionMarkContext) QUESTIONMARK() antlr.TerminalNode

func (*QuestionMarkContext) Sequence

func (s *QuestionMarkContext) Sequence() ISequenceContext

type SequenceContext

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

func NewEmptySequenceContext

func NewEmptySequenceContext() *SequenceContext

func NewSequenceContext

func NewSequenceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SequenceContext

func (*SequenceContext) CopyAll added in v0.12.0

func (s *SequenceContext) CopyAll(ctx *SequenceContext)

func (*SequenceContext) GetParser

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

func (*SequenceContext) GetRuleContext

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

func (*SequenceContext) IsSequenceContext

func (*SequenceContext) IsSequenceContext()

func (*SequenceContext) ToStringTree

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

type SequenceLexer

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

func NewSequenceLexer

func NewSequenceLexer(input antlr.CharStream) *SequenceLexer

NewSequenceLexer produces a new lexer instance for the optional input antlr.CharStream.

type SequenceListener

type SequenceListener interface {
	antlr.ParseTreeListener

	// EnterStart is called when entering the start production.
	EnterStart(c *StartContext)

	// EnterOr is called when entering the Or production.
	EnterOr(c *OrContext)

	// EnterConcatenation is called when entering the Concatenation production.
	EnterConcatenation(c *ConcatenationContext)

	// EnterQuestionMark is called when entering the QuestionMark production.
	EnterQuestionMark(c *QuestionMarkContext)

	// EnterHop is called when entering the Hop production.
	EnterHop(c *HopContext)

	// EnterPlus is called when entering the Plus production.
	EnterPlus(c *PlusContext)

	// EnterAsterisk is called when entering the Asterisk production.
	EnterAsterisk(c *AsteriskContext)

	// EnterParentheses is called when entering the Parentheses production.
	EnterParentheses(c *ParenthesesContext)

	// EnterISDHop is called when entering the ISDHop production.
	EnterISDHop(c *ISDHopContext)

	// EnterISDASHop is called when entering the ISDASHop production.
	EnterISDASHop(c *ISDASHopContext)

	// EnterISDASIFHop is called when entering the ISDASIFHop production.
	EnterISDASIFHop(c *ISDASIFHopContext)

	// EnterISDASIFIFHop is called when entering the ISDASIFIFHop production.
	EnterISDASIFIFHop(c *ISDASIFIFHopContext)

	// EnterWildcardISD is called when entering the WildcardISD production.
	EnterWildcardISD(c *WildcardISDContext)

	// EnterISD is called when entering the ISD production.
	EnterISD(c *ISDContext)

	// EnterWildcardAS is called when entering the WildcardAS production.
	EnterWildcardAS(c *WildcardASContext)

	// EnterLegacyAS is called when entering the LegacyAS production.
	EnterLegacyAS(c *LegacyASContext)

	// EnterAS is called when entering the AS production.
	EnterAS(c *ASContext)

	// EnterWildcardIFace is called when entering the WildcardIFace production.
	EnterWildcardIFace(c *WildcardIFaceContext)

	// EnterIFace is called when entering the IFace production.
	EnterIFace(c *IFaceContext)

	// ExitStart is called when exiting the start production.
	ExitStart(c *StartContext)

	// ExitOr is called when exiting the Or production.
	ExitOr(c *OrContext)

	// ExitConcatenation is called when exiting the Concatenation production.
	ExitConcatenation(c *ConcatenationContext)

	// ExitQuestionMark is called when exiting the QuestionMark production.
	ExitQuestionMark(c *QuestionMarkContext)

	// ExitHop is called when exiting the Hop production.
	ExitHop(c *HopContext)

	// ExitPlus is called when exiting the Plus production.
	ExitPlus(c *PlusContext)

	// ExitAsterisk is called when exiting the Asterisk production.
	ExitAsterisk(c *AsteriskContext)

	// ExitParentheses is called when exiting the Parentheses production.
	ExitParentheses(c *ParenthesesContext)

	// ExitISDHop is called when exiting the ISDHop production.
	ExitISDHop(c *ISDHopContext)

	// ExitISDASHop is called when exiting the ISDASHop production.
	ExitISDASHop(c *ISDASHopContext)

	// ExitISDASIFHop is called when exiting the ISDASIFHop production.
	ExitISDASIFHop(c *ISDASIFHopContext)

	// ExitISDASIFIFHop is called when exiting the ISDASIFIFHop production.
	ExitISDASIFIFHop(c *ISDASIFIFHopContext)

	// ExitWildcardISD is called when exiting the WildcardISD production.
	ExitWildcardISD(c *WildcardISDContext)

	// ExitISD is called when exiting the ISD production.
	ExitISD(c *ISDContext)

	// ExitWildcardAS is called when exiting the WildcardAS production.
	ExitWildcardAS(c *WildcardASContext)

	// ExitLegacyAS is called when exiting the LegacyAS production.
	ExitLegacyAS(c *LegacyASContext)

	// ExitAS is called when exiting the AS production.
	ExitAS(c *ASContext)

	// ExitWildcardIFace is called when exiting the WildcardIFace production.
	ExitWildcardIFace(c *WildcardIFaceContext)

	// ExitIFace is called when exiting the IFace production.
	ExitIFace(c *IFaceContext)
}

SequenceListener is a complete listener for a parse tree produced by SequenceParser.

type SequenceParser

type SequenceParser struct {
	*antlr.BaseParser
}

func NewSequenceParser

func NewSequenceParser(input antlr.TokenStream) *SequenceParser

NewSequenceParser produces a new parser instance for the optional input antlr.TokenStream.

func (*SequenceParser) As

func (p *SequenceParser) As() (localctx IAsContext)

func (*SequenceParser) Iface

func (p *SequenceParser) Iface() (localctx IIfaceContext)

func (*SequenceParser) Isd

func (p *SequenceParser) Isd() (localctx IIsdContext)

func (*SequenceParser) Onehop

func (p *SequenceParser) Onehop() (localctx IOnehopContext)

func (*SequenceParser) Sempred

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

func (*SequenceParser) Sequence

func (p *SequenceParser) Sequence() (localctx ISequenceContext)

func (*SequenceParser) Sequence_Sempred

func (p *SequenceParser) Sequence_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*SequenceParser) Start_ added in v0.12.0

func (p *SequenceParser) Start_() (localctx IStartContext)

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) EOF

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

func (*StartContext) EnterRule

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

func (*StartContext) ExitRule

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

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) Sequence

func (s *StartContext) Sequence() ISequenceContext

func (*StartContext) ToStringTree

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

type WildcardASContext

type WildcardASContext struct {
	AsContext
}

func NewWildcardASContext

func NewWildcardASContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *WildcardASContext

func (*WildcardASContext) EnterRule

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

func (*WildcardASContext) ExitRule

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

func (*WildcardASContext) GetRuleContext

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

func (*WildcardASContext) WILDCARDAS

func (s *WildcardASContext) WILDCARDAS() antlr.TerminalNode

type WildcardIFaceContext

type WildcardIFaceContext struct {
	IfaceContext
}

func NewWildcardIFaceContext

func NewWildcardIFaceContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *WildcardIFaceContext

func (*WildcardIFaceContext) EnterRule

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

func (*WildcardIFaceContext) ExitRule

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

func (*WildcardIFaceContext) GetRuleContext

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

func (*WildcardIFaceContext) ZERO

type WildcardISDContext

type WildcardISDContext struct {
	IsdContext
}

func NewWildcardISDContext

func NewWildcardISDContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *WildcardISDContext

func (*WildcardISDContext) EnterRule

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

func (*WildcardISDContext) ExitRule

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

func (*WildcardISDContext) GetRuleContext

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

func (*WildcardISDContext) ZERO

Jump to

Keyboard shortcuts

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