Documentation ¶
Index ¶
- func NewnpconfLexer(input antlr.CharStream) *npconfLexer
- func NewnpconfParser(input antlr.TokenStream) *npconfParser
- type BasenpconfListener
- func (s *BasenpconfListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasenpconfListener) EnterLine(ctx *LineContext)
- func (s *BasenpconfListener) EnterNpconf(ctx *NpconfContext)
- func (s *BasenpconfListener) EnterSection(ctx *SectionContext)
- func (s *BasenpconfListener) EnterSectionfooter(ctx *SectionfooterContext)
- func (s *BasenpconfListener) EnterSectionheader(ctx *SectionheaderContext)
- func (s *BasenpconfListener) EnterStr(ctx *StrContext)
- func (s *BasenpconfListener) EnterStringlist(ctx *StringlistContext)
- func (s *BasenpconfListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasenpconfListener) ExitLine(ctx *LineContext)
- func (s *BasenpconfListener) ExitNpconf(ctx *NpconfContext)
- func (s *BasenpconfListener) ExitSection(ctx *SectionContext)
- func (s *BasenpconfListener) ExitSectionfooter(ctx *SectionfooterContext)
- func (s *BasenpconfListener) ExitSectionheader(ctx *SectionheaderContext)
- func (s *BasenpconfListener) ExitStr(ctx *StrContext)
- func (s *BasenpconfListener) ExitStringlist(ctx *StringlistContext)
- func (s *BasenpconfListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BasenpconfListener) VisitTerminal(node antlr.TerminalNode)
- type ILineContext
- type INpconfContext
- type ISectionContext
- type ISectionfooterContext
- type ISectionheaderContext
- type IStrContext
- type IStringlistContext
- type LineContext
- func (s *LineContext) EOL() antlr.TerminalNode
- func (s *LineContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LineContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LineContext) GetParser() antlr.Parser
- func (s *LineContext) GetRuleContext() antlr.RuleContext
- func (*LineContext) IsLineContext()
- func (s *LineContext) Stringlist() IStringlistContext
- func (s *LineContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type NpconfContext
- func (s *NpconfContext) AllEOL() []antlr.TerminalNode
- func (s *NpconfContext) AllSection() []ISectionContext
- func (s *NpconfContext) EOL(i int) antlr.TerminalNode
- func (s *NpconfContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *NpconfContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *NpconfContext) GetParser() antlr.Parser
- func (s *NpconfContext) GetRuleContext() antlr.RuleContext
- func (*NpconfContext) IsNpconfContext()
- func (s *NpconfContext) Section(i int) ISectionContext
- func (s *NpconfContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SectionContext
- func (s *SectionContext) AllLine() []ILineContext
- func (s *SectionContext) AllSection() []ISectionContext
- func (s *SectionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SectionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SectionContext) GetParser() antlr.Parser
- func (s *SectionContext) GetRuleContext() antlr.RuleContext
- func (*SectionContext) IsSectionContext()
- func (s *SectionContext) Line(i int) ILineContext
- func (s *SectionContext) Section(i int) ISectionContext
- func (s *SectionContext) Sectionfooter() ISectionfooterContext
- func (s *SectionContext) Sectionheader() ISectionheaderContext
- func (s *SectionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SectionfooterContext
- func (s *SectionfooterContext) EOL() antlr.TerminalNode
- func (s *SectionfooterContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SectionfooterContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SectionfooterContext) GetParser() antlr.Parser
- func (s *SectionfooterContext) GetRuleContext() antlr.RuleContext
- func (*SectionfooterContext) IsSectionfooterContext()
- func (s *SectionfooterContext) Str() IStrContext
- func (s *SectionfooterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SectionheaderContext
- func (s *SectionheaderContext) EOL() antlr.TerminalNode
- func (s *SectionheaderContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SectionheaderContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SectionheaderContext) GetParser() antlr.Parser
- func (s *SectionheaderContext) GetRuleContext() antlr.RuleContext
- func (*SectionheaderContext) IsSectionheaderContext()
- func (s *SectionheaderContext) Str() IStrContext
- func (s *SectionheaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StrContext
- func (s *StrContext) CHARS() antlr.TerminalNode
- func (s *StrContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StrContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StrContext) GetParser() antlr.Parser
- func (s *StrContext) GetRuleContext() antlr.RuleContext
- func (*StrContext) IsStrContext()
- func (s *StrContext) STRING() antlr.TerminalNode
- func (s *StrContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StringlistContext
- func (s *StringlistContext) AllStr() []IStrContext
- func (s *StringlistContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StringlistContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StringlistContext) GetParser() antlr.Parser
- func (s *StringlistContext) GetRuleContext() antlr.RuleContext
- func (*StringlistContext) IsStringlistContext()
- func (s *StringlistContext) Str(i int) IStrContext
- func (s *StringlistContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewnpconfLexer ¶
func NewnpconfLexer(input antlr.CharStream) *npconfLexer
NewnpconfLexer produces a new lexer instance for the optional input antlr.CharStream.
The *npconfLexer instance produced may be reused by calling the SetInputStream method. The initial lexer configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.
func NewnpconfParser ¶
func NewnpconfParser(input antlr.TokenStream) *npconfParser
NewnpconfParser produces a new parser instance for the optional input antlr.TokenStream.
The *npconfParser instance produced may be reused by calling the SetInputStream method. The initial parser configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.
Types ¶
type BasenpconfListener ¶
type BasenpconfListener struct{}
BasenpconfListener is a complete listener for a parse tree produced by npconfParser.
func (*BasenpconfListener) EnterEveryRule ¶
func (s *BasenpconfListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BasenpconfListener) EnterLine ¶
func (s *BasenpconfListener) EnterLine(ctx *LineContext)
EnterLine is called when production line is entered.
func (*BasenpconfListener) EnterNpconf ¶
func (s *BasenpconfListener) EnterNpconf(ctx *NpconfContext)
EnterNpconf is called when production npconf is entered.
func (*BasenpconfListener) EnterSection ¶
func (s *BasenpconfListener) EnterSection(ctx *SectionContext)
EnterSection is called when production section is entered.
func (*BasenpconfListener) EnterSectionfooter ¶
func (s *BasenpconfListener) EnterSectionfooter(ctx *SectionfooterContext)
EnterSectionfooter is called when production sectionfooter is entered.
func (*BasenpconfListener) EnterSectionheader ¶
func (s *BasenpconfListener) EnterSectionheader(ctx *SectionheaderContext)
EnterSectionheader is called when production sectionheader is entered.
func (*BasenpconfListener) EnterStr ¶
func (s *BasenpconfListener) EnterStr(ctx *StrContext)
EnterStr is called when production str is entered.
func (*BasenpconfListener) EnterStringlist ¶
func (s *BasenpconfListener) EnterStringlist(ctx *StringlistContext)
EnterStringlist is called when production stringlist is entered.
func (*BasenpconfListener) ExitEveryRule ¶
func (s *BasenpconfListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BasenpconfListener) ExitLine ¶
func (s *BasenpconfListener) ExitLine(ctx *LineContext)
ExitLine is called when production line is exited.
func (*BasenpconfListener) ExitNpconf ¶
func (s *BasenpconfListener) ExitNpconf(ctx *NpconfContext)
ExitNpconf is called when production npconf is exited.
func (*BasenpconfListener) ExitSection ¶
func (s *BasenpconfListener) ExitSection(ctx *SectionContext)
ExitSection is called when production section is exited.
func (*BasenpconfListener) ExitSectionfooter ¶
func (s *BasenpconfListener) ExitSectionfooter(ctx *SectionfooterContext)
ExitSectionfooter is called when production sectionfooter is exited.
func (*BasenpconfListener) ExitSectionheader ¶
func (s *BasenpconfListener) ExitSectionheader(ctx *SectionheaderContext)
ExitSectionheader is called when production sectionheader is exited.
func (*BasenpconfListener) ExitStr ¶
func (s *BasenpconfListener) ExitStr(ctx *StrContext)
ExitStr is called when production str is exited.
func (*BasenpconfListener) ExitStringlist ¶
func (s *BasenpconfListener) ExitStringlist(ctx *StringlistContext)
ExitStringlist is called when production stringlist is exited.
func (*BasenpconfListener) VisitErrorNode ¶
func (s *BasenpconfListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BasenpconfListener) VisitTerminal ¶
func (s *BasenpconfListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type ILineContext ¶
type ILineContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLineContext differentiates from other interfaces. IsLineContext() }
ILineContext is an interface to support dynamic dispatch.
type INpconfContext ¶
type INpconfContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsNpconfContext differentiates from other interfaces. IsNpconfContext() }
INpconfContext is an interface to support dynamic dispatch.
type ISectionContext ¶
type ISectionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSectionContext differentiates from other interfaces. IsSectionContext() }
ISectionContext is an interface to support dynamic dispatch.
type ISectionfooterContext ¶
type ISectionfooterContext interface { antlr.ParserRuleContext GetParser() antlr.Parser IsSectionfooterContext() }
ISectionfooterContext is an interface to support dynamic dispatch.
type ISectionheaderContext ¶
type ISectionheaderContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSectionheaderContext differentiates from other interfaces. IsSectionheaderContext() }
ISectionheaderContext is an interface to support dynamic dispatch.
type IStrContext ¶
type IStrContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStrContext differentiates from other interfaces. IsStrContext() }
IStrContext is an interface to support dynamic dispatch.
type IStringlistContext ¶
type IStringlistContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStringlistContext differentiates from other interfaces. IsStringlistContext() }
IStringlistContext is an interface to support dynamic dispatch.
type LineContext ¶
type LineContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLineContext ¶
func NewEmptyLineContext() *LineContext
func NewLineContext ¶
func NewLineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LineContext
func (*LineContext) EOL ¶
func (s *LineContext) EOL() antlr.TerminalNode
func (*LineContext) EnterRule ¶
func (s *LineContext) EnterRule(listener antlr.ParseTreeListener)
func (*LineContext) ExitRule ¶
func (s *LineContext) ExitRule(listener antlr.ParseTreeListener)
func (*LineContext) GetParser ¶
func (s *LineContext) GetParser() antlr.Parser
func (*LineContext) GetRuleContext ¶
func (s *LineContext) GetRuleContext() antlr.RuleContext
func (*LineContext) IsLineContext ¶
func (*LineContext) IsLineContext()
func (*LineContext) Stringlist ¶
func (s *LineContext) Stringlist() IStringlistContext
func (*LineContext) ToStringTree ¶
func (s *LineContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type NpconfContext ¶
type NpconfContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNpconfContext ¶
func NewEmptyNpconfContext() *NpconfContext
func NewNpconfContext ¶
func NewNpconfContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NpconfContext
func (*NpconfContext) AllEOL ¶
func (s *NpconfContext) AllEOL() []antlr.TerminalNode
func (*NpconfContext) AllSection ¶
func (s *NpconfContext) AllSection() []ISectionContext
func (*NpconfContext) EOL ¶
func (s *NpconfContext) EOL(i int) antlr.TerminalNode
func (*NpconfContext) EnterRule ¶
func (s *NpconfContext) EnterRule(listener antlr.ParseTreeListener)
func (*NpconfContext) ExitRule ¶
func (s *NpconfContext) ExitRule(listener antlr.ParseTreeListener)
func (*NpconfContext) GetParser ¶
func (s *NpconfContext) GetParser() antlr.Parser
func (*NpconfContext) GetRuleContext ¶
func (s *NpconfContext) GetRuleContext() antlr.RuleContext
func (*NpconfContext) IsNpconfContext ¶
func (*NpconfContext) IsNpconfContext()
func (*NpconfContext) Section ¶
func (s *NpconfContext) Section(i int) ISectionContext
func (*NpconfContext) ToStringTree ¶
func (s *NpconfContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SectionContext ¶
type SectionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySectionContext ¶
func NewEmptySectionContext() *SectionContext
func NewSectionContext ¶
func NewSectionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SectionContext
func (*SectionContext) AllLine ¶
func (s *SectionContext) AllLine() []ILineContext
func (*SectionContext) AllSection ¶
func (s *SectionContext) AllSection() []ISectionContext
func (*SectionContext) EnterRule ¶
func (s *SectionContext) EnterRule(listener antlr.ParseTreeListener)
func (*SectionContext) ExitRule ¶
func (s *SectionContext) ExitRule(listener antlr.ParseTreeListener)
func (*SectionContext) GetParser ¶
func (s *SectionContext) GetParser() antlr.Parser
func (*SectionContext) GetRuleContext ¶
func (s *SectionContext) GetRuleContext() antlr.RuleContext
func (*SectionContext) IsSectionContext ¶
func (*SectionContext) IsSectionContext()
func (*SectionContext) Line ¶
func (s *SectionContext) Line(i int) ILineContext
func (*SectionContext) Section ¶
func (s *SectionContext) Section(i int) ISectionContext
func (*SectionContext) Sectionfooter ¶
func (s *SectionContext) Sectionfooter() ISectionfooterContext
func (*SectionContext) Sectionheader ¶
func (s *SectionContext) Sectionheader() ISectionheaderContext
func (*SectionContext) ToStringTree ¶
func (s *SectionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SectionfooterContext ¶
type SectionfooterContext struct { // contains filtered or unexported fields }
func NewEmptySectionfooterContext ¶
func NewEmptySectionfooterContext() *SectionfooterContext
func NewSectionfooterContext ¶
func NewSectionfooterContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SectionfooterContext
func (*SectionfooterContext) EOL ¶
func (s *SectionfooterContext) EOL() antlr.TerminalNode
func (*SectionfooterContext) EnterRule ¶
func (s *SectionfooterContext) EnterRule(listener antlr.ParseTreeListener)
func (*SectionfooterContext) ExitRule ¶
func (s *SectionfooterContext) ExitRule(listener antlr.ParseTreeListener)
func (*SectionfooterContext) GetParser ¶
func (s *SectionfooterContext) GetParser() antlr.Parser
func (*SectionfooterContext) GetRuleContext ¶
func (s *SectionfooterContext) GetRuleContext() antlr.RuleContext
func (*SectionfooterContext) IsSectionfooterContext ¶
func (*SectionfooterContext) IsSectionfooterContext()
func (*SectionfooterContext) Str ¶
func (s *SectionfooterContext) Str() IStrContext
func (*SectionfooterContext) ToStringTree ¶
func (s *SectionfooterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SectionheaderContext ¶
type SectionheaderContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySectionheaderContext ¶
func NewEmptySectionheaderContext() *SectionheaderContext
func NewSectionheaderContext ¶
func NewSectionheaderContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SectionheaderContext
func (*SectionheaderContext) EOL ¶
func (s *SectionheaderContext) EOL() antlr.TerminalNode
func (*SectionheaderContext) EnterRule ¶
func (s *SectionheaderContext) EnterRule(listener antlr.ParseTreeListener)
func (*SectionheaderContext) ExitRule ¶
func (s *SectionheaderContext) ExitRule(listener antlr.ParseTreeListener)
func (*SectionheaderContext) GetParser ¶
func (s *SectionheaderContext) GetParser() antlr.Parser
func (*SectionheaderContext) GetRuleContext ¶
func (s *SectionheaderContext) GetRuleContext() antlr.RuleContext
func (*SectionheaderContext) IsSectionheaderContext ¶
func (*SectionheaderContext) IsSectionheaderContext()
func (*SectionheaderContext) Str ¶
func (s *SectionheaderContext) Str() IStrContext
func (*SectionheaderContext) ToStringTree ¶
func (s *SectionheaderContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StrContext ¶
type StrContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStrContext ¶
func NewEmptyStrContext() *StrContext
func NewStrContext ¶
func NewStrContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StrContext
func (*StrContext) CHARS ¶
func (s *StrContext) CHARS() antlr.TerminalNode
func (*StrContext) EnterRule ¶
func (s *StrContext) EnterRule(listener antlr.ParseTreeListener)
func (*StrContext) ExitRule ¶
func (s *StrContext) ExitRule(listener antlr.ParseTreeListener)
func (*StrContext) GetParser ¶
func (s *StrContext) GetParser() antlr.Parser
func (*StrContext) GetRuleContext ¶
func (s *StrContext) GetRuleContext() antlr.RuleContext
func (*StrContext) IsStrContext ¶
func (*StrContext) IsStrContext()
func (*StrContext) STRING ¶
func (s *StrContext) STRING() antlr.TerminalNode
func (*StrContext) ToStringTree ¶
func (s *StrContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StringlistContext ¶
type StringlistContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStringlistContext ¶
func NewEmptyStringlistContext() *StringlistContext
func NewStringlistContext ¶
func NewStringlistContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StringlistContext
func (*StringlistContext) AllStr ¶
func (s *StringlistContext) AllStr() []IStrContext
func (*StringlistContext) EnterRule ¶
func (s *StringlistContext) EnterRule(listener antlr.ParseTreeListener)
func (*StringlistContext) ExitRule ¶
func (s *StringlistContext) ExitRule(listener antlr.ParseTreeListener)
func (*StringlistContext) GetParser ¶
func (s *StringlistContext) GetParser() antlr.Parser
func (*StringlistContext) GetRuleContext ¶
func (s *StringlistContext) GetRuleContext() antlr.RuleContext
func (*StringlistContext) IsStringlistContext ¶
func (*StringlistContext) IsStringlistContext()
func (*StringlistContext) Str ¶
func (s *StringlistContext) Str(i int) IStrContext
func (*StringlistContext) ToStringTree ¶
func (s *StringlistContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string