Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/bnf" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" ) type exampleListener struct { *bnf.BasebnfListener } 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 := bnf.NewbnfLexer(is) stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) // Create the Parser p := bnf.NewbnfParser(stream) p.BuildParseTrees = true p.AddErrorListener(antlr.NewDiagnosticErrorListener(true)) // Finally walk the tree tree := p.Rulelist() antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree) }
Output:
Index ¶
- func NewbnfLexer(input antlr.CharStream) *bnfLexer
- func NewbnfParser(input antlr.TokenStream) *bnfParser
- type AlternativeContext
- func (s *AlternativeContext) AllElement() []IElementContext
- func (s *AlternativeContext) Element(i int) IElementContext
- func (s *AlternativeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AlternativeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AlternativeContext) GetParser() antlr.Parser
- func (s *AlternativeContext) GetRuleContext() antlr.RuleContext
- func (*AlternativeContext) IsAlternativeContext()
- func (s *AlternativeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AlternativesContext
- func (s *AlternativesContext) AllAlternative() []IAlternativeContext
- func (s *AlternativesContext) AllBAR() []antlr.TerminalNode
- func (s *AlternativesContext) Alternative(i int) IAlternativeContext
- func (s *AlternativesContext) BAR(i int) antlr.TerminalNode
- func (s *AlternativesContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AlternativesContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AlternativesContext) GetParser() antlr.Parser
- func (s *AlternativesContext) GetRuleContext() antlr.RuleContext
- func (*AlternativesContext) IsAlternativesContext()
- func (s *AlternativesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BasebnfListener
- func (s *BasebnfListener) EnterAlternative(ctx *AlternativeContext)
- func (s *BasebnfListener) EnterAlternatives(ctx *AlternativesContext)
- func (s *BasebnfListener) EnterElement(ctx *ElementContext)
- func (s *BasebnfListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasebnfListener) EnterId(ctx *IdContext)
- func (s *BasebnfListener) EnterLhs(ctx *LhsContext)
- func (s *BasebnfListener) EnterOneormore(ctx *OneormoreContext)
- func (s *BasebnfListener) EnterOptional(ctx *OptionalContext)
- func (s *BasebnfListener) EnterRhs(ctx *RhsContext)
- func (s *BasebnfListener) EnterRule_(ctx *Rule_Context)
- func (s *BasebnfListener) EnterRuleid(ctx *RuleidContext)
- func (s *BasebnfListener) EnterRulelist(ctx *RulelistContext)
- func (s *BasebnfListener) EnterText(ctx *TextContext)
- func (s *BasebnfListener) EnterZeroormore(ctx *ZeroormoreContext)
- func (s *BasebnfListener) ExitAlternative(ctx *AlternativeContext)
- func (s *BasebnfListener) ExitAlternatives(ctx *AlternativesContext)
- func (s *BasebnfListener) ExitElement(ctx *ElementContext)
- func (s *BasebnfListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasebnfListener) ExitId(ctx *IdContext)
- func (s *BasebnfListener) ExitLhs(ctx *LhsContext)
- func (s *BasebnfListener) ExitOneormore(ctx *OneormoreContext)
- func (s *BasebnfListener) ExitOptional(ctx *OptionalContext)
- func (s *BasebnfListener) ExitRhs(ctx *RhsContext)
- func (s *BasebnfListener) ExitRule_(ctx *Rule_Context)
- func (s *BasebnfListener) ExitRuleid(ctx *RuleidContext)
- func (s *BasebnfListener) ExitRulelist(ctx *RulelistContext)
- func (s *BasebnfListener) ExitText(ctx *TextContext)
- func (s *BasebnfListener) ExitZeroormore(ctx *ZeroormoreContext)
- func (s *BasebnfListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BasebnfListener) VisitTerminal(node antlr.TerminalNode)
- type ElementContext
- func (s *ElementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ElementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ElementContext) GetParser() antlr.Parser
- func (s *ElementContext) GetRuleContext() antlr.RuleContext
- func (s *ElementContext) Id() IIdContext
- func (*ElementContext) IsElementContext()
- func (s *ElementContext) Oneormore() IOneormoreContext
- func (s *ElementContext) Optional() IOptionalContext
- func (s *ElementContext) Text() ITextContext
- func (s *ElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ElementContext) Zeroormore() IZeroormoreContext
- type IAlternativeContext
- type IAlternativesContext
- type IElementContext
- type IIdContext
- type ILhsContext
- type IOneormoreContext
- type IOptionalContext
- type IRhsContext
- type IRule_Context
- type IRuleidContext
- type IRulelistContext
- type ITextContext
- type IZeroormoreContext
- type IdContext
- func (s *IdContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IdContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IdContext) GT() antlr.TerminalNode
- func (s *IdContext) GetParser() antlr.Parser
- func (s *IdContext) GetRuleContext() antlr.RuleContext
- func (*IdContext) IsIdContext()
- func (s *IdContext) LT() antlr.TerminalNode
- func (s *IdContext) Ruleid() IRuleidContext
- func (s *IdContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LhsContext
- func (s *LhsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LhsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LhsContext) GetParser() antlr.Parser
- func (s *LhsContext) GetRuleContext() antlr.RuleContext
- func (s *LhsContext) Id() IIdContext
- func (*LhsContext) IsLhsContext()
- func (s *LhsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type OneormoreContext
- func (s *OneormoreContext) Alternatives() IAlternativesContext
- func (s *OneormoreContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *OneormoreContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *OneormoreContext) GetParser() antlr.Parser
- func (s *OneormoreContext) GetRuleContext() antlr.RuleContext
- func (*OneormoreContext) IsOneormoreContext()
- func (s *OneormoreContext) LPAREN() antlr.TerminalNode
- func (s *OneormoreContext) RPAREN() antlr.TerminalNode
- func (s *OneormoreContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type OptionalContext
- func (s *OptionalContext) Alternatives() IAlternativesContext
- func (s *OptionalContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *OptionalContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *OptionalContext) GetParser() antlr.Parser
- func (s *OptionalContext) GetRuleContext() antlr.RuleContext
- func (*OptionalContext) IsOptionalContext()
- func (s *OptionalContext) LEND() antlr.TerminalNode
- func (s *OptionalContext) REND() antlr.TerminalNode
- func (s *OptionalContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RhsContext
- func (s *RhsContext) Alternatives() IAlternativesContext
- func (s *RhsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RhsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RhsContext) GetParser() antlr.Parser
- func (s *RhsContext) GetRuleContext() antlr.RuleContext
- func (*RhsContext) IsRhsContext()
- func (s *RhsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Rule_Context
- func (s *Rule_Context) ASSIGN() antlr.TerminalNode
- func (s *Rule_Context) EnterRule(listener antlr.ParseTreeListener)
- func (s *Rule_Context) ExitRule(listener antlr.ParseTreeListener)
- func (s *Rule_Context) GetParser() antlr.Parser
- func (s *Rule_Context) GetRuleContext() antlr.RuleContext
- func (*Rule_Context) IsRule_Context()
- func (s *Rule_Context) Lhs() ILhsContext
- func (s *Rule_Context) Rhs() IRhsContext
- func (s *Rule_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RuleidContext
- func (s *RuleidContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RuleidContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RuleidContext) GetParser() antlr.Parser
- func (s *RuleidContext) GetRuleContext() antlr.RuleContext
- func (s *RuleidContext) ID() antlr.TerminalNode
- func (*RuleidContext) IsRuleidContext()
- func (s *RuleidContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RulelistContext
- func (s *RulelistContext) AllRule_() []IRule_Context
- func (s *RulelistContext) EOF() antlr.TerminalNode
- func (s *RulelistContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RulelistContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RulelistContext) GetParser() antlr.Parser
- func (s *RulelistContext) GetRuleContext() antlr.RuleContext
- func (*RulelistContext) IsRulelistContext()
- func (s *RulelistContext) Rule_(i int) IRule_Context
- func (s *RulelistContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TextContext
- func (s *TextContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TextContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TextContext) GetParser() antlr.Parser
- func (s *TextContext) GetRuleContext() antlr.RuleContext
- func (s *TextContext) ID() antlr.TerminalNode
- func (*TextContext) IsTextContext()
- func (s *TextContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ZeroormoreContext
- func (s *ZeroormoreContext) Alternatives() IAlternativesContext
- func (s *ZeroormoreContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ZeroormoreContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ZeroormoreContext) GetParser() antlr.Parser
- func (s *ZeroormoreContext) GetRuleContext() antlr.RuleContext
- func (*ZeroormoreContext) IsZeroormoreContext()
- func (s *ZeroormoreContext) LBRACE() antlr.TerminalNode
- func (s *ZeroormoreContext) RBRACE() antlr.TerminalNode
- func (s *ZeroormoreContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewbnfLexer ¶
func NewbnfLexer(input antlr.CharStream) *bnfLexer
func NewbnfParser ¶
func NewbnfParser(input antlr.TokenStream) *bnfParser
Types ¶
type AlternativeContext ¶
type AlternativeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAlternativeContext ¶
func NewAlternativeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AlternativeContext
func NewEmptyAlternativeContext ¶
func NewEmptyAlternativeContext() *AlternativeContext
func (*AlternativeContext) AllElement ¶
func (s *AlternativeContext) AllElement() []IElementContext
func (*AlternativeContext) Element ¶
func (s *AlternativeContext) Element(i int) IElementContext
func (*AlternativeContext) EnterRule ¶
func (s *AlternativeContext) EnterRule(listener antlr.ParseTreeListener)
func (*AlternativeContext) ExitRule ¶
func (s *AlternativeContext) ExitRule(listener antlr.ParseTreeListener)
func (*AlternativeContext) GetParser ¶
func (s *AlternativeContext) GetParser() antlr.Parser
func (*AlternativeContext) GetRuleContext ¶
func (s *AlternativeContext) GetRuleContext() antlr.RuleContext
func (*AlternativeContext) IsAlternativeContext ¶
func (*AlternativeContext) IsAlternativeContext()
func (*AlternativeContext) ToStringTree ¶
func (s *AlternativeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type AlternativesContext ¶
type AlternativesContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAlternativesContext ¶
func NewAlternativesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AlternativesContext
func NewEmptyAlternativesContext ¶
func NewEmptyAlternativesContext() *AlternativesContext
func (*AlternativesContext) AllAlternative ¶
func (s *AlternativesContext) AllAlternative() []IAlternativeContext
func (*AlternativesContext) AllBAR ¶
func (s *AlternativesContext) AllBAR() []antlr.TerminalNode
func (*AlternativesContext) Alternative ¶
func (s *AlternativesContext) Alternative(i int) IAlternativeContext
func (*AlternativesContext) BAR ¶
func (s *AlternativesContext) BAR(i int) antlr.TerminalNode
func (*AlternativesContext) EnterRule ¶
func (s *AlternativesContext) EnterRule(listener antlr.ParseTreeListener)
func (*AlternativesContext) ExitRule ¶
func (s *AlternativesContext) ExitRule(listener antlr.ParseTreeListener)
func (*AlternativesContext) GetParser ¶
func (s *AlternativesContext) GetParser() antlr.Parser
func (*AlternativesContext) GetRuleContext ¶
func (s *AlternativesContext) GetRuleContext() antlr.RuleContext
func (*AlternativesContext) IsAlternativesContext ¶
func (*AlternativesContext) IsAlternativesContext()
func (*AlternativesContext) ToStringTree ¶
func (s *AlternativesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BasebnfListener ¶
type BasebnfListener struct{}
BasebnfListener is a complete listener for a parse tree produced by bnfParser.
func (*BasebnfListener) EnterAlternative ¶
func (s *BasebnfListener) EnterAlternative(ctx *AlternativeContext)
EnterAlternative is called when production alternative is entered.
func (*BasebnfListener) EnterAlternatives ¶
func (s *BasebnfListener) EnterAlternatives(ctx *AlternativesContext)
EnterAlternatives is called when production alternatives is entered.
func (*BasebnfListener) EnterElement ¶
func (s *BasebnfListener) EnterElement(ctx *ElementContext)
EnterElement is called when production element is entered.
func (*BasebnfListener) EnterEveryRule ¶
func (s *BasebnfListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BasebnfListener) EnterId ¶
func (s *BasebnfListener) EnterId(ctx *IdContext)
EnterId is called when production id is entered.
func (*BasebnfListener) EnterLhs ¶
func (s *BasebnfListener) EnterLhs(ctx *LhsContext)
EnterLhs is called when production lhs is entered.
func (*BasebnfListener) EnterOneormore ¶
func (s *BasebnfListener) EnterOneormore(ctx *OneormoreContext)
EnterOneormore is called when production oneormore is entered.
func (*BasebnfListener) EnterOptional ¶
func (s *BasebnfListener) EnterOptional(ctx *OptionalContext)
EnterOptional is called when production optional is entered.
func (*BasebnfListener) EnterRhs ¶
func (s *BasebnfListener) EnterRhs(ctx *RhsContext)
EnterRhs is called when production rhs is entered.
func (*BasebnfListener) EnterRule_ ¶
func (s *BasebnfListener) EnterRule_(ctx *Rule_Context)
EnterRule_ is called when production rule_ is entered.
func (*BasebnfListener) EnterRuleid ¶
func (s *BasebnfListener) EnterRuleid(ctx *RuleidContext)
EnterRuleid is called when production ruleid is entered.
func (*BasebnfListener) EnterRulelist ¶
func (s *BasebnfListener) EnterRulelist(ctx *RulelistContext)
EnterRulelist is called when production rulelist is entered.
func (*BasebnfListener) EnterText ¶
func (s *BasebnfListener) EnterText(ctx *TextContext)
EnterText is called when production text is entered.
func (*BasebnfListener) EnterZeroormore ¶
func (s *BasebnfListener) EnterZeroormore(ctx *ZeroormoreContext)
EnterZeroormore is called when production zeroormore is entered.
func (*BasebnfListener) ExitAlternative ¶
func (s *BasebnfListener) ExitAlternative(ctx *AlternativeContext)
ExitAlternative is called when production alternative is exited.
func (*BasebnfListener) ExitAlternatives ¶
func (s *BasebnfListener) ExitAlternatives(ctx *AlternativesContext)
ExitAlternatives is called when production alternatives is exited.
func (*BasebnfListener) ExitElement ¶
func (s *BasebnfListener) ExitElement(ctx *ElementContext)
ExitElement is called when production element is exited.
func (*BasebnfListener) ExitEveryRule ¶
func (s *BasebnfListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BasebnfListener) ExitId ¶
func (s *BasebnfListener) ExitId(ctx *IdContext)
ExitId is called when production id is exited.
func (*BasebnfListener) ExitLhs ¶
func (s *BasebnfListener) ExitLhs(ctx *LhsContext)
ExitLhs is called when production lhs is exited.
func (*BasebnfListener) ExitOneormore ¶
func (s *BasebnfListener) ExitOneormore(ctx *OneormoreContext)
ExitOneormore is called when production oneormore is exited.
func (*BasebnfListener) ExitOptional ¶
func (s *BasebnfListener) ExitOptional(ctx *OptionalContext)
ExitOptional is called when production optional is exited.
func (*BasebnfListener) ExitRhs ¶
func (s *BasebnfListener) ExitRhs(ctx *RhsContext)
ExitRhs is called when production rhs is exited.
func (*BasebnfListener) ExitRule_ ¶
func (s *BasebnfListener) ExitRule_(ctx *Rule_Context)
ExitRule_ is called when production rule_ is exited.
func (*BasebnfListener) ExitRuleid ¶
func (s *BasebnfListener) ExitRuleid(ctx *RuleidContext)
ExitRuleid is called when production ruleid is exited.
func (*BasebnfListener) ExitRulelist ¶
func (s *BasebnfListener) ExitRulelist(ctx *RulelistContext)
ExitRulelist is called when production rulelist is exited.
func (*BasebnfListener) ExitText ¶
func (s *BasebnfListener) ExitText(ctx *TextContext)
ExitText is called when production text is exited.
func (*BasebnfListener) ExitZeroormore ¶
func (s *BasebnfListener) ExitZeroormore(ctx *ZeroormoreContext)
ExitZeroormore is called when production zeroormore is exited.
func (*BasebnfListener) VisitErrorNode ¶
func (s *BasebnfListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BasebnfListener) VisitTerminal ¶
func (s *BasebnfListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type ElementContext ¶
type ElementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewElementContext ¶
func NewElementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElementContext
func NewEmptyElementContext ¶
func NewEmptyElementContext() *ElementContext
func (*ElementContext) EnterRule ¶
func (s *ElementContext) EnterRule(listener antlr.ParseTreeListener)
func (*ElementContext) ExitRule ¶
func (s *ElementContext) ExitRule(listener antlr.ParseTreeListener)
func (*ElementContext) GetParser ¶
func (s *ElementContext) GetParser() antlr.Parser
func (*ElementContext) GetRuleContext ¶
func (s *ElementContext) GetRuleContext() antlr.RuleContext
func (*ElementContext) Id ¶
func (s *ElementContext) Id() IIdContext
func (*ElementContext) IsElementContext ¶
func (*ElementContext) IsElementContext()
func (*ElementContext) Oneormore ¶
func (s *ElementContext) Oneormore() IOneormoreContext
func (*ElementContext) Optional ¶
func (s *ElementContext) Optional() IOptionalContext
func (*ElementContext) Text ¶
func (s *ElementContext) Text() ITextContext
func (*ElementContext) ToStringTree ¶
func (s *ElementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ElementContext) Zeroormore ¶
func (s *ElementContext) Zeroormore() IZeroormoreContext
type IAlternativeContext ¶
type IAlternativeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAlternativeContext differentiates from other interfaces. IsAlternativeContext() }
IAlternativeContext is an interface to support dynamic dispatch.
type IAlternativesContext ¶
type IAlternativesContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAlternativesContext differentiates from other interfaces. IsAlternativesContext() }
IAlternativesContext is an interface to support dynamic dispatch.
type IElementContext ¶
type IElementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsElementContext differentiates from other interfaces. IsElementContext() }
IElementContext is an interface to support dynamic dispatch.
type IIdContext ¶
type IIdContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIdContext differentiates from other interfaces. IsIdContext() }
IIdContext is an interface to support dynamic dispatch.
type ILhsContext ¶
type ILhsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLhsContext differentiates from other interfaces. IsLhsContext() }
ILhsContext is an interface to support dynamic dispatch.
type IOneormoreContext ¶
type IOneormoreContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsOneormoreContext differentiates from other interfaces. IsOneormoreContext() }
IOneormoreContext is an interface to support dynamic dispatch.
type IOptionalContext ¶
type IOptionalContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsOptionalContext differentiates from other interfaces. IsOptionalContext() }
IOptionalContext is an interface to support dynamic dispatch.
type IRhsContext ¶
type IRhsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRhsContext differentiates from other interfaces. IsRhsContext() }
IRhsContext is an interface to support dynamic dispatch.
type IRule_Context ¶
type IRule_Context interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRule_Context differentiates from other interfaces. IsRule_Context() }
IRule_Context is an interface to support dynamic dispatch.
type IRuleidContext ¶
type IRuleidContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRuleidContext differentiates from other interfaces. IsRuleidContext() }
IRuleidContext is an interface to support dynamic dispatch.
type IRulelistContext ¶
type IRulelistContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRulelistContext differentiates from other interfaces. IsRulelistContext() }
IRulelistContext is an interface to support dynamic dispatch.
type ITextContext ¶
type ITextContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTextContext differentiates from other interfaces. IsTextContext() }
ITextContext is an interface to support dynamic dispatch.
type IZeroormoreContext ¶
type IZeroormoreContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsZeroormoreContext differentiates from other interfaces. IsZeroormoreContext() }
IZeroormoreContext is an interface to support dynamic dispatch.
type IdContext ¶
type IdContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIdContext ¶
func NewEmptyIdContext() *IdContext
func NewIdContext ¶
func (*IdContext) EnterRule ¶
func (s *IdContext) EnterRule(listener antlr.ParseTreeListener)
func (*IdContext) ExitRule ¶
func (s *IdContext) ExitRule(listener antlr.ParseTreeListener)
func (*IdContext) GT ¶
func (s *IdContext) GT() antlr.TerminalNode
func (*IdContext) GetRuleContext ¶
func (s *IdContext) GetRuleContext() antlr.RuleContext
func (*IdContext) IsIdContext ¶
func (*IdContext) IsIdContext()
func (*IdContext) LT ¶
func (s *IdContext) LT() antlr.TerminalNode
func (*IdContext) Ruleid ¶
func (s *IdContext) Ruleid() IRuleidContext
func (*IdContext) ToStringTree ¶
func (s *IdContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LhsContext ¶
type LhsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLhsContext ¶
func NewEmptyLhsContext() *LhsContext
func NewLhsContext ¶
func NewLhsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LhsContext
func (*LhsContext) EnterRule ¶
func (s *LhsContext) EnterRule(listener antlr.ParseTreeListener)
func (*LhsContext) ExitRule ¶
func (s *LhsContext) ExitRule(listener antlr.ParseTreeListener)
func (*LhsContext) GetParser ¶
func (s *LhsContext) GetParser() antlr.Parser
func (*LhsContext) GetRuleContext ¶
func (s *LhsContext) GetRuleContext() antlr.RuleContext
func (*LhsContext) Id ¶
func (s *LhsContext) Id() IIdContext
func (*LhsContext) IsLhsContext ¶
func (*LhsContext) IsLhsContext()
func (*LhsContext) ToStringTree ¶
func (s *LhsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type OneormoreContext ¶
type OneormoreContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyOneormoreContext ¶
func NewEmptyOneormoreContext() *OneormoreContext
func NewOneormoreContext ¶
func NewOneormoreContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OneormoreContext
func (*OneormoreContext) Alternatives ¶
func (s *OneormoreContext) Alternatives() IAlternativesContext
func (*OneormoreContext) EnterRule ¶
func (s *OneormoreContext) EnterRule(listener antlr.ParseTreeListener)
func (*OneormoreContext) ExitRule ¶
func (s *OneormoreContext) ExitRule(listener antlr.ParseTreeListener)
func (*OneormoreContext) GetParser ¶
func (s *OneormoreContext) GetParser() antlr.Parser
func (*OneormoreContext) GetRuleContext ¶
func (s *OneormoreContext) GetRuleContext() antlr.RuleContext
func (*OneormoreContext) IsOneormoreContext ¶
func (*OneormoreContext) IsOneormoreContext()
func (*OneormoreContext) LPAREN ¶
func (s *OneormoreContext) LPAREN() antlr.TerminalNode
func (*OneormoreContext) RPAREN ¶
func (s *OneormoreContext) RPAREN() antlr.TerminalNode
func (*OneormoreContext) ToStringTree ¶
func (s *OneormoreContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type OptionalContext ¶
type OptionalContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyOptionalContext ¶
func NewEmptyOptionalContext() *OptionalContext
func NewOptionalContext ¶
func NewOptionalContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OptionalContext
func (*OptionalContext) Alternatives ¶
func (s *OptionalContext) Alternatives() IAlternativesContext
func (*OptionalContext) EnterRule ¶
func (s *OptionalContext) EnterRule(listener antlr.ParseTreeListener)
func (*OptionalContext) ExitRule ¶
func (s *OptionalContext) ExitRule(listener antlr.ParseTreeListener)
func (*OptionalContext) GetParser ¶
func (s *OptionalContext) GetParser() antlr.Parser
func (*OptionalContext) GetRuleContext ¶
func (s *OptionalContext) GetRuleContext() antlr.RuleContext
func (*OptionalContext) IsOptionalContext ¶
func (*OptionalContext) IsOptionalContext()
func (*OptionalContext) LEND ¶
func (s *OptionalContext) LEND() antlr.TerminalNode
func (*OptionalContext) REND ¶
func (s *OptionalContext) REND() antlr.TerminalNode
func (*OptionalContext) ToStringTree ¶
func (s *OptionalContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RhsContext ¶
type RhsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRhsContext ¶
func NewEmptyRhsContext() *RhsContext
func NewRhsContext ¶
func NewRhsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RhsContext
func (*RhsContext) Alternatives ¶
func (s *RhsContext) Alternatives() IAlternativesContext
func (*RhsContext) EnterRule ¶
func (s *RhsContext) EnterRule(listener antlr.ParseTreeListener)
func (*RhsContext) ExitRule ¶
func (s *RhsContext) ExitRule(listener antlr.ParseTreeListener)
func (*RhsContext) GetParser ¶
func (s *RhsContext) GetParser() antlr.Parser
func (*RhsContext) GetRuleContext ¶
func (s *RhsContext) GetRuleContext() antlr.RuleContext
func (*RhsContext) IsRhsContext ¶
func (*RhsContext) IsRhsContext()
func (*RhsContext) ToStringTree ¶
func (s *RhsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Rule_Context ¶
type Rule_Context struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRule_Context ¶
func NewEmptyRule_Context() *Rule_Context
func NewRule_Context ¶
func NewRule_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Rule_Context
func (*Rule_Context) ASSIGN ¶
func (s *Rule_Context) ASSIGN() antlr.TerminalNode
func (*Rule_Context) EnterRule ¶
func (s *Rule_Context) EnterRule(listener antlr.ParseTreeListener)
func (*Rule_Context) ExitRule ¶
func (s *Rule_Context) ExitRule(listener antlr.ParseTreeListener)
func (*Rule_Context) GetParser ¶
func (s *Rule_Context) GetParser() antlr.Parser
func (*Rule_Context) GetRuleContext ¶
func (s *Rule_Context) GetRuleContext() antlr.RuleContext
func (*Rule_Context) IsRule_Context ¶
func (*Rule_Context) IsRule_Context()
func (*Rule_Context) Lhs ¶
func (s *Rule_Context) Lhs() ILhsContext
func (*Rule_Context) Rhs ¶
func (s *Rule_Context) Rhs() IRhsContext
func (*Rule_Context) ToStringTree ¶
func (s *Rule_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RuleidContext ¶
type RuleidContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRuleidContext ¶
func NewEmptyRuleidContext() *RuleidContext
func NewRuleidContext ¶
func NewRuleidContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RuleidContext
func (*RuleidContext) EnterRule ¶
func (s *RuleidContext) EnterRule(listener antlr.ParseTreeListener)
func (*RuleidContext) ExitRule ¶
func (s *RuleidContext) ExitRule(listener antlr.ParseTreeListener)
func (*RuleidContext) GetParser ¶
func (s *RuleidContext) GetParser() antlr.Parser
func (*RuleidContext) GetRuleContext ¶
func (s *RuleidContext) GetRuleContext() antlr.RuleContext
func (*RuleidContext) ID ¶
func (s *RuleidContext) ID() antlr.TerminalNode
func (*RuleidContext) IsRuleidContext ¶
func (*RuleidContext) IsRuleidContext()
func (*RuleidContext) ToStringTree ¶
func (s *RuleidContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RulelistContext ¶
type RulelistContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRulelistContext ¶
func NewEmptyRulelistContext() *RulelistContext
func NewRulelistContext ¶
func NewRulelistContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RulelistContext
func (*RulelistContext) AllRule_ ¶
func (s *RulelistContext) AllRule_() []IRule_Context
func (*RulelistContext) EOF ¶
func (s *RulelistContext) EOF() antlr.TerminalNode
func (*RulelistContext) EnterRule ¶
func (s *RulelistContext) EnterRule(listener antlr.ParseTreeListener)
func (*RulelistContext) ExitRule ¶
func (s *RulelistContext) ExitRule(listener antlr.ParseTreeListener)
func (*RulelistContext) GetParser ¶
func (s *RulelistContext) GetParser() antlr.Parser
func (*RulelistContext) GetRuleContext ¶
func (s *RulelistContext) GetRuleContext() antlr.RuleContext
func (*RulelistContext) IsRulelistContext ¶
func (*RulelistContext) IsRulelistContext()
func (*RulelistContext) Rule_ ¶
func (s *RulelistContext) Rule_(i int) IRule_Context
func (*RulelistContext) ToStringTree ¶
func (s *RulelistContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TextContext ¶
type TextContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTextContext ¶
func NewEmptyTextContext() *TextContext
func NewTextContext ¶
func NewTextContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TextContext
func (*TextContext) EnterRule ¶
func (s *TextContext) EnterRule(listener antlr.ParseTreeListener)
func (*TextContext) ExitRule ¶
func (s *TextContext) ExitRule(listener antlr.ParseTreeListener)
func (*TextContext) GetParser ¶
func (s *TextContext) GetParser() antlr.Parser
func (*TextContext) GetRuleContext ¶
func (s *TextContext) GetRuleContext() antlr.RuleContext
func (*TextContext) ID ¶
func (s *TextContext) ID() antlr.TerminalNode
func (*TextContext) IsTextContext ¶
func (*TextContext) IsTextContext()
func (*TextContext) ToStringTree ¶
func (s *TextContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ZeroormoreContext ¶
type ZeroormoreContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyZeroormoreContext ¶
func NewEmptyZeroormoreContext() *ZeroormoreContext
func NewZeroormoreContext ¶
func NewZeroormoreContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ZeroormoreContext
func (*ZeroormoreContext) Alternatives ¶
func (s *ZeroormoreContext) Alternatives() IAlternativesContext
func (*ZeroormoreContext) EnterRule ¶
func (s *ZeroormoreContext) EnterRule(listener antlr.ParseTreeListener)
func (*ZeroormoreContext) ExitRule ¶
func (s *ZeroormoreContext) ExitRule(listener antlr.ParseTreeListener)
func (*ZeroormoreContext) GetParser ¶
func (s *ZeroormoreContext) GetParser() antlr.Parser
func (*ZeroormoreContext) GetRuleContext ¶
func (s *ZeroormoreContext) GetRuleContext() antlr.RuleContext
func (*ZeroormoreContext) IsZeroormoreContext ¶
func (*ZeroormoreContext) IsZeroormoreContext()
func (*ZeroormoreContext) LBRACE ¶
func (s *ZeroormoreContext) LBRACE() antlr.TerminalNode
func (*ZeroormoreContext) RBRACE ¶
func (s *ZeroormoreContext) RBRACE() antlr.TerminalNode
func (*ZeroormoreContext) ToStringTree ¶
func (s *ZeroormoreContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string