Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/regex" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" ) type exampleListener struct { *regex.BaseregexParserListener } func (l *exampleListener) EnterEveryRule(ctx antlr.ParserRuleContext) { fmt.Println(ctx.GetText()) } func main() { // Setup the input is := antlr.NewInputStream("...some text to parse...") // Create the Lexer lexer := regex.NewregexLexer(is) stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) // Create the Parser p := regex.NewregexParser(stream) p.BuildParseTrees = true p.AddErrorListener(antlr.NewDiagnosticErrorListener(true)) // Finally walk the tree tree := p.Root() antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree) }
Output:
Index ¶
- func NewregexLexer(input antlr.CharStream) *regexLexer
- func NewregexParser(input antlr.TokenStream) *regexParser
- type AtomContext
- func (s *AtomContext) Char() antlr.TerminalNode
- func (s *AtomContext) CharClass() ICharClassContext
- func (s *AtomContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AtomContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AtomContext) GetParser() antlr.Parser
- func (s *AtomContext) GetRuleContext() antlr.RuleContext
- func (*AtomContext) IsAtomContext()
- func (s *AtomContext) LPAREN() antlr.TerminalNode
- func (s *AtomContext) RPAREN() antlr.TerminalNode
- func (s *AtomContext) RegExp() IRegExpContext
- func (s *AtomContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaseregexParserListener
- func (s *BaseregexParserListener) EnterAtom(ctx *AtomContext)
- func (s *BaseregexParserListener) EnterBranch(ctx *BranchContext)
- func (s *BaseregexParserListener) EnterCatEsc(ctx *CatEscContext)
- func (s *BaseregexParserListener) EnterCharClass(ctx *CharClassContext)
- func (s *BaseregexParserListener) EnterCharClassEsc(ctx *CharClassEscContext)
- func (s *BaseregexParserListener) EnterCharClassExpr(ctx *CharClassExprContext)
- func (s *BaseregexParserListener) EnterCharGroup(ctx *CharGroupContext)
- func (s *BaseregexParserListener) EnterCharOrEsc(ctx *CharOrEscContext)
- func (s *BaseregexParserListener) EnterCharProp(ctx *CharPropContext)
- func (s *BaseregexParserListener) EnterCharRange(ctx *CharRangeContext)
- func (s *BaseregexParserListener) EnterComplEsc(ctx *ComplEscContext)
- func (s *BaseregexParserListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseregexParserListener) EnterPiece(ctx *PieceContext)
- func (s *BaseregexParserListener) EnterPosCharGroup(ctx *PosCharGroupContext)
- func (s *BaseregexParserListener) EnterQuantMin(ctx *QuantMinContext)
- func (s *BaseregexParserListener) EnterQuantRange(ctx *QuantRangeContext)
- func (s *BaseregexParserListener) EnterQuantifier(ctx *QuantifierContext)
- func (s *BaseregexParserListener) EnterQuantity(ctx *QuantityContext)
- func (s *BaseregexParserListener) EnterRegExp(ctx *RegExpContext)
- func (s *BaseregexParserListener) EnterRoot(ctx *RootContext)
- func (s *BaseregexParserListener) EnterSeRange(ctx *SeRangeContext)
- func (s *BaseregexParserListener) ExitAtom(ctx *AtomContext)
- func (s *BaseregexParserListener) ExitBranch(ctx *BranchContext)
- func (s *BaseregexParserListener) ExitCatEsc(ctx *CatEscContext)
- func (s *BaseregexParserListener) ExitCharClass(ctx *CharClassContext)
- func (s *BaseregexParserListener) ExitCharClassEsc(ctx *CharClassEscContext)
- func (s *BaseregexParserListener) ExitCharClassExpr(ctx *CharClassExprContext)
- func (s *BaseregexParserListener) ExitCharGroup(ctx *CharGroupContext)
- func (s *BaseregexParserListener) ExitCharOrEsc(ctx *CharOrEscContext)
- func (s *BaseregexParserListener) ExitCharProp(ctx *CharPropContext)
- func (s *BaseregexParserListener) ExitCharRange(ctx *CharRangeContext)
- func (s *BaseregexParserListener) ExitComplEsc(ctx *ComplEscContext)
- func (s *BaseregexParserListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseregexParserListener) ExitPiece(ctx *PieceContext)
- func (s *BaseregexParserListener) ExitPosCharGroup(ctx *PosCharGroupContext)
- func (s *BaseregexParserListener) ExitQuantMin(ctx *QuantMinContext)
- func (s *BaseregexParserListener) ExitQuantRange(ctx *QuantRangeContext)
- func (s *BaseregexParserListener) ExitQuantifier(ctx *QuantifierContext)
- func (s *BaseregexParserListener) ExitQuantity(ctx *QuantityContext)
- func (s *BaseregexParserListener) ExitRegExp(ctx *RegExpContext)
- func (s *BaseregexParserListener) ExitRoot(ctx *RootContext)
- func (s *BaseregexParserListener) ExitSeRange(ctx *SeRangeContext)
- func (s *BaseregexParserListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseregexParserListener) VisitTerminal(node antlr.TerminalNode)
- type BranchContext
- func (s *BranchContext) AllPiece() []IPieceContext
- func (s *BranchContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BranchContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BranchContext) GetParser() antlr.Parser
- func (s *BranchContext) GetRuleContext() antlr.RuleContext
- func (*BranchContext) IsBranchContext()
- func (s *BranchContext) Piece(i int) IPieceContext
- func (s *BranchContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CatEscContext
- func (s *CatEscContext) CatEsc() antlr.TerminalNode
- func (s *CatEscContext) CharProp() ICharPropContext
- func (s *CatEscContext) EndCategory() antlr.TerminalNode
- func (s *CatEscContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CatEscContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CatEscContext) GetParser() antlr.Parser
- func (s *CatEscContext) GetRuleContext() antlr.RuleContext
- func (*CatEscContext) IsCatEscContext()
- func (s *CatEscContext) NestedCatEsc() antlr.TerminalNode
- func (s *CatEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CharClassContext
- func (s *CharClassContext) CharClassEsc() ICharClassEscContext
- func (s *CharClassContext) CharClassExpr() ICharClassExprContext
- func (s *CharClassContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CharClassContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CharClassContext) GetParser() antlr.Parser
- func (s *CharClassContext) GetRuleContext() antlr.RuleContext
- func (*CharClassContext) IsCharClassContext()
- func (s *CharClassContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *CharClassContext) WildcardEsc() antlr.TerminalNode
- type CharClassEscContext
- func (s *CharClassEscContext) CatEsc() ICatEscContext
- func (s *CharClassEscContext) ComplEsc() IComplEscContext
- func (s *CharClassEscContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CharClassEscContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CharClassEscContext) GetParser() antlr.Parser
- func (s *CharClassEscContext) GetRuleContext() antlr.RuleContext
- func (*CharClassEscContext) IsCharClassEscContext()
- func (s *CharClassEscContext) MultiCharEsc() antlr.TerminalNode
- func (s *CharClassEscContext) NestedMultiCharEsc() antlr.TerminalNode
- func (s *CharClassEscContext) NestedSingleCharEsc() antlr.TerminalNode
- func (s *CharClassEscContext) SingleCharEsc() antlr.TerminalNode
- func (s *CharClassEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CharClassExprContext
- func (s *CharClassExprContext) CharGroup() ICharGroupContext
- func (s *CharClassExprContext) EndCharGroup() antlr.TerminalNode
- func (s *CharClassExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CharClassExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CharClassExprContext) GetParser() antlr.Parser
- func (s *CharClassExprContext) GetRuleContext() antlr.RuleContext
- func (*CharClassExprContext) IsCharClassExprContext()
- func (s *CharClassExprContext) NegCharGroup() antlr.TerminalNode
- func (s *CharClassExprContext) NestedNegCharGroup() antlr.TerminalNode
- func (s *CharClassExprContext) NestedPosCharGroup() antlr.TerminalNode
- func (s *CharClassExprContext) PosCharGroup() antlr.TerminalNode
- func (s *CharClassExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CharGroupContext
- func (s *CharGroupContext) AllDASH() []antlr.TerminalNode
- func (s *CharGroupContext) CharClassExpr() ICharClassExprContext
- func (s *CharGroupContext) DASH(i int) antlr.TerminalNode
- func (s *CharGroupContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CharGroupContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CharGroupContext) GetParser() antlr.Parser
- func (s *CharGroupContext) GetRuleContext() antlr.RuleContext
- func (*CharGroupContext) IsCharGroupContext()
- func (s *CharGroupContext) PosCharGroup() IPosCharGroupContext
- func (s *CharGroupContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CharOrEscContext
- func (s *CharOrEscContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CharOrEscContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CharOrEscContext) GetParser() antlr.Parser
- func (s *CharOrEscContext) GetRuleContext() antlr.RuleContext
- func (*CharOrEscContext) IsCharOrEscContext()
- func (s *CharOrEscContext) SingleCharEsc() antlr.TerminalNode
- func (s *CharOrEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *CharOrEscContext) XmlChar() antlr.TerminalNode
- type CharPropContext
- func (s *CharPropContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CharPropContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CharPropContext) GetParser() antlr.Parser
- func (s *CharPropContext) GetRuleContext() antlr.RuleContext
- func (s *CharPropContext) IsBlock() antlr.TerminalNode
- func (s *CharPropContext) IsCategory() antlr.TerminalNode
- func (*CharPropContext) IsCharPropContext()
- func (s *CharPropContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CharRangeContext
- func (s *CharRangeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CharRangeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CharRangeContext) GetParser() antlr.Parser
- func (s *CharRangeContext) GetRuleContext() antlr.RuleContext
- func (*CharRangeContext) IsCharRangeContext()
- func (s *CharRangeContext) SeRange() ISeRangeContext
- func (s *CharRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *CharRangeContext) XmlChar() antlr.TerminalNode
- type ComplEscContext
- func (s *ComplEscContext) CharProp() ICharPropContext
- func (s *ComplEscContext) ComplEsc() antlr.TerminalNode
- func (s *ComplEscContext) EndCategory() antlr.TerminalNode
- func (s *ComplEscContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ComplEscContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ComplEscContext) GetParser() antlr.Parser
- func (s *ComplEscContext) GetRuleContext() antlr.RuleContext
- func (*ComplEscContext) IsComplEscContext()
- func (s *ComplEscContext) NestedComplEsc() antlr.TerminalNode
- func (s *ComplEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IAtomContext
- type IBranchContext
- type ICatEscContext
- type ICharClassContext
- type ICharClassEscContext
- type ICharClassExprContext
- type ICharGroupContext
- type ICharOrEscContext
- type ICharPropContext
- type ICharRangeContext
- type IComplEscContext
- type IPieceContext
- type IPosCharGroupContext
- type IQuantMinContext
- type IQuantRangeContext
- type IQuantifierContext
- type IQuantityContext
- type IRegExpContext
- type IRootContext
- type ISeRangeContext
- type PieceContext
- func (s *PieceContext) Atom() IAtomContext
- func (s *PieceContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *PieceContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *PieceContext) GetParser() antlr.Parser
- func (s *PieceContext) GetRuleContext() antlr.RuleContext
- func (*PieceContext) IsPieceContext()
- func (s *PieceContext) Quantifier() IQuantifierContext
- func (s *PieceContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type PosCharGroupContext
- func (s *PosCharGroupContext) AllCharClassEsc() []ICharClassEscContext
- func (s *PosCharGroupContext) AllCharRange() []ICharRangeContext
- func (s *PosCharGroupContext) CharClassEsc(i int) ICharClassEscContext
- func (s *PosCharGroupContext) CharRange(i int) ICharRangeContext
- func (s *PosCharGroupContext) DASH() antlr.TerminalNode
- func (s *PosCharGroupContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *PosCharGroupContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *PosCharGroupContext) GetParser() antlr.Parser
- func (s *PosCharGroupContext) GetRuleContext() antlr.RuleContext
- func (*PosCharGroupContext) IsPosCharGroupContext()
- func (s *PosCharGroupContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type QuantMinContext
- func (s *QuantMinContext) COMMA() antlr.TerminalNode
- func (s *QuantMinContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *QuantMinContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *QuantMinContext) GetParser() antlr.Parser
- func (s *QuantMinContext) GetRuleContext() antlr.RuleContext
- func (*QuantMinContext) IsQuantMinContext()
- func (s *QuantMinContext) QuantExact() antlr.TerminalNode
- func (s *QuantMinContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type QuantRangeContext
- func (s *QuantRangeContext) AllQuantExact() []antlr.TerminalNode
- func (s *QuantRangeContext) COMMA() antlr.TerminalNode
- func (s *QuantRangeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *QuantRangeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *QuantRangeContext) GetParser() antlr.Parser
- func (s *QuantRangeContext) GetRuleContext() antlr.RuleContext
- func (*QuantRangeContext) IsQuantRangeContext()
- func (s *QuantRangeContext) QuantExact(i int) antlr.TerminalNode
- func (s *QuantRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type QuantifierContext
- func (s *QuantifierContext) EndQuantity() antlr.TerminalNode
- func (s *QuantifierContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *QuantifierContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *QuantifierContext) GetParser() antlr.Parser
- func (s *QuantifierContext) GetRuleContext() antlr.RuleContext
- func (*QuantifierContext) IsQuantifierContext()
- func (s *QuantifierContext) PLUS() antlr.TerminalNode
- func (s *QuantifierContext) QUESTION() antlr.TerminalNode
- func (s *QuantifierContext) Quantity() IQuantityContext
- func (s *QuantifierContext) STAR() antlr.TerminalNode
- func (s *QuantifierContext) StartQuantity() antlr.TerminalNode
- func (s *QuantifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type QuantityContext
- func (s *QuantityContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *QuantityContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *QuantityContext) GetParser() antlr.Parser
- func (s *QuantityContext) GetRuleContext() antlr.RuleContext
- func (*QuantityContext) IsQuantityContext()
- func (s *QuantityContext) QuantExact() antlr.TerminalNode
- func (s *QuantityContext) QuantMin() IQuantMinContext
- func (s *QuantityContext) QuantRange() IQuantRangeContext
- func (s *QuantityContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RegExpContext
- func (s *RegExpContext) AllBranch() []IBranchContext
- func (s *RegExpContext) AllPIPE() []antlr.TerminalNode
- func (s *RegExpContext) Branch(i int) IBranchContext
- func (s *RegExpContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RegExpContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RegExpContext) GetParser() antlr.Parser
- func (s *RegExpContext) GetRuleContext() antlr.RuleContext
- func (*RegExpContext) IsRegExpContext()
- func (s *RegExpContext) PIPE(i int) antlr.TerminalNode
- func (s *RegExpContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RootContext
- func (s *RootContext) EOF() antlr.TerminalNode
- func (s *RootContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RootContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RootContext) GetParser() antlr.Parser
- func (s *RootContext) GetRuleContext() antlr.RuleContext
- func (*RootContext) IsRootContext()
- func (s *RootContext) RegExp() IRegExpContext
- func (s *RootContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SeRangeContext
- func (s *SeRangeContext) AllCharOrEsc() []ICharOrEscContext
- func (s *SeRangeContext) CharOrEsc(i int) ICharOrEscContext
- func (s *SeRangeContext) DASH() antlr.TerminalNode
- func (s *SeRangeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SeRangeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SeRangeContext) GetParser() antlr.Parser
- func (s *SeRangeContext) GetRuleContext() antlr.RuleContext
- func (*SeRangeContext) IsSeRangeContext()
- func (s *SeRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewregexLexer ¶
func NewregexLexer(input antlr.CharStream) *regexLexer
func NewregexParser ¶
func NewregexParser(input antlr.TokenStream) *regexParser
Types ¶
type AtomContext ¶
type AtomContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAtomContext ¶
func NewAtomContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AtomContext
func NewEmptyAtomContext ¶
func NewEmptyAtomContext() *AtomContext
func (*AtomContext) Char ¶
func (s *AtomContext) Char() antlr.TerminalNode
func (*AtomContext) CharClass ¶
func (s *AtomContext) CharClass() ICharClassContext
func (*AtomContext) EnterRule ¶
func (s *AtomContext) EnterRule(listener antlr.ParseTreeListener)
func (*AtomContext) ExitRule ¶
func (s *AtomContext) ExitRule(listener antlr.ParseTreeListener)
func (*AtomContext) GetParser ¶
func (s *AtomContext) GetParser() antlr.Parser
func (*AtomContext) GetRuleContext ¶
func (s *AtomContext) GetRuleContext() antlr.RuleContext
func (*AtomContext) IsAtomContext ¶
func (*AtomContext) IsAtomContext()
func (*AtomContext) LPAREN ¶
func (s *AtomContext) LPAREN() antlr.TerminalNode
func (*AtomContext) RPAREN ¶
func (s *AtomContext) RPAREN() antlr.TerminalNode
func (*AtomContext) RegExp ¶
func (s *AtomContext) RegExp() IRegExpContext
func (*AtomContext) ToStringTree ¶
func (s *AtomContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaseregexParserListener ¶
type BaseregexParserListener struct{}
BaseregexParserListener is a complete listener for a parse tree produced by regexParser.
func (*BaseregexParserListener) EnterAtom ¶
func (s *BaseregexParserListener) EnterAtom(ctx *AtomContext)
EnterAtom is called when production atom is entered.
func (*BaseregexParserListener) EnterBranch ¶
func (s *BaseregexParserListener) EnterBranch(ctx *BranchContext)
EnterBranch is called when production branch is entered.
func (*BaseregexParserListener) EnterCatEsc ¶
func (s *BaseregexParserListener) EnterCatEsc(ctx *CatEscContext)
EnterCatEsc is called when production catEsc is entered.
func (*BaseregexParserListener) EnterCharClass ¶
func (s *BaseregexParserListener) EnterCharClass(ctx *CharClassContext)
EnterCharClass is called when production charClass is entered.
func (*BaseregexParserListener) EnterCharClassEsc ¶
func (s *BaseregexParserListener) EnterCharClassEsc(ctx *CharClassEscContext)
EnterCharClassEsc is called when production charClassEsc is entered.
func (*BaseregexParserListener) EnterCharClassExpr ¶
func (s *BaseregexParserListener) EnterCharClassExpr(ctx *CharClassExprContext)
EnterCharClassExpr is called when production charClassExpr is entered.
func (*BaseregexParserListener) EnterCharGroup ¶
func (s *BaseregexParserListener) EnterCharGroup(ctx *CharGroupContext)
EnterCharGroup is called when production charGroup is entered.
func (*BaseregexParserListener) EnterCharOrEsc ¶
func (s *BaseregexParserListener) EnterCharOrEsc(ctx *CharOrEscContext)
EnterCharOrEsc is called when production charOrEsc is entered.
func (*BaseregexParserListener) EnterCharProp ¶
func (s *BaseregexParserListener) EnterCharProp(ctx *CharPropContext)
EnterCharProp is called when production charProp is entered.
func (*BaseregexParserListener) EnterCharRange ¶
func (s *BaseregexParserListener) EnterCharRange(ctx *CharRangeContext)
EnterCharRange is called when production charRange is entered.
func (*BaseregexParserListener) EnterComplEsc ¶
func (s *BaseregexParserListener) EnterComplEsc(ctx *ComplEscContext)
EnterComplEsc is called when production complEsc is entered.
func (*BaseregexParserListener) EnterEveryRule ¶
func (s *BaseregexParserListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseregexParserListener) EnterPiece ¶
func (s *BaseregexParserListener) EnterPiece(ctx *PieceContext)
EnterPiece is called when production piece is entered.
func (*BaseregexParserListener) EnterPosCharGroup ¶
func (s *BaseregexParserListener) EnterPosCharGroup(ctx *PosCharGroupContext)
EnterPosCharGroup is called when production posCharGroup is entered.
func (*BaseregexParserListener) EnterQuantMin ¶
func (s *BaseregexParserListener) EnterQuantMin(ctx *QuantMinContext)
EnterQuantMin is called when production quantMin is entered.
func (*BaseregexParserListener) EnterQuantRange ¶
func (s *BaseregexParserListener) EnterQuantRange(ctx *QuantRangeContext)
EnterQuantRange is called when production quantRange is entered.
func (*BaseregexParserListener) EnterQuantifier ¶
func (s *BaseregexParserListener) EnterQuantifier(ctx *QuantifierContext)
EnterQuantifier is called when production quantifier is entered.
func (*BaseregexParserListener) EnterQuantity ¶
func (s *BaseregexParserListener) EnterQuantity(ctx *QuantityContext)
EnterQuantity is called when production quantity is entered.
func (*BaseregexParserListener) EnterRegExp ¶
func (s *BaseregexParserListener) EnterRegExp(ctx *RegExpContext)
EnterRegExp is called when production regExp is entered.
func (*BaseregexParserListener) EnterRoot ¶
func (s *BaseregexParserListener) EnterRoot(ctx *RootContext)
EnterRoot is called when production root is entered.
func (*BaseregexParserListener) EnterSeRange ¶
func (s *BaseregexParserListener) EnterSeRange(ctx *SeRangeContext)
EnterSeRange is called when production seRange is entered.
func (*BaseregexParserListener) ExitAtom ¶
func (s *BaseregexParserListener) ExitAtom(ctx *AtomContext)
ExitAtom is called when production atom is exited.
func (*BaseregexParserListener) ExitBranch ¶
func (s *BaseregexParserListener) ExitBranch(ctx *BranchContext)
ExitBranch is called when production branch is exited.
func (*BaseregexParserListener) ExitCatEsc ¶
func (s *BaseregexParserListener) ExitCatEsc(ctx *CatEscContext)
ExitCatEsc is called when production catEsc is exited.
func (*BaseregexParserListener) ExitCharClass ¶
func (s *BaseregexParserListener) ExitCharClass(ctx *CharClassContext)
ExitCharClass is called when production charClass is exited.
func (*BaseregexParserListener) ExitCharClassEsc ¶
func (s *BaseregexParserListener) ExitCharClassEsc(ctx *CharClassEscContext)
ExitCharClassEsc is called when production charClassEsc is exited.
func (*BaseregexParserListener) ExitCharClassExpr ¶
func (s *BaseregexParserListener) ExitCharClassExpr(ctx *CharClassExprContext)
ExitCharClassExpr is called when production charClassExpr is exited.
func (*BaseregexParserListener) ExitCharGroup ¶
func (s *BaseregexParserListener) ExitCharGroup(ctx *CharGroupContext)
ExitCharGroup is called when production charGroup is exited.
func (*BaseregexParserListener) ExitCharOrEsc ¶
func (s *BaseregexParserListener) ExitCharOrEsc(ctx *CharOrEscContext)
ExitCharOrEsc is called when production charOrEsc is exited.
func (*BaseregexParserListener) ExitCharProp ¶
func (s *BaseregexParserListener) ExitCharProp(ctx *CharPropContext)
ExitCharProp is called when production charProp is exited.
func (*BaseregexParserListener) ExitCharRange ¶
func (s *BaseregexParserListener) ExitCharRange(ctx *CharRangeContext)
ExitCharRange is called when production charRange is exited.
func (*BaseregexParserListener) ExitComplEsc ¶
func (s *BaseregexParserListener) ExitComplEsc(ctx *ComplEscContext)
ExitComplEsc is called when production complEsc is exited.
func (*BaseregexParserListener) ExitEveryRule ¶
func (s *BaseregexParserListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseregexParserListener) ExitPiece ¶
func (s *BaseregexParserListener) ExitPiece(ctx *PieceContext)
ExitPiece is called when production piece is exited.
func (*BaseregexParserListener) ExitPosCharGroup ¶
func (s *BaseregexParserListener) ExitPosCharGroup(ctx *PosCharGroupContext)
ExitPosCharGroup is called when production posCharGroup is exited.
func (*BaseregexParserListener) ExitQuantMin ¶
func (s *BaseregexParserListener) ExitQuantMin(ctx *QuantMinContext)
ExitQuantMin is called when production quantMin is exited.
func (*BaseregexParserListener) ExitQuantRange ¶
func (s *BaseregexParserListener) ExitQuantRange(ctx *QuantRangeContext)
ExitQuantRange is called when production quantRange is exited.
func (*BaseregexParserListener) ExitQuantifier ¶
func (s *BaseregexParserListener) ExitQuantifier(ctx *QuantifierContext)
ExitQuantifier is called when production quantifier is exited.
func (*BaseregexParserListener) ExitQuantity ¶
func (s *BaseregexParserListener) ExitQuantity(ctx *QuantityContext)
ExitQuantity is called when production quantity is exited.
func (*BaseregexParserListener) ExitRegExp ¶
func (s *BaseregexParserListener) ExitRegExp(ctx *RegExpContext)
ExitRegExp is called when production regExp is exited.
func (*BaseregexParserListener) ExitRoot ¶
func (s *BaseregexParserListener) ExitRoot(ctx *RootContext)
ExitRoot is called when production root is exited.
func (*BaseregexParserListener) ExitSeRange ¶
func (s *BaseregexParserListener) ExitSeRange(ctx *SeRangeContext)
ExitSeRange is called when production seRange is exited.
func (*BaseregexParserListener) VisitErrorNode ¶
func (s *BaseregexParserListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseregexParserListener) VisitTerminal ¶
func (s *BaseregexParserListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type BranchContext ¶
type BranchContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBranchContext ¶
func NewBranchContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BranchContext
func NewEmptyBranchContext ¶
func NewEmptyBranchContext() *BranchContext
func (*BranchContext) AllPiece ¶
func (s *BranchContext) AllPiece() []IPieceContext
func (*BranchContext) EnterRule ¶
func (s *BranchContext) EnterRule(listener antlr.ParseTreeListener)
func (*BranchContext) ExitRule ¶
func (s *BranchContext) ExitRule(listener antlr.ParseTreeListener)
func (*BranchContext) GetParser ¶
func (s *BranchContext) GetParser() antlr.Parser
func (*BranchContext) GetRuleContext ¶
func (s *BranchContext) GetRuleContext() antlr.RuleContext
func (*BranchContext) IsBranchContext ¶
func (*BranchContext) IsBranchContext()
func (*BranchContext) Piece ¶
func (s *BranchContext) Piece(i int) IPieceContext
func (*BranchContext) ToStringTree ¶
func (s *BranchContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CatEscContext ¶
type CatEscContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCatEscContext ¶
func NewCatEscContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CatEscContext
func NewEmptyCatEscContext ¶
func NewEmptyCatEscContext() *CatEscContext
func (*CatEscContext) CatEsc ¶
func (s *CatEscContext) CatEsc() antlr.TerminalNode
func (*CatEscContext) CharProp ¶
func (s *CatEscContext) CharProp() ICharPropContext
func (*CatEscContext) EndCategory ¶
func (s *CatEscContext) EndCategory() antlr.TerminalNode
func (*CatEscContext) EnterRule ¶
func (s *CatEscContext) EnterRule(listener antlr.ParseTreeListener)
func (*CatEscContext) ExitRule ¶
func (s *CatEscContext) ExitRule(listener antlr.ParseTreeListener)
func (*CatEscContext) GetParser ¶
func (s *CatEscContext) GetParser() antlr.Parser
func (*CatEscContext) GetRuleContext ¶
func (s *CatEscContext) GetRuleContext() antlr.RuleContext
func (*CatEscContext) IsCatEscContext ¶
func (*CatEscContext) IsCatEscContext()
func (*CatEscContext) NestedCatEsc ¶
func (s *CatEscContext) NestedCatEsc() antlr.TerminalNode
func (*CatEscContext) ToStringTree ¶
func (s *CatEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CharClassContext ¶
type CharClassContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCharClassContext ¶
func NewCharClassContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CharClassContext
func NewEmptyCharClassContext ¶
func NewEmptyCharClassContext() *CharClassContext
func (*CharClassContext) CharClassEsc ¶
func (s *CharClassContext) CharClassEsc() ICharClassEscContext
func (*CharClassContext) CharClassExpr ¶
func (s *CharClassContext) CharClassExpr() ICharClassExprContext
func (*CharClassContext) EnterRule ¶
func (s *CharClassContext) EnterRule(listener antlr.ParseTreeListener)
func (*CharClassContext) ExitRule ¶
func (s *CharClassContext) ExitRule(listener antlr.ParseTreeListener)
func (*CharClassContext) GetParser ¶
func (s *CharClassContext) GetParser() antlr.Parser
func (*CharClassContext) GetRuleContext ¶
func (s *CharClassContext) GetRuleContext() antlr.RuleContext
func (*CharClassContext) IsCharClassContext ¶
func (*CharClassContext) IsCharClassContext()
func (*CharClassContext) ToStringTree ¶
func (s *CharClassContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*CharClassContext) WildcardEsc ¶
func (s *CharClassContext) WildcardEsc() antlr.TerminalNode
type CharClassEscContext ¶
type CharClassEscContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCharClassEscContext ¶
func NewCharClassEscContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CharClassEscContext
func NewEmptyCharClassEscContext ¶
func NewEmptyCharClassEscContext() *CharClassEscContext
func (*CharClassEscContext) CatEsc ¶
func (s *CharClassEscContext) CatEsc() ICatEscContext
func (*CharClassEscContext) ComplEsc ¶
func (s *CharClassEscContext) ComplEsc() IComplEscContext
func (*CharClassEscContext) EnterRule ¶
func (s *CharClassEscContext) EnterRule(listener antlr.ParseTreeListener)
func (*CharClassEscContext) ExitRule ¶
func (s *CharClassEscContext) ExitRule(listener antlr.ParseTreeListener)
func (*CharClassEscContext) GetParser ¶
func (s *CharClassEscContext) GetParser() antlr.Parser
func (*CharClassEscContext) GetRuleContext ¶
func (s *CharClassEscContext) GetRuleContext() antlr.RuleContext
func (*CharClassEscContext) IsCharClassEscContext ¶
func (*CharClassEscContext) IsCharClassEscContext()
func (*CharClassEscContext) MultiCharEsc ¶
func (s *CharClassEscContext) MultiCharEsc() antlr.TerminalNode
func (*CharClassEscContext) NestedMultiCharEsc ¶
func (s *CharClassEscContext) NestedMultiCharEsc() antlr.TerminalNode
func (*CharClassEscContext) NestedSingleCharEsc ¶
func (s *CharClassEscContext) NestedSingleCharEsc() antlr.TerminalNode
func (*CharClassEscContext) SingleCharEsc ¶
func (s *CharClassEscContext) SingleCharEsc() antlr.TerminalNode
func (*CharClassEscContext) ToStringTree ¶
func (s *CharClassEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CharClassExprContext ¶
type CharClassExprContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCharClassExprContext ¶
func NewCharClassExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CharClassExprContext
func NewEmptyCharClassExprContext ¶
func NewEmptyCharClassExprContext() *CharClassExprContext
func (*CharClassExprContext) CharGroup ¶
func (s *CharClassExprContext) CharGroup() ICharGroupContext
func (*CharClassExprContext) EndCharGroup ¶
func (s *CharClassExprContext) EndCharGroup() antlr.TerminalNode
func (*CharClassExprContext) EnterRule ¶
func (s *CharClassExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*CharClassExprContext) ExitRule ¶
func (s *CharClassExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*CharClassExprContext) GetParser ¶
func (s *CharClassExprContext) GetParser() antlr.Parser
func (*CharClassExprContext) GetRuleContext ¶
func (s *CharClassExprContext) GetRuleContext() antlr.RuleContext
func (*CharClassExprContext) IsCharClassExprContext ¶
func (*CharClassExprContext) IsCharClassExprContext()
func (*CharClassExprContext) NegCharGroup ¶
func (s *CharClassExprContext) NegCharGroup() antlr.TerminalNode
func (*CharClassExprContext) NestedNegCharGroup ¶
func (s *CharClassExprContext) NestedNegCharGroup() antlr.TerminalNode
func (*CharClassExprContext) NestedPosCharGroup ¶
func (s *CharClassExprContext) NestedPosCharGroup() antlr.TerminalNode
func (*CharClassExprContext) PosCharGroup ¶
func (s *CharClassExprContext) PosCharGroup() antlr.TerminalNode
func (*CharClassExprContext) ToStringTree ¶
func (s *CharClassExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CharGroupContext ¶
type CharGroupContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCharGroupContext ¶
func NewCharGroupContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CharGroupContext
func NewEmptyCharGroupContext ¶
func NewEmptyCharGroupContext() *CharGroupContext
func (*CharGroupContext) AllDASH ¶
func (s *CharGroupContext) AllDASH() []antlr.TerminalNode
func (*CharGroupContext) CharClassExpr ¶
func (s *CharGroupContext) CharClassExpr() ICharClassExprContext
func (*CharGroupContext) DASH ¶
func (s *CharGroupContext) DASH(i int) antlr.TerminalNode
func (*CharGroupContext) EnterRule ¶
func (s *CharGroupContext) EnterRule(listener antlr.ParseTreeListener)
func (*CharGroupContext) ExitRule ¶
func (s *CharGroupContext) ExitRule(listener antlr.ParseTreeListener)
func (*CharGroupContext) GetParser ¶
func (s *CharGroupContext) GetParser() antlr.Parser
func (*CharGroupContext) GetRuleContext ¶
func (s *CharGroupContext) GetRuleContext() antlr.RuleContext
func (*CharGroupContext) IsCharGroupContext ¶
func (*CharGroupContext) IsCharGroupContext()
func (*CharGroupContext) PosCharGroup ¶
func (s *CharGroupContext) PosCharGroup() IPosCharGroupContext
func (*CharGroupContext) ToStringTree ¶
func (s *CharGroupContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CharOrEscContext ¶
type CharOrEscContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCharOrEscContext ¶
func NewCharOrEscContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CharOrEscContext
func NewEmptyCharOrEscContext ¶
func NewEmptyCharOrEscContext() *CharOrEscContext
func (*CharOrEscContext) EnterRule ¶
func (s *CharOrEscContext) EnterRule(listener antlr.ParseTreeListener)
func (*CharOrEscContext) ExitRule ¶
func (s *CharOrEscContext) ExitRule(listener antlr.ParseTreeListener)
func (*CharOrEscContext) GetParser ¶
func (s *CharOrEscContext) GetParser() antlr.Parser
func (*CharOrEscContext) GetRuleContext ¶
func (s *CharOrEscContext) GetRuleContext() antlr.RuleContext
func (*CharOrEscContext) IsCharOrEscContext ¶
func (*CharOrEscContext) IsCharOrEscContext()
func (*CharOrEscContext) SingleCharEsc ¶
func (s *CharOrEscContext) SingleCharEsc() antlr.TerminalNode
func (*CharOrEscContext) ToStringTree ¶
func (s *CharOrEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*CharOrEscContext) XmlChar ¶
func (s *CharOrEscContext) XmlChar() antlr.TerminalNode
type CharPropContext ¶
type CharPropContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCharPropContext ¶
func NewCharPropContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CharPropContext
func NewEmptyCharPropContext ¶
func NewEmptyCharPropContext() *CharPropContext
func (*CharPropContext) EnterRule ¶
func (s *CharPropContext) EnterRule(listener antlr.ParseTreeListener)
func (*CharPropContext) ExitRule ¶
func (s *CharPropContext) ExitRule(listener antlr.ParseTreeListener)
func (*CharPropContext) GetParser ¶
func (s *CharPropContext) GetParser() antlr.Parser
func (*CharPropContext) GetRuleContext ¶
func (s *CharPropContext) GetRuleContext() antlr.RuleContext
func (*CharPropContext) IsBlock ¶
func (s *CharPropContext) IsBlock() antlr.TerminalNode
func (*CharPropContext) IsCategory ¶
func (s *CharPropContext) IsCategory() antlr.TerminalNode
func (*CharPropContext) IsCharPropContext ¶
func (*CharPropContext) IsCharPropContext()
func (*CharPropContext) ToStringTree ¶
func (s *CharPropContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CharRangeContext ¶
type CharRangeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCharRangeContext ¶
func NewCharRangeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CharRangeContext
func NewEmptyCharRangeContext ¶
func NewEmptyCharRangeContext() *CharRangeContext
func (*CharRangeContext) EnterRule ¶
func (s *CharRangeContext) EnterRule(listener antlr.ParseTreeListener)
func (*CharRangeContext) ExitRule ¶
func (s *CharRangeContext) ExitRule(listener antlr.ParseTreeListener)
func (*CharRangeContext) GetParser ¶
func (s *CharRangeContext) GetParser() antlr.Parser
func (*CharRangeContext) GetRuleContext ¶
func (s *CharRangeContext) GetRuleContext() antlr.RuleContext
func (*CharRangeContext) IsCharRangeContext ¶
func (*CharRangeContext) IsCharRangeContext()
func (*CharRangeContext) SeRange ¶
func (s *CharRangeContext) SeRange() ISeRangeContext
func (*CharRangeContext) ToStringTree ¶
func (s *CharRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*CharRangeContext) XmlChar ¶
func (s *CharRangeContext) XmlChar() antlr.TerminalNode
type ComplEscContext ¶
type ComplEscContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewComplEscContext ¶
func NewComplEscContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ComplEscContext
func NewEmptyComplEscContext ¶
func NewEmptyComplEscContext() *ComplEscContext
func (*ComplEscContext) CharProp ¶
func (s *ComplEscContext) CharProp() ICharPropContext
func (*ComplEscContext) ComplEsc ¶
func (s *ComplEscContext) ComplEsc() antlr.TerminalNode
func (*ComplEscContext) EndCategory ¶
func (s *ComplEscContext) EndCategory() antlr.TerminalNode
func (*ComplEscContext) EnterRule ¶
func (s *ComplEscContext) EnterRule(listener antlr.ParseTreeListener)
func (*ComplEscContext) ExitRule ¶
func (s *ComplEscContext) ExitRule(listener antlr.ParseTreeListener)
func (*ComplEscContext) GetParser ¶
func (s *ComplEscContext) GetParser() antlr.Parser
func (*ComplEscContext) GetRuleContext ¶
func (s *ComplEscContext) GetRuleContext() antlr.RuleContext
func (*ComplEscContext) IsComplEscContext ¶
func (*ComplEscContext) IsComplEscContext()
func (*ComplEscContext) NestedComplEsc ¶
func (s *ComplEscContext) NestedComplEsc() antlr.TerminalNode
func (*ComplEscContext) ToStringTree ¶
func (s *ComplEscContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IAtomContext ¶
type IAtomContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAtomContext differentiates from other interfaces. IsAtomContext() }
IAtomContext is an interface to support dynamic dispatch.
type IBranchContext ¶
type IBranchContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBranchContext differentiates from other interfaces. IsBranchContext() }
IBranchContext is an interface to support dynamic dispatch.
type ICatEscContext ¶
type ICatEscContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCatEscContext differentiates from other interfaces. IsCatEscContext() }
ICatEscContext is an interface to support dynamic dispatch.
type ICharClassContext ¶
type ICharClassContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCharClassContext differentiates from other interfaces. IsCharClassContext() }
ICharClassContext is an interface to support dynamic dispatch.
type ICharClassEscContext ¶
type ICharClassEscContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCharClassEscContext differentiates from other interfaces. IsCharClassEscContext() }
ICharClassEscContext is an interface to support dynamic dispatch.
type ICharClassExprContext ¶
type ICharClassExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCharClassExprContext differentiates from other interfaces. IsCharClassExprContext() }
ICharClassExprContext is an interface to support dynamic dispatch.
type ICharGroupContext ¶
type ICharGroupContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCharGroupContext differentiates from other interfaces. IsCharGroupContext() }
ICharGroupContext is an interface to support dynamic dispatch.
type ICharOrEscContext ¶
type ICharOrEscContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCharOrEscContext differentiates from other interfaces. IsCharOrEscContext() }
ICharOrEscContext is an interface to support dynamic dispatch.
type ICharPropContext ¶
type ICharPropContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCharPropContext differentiates from other interfaces. IsCharPropContext() }
ICharPropContext is an interface to support dynamic dispatch.
type ICharRangeContext ¶
type ICharRangeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCharRangeContext differentiates from other interfaces. IsCharRangeContext() }
ICharRangeContext is an interface to support dynamic dispatch.
type IComplEscContext ¶
type IComplEscContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsComplEscContext differentiates from other interfaces. IsComplEscContext() }
IComplEscContext is an interface to support dynamic dispatch.
type IPieceContext ¶
type IPieceContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsPieceContext differentiates from other interfaces. IsPieceContext() }
IPieceContext is an interface to support dynamic dispatch.
type IPosCharGroupContext ¶
type IPosCharGroupContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsPosCharGroupContext differentiates from other interfaces. IsPosCharGroupContext() }
IPosCharGroupContext is an interface to support dynamic dispatch.
type IQuantMinContext ¶
type IQuantMinContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsQuantMinContext differentiates from other interfaces. IsQuantMinContext() }
IQuantMinContext is an interface to support dynamic dispatch.
type IQuantRangeContext ¶
type IQuantRangeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsQuantRangeContext differentiates from other interfaces. IsQuantRangeContext() }
IQuantRangeContext is an interface to support dynamic dispatch.
type IQuantifierContext ¶
type IQuantifierContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsQuantifierContext differentiates from other interfaces. IsQuantifierContext() }
IQuantifierContext is an interface to support dynamic dispatch.
type IQuantityContext ¶
type IQuantityContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsQuantityContext differentiates from other interfaces. IsQuantityContext() }
IQuantityContext is an interface to support dynamic dispatch.
type IRegExpContext ¶
type IRegExpContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRegExpContext differentiates from other interfaces. IsRegExpContext() }
IRegExpContext is an interface to support dynamic dispatch.
type IRootContext ¶
type IRootContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRootContext differentiates from other interfaces. IsRootContext() }
IRootContext is an interface to support dynamic dispatch.
type ISeRangeContext ¶
type ISeRangeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSeRangeContext differentiates from other interfaces. IsSeRangeContext() }
ISeRangeContext is an interface to support dynamic dispatch.
type PieceContext ¶
type PieceContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPieceContext ¶
func NewEmptyPieceContext() *PieceContext
func NewPieceContext ¶
func NewPieceContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PieceContext
func (*PieceContext) Atom ¶
func (s *PieceContext) Atom() IAtomContext
func (*PieceContext) EnterRule ¶
func (s *PieceContext) EnterRule(listener antlr.ParseTreeListener)
func (*PieceContext) ExitRule ¶
func (s *PieceContext) ExitRule(listener antlr.ParseTreeListener)
func (*PieceContext) GetParser ¶
func (s *PieceContext) GetParser() antlr.Parser
func (*PieceContext) GetRuleContext ¶
func (s *PieceContext) GetRuleContext() antlr.RuleContext
func (*PieceContext) IsPieceContext ¶
func (*PieceContext) IsPieceContext()
func (*PieceContext) Quantifier ¶
func (s *PieceContext) Quantifier() IQuantifierContext
func (*PieceContext) ToStringTree ¶
func (s *PieceContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type PosCharGroupContext ¶
type PosCharGroupContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPosCharGroupContext ¶
func NewEmptyPosCharGroupContext() *PosCharGroupContext
func NewPosCharGroupContext ¶
func NewPosCharGroupContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PosCharGroupContext
func (*PosCharGroupContext) AllCharClassEsc ¶
func (s *PosCharGroupContext) AllCharClassEsc() []ICharClassEscContext
func (*PosCharGroupContext) AllCharRange ¶
func (s *PosCharGroupContext) AllCharRange() []ICharRangeContext
func (*PosCharGroupContext) CharClassEsc ¶
func (s *PosCharGroupContext) CharClassEsc(i int) ICharClassEscContext
func (*PosCharGroupContext) CharRange ¶
func (s *PosCharGroupContext) CharRange(i int) ICharRangeContext
func (*PosCharGroupContext) DASH ¶
func (s *PosCharGroupContext) DASH() antlr.TerminalNode
func (*PosCharGroupContext) EnterRule ¶
func (s *PosCharGroupContext) EnterRule(listener antlr.ParseTreeListener)
func (*PosCharGroupContext) ExitRule ¶
func (s *PosCharGroupContext) ExitRule(listener antlr.ParseTreeListener)
func (*PosCharGroupContext) GetParser ¶
func (s *PosCharGroupContext) GetParser() antlr.Parser
func (*PosCharGroupContext) GetRuleContext ¶
func (s *PosCharGroupContext) GetRuleContext() antlr.RuleContext
func (*PosCharGroupContext) IsPosCharGroupContext ¶
func (*PosCharGroupContext) IsPosCharGroupContext()
func (*PosCharGroupContext) ToStringTree ¶
func (s *PosCharGroupContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type QuantMinContext ¶
type QuantMinContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyQuantMinContext ¶
func NewEmptyQuantMinContext() *QuantMinContext
func NewQuantMinContext ¶
func NewQuantMinContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QuantMinContext
func (*QuantMinContext) COMMA ¶
func (s *QuantMinContext) COMMA() antlr.TerminalNode
func (*QuantMinContext) EnterRule ¶
func (s *QuantMinContext) EnterRule(listener antlr.ParseTreeListener)
func (*QuantMinContext) ExitRule ¶
func (s *QuantMinContext) ExitRule(listener antlr.ParseTreeListener)
func (*QuantMinContext) GetParser ¶
func (s *QuantMinContext) GetParser() antlr.Parser
func (*QuantMinContext) GetRuleContext ¶
func (s *QuantMinContext) GetRuleContext() antlr.RuleContext
func (*QuantMinContext) IsQuantMinContext ¶
func (*QuantMinContext) IsQuantMinContext()
func (*QuantMinContext) QuantExact ¶
func (s *QuantMinContext) QuantExact() antlr.TerminalNode
func (*QuantMinContext) ToStringTree ¶
func (s *QuantMinContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type QuantRangeContext ¶
type QuantRangeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyQuantRangeContext ¶
func NewEmptyQuantRangeContext() *QuantRangeContext
func NewQuantRangeContext ¶
func NewQuantRangeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QuantRangeContext
func (*QuantRangeContext) AllQuantExact ¶
func (s *QuantRangeContext) AllQuantExact() []antlr.TerminalNode
func (*QuantRangeContext) COMMA ¶
func (s *QuantRangeContext) COMMA() antlr.TerminalNode
func (*QuantRangeContext) EnterRule ¶
func (s *QuantRangeContext) EnterRule(listener antlr.ParseTreeListener)
func (*QuantRangeContext) ExitRule ¶
func (s *QuantRangeContext) ExitRule(listener antlr.ParseTreeListener)
func (*QuantRangeContext) GetParser ¶
func (s *QuantRangeContext) GetParser() antlr.Parser
func (*QuantRangeContext) GetRuleContext ¶
func (s *QuantRangeContext) GetRuleContext() antlr.RuleContext
func (*QuantRangeContext) IsQuantRangeContext ¶
func (*QuantRangeContext) IsQuantRangeContext()
func (*QuantRangeContext) QuantExact ¶
func (s *QuantRangeContext) QuantExact(i int) antlr.TerminalNode
func (*QuantRangeContext) ToStringTree ¶
func (s *QuantRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type QuantifierContext ¶
type QuantifierContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyQuantifierContext ¶
func NewEmptyQuantifierContext() *QuantifierContext
func NewQuantifierContext ¶
func NewQuantifierContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QuantifierContext
func (*QuantifierContext) EndQuantity ¶
func (s *QuantifierContext) EndQuantity() antlr.TerminalNode
func (*QuantifierContext) EnterRule ¶
func (s *QuantifierContext) EnterRule(listener antlr.ParseTreeListener)
func (*QuantifierContext) ExitRule ¶
func (s *QuantifierContext) ExitRule(listener antlr.ParseTreeListener)
func (*QuantifierContext) GetParser ¶
func (s *QuantifierContext) GetParser() antlr.Parser
func (*QuantifierContext) GetRuleContext ¶
func (s *QuantifierContext) GetRuleContext() antlr.RuleContext
func (*QuantifierContext) IsQuantifierContext ¶
func (*QuantifierContext) IsQuantifierContext()
func (*QuantifierContext) PLUS ¶
func (s *QuantifierContext) PLUS() antlr.TerminalNode
func (*QuantifierContext) QUESTION ¶
func (s *QuantifierContext) QUESTION() antlr.TerminalNode
func (*QuantifierContext) Quantity ¶
func (s *QuantifierContext) Quantity() IQuantityContext
func (*QuantifierContext) STAR ¶
func (s *QuantifierContext) STAR() antlr.TerminalNode
func (*QuantifierContext) StartQuantity ¶
func (s *QuantifierContext) StartQuantity() antlr.TerminalNode
func (*QuantifierContext) ToStringTree ¶
func (s *QuantifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type QuantityContext ¶
type QuantityContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyQuantityContext ¶
func NewEmptyQuantityContext() *QuantityContext
func NewQuantityContext ¶
func NewQuantityContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QuantityContext
func (*QuantityContext) EnterRule ¶
func (s *QuantityContext) EnterRule(listener antlr.ParseTreeListener)
func (*QuantityContext) ExitRule ¶
func (s *QuantityContext) ExitRule(listener antlr.ParseTreeListener)
func (*QuantityContext) GetParser ¶
func (s *QuantityContext) GetParser() antlr.Parser
func (*QuantityContext) GetRuleContext ¶
func (s *QuantityContext) GetRuleContext() antlr.RuleContext
func (*QuantityContext) IsQuantityContext ¶
func (*QuantityContext) IsQuantityContext()
func (*QuantityContext) QuantExact ¶
func (s *QuantityContext) QuantExact() antlr.TerminalNode
func (*QuantityContext) QuantMin ¶
func (s *QuantityContext) QuantMin() IQuantMinContext
func (*QuantityContext) QuantRange ¶
func (s *QuantityContext) QuantRange() IQuantRangeContext
func (*QuantityContext) ToStringTree ¶
func (s *QuantityContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RegExpContext ¶
type RegExpContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRegExpContext ¶
func NewEmptyRegExpContext() *RegExpContext
func NewRegExpContext ¶
func NewRegExpContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RegExpContext
func (*RegExpContext) AllBranch ¶
func (s *RegExpContext) AllBranch() []IBranchContext
func (*RegExpContext) AllPIPE ¶
func (s *RegExpContext) AllPIPE() []antlr.TerminalNode
func (*RegExpContext) Branch ¶
func (s *RegExpContext) Branch(i int) IBranchContext
func (*RegExpContext) EnterRule ¶
func (s *RegExpContext) EnterRule(listener antlr.ParseTreeListener)
func (*RegExpContext) ExitRule ¶
func (s *RegExpContext) ExitRule(listener antlr.ParseTreeListener)
func (*RegExpContext) GetParser ¶
func (s *RegExpContext) GetParser() antlr.Parser
func (*RegExpContext) GetRuleContext ¶
func (s *RegExpContext) GetRuleContext() antlr.RuleContext
func (*RegExpContext) IsRegExpContext ¶
func (*RegExpContext) IsRegExpContext()
func (*RegExpContext) PIPE ¶
func (s *RegExpContext) PIPE(i int) antlr.TerminalNode
func (*RegExpContext) ToStringTree ¶
func (s *RegExpContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RootContext ¶
type RootContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRootContext ¶
func NewEmptyRootContext() *RootContext
func NewRootContext ¶
func NewRootContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RootContext
func (*RootContext) EOF ¶
func (s *RootContext) EOF() antlr.TerminalNode
func (*RootContext) EnterRule ¶
func (s *RootContext) EnterRule(listener antlr.ParseTreeListener)
func (*RootContext) ExitRule ¶
func (s *RootContext) ExitRule(listener antlr.ParseTreeListener)
func (*RootContext) GetParser ¶
func (s *RootContext) GetParser() antlr.Parser
func (*RootContext) GetRuleContext ¶
func (s *RootContext) GetRuleContext() antlr.RuleContext
func (*RootContext) IsRootContext ¶
func (*RootContext) IsRootContext()
func (*RootContext) RegExp ¶
func (s *RootContext) RegExp() IRegExpContext
func (*RootContext) ToStringTree ¶
func (s *RootContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SeRangeContext ¶
type SeRangeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySeRangeContext ¶
func NewEmptySeRangeContext() *SeRangeContext
func NewSeRangeContext ¶
func NewSeRangeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SeRangeContext
func (*SeRangeContext) AllCharOrEsc ¶
func (s *SeRangeContext) AllCharOrEsc() []ICharOrEscContext
func (*SeRangeContext) CharOrEsc ¶
func (s *SeRangeContext) CharOrEsc(i int) ICharOrEscContext
func (*SeRangeContext) DASH ¶
func (s *SeRangeContext) DASH() antlr.TerminalNode
func (*SeRangeContext) EnterRule ¶
func (s *SeRangeContext) EnterRule(listener antlr.ParseTreeListener)
func (*SeRangeContext) ExitRule ¶
func (s *SeRangeContext) ExitRule(listener antlr.ParseTreeListener)
func (*SeRangeContext) GetParser ¶
func (s *SeRangeContext) GetParser() antlr.Parser
func (*SeRangeContext) GetRuleContext ¶
func (s *SeRangeContext) GetRuleContext() antlr.RuleContext
func (*SeRangeContext) IsSeRangeContext ¶
func (*SeRangeContext) IsSeRangeContext()
func (*SeRangeContext) ToStringTree ¶
func (s *SeRangeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string