abnf

package
v0.0.0-...-4c43aeb Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Example
package main

import (
	"bramp.net/antlr4/abnf"

	"fmt"
	"github.com/antlr/antlr4/runtime/Go/antlr"
)

type exampleListener struct {
	*abnf.BaseAbnfListener
}

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 := abnf.NewAbnfLexer(is)
	stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel)

	// Create the Parser
	p := abnf.NewAbnfParser(stream)
	p.BuildParseTrees = true
	p.AddErrorListener(antlr.NewDiagnosticErrorListener(true))

	// Finally walk the tree
	tree := p.Rulelist()
	antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree)
}
Output:

Index

Examples

Constants

View Source
const (
	AbnfLexerT__0        = 1
	AbnfLexerT__1        = 2
	AbnfLexerT__2        = 3
	AbnfLexerT__3        = 4
	AbnfLexerT__4        = 5
	AbnfLexerT__5        = 6
	AbnfLexerT__6        = 7
	AbnfLexerNumberValue = 8
	AbnfLexerProseValue  = 9
	AbnfLexerID          = 10
	AbnfLexerINT         = 11
	AbnfLexerCOMMENT     = 12
	AbnfLexerWS          = 13
	AbnfLexerSTRING      = 14
)

AbnfLexer tokens.

View Source
const (
	AbnfParserEOF         = antlr.TokenEOF
	AbnfParserT__0        = 1
	AbnfParserT__1        = 2
	AbnfParserT__2        = 3
	AbnfParserT__3        = 4
	AbnfParserT__4        = 5
	AbnfParserT__5        = 6
	AbnfParserT__6        = 7
	AbnfParserNumberValue = 8
	AbnfParserProseValue  = 9
	AbnfParserID          = 10
	AbnfParserINT         = 11
	AbnfParserCOMMENT     = 12
	AbnfParserWS          = 13
	AbnfParserSTRING      = 14
)

AbnfParser tokens.

View Source
const (
	AbnfParserRULE_rulelist      = 0
	AbnfParserRULE_rule_         = 1
	AbnfParserRULE_elements      = 2
	AbnfParserRULE_alternation   = 3
	AbnfParserRULE_concatenation = 4
	AbnfParserRULE_repetition    = 5
	AbnfParserRULE_repeat        = 6
	AbnfParserRULE_element       = 7
	AbnfParserRULE_group         = 8
	AbnfParserRULE_option        = 9
)

AbnfParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbnfLexer

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

func NewAbnfLexer

func NewAbnfLexer(input antlr.CharStream) *AbnfLexer

type AbnfListener

type AbnfListener interface {
	antlr.ParseTreeListener

	// EnterRulelist is called when entering the rulelist production.
	EnterRulelist(c *RulelistContext)

	// EnterRule_ is called when entering the rule_ production.
	EnterRule_(c *Rule_Context)

	// EnterElements is called when entering the elements production.
	EnterElements(c *ElementsContext)

	// EnterAlternation is called when entering the alternation production.
	EnterAlternation(c *AlternationContext)

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

	// EnterRepetition is called when entering the repetition production.
	EnterRepetition(c *RepetitionContext)

	// EnterRepeat is called when entering the repeat production.
	EnterRepeat(c *RepeatContext)

	// EnterElement is called when entering the element production.
	EnterElement(c *ElementContext)

	// EnterGroup is called when entering the group production.
	EnterGroup(c *GroupContext)

	// EnterOption is called when entering the option production.
	EnterOption(c *OptionContext)

	// ExitRulelist is called when exiting the rulelist production.
	ExitRulelist(c *RulelistContext)

	// ExitRule_ is called when exiting the rule_ production.
	ExitRule_(c *Rule_Context)

	// ExitElements is called when exiting the elements production.
	ExitElements(c *ElementsContext)

	// ExitAlternation is called when exiting the alternation production.
	ExitAlternation(c *AlternationContext)

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

	// ExitRepetition is called when exiting the repetition production.
	ExitRepetition(c *RepetitionContext)

	// ExitRepeat is called when exiting the repeat production.
	ExitRepeat(c *RepeatContext)

	// ExitElement is called when exiting the element production.
	ExitElement(c *ElementContext)

	// ExitGroup is called when exiting the group production.
	ExitGroup(c *GroupContext)

	// ExitOption is called when exiting the option production.
	ExitOption(c *OptionContext)
}

AbnfListener is a complete listener for a parse tree produced by AbnfParser.

type AbnfParser

type AbnfParser struct {
	*antlr.BaseParser
}

func NewAbnfParser

func NewAbnfParser(input antlr.TokenStream) *AbnfParser

func (*AbnfParser) Alternation

func (p *AbnfParser) Alternation() (localctx IAlternationContext)

func (*AbnfParser) Concatenation

func (p *AbnfParser) Concatenation() (localctx IConcatenationContext)

func (*AbnfParser) Element

func (p *AbnfParser) Element() (localctx IElementContext)

func (*AbnfParser) Elements

func (p *AbnfParser) Elements() (localctx IElementsContext)

func (*AbnfParser) Group

func (p *AbnfParser) Group() (localctx IGroupContext)

func (*AbnfParser) Option

func (p *AbnfParser) Option() (localctx IOptionContext)

func (*AbnfParser) Repeat

func (p *AbnfParser) Repeat() (localctx IRepeatContext)

func (*AbnfParser) Repetition

func (p *AbnfParser) Repetition() (localctx IRepetitionContext)

func (*AbnfParser) Rule_

func (p *AbnfParser) Rule_() (localctx IRule_Context)

func (*AbnfParser) Rulelist

func (p *AbnfParser) Rulelist() (localctx IRulelistContext)

type AlternationContext

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

func NewAlternationContext

func NewAlternationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AlternationContext

func NewEmptyAlternationContext

func NewEmptyAlternationContext() *AlternationContext

func (*AlternationContext) AllConcatenation

func (s *AlternationContext) AllConcatenation() []IConcatenationContext

func (*AlternationContext) Concatenation

func (s *AlternationContext) Concatenation(i int) IConcatenationContext

func (*AlternationContext) EnterRule

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

func (*AlternationContext) ExitRule

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

func (*AlternationContext) GetParser

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

func (*AlternationContext) GetRuleContext

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

func (*AlternationContext) IsAlternationContext

func (*AlternationContext) IsAlternationContext()

func (*AlternationContext) ToStringTree

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

type BaseAbnfListener

type BaseAbnfListener struct{}

BaseAbnfListener is a complete listener for a parse tree produced by AbnfParser.

func (*BaseAbnfListener) EnterAlternation

func (s *BaseAbnfListener) EnterAlternation(ctx *AlternationContext)

EnterAlternation is called when production alternation is entered.

func (*BaseAbnfListener) EnterConcatenation

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

EnterConcatenation is called when production concatenation is entered.

func (*BaseAbnfListener) EnterElement

func (s *BaseAbnfListener) EnterElement(ctx *ElementContext)

EnterElement is called when production element is entered.

func (*BaseAbnfListener) EnterElements

func (s *BaseAbnfListener) EnterElements(ctx *ElementsContext)

EnterElements is called when production elements is entered.

func (*BaseAbnfListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseAbnfListener) EnterGroup

func (s *BaseAbnfListener) EnterGroup(ctx *GroupContext)

EnterGroup is called when production group is entered.

func (*BaseAbnfListener) EnterOption

func (s *BaseAbnfListener) EnterOption(ctx *OptionContext)

EnterOption is called when production option is entered.

func (*BaseAbnfListener) EnterRepeat

func (s *BaseAbnfListener) EnterRepeat(ctx *RepeatContext)

EnterRepeat is called when production repeat is entered.

func (*BaseAbnfListener) EnterRepetition

func (s *BaseAbnfListener) EnterRepetition(ctx *RepetitionContext)

EnterRepetition is called when production repetition is entered.

func (*BaseAbnfListener) EnterRule_

func (s *BaseAbnfListener) EnterRule_(ctx *Rule_Context)

EnterRule_ is called when production rule_ is entered.

func (*BaseAbnfListener) EnterRulelist

func (s *BaseAbnfListener) EnterRulelist(ctx *RulelistContext)

EnterRulelist is called when production rulelist is entered.

func (*BaseAbnfListener) ExitAlternation

func (s *BaseAbnfListener) ExitAlternation(ctx *AlternationContext)

ExitAlternation is called when production alternation is exited.

func (*BaseAbnfListener) ExitConcatenation

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

ExitConcatenation is called when production concatenation is exited.

func (*BaseAbnfListener) ExitElement

func (s *BaseAbnfListener) ExitElement(ctx *ElementContext)

ExitElement is called when production element is exited.

func (*BaseAbnfListener) ExitElements

func (s *BaseAbnfListener) ExitElements(ctx *ElementsContext)

ExitElements is called when production elements is exited.

func (*BaseAbnfListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseAbnfListener) ExitGroup

func (s *BaseAbnfListener) ExitGroup(ctx *GroupContext)

ExitGroup is called when production group is exited.

func (*BaseAbnfListener) ExitOption

func (s *BaseAbnfListener) ExitOption(ctx *OptionContext)

ExitOption is called when production option is exited.

func (*BaseAbnfListener) ExitRepeat

func (s *BaseAbnfListener) ExitRepeat(ctx *RepeatContext)

ExitRepeat is called when production repeat is exited.

func (*BaseAbnfListener) ExitRepetition

func (s *BaseAbnfListener) ExitRepetition(ctx *RepetitionContext)

ExitRepetition is called when production repetition is exited.

func (*BaseAbnfListener) ExitRule_

func (s *BaseAbnfListener) ExitRule_(ctx *Rule_Context)

ExitRule_ is called when production rule_ is exited.

func (*BaseAbnfListener) ExitRulelist

func (s *BaseAbnfListener) ExitRulelist(ctx *RulelistContext)

ExitRulelist is called when production rulelist is exited.

func (*BaseAbnfListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseAbnfListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type ConcatenationContext

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

func NewConcatenationContext

func NewConcatenationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConcatenationContext

func NewEmptyConcatenationContext

func NewEmptyConcatenationContext() *ConcatenationContext

func (*ConcatenationContext) AllRepetition

func (s *ConcatenationContext) AllRepetition() []IRepetitionContext

func (*ConcatenationContext) EnterRule

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

func (*ConcatenationContext) ExitRule

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

func (*ConcatenationContext) GetParser

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

func (*ConcatenationContext) GetRuleContext

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

func (*ConcatenationContext) IsConcatenationContext

func (*ConcatenationContext) IsConcatenationContext()

func (*ConcatenationContext) Repetition

func (s *ConcatenationContext) Repetition(i int) IRepetitionContext

func (*ConcatenationContext) ToStringTree

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

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

func (s *ElementContext) Group() IGroupContext

func (*ElementContext) ID

func (*ElementContext) IsElementContext

func (*ElementContext) IsElementContext()

func (*ElementContext) NumberValue

func (s *ElementContext) NumberValue() antlr.TerminalNode

func (*ElementContext) Option

func (s *ElementContext) Option() IOptionContext

func (*ElementContext) ProseValue

func (s *ElementContext) ProseValue() antlr.TerminalNode

func (*ElementContext) STRING

func (s *ElementContext) STRING() antlr.TerminalNode

func (*ElementContext) ToStringTree

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

type ElementsContext

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

func NewElementsContext

func NewElementsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElementsContext

func NewEmptyElementsContext

func NewEmptyElementsContext() *ElementsContext

func (*ElementsContext) Alternation

func (s *ElementsContext) Alternation() IAlternationContext

func (*ElementsContext) EnterRule

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

func (*ElementsContext) ExitRule

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

func (*ElementsContext) GetParser

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

func (*ElementsContext) GetRuleContext

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

func (*ElementsContext) IsElementsContext

func (*ElementsContext) IsElementsContext()

func (*ElementsContext) ToStringTree

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

type GroupContext

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

func NewEmptyGroupContext

func NewEmptyGroupContext() *GroupContext

func NewGroupContext

func NewGroupContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GroupContext

func (*GroupContext) Alternation

func (s *GroupContext) Alternation() IAlternationContext

func (*GroupContext) EnterRule

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

func (*GroupContext) ExitRule

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

func (*GroupContext) GetParser

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

func (*GroupContext) GetRuleContext

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

func (*GroupContext) IsGroupContext

func (*GroupContext) IsGroupContext()

func (*GroupContext) ToStringTree

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

type IAlternationContext

type IAlternationContext interface {
	antlr.ParserRuleContext

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

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

IAlternationContext is an interface to support dynamic dispatch.

type IConcatenationContext

type IConcatenationContext interface {
	antlr.ParserRuleContext

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

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

IConcatenationContext 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 IElementsContext

type IElementsContext interface {
	antlr.ParserRuleContext

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

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

IElementsContext is an interface to support dynamic dispatch.

type IGroupContext

type IGroupContext interface {
	antlr.ParserRuleContext

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

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

IGroupContext is an interface to support dynamic dispatch.

type IOptionContext

type IOptionContext interface {
	antlr.ParserRuleContext

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

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

IOptionContext is an interface to support dynamic dispatch.

type IRepeatContext

type IRepeatContext interface {
	antlr.ParserRuleContext

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

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

IRepeatContext is an interface to support dynamic dispatch.

type IRepetitionContext

type IRepetitionContext interface {
	antlr.ParserRuleContext

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

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

IRepetitionContext 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 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 OptionContext

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

func NewEmptyOptionContext

func NewEmptyOptionContext() *OptionContext

func NewOptionContext

func NewOptionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OptionContext

func (*OptionContext) Alternation

func (s *OptionContext) Alternation() IAlternationContext

func (*OptionContext) EnterRule

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

func (*OptionContext) ExitRule

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

func (*OptionContext) GetParser

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

func (*OptionContext) GetRuleContext

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

func (*OptionContext) IsOptionContext

func (*OptionContext) IsOptionContext()

func (*OptionContext) ToStringTree

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

type RepeatContext

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

func NewEmptyRepeatContext

func NewEmptyRepeatContext() *RepeatContext

func NewRepeatContext

func NewRepeatContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RepeatContext

func (*RepeatContext) AllINT

func (s *RepeatContext) AllINT() []antlr.TerminalNode

func (*RepeatContext) EnterRule

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

func (*RepeatContext) ExitRule

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

func (*RepeatContext) GetParser

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

func (*RepeatContext) GetRuleContext

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

func (*RepeatContext) INT

func (s *RepeatContext) INT(i int) antlr.TerminalNode

func (*RepeatContext) IsRepeatContext

func (*RepeatContext) IsRepeatContext()

func (*RepeatContext) ToStringTree

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

type RepetitionContext

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

func NewEmptyRepetitionContext

func NewEmptyRepetitionContext() *RepetitionContext

func NewRepetitionContext

func NewRepetitionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RepetitionContext

func (*RepetitionContext) Element

func (s *RepetitionContext) Element() IElementContext

func (*RepetitionContext) EnterRule

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

func (*RepetitionContext) ExitRule

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

func (*RepetitionContext) GetParser

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

func (*RepetitionContext) GetRuleContext

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

func (*RepetitionContext) IsRepetitionContext

func (*RepetitionContext) IsRepetitionContext()

func (*RepetitionContext) Repeat

func (s *RepetitionContext) Repeat() IRepeatContext

func (*RepetitionContext) ToStringTree

func (s *RepetitionContext) 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) Elements

func (s *Rule_Context) Elements() IElementsContext

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

func (*Rule_Context) IsRule_Context

func (*Rule_Context) IsRule_Context()

func (*Rule_Context) ToStringTree

func (s *Rule_Context) 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 (*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

Jump to

Keyboard shortcuts

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