Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/oncrpcv2" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" ) type exampleListener struct { *oncrpcv2.Baseoncrpcv2Listener } 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 := oncrpcv2.Newoncrpcv2Lexer(is) stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) // Create the Parser p := oncrpcv2.Newoncrpcv2Parser(stream) p.BuildParseTrees = true p.AddErrorListener(antlr.NewDiagnosticErrorListener(true)) // Finally walk the tree tree := p.Oncrpcv2Specification() antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree) }
Output:
Index ¶
- func Newoncrpcv2Lexer(input antlr.CharStream) *oncrpcv2Lexer
- func Newoncrpcv2Parser(input antlr.TokenStream) *oncrpcv2Parser
- type Baseoncrpcv2Listener
- func (s *Baseoncrpcv2Listener) EnterCaseSpec(ctx *CaseSpecContext)
- func (s *Baseoncrpcv2Listener) EnterConstant(ctx *ConstantContext)
- func (s *Baseoncrpcv2Listener) EnterConstantDef(ctx *ConstantDefContext)
- func (s *Baseoncrpcv2Listener) EnterDeclaration(ctx *DeclarationContext)
- func (s *Baseoncrpcv2Listener) EnterDefinition(ctx *DefinitionContext)
- func (s *Baseoncrpcv2Listener) EnterEnumBody(ctx *EnumBodyContext)
- func (s *Baseoncrpcv2Listener) EnterEnumTypeSpec(ctx *EnumTypeSpecContext)
- func (s *Baseoncrpcv2Listener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *Baseoncrpcv2Listener) EnterOncrpcv2Specification(ctx *Oncrpcv2SpecificationContext)
- func (s *Baseoncrpcv2Listener) EnterProcFirstArg(ctx *ProcFirstArgContext)
- func (s *Baseoncrpcv2Listener) EnterProcReturn(ctx *ProcReturnContext)
- func (s *Baseoncrpcv2Listener) EnterProcedureDef(ctx *ProcedureDefContext)
- func (s *Baseoncrpcv2Listener) EnterProgramDef(ctx *ProgramDefContext)
- func (s *Baseoncrpcv2Listener) EnterStructBody(ctx *StructBodyContext)
- func (s *Baseoncrpcv2Listener) EnterStructTypeSpec(ctx *StructTypeSpecContext)
- func (s *Baseoncrpcv2Listener) EnterTypeDef(ctx *TypeDefContext)
- func (s *Baseoncrpcv2Listener) EnterTypeSpecifier(ctx *TypeSpecifierContext)
- func (s *Baseoncrpcv2Listener) EnterUnionBody(ctx *UnionBodyContext)
- func (s *Baseoncrpcv2Listener) EnterUnionTypeSpec(ctx *UnionTypeSpecContext)
- func (s *Baseoncrpcv2Listener) EnterValue(ctx *ValueContext)
- func (s *Baseoncrpcv2Listener) EnterVersionDef(ctx *VersionDefContext)
- func (s *Baseoncrpcv2Listener) EnterXdrSpecification(ctx *XdrSpecificationContext)
- func (s *Baseoncrpcv2Listener) ExitCaseSpec(ctx *CaseSpecContext)
- func (s *Baseoncrpcv2Listener) ExitConstant(ctx *ConstantContext)
- func (s *Baseoncrpcv2Listener) ExitConstantDef(ctx *ConstantDefContext)
- func (s *Baseoncrpcv2Listener) ExitDeclaration(ctx *DeclarationContext)
- func (s *Baseoncrpcv2Listener) ExitDefinition(ctx *DefinitionContext)
- func (s *Baseoncrpcv2Listener) ExitEnumBody(ctx *EnumBodyContext)
- func (s *Baseoncrpcv2Listener) ExitEnumTypeSpec(ctx *EnumTypeSpecContext)
- func (s *Baseoncrpcv2Listener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *Baseoncrpcv2Listener) ExitOncrpcv2Specification(ctx *Oncrpcv2SpecificationContext)
- func (s *Baseoncrpcv2Listener) ExitProcFirstArg(ctx *ProcFirstArgContext)
- func (s *Baseoncrpcv2Listener) ExitProcReturn(ctx *ProcReturnContext)
- func (s *Baseoncrpcv2Listener) ExitProcedureDef(ctx *ProcedureDefContext)
- func (s *Baseoncrpcv2Listener) ExitProgramDef(ctx *ProgramDefContext)
- func (s *Baseoncrpcv2Listener) ExitStructBody(ctx *StructBodyContext)
- func (s *Baseoncrpcv2Listener) ExitStructTypeSpec(ctx *StructTypeSpecContext)
- func (s *Baseoncrpcv2Listener) ExitTypeDef(ctx *TypeDefContext)
- func (s *Baseoncrpcv2Listener) ExitTypeSpecifier(ctx *TypeSpecifierContext)
- func (s *Baseoncrpcv2Listener) ExitUnionBody(ctx *UnionBodyContext)
- func (s *Baseoncrpcv2Listener) ExitUnionTypeSpec(ctx *UnionTypeSpecContext)
- func (s *Baseoncrpcv2Listener) ExitValue(ctx *ValueContext)
- func (s *Baseoncrpcv2Listener) ExitVersionDef(ctx *VersionDefContext)
- func (s *Baseoncrpcv2Listener) ExitXdrSpecification(ctx *XdrSpecificationContext)
- func (s *Baseoncrpcv2Listener) VisitErrorNode(node antlr.ErrorNode)
- func (s *Baseoncrpcv2Listener) VisitTerminal(node antlr.TerminalNode)
- type CaseSpecContext
- func (s *CaseSpecContext) AllValue() []IValueContext
- func (s *CaseSpecContext) Declaration() IDeclarationContext
- func (s *CaseSpecContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CaseSpecContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CaseSpecContext) GetParser() antlr.Parser
- func (s *CaseSpecContext) GetRuleContext() antlr.RuleContext
- func (*CaseSpecContext) IsCaseSpecContext()
- func (s *CaseSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *CaseSpecContext) Value(i int) IValueContext
- type ConstantContext
- func (s *ConstantContext) DECIMAL() antlr.TerminalNode
- func (s *ConstantContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ConstantContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ConstantContext) GetParser() antlr.Parser
- func (s *ConstantContext) GetRuleContext() antlr.RuleContext
- func (s *ConstantContext) HEXADECIMAL() antlr.TerminalNode
- func (*ConstantContext) IsConstantContext()
- func (s *ConstantContext) OCTAL() antlr.TerminalNode
- func (s *ConstantContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ConstantDefContext
- func (s *ConstantDefContext) Constant() IConstantContext
- func (s *ConstantDefContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ConstantDefContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ConstantDefContext) GetParser() antlr.Parser
- func (s *ConstantDefContext) GetRuleContext() antlr.RuleContext
- func (s *ConstantDefContext) IDENTIFIER() antlr.TerminalNode
- func (*ConstantDefContext) IsConstantDefContext()
- func (s *ConstantDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DeclarationContext
- func (s *DeclarationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DeclarationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DeclarationContext) GetParser() antlr.Parser
- func (s *DeclarationContext) GetRuleContext() antlr.RuleContext
- func (s *DeclarationContext) IDENTIFIER() antlr.TerminalNode
- func (*DeclarationContext) IsDeclarationContext()
- func (s *DeclarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *DeclarationContext) TypeSpecifier() ITypeSpecifierContext
- func (s *DeclarationContext) Value() IValueContext
- type DefinitionContext
- func (s *DefinitionContext) ConstantDef() IConstantDefContext
- func (s *DefinitionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DefinitionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DefinitionContext) GetParser() antlr.Parser
- func (s *DefinitionContext) GetRuleContext() antlr.RuleContext
- func (*DefinitionContext) IsDefinitionContext()
- func (s *DefinitionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *DefinitionContext) TypeDef() ITypeDefContext
- type EnumBodyContext
- func (s *EnumBodyContext) AllIDENTIFIER() []antlr.TerminalNode
- func (s *EnumBodyContext) AllValue() []IValueContext
- func (s *EnumBodyContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EnumBodyContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EnumBodyContext) GetParser() antlr.Parser
- func (s *EnumBodyContext) GetRuleContext() antlr.RuleContext
- func (s *EnumBodyContext) IDENTIFIER(i int) antlr.TerminalNode
- func (*EnumBodyContext) IsEnumBodyContext()
- func (s *EnumBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *EnumBodyContext) Value(i int) IValueContext
- type EnumTypeSpecContext
- func (s *EnumTypeSpecContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EnumTypeSpecContext) EnumBody() IEnumBodyContext
- func (s *EnumTypeSpecContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EnumTypeSpecContext) GetParser() antlr.Parser
- func (s *EnumTypeSpecContext) GetRuleContext() antlr.RuleContext
- func (*EnumTypeSpecContext) IsEnumTypeSpecContext()
- func (s *EnumTypeSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ICaseSpecContext
- type IConstantContext
- type IConstantDefContext
- type IDeclarationContext
- type IDefinitionContext
- type IEnumBodyContext
- type IEnumTypeSpecContext
- type IOncrpcv2SpecificationContext
- type IProcFirstArgContext
- type IProcReturnContext
- type IProcedureDefContext
- type IProgramDefContext
- type IStructBodyContext
- type IStructTypeSpecContext
- type ITypeDefContext
- type ITypeSpecifierContext
- type IUnionBodyContext
- type IUnionTypeSpecContext
- type IValueContext
- type IVersionDefContext
- type IXdrSpecificationContext
- type Oncrpcv2SpecificationContext
- func (s *Oncrpcv2SpecificationContext) AllProgramDef() []IProgramDefContext
- func (s *Oncrpcv2SpecificationContext) AllXdrSpecification() []IXdrSpecificationContext
- func (s *Oncrpcv2SpecificationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Oncrpcv2SpecificationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Oncrpcv2SpecificationContext) GetParser() antlr.Parser
- func (s *Oncrpcv2SpecificationContext) GetRuleContext() antlr.RuleContext
- func (*Oncrpcv2SpecificationContext) IsOncrpcv2SpecificationContext()
- func (s *Oncrpcv2SpecificationContext) ProgramDef(i int) IProgramDefContext
- func (s *Oncrpcv2SpecificationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *Oncrpcv2SpecificationContext) XdrSpecification(i int) IXdrSpecificationContext
- type ProcFirstArgContext
- func (s *ProcFirstArgContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProcFirstArgContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProcFirstArgContext) GetParser() antlr.Parser
- func (s *ProcFirstArgContext) GetRuleContext() antlr.RuleContext
- func (*ProcFirstArgContext) IsProcFirstArgContext()
- func (s *ProcFirstArgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ProcFirstArgContext) TypeSpecifier() ITypeSpecifierContext
- type ProcReturnContext
- func (s *ProcReturnContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProcReturnContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProcReturnContext) GetParser() antlr.Parser
- func (s *ProcReturnContext) GetRuleContext() antlr.RuleContext
- func (*ProcReturnContext) IsProcReturnContext()
- func (s *ProcReturnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ProcReturnContext) TypeSpecifier() ITypeSpecifierContext
- type ProcedureDefContext
- func (s *ProcedureDefContext) AllTypeSpecifier() []ITypeSpecifierContext
- func (s *ProcedureDefContext) Constant() IConstantContext
- func (s *ProcedureDefContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProcedureDefContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProcedureDefContext) GetParser() antlr.Parser
- func (s *ProcedureDefContext) GetRuleContext() antlr.RuleContext
- func (s *ProcedureDefContext) IDENTIFIER() antlr.TerminalNode
- func (*ProcedureDefContext) IsProcedureDefContext()
- func (s *ProcedureDefContext) ProcFirstArg() IProcFirstArgContext
- func (s *ProcedureDefContext) ProcReturn() IProcReturnContext
- func (s *ProcedureDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ProcedureDefContext) TypeSpecifier(i int) ITypeSpecifierContext
- type ProgramDefContext
- func (s *ProgramDefContext) AllVersionDef() []IVersionDefContext
- func (s *ProgramDefContext) Constant() IConstantContext
- func (s *ProgramDefContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProgramDefContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProgramDefContext) GetParser() antlr.Parser
- func (s *ProgramDefContext) GetRuleContext() antlr.RuleContext
- func (s *ProgramDefContext) IDENTIFIER() antlr.TerminalNode
- func (*ProgramDefContext) IsProgramDefContext()
- func (s *ProgramDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ProgramDefContext) VersionDef(i int) IVersionDefContext
- type StructBodyContext
- func (s *StructBodyContext) AllDeclaration() []IDeclarationContext
- func (s *StructBodyContext) Declaration(i int) IDeclarationContext
- func (s *StructBodyContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StructBodyContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StructBodyContext) GetParser() antlr.Parser
- func (s *StructBodyContext) GetRuleContext() antlr.RuleContext
- func (*StructBodyContext) IsStructBodyContext()
- func (s *StructBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StructTypeSpecContext
- func (s *StructTypeSpecContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StructTypeSpecContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StructTypeSpecContext) GetParser() antlr.Parser
- func (s *StructTypeSpecContext) GetRuleContext() antlr.RuleContext
- func (*StructTypeSpecContext) IsStructTypeSpecContext()
- func (s *StructTypeSpecContext) StructBody() IStructBodyContext
- func (s *StructTypeSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TypeDefContext
- func (s *TypeDefContext) Declaration() IDeclarationContext
- func (s *TypeDefContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeDefContext) EnumBody() IEnumBodyContext
- func (s *TypeDefContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeDefContext) GetParser() antlr.Parser
- func (s *TypeDefContext) GetRuleContext() antlr.RuleContext
- func (s *TypeDefContext) IDENTIFIER() antlr.TerminalNode
- func (*TypeDefContext) IsTypeDefContext()
- func (s *TypeDefContext) StructBody() IStructBodyContext
- func (s *TypeDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypeDefContext) UnionBody() IUnionBodyContext
- type TypeSpecifierContext
- func (s *TypeSpecifierContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeSpecifierContext) EnumTypeSpec() IEnumTypeSpecContext
- func (s *TypeSpecifierContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeSpecifierContext) GetParser() antlr.Parser
- func (s *TypeSpecifierContext) GetRuleContext() antlr.RuleContext
- func (s *TypeSpecifierContext) IDENTIFIER() antlr.TerminalNode
- func (*TypeSpecifierContext) IsTypeSpecifierContext()
- func (s *TypeSpecifierContext) StructTypeSpec() IStructTypeSpecContext
- func (s *TypeSpecifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypeSpecifierContext) UnionTypeSpec() IUnionTypeSpecContext
- type UnionBodyContext
- func (s *UnionBodyContext) AllCaseSpec() []ICaseSpecContext
- func (s *UnionBodyContext) AllDeclaration() []IDeclarationContext
- func (s *UnionBodyContext) CaseSpec(i int) ICaseSpecContext
- func (s *UnionBodyContext) Declaration(i int) IDeclarationContext
- func (s *UnionBodyContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *UnionBodyContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *UnionBodyContext) GetParser() antlr.Parser
- func (s *UnionBodyContext) GetRuleContext() antlr.RuleContext
- func (*UnionBodyContext) IsUnionBodyContext()
- func (s *UnionBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type UnionTypeSpecContext
- func (s *UnionTypeSpecContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *UnionTypeSpecContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *UnionTypeSpecContext) GetParser() antlr.Parser
- func (s *UnionTypeSpecContext) GetRuleContext() antlr.RuleContext
- func (*UnionTypeSpecContext) IsUnionTypeSpecContext()
- func (s *UnionTypeSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *UnionTypeSpecContext) UnionBody() IUnionBodyContext
- type ValueContext
- func (s *ValueContext) Constant() IConstantContext
- func (s *ValueContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ValueContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ValueContext) GetParser() antlr.Parser
- func (s *ValueContext) GetRuleContext() antlr.RuleContext
- func (s *ValueContext) IDENTIFIER() antlr.TerminalNode
- func (*ValueContext) IsValueContext()
- func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type VersionDefContext
- func (s *VersionDefContext) AllProcedureDef() []IProcedureDefContext
- func (s *VersionDefContext) Constant() IConstantContext
- func (s *VersionDefContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *VersionDefContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *VersionDefContext) GetParser() antlr.Parser
- func (s *VersionDefContext) GetRuleContext() antlr.RuleContext
- func (s *VersionDefContext) IDENTIFIER() antlr.TerminalNode
- func (*VersionDefContext) IsVersionDefContext()
- func (s *VersionDefContext) ProcedureDef(i int) IProcedureDefContext
- func (s *VersionDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type XdrSpecificationContext
- func (s *XdrSpecificationContext) AllDefinition() []IDefinitionContext
- func (s *XdrSpecificationContext) Definition(i int) IDefinitionContext
- func (s *XdrSpecificationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *XdrSpecificationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *XdrSpecificationContext) GetParser() antlr.Parser
- func (s *XdrSpecificationContext) GetRuleContext() antlr.RuleContext
- func (*XdrSpecificationContext) IsXdrSpecificationContext()
- func (s *XdrSpecificationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Newoncrpcv2Lexer ¶
func Newoncrpcv2Lexer(input antlr.CharStream) *oncrpcv2Lexer
func Newoncrpcv2Parser ¶
func Newoncrpcv2Parser(input antlr.TokenStream) *oncrpcv2Parser
Types ¶
type Baseoncrpcv2Listener ¶
type Baseoncrpcv2Listener struct{}
Baseoncrpcv2Listener is a complete listener for a parse tree produced by oncrpcv2Parser.
func (*Baseoncrpcv2Listener) EnterCaseSpec ¶
func (s *Baseoncrpcv2Listener) EnterCaseSpec(ctx *CaseSpecContext)
EnterCaseSpec is called when production caseSpec is entered.
func (*Baseoncrpcv2Listener) EnterConstant ¶
func (s *Baseoncrpcv2Listener) EnterConstant(ctx *ConstantContext)
EnterConstant is called when production constant is entered.
func (*Baseoncrpcv2Listener) EnterConstantDef ¶
func (s *Baseoncrpcv2Listener) EnterConstantDef(ctx *ConstantDefContext)
EnterConstantDef is called when production constantDef is entered.
func (*Baseoncrpcv2Listener) EnterDeclaration ¶
func (s *Baseoncrpcv2Listener) EnterDeclaration(ctx *DeclarationContext)
EnterDeclaration is called when production declaration is entered.
func (*Baseoncrpcv2Listener) EnterDefinition ¶
func (s *Baseoncrpcv2Listener) EnterDefinition(ctx *DefinitionContext)
EnterDefinition is called when production definition is entered.
func (*Baseoncrpcv2Listener) EnterEnumBody ¶
func (s *Baseoncrpcv2Listener) EnterEnumBody(ctx *EnumBodyContext)
EnterEnumBody is called when production enumBody is entered.
func (*Baseoncrpcv2Listener) EnterEnumTypeSpec ¶
func (s *Baseoncrpcv2Listener) EnterEnumTypeSpec(ctx *EnumTypeSpecContext)
EnterEnumTypeSpec is called when production enumTypeSpec is entered.
func (*Baseoncrpcv2Listener) EnterEveryRule ¶
func (s *Baseoncrpcv2Listener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*Baseoncrpcv2Listener) EnterOncrpcv2Specification ¶
func (s *Baseoncrpcv2Listener) EnterOncrpcv2Specification(ctx *Oncrpcv2SpecificationContext)
EnterOncrpcv2Specification is called when production oncrpcv2Specification is entered.
func (*Baseoncrpcv2Listener) EnterProcFirstArg ¶
func (s *Baseoncrpcv2Listener) EnterProcFirstArg(ctx *ProcFirstArgContext)
EnterProcFirstArg is called when production procFirstArg is entered.
func (*Baseoncrpcv2Listener) EnterProcReturn ¶
func (s *Baseoncrpcv2Listener) EnterProcReturn(ctx *ProcReturnContext)
EnterProcReturn is called when production procReturn is entered.
func (*Baseoncrpcv2Listener) EnterProcedureDef ¶
func (s *Baseoncrpcv2Listener) EnterProcedureDef(ctx *ProcedureDefContext)
EnterProcedureDef is called when production procedureDef is entered.
func (*Baseoncrpcv2Listener) EnterProgramDef ¶
func (s *Baseoncrpcv2Listener) EnterProgramDef(ctx *ProgramDefContext)
EnterProgramDef is called when production programDef is entered.
func (*Baseoncrpcv2Listener) EnterStructBody ¶
func (s *Baseoncrpcv2Listener) EnterStructBody(ctx *StructBodyContext)
EnterStructBody is called when production structBody is entered.
func (*Baseoncrpcv2Listener) EnterStructTypeSpec ¶
func (s *Baseoncrpcv2Listener) EnterStructTypeSpec(ctx *StructTypeSpecContext)
EnterStructTypeSpec is called when production structTypeSpec is entered.
func (*Baseoncrpcv2Listener) EnterTypeDef ¶
func (s *Baseoncrpcv2Listener) EnterTypeDef(ctx *TypeDefContext)
EnterTypeDef is called when production typeDef is entered.
func (*Baseoncrpcv2Listener) EnterTypeSpecifier ¶
func (s *Baseoncrpcv2Listener) EnterTypeSpecifier(ctx *TypeSpecifierContext)
EnterTypeSpecifier is called when production typeSpecifier is entered.
func (*Baseoncrpcv2Listener) EnterUnionBody ¶
func (s *Baseoncrpcv2Listener) EnterUnionBody(ctx *UnionBodyContext)
EnterUnionBody is called when production unionBody is entered.
func (*Baseoncrpcv2Listener) EnterUnionTypeSpec ¶
func (s *Baseoncrpcv2Listener) EnterUnionTypeSpec(ctx *UnionTypeSpecContext)
EnterUnionTypeSpec is called when production unionTypeSpec is entered.
func (*Baseoncrpcv2Listener) EnterValue ¶
func (s *Baseoncrpcv2Listener) EnterValue(ctx *ValueContext)
EnterValue is called when production value is entered.
func (*Baseoncrpcv2Listener) EnterVersionDef ¶
func (s *Baseoncrpcv2Listener) EnterVersionDef(ctx *VersionDefContext)
EnterVersionDef is called when production versionDef is entered.
func (*Baseoncrpcv2Listener) EnterXdrSpecification ¶
func (s *Baseoncrpcv2Listener) EnterXdrSpecification(ctx *XdrSpecificationContext)
EnterXdrSpecification is called when production xdrSpecification is entered.
func (*Baseoncrpcv2Listener) ExitCaseSpec ¶
func (s *Baseoncrpcv2Listener) ExitCaseSpec(ctx *CaseSpecContext)
ExitCaseSpec is called when production caseSpec is exited.
func (*Baseoncrpcv2Listener) ExitConstant ¶
func (s *Baseoncrpcv2Listener) ExitConstant(ctx *ConstantContext)
ExitConstant is called when production constant is exited.
func (*Baseoncrpcv2Listener) ExitConstantDef ¶
func (s *Baseoncrpcv2Listener) ExitConstantDef(ctx *ConstantDefContext)
ExitConstantDef is called when production constantDef is exited.
func (*Baseoncrpcv2Listener) ExitDeclaration ¶
func (s *Baseoncrpcv2Listener) ExitDeclaration(ctx *DeclarationContext)
ExitDeclaration is called when production declaration is exited.
func (*Baseoncrpcv2Listener) ExitDefinition ¶
func (s *Baseoncrpcv2Listener) ExitDefinition(ctx *DefinitionContext)
ExitDefinition is called when production definition is exited.
func (*Baseoncrpcv2Listener) ExitEnumBody ¶
func (s *Baseoncrpcv2Listener) ExitEnumBody(ctx *EnumBodyContext)
ExitEnumBody is called when production enumBody is exited.
func (*Baseoncrpcv2Listener) ExitEnumTypeSpec ¶
func (s *Baseoncrpcv2Listener) ExitEnumTypeSpec(ctx *EnumTypeSpecContext)
ExitEnumTypeSpec is called when production enumTypeSpec is exited.
func (*Baseoncrpcv2Listener) ExitEveryRule ¶
func (s *Baseoncrpcv2Listener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*Baseoncrpcv2Listener) ExitOncrpcv2Specification ¶
func (s *Baseoncrpcv2Listener) ExitOncrpcv2Specification(ctx *Oncrpcv2SpecificationContext)
ExitOncrpcv2Specification is called when production oncrpcv2Specification is exited.
func (*Baseoncrpcv2Listener) ExitProcFirstArg ¶
func (s *Baseoncrpcv2Listener) ExitProcFirstArg(ctx *ProcFirstArgContext)
ExitProcFirstArg is called when production procFirstArg is exited.
func (*Baseoncrpcv2Listener) ExitProcReturn ¶
func (s *Baseoncrpcv2Listener) ExitProcReturn(ctx *ProcReturnContext)
ExitProcReturn is called when production procReturn is exited.
func (*Baseoncrpcv2Listener) ExitProcedureDef ¶
func (s *Baseoncrpcv2Listener) ExitProcedureDef(ctx *ProcedureDefContext)
ExitProcedureDef is called when production procedureDef is exited.
func (*Baseoncrpcv2Listener) ExitProgramDef ¶
func (s *Baseoncrpcv2Listener) ExitProgramDef(ctx *ProgramDefContext)
ExitProgramDef is called when production programDef is exited.
func (*Baseoncrpcv2Listener) ExitStructBody ¶
func (s *Baseoncrpcv2Listener) ExitStructBody(ctx *StructBodyContext)
ExitStructBody is called when production structBody is exited.
func (*Baseoncrpcv2Listener) ExitStructTypeSpec ¶
func (s *Baseoncrpcv2Listener) ExitStructTypeSpec(ctx *StructTypeSpecContext)
ExitStructTypeSpec is called when production structTypeSpec is exited.
func (*Baseoncrpcv2Listener) ExitTypeDef ¶
func (s *Baseoncrpcv2Listener) ExitTypeDef(ctx *TypeDefContext)
ExitTypeDef is called when production typeDef is exited.
func (*Baseoncrpcv2Listener) ExitTypeSpecifier ¶
func (s *Baseoncrpcv2Listener) ExitTypeSpecifier(ctx *TypeSpecifierContext)
ExitTypeSpecifier is called when production typeSpecifier is exited.
func (*Baseoncrpcv2Listener) ExitUnionBody ¶
func (s *Baseoncrpcv2Listener) ExitUnionBody(ctx *UnionBodyContext)
ExitUnionBody is called when production unionBody is exited.
func (*Baseoncrpcv2Listener) ExitUnionTypeSpec ¶
func (s *Baseoncrpcv2Listener) ExitUnionTypeSpec(ctx *UnionTypeSpecContext)
ExitUnionTypeSpec is called when production unionTypeSpec is exited.
func (*Baseoncrpcv2Listener) ExitValue ¶
func (s *Baseoncrpcv2Listener) ExitValue(ctx *ValueContext)
ExitValue is called when production value is exited.
func (*Baseoncrpcv2Listener) ExitVersionDef ¶
func (s *Baseoncrpcv2Listener) ExitVersionDef(ctx *VersionDefContext)
ExitVersionDef is called when production versionDef is exited.
func (*Baseoncrpcv2Listener) ExitXdrSpecification ¶
func (s *Baseoncrpcv2Listener) ExitXdrSpecification(ctx *XdrSpecificationContext)
ExitXdrSpecification is called when production xdrSpecification is exited.
func (*Baseoncrpcv2Listener) VisitErrorNode ¶
func (s *Baseoncrpcv2Listener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*Baseoncrpcv2Listener) VisitTerminal ¶
func (s *Baseoncrpcv2Listener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type CaseSpecContext ¶
type CaseSpecContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCaseSpecContext ¶
func NewCaseSpecContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CaseSpecContext
func NewEmptyCaseSpecContext ¶
func NewEmptyCaseSpecContext() *CaseSpecContext
func (*CaseSpecContext) AllValue ¶
func (s *CaseSpecContext) AllValue() []IValueContext
func (*CaseSpecContext) Declaration ¶
func (s *CaseSpecContext) Declaration() IDeclarationContext
func (*CaseSpecContext) EnterRule ¶
func (s *CaseSpecContext) EnterRule(listener antlr.ParseTreeListener)
func (*CaseSpecContext) ExitRule ¶
func (s *CaseSpecContext) ExitRule(listener antlr.ParseTreeListener)
func (*CaseSpecContext) GetParser ¶
func (s *CaseSpecContext) GetParser() antlr.Parser
func (*CaseSpecContext) GetRuleContext ¶
func (s *CaseSpecContext) GetRuleContext() antlr.RuleContext
func (*CaseSpecContext) IsCaseSpecContext ¶
func (*CaseSpecContext) IsCaseSpecContext()
func (*CaseSpecContext) ToStringTree ¶
func (s *CaseSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*CaseSpecContext) Value ¶
func (s *CaseSpecContext) Value(i int) IValueContext
type ConstantContext ¶
type ConstantContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewConstantContext ¶
func NewConstantContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConstantContext
func NewEmptyConstantContext ¶
func NewEmptyConstantContext() *ConstantContext
func (*ConstantContext) DECIMAL ¶
func (s *ConstantContext) DECIMAL() antlr.TerminalNode
func (*ConstantContext) EnterRule ¶
func (s *ConstantContext) EnterRule(listener antlr.ParseTreeListener)
func (*ConstantContext) ExitRule ¶
func (s *ConstantContext) ExitRule(listener antlr.ParseTreeListener)
func (*ConstantContext) GetParser ¶
func (s *ConstantContext) GetParser() antlr.Parser
func (*ConstantContext) GetRuleContext ¶
func (s *ConstantContext) GetRuleContext() antlr.RuleContext
func (*ConstantContext) HEXADECIMAL ¶
func (s *ConstantContext) HEXADECIMAL() antlr.TerminalNode
func (*ConstantContext) IsConstantContext ¶
func (*ConstantContext) IsConstantContext()
func (*ConstantContext) OCTAL ¶
func (s *ConstantContext) OCTAL() antlr.TerminalNode
func (*ConstantContext) ToStringTree ¶
func (s *ConstantContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ConstantDefContext ¶
type ConstantDefContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewConstantDefContext ¶
func NewConstantDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConstantDefContext
func NewEmptyConstantDefContext ¶
func NewEmptyConstantDefContext() *ConstantDefContext
func (*ConstantDefContext) Constant ¶
func (s *ConstantDefContext) Constant() IConstantContext
func (*ConstantDefContext) EnterRule ¶
func (s *ConstantDefContext) EnterRule(listener antlr.ParseTreeListener)
func (*ConstantDefContext) ExitRule ¶
func (s *ConstantDefContext) ExitRule(listener antlr.ParseTreeListener)
func (*ConstantDefContext) GetParser ¶
func (s *ConstantDefContext) GetParser() antlr.Parser
func (*ConstantDefContext) GetRuleContext ¶
func (s *ConstantDefContext) GetRuleContext() antlr.RuleContext
func (*ConstantDefContext) IDENTIFIER ¶
func (s *ConstantDefContext) IDENTIFIER() antlr.TerminalNode
func (*ConstantDefContext) IsConstantDefContext ¶
func (*ConstantDefContext) IsConstantDefContext()
func (*ConstantDefContext) ToStringTree ¶
func (s *ConstantDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DeclarationContext ¶
type DeclarationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDeclarationContext ¶
func NewDeclarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DeclarationContext
func NewEmptyDeclarationContext ¶
func NewEmptyDeclarationContext() *DeclarationContext
func (*DeclarationContext) EnterRule ¶
func (s *DeclarationContext) EnterRule(listener antlr.ParseTreeListener)
func (*DeclarationContext) ExitRule ¶
func (s *DeclarationContext) ExitRule(listener antlr.ParseTreeListener)
func (*DeclarationContext) GetParser ¶
func (s *DeclarationContext) GetParser() antlr.Parser
func (*DeclarationContext) GetRuleContext ¶
func (s *DeclarationContext) GetRuleContext() antlr.RuleContext
func (*DeclarationContext) IDENTIFIER ¶
func (s *DeclarationContext) IDENTIFIER() antlr.TerminalNode
func (*DeclarationContext) IsDeclarationContext ¶
func (*DeclarationContext) IsDeclarationContext()
func (*DeclarationContext) ToStringTree ¶
func (s *DeclarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*DeclarationContext) TypeSpecifier ¶
func (s *DeclarationContext) TypeSpecifier() ITypeSpecifierContext
func (*DeclarationContext) Value ¶
func (s *DeclarationContext) Value() IValueContext
type DefinitionContext ¶
type DefinitionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDefinitionContext ¶
func NewDefinitionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DefinitionContext
func NewEmptyDefinitionContext ¶
func NewEmptyDefinitionContext() *DefinitionContext
func (*DefinitionContext) ConstantDef ¶
func (s *DefinitionContext) ConstantDef() IConstantDefContext
func (*DefinitionContext) EnterRule ¶
func (s *DefinitionContext) EnterRule(listener antlr.ParseTreeListener)
func (*DefinitionContext) ExitRule ¶
func (s *DefinitionContext) ExitRule(listener antlr.ParseTreeListener)
func (*DefinitionContext) GetParser ¶
func (s *DefinitionContext) GetParser() antlr.Parser
func (*DefinitionContext) GetRuleContext ¶
func (s *DefinitionContext) GetRuleContext() antlr.RuleContext
func (*DefinitionContext) IsDefinitionContext ¶
func (*DefinitionContext) IsDefinitionContext()
func (*DefinitionContext) ToStringTree ¶
func (s *DefinitionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*DefinitionContext) TypeDef ¶
func (s *DefinitionContext) TypeDef() ITypeDefContext
type EnumBodyContext ¶
type EnumBodyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEnumBodyContext ¶
func NewEmptyEnumBodyContext() *EnumBodyContext
func NewEnumBodyContext ¶
func NewEnumBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EnumBodyContext
func (*EnumBodyContext) AllIDENTIFIER ¶
func (s *EnumBodyContext) AllIDENTIFIER() []antlr.TerminalNode
func (*EnumBodyContext) AllValue ¶
func (s *EnumBodyContext) AllValue() []IValueContext
func (*EnumBodyContext) EnterRule ¶
func (s *EnumBodyContext) EnterRule(listener antlr.ParseTreeListener)
func (*EnumBodyContext) ExitRule ¶
func (s *EnumBodyContext) ExitRule(listener antlr.ParseTreeListener)
func (*EnumBodyContext) GetParser ¶
func (s *EnumBodyContext) GetParser() antlr.Parser
func (*EnumBodyContext) GetRuleContext ¶
func (s *EnumBodyContext) GetRuleContext() antlr.RuleContext
func (*EnumBodyContext) IDENTIFIER ¶
func (s *EnumBodyContext) IDENTIFIER(i int) antlr.TerminalNode
func (*EnumBodyContext) IsEnumBodyContext ¶
func (*EnumBodyContext) IsEnumBodyContext()
func (*EnumBodyContext) ToStringTree ¶
func (s *EnumBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*EnumBodyContext) Value ¶
func (s *EnumBodyContext) Value(i int) IValueContext
type EnumTypeSpecContext ¶
type EnumTypeSpecContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEnumTypeSpecContext ¶
func NewEmptyEnumTypeSpecContext() *EnumTypeSpecContext
func NewEnumTypeSpecContext ¶
func NewEnumTypeSpecContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EnumTypeSpecContext
func (*EnumTypeSpecContext) EnterRule ¶
func (s *EnumTypeSpecContext) EnterRule(listener antlr.ParseTreeListener)
func (*EnumTypeSpecContext) EnumBody ¶
func (s *EnumTypeSpecContext) EnumBody() IEnumBodyContext
func (*EnumTypeSpecContext) ExitRule ¶
func (s *EnumTypeSpecContext) ExitRule(listener antlr.ParseTreeListener)
func (*EnumTypeSpecContext) GetParser ¶
func (s *EnumTypeSpecContext) GetParser() antlr.Parser
func (*EnumTypeSpecContext) GetRuleContext ¶
func (s *EnumTypeSpecContext) GetRuleContext() antlr.RuleContext
func (*EnumTypeSpecContext) IsEnumTypeSpecContext ¶
func (*EnumTypeSpecContext) IsEnumTypeSpecContext()
func (*EnumTypeSpecContext) ToStringTree ¶
func (s *EnumTypeSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ICaseSpecContext ¶
type ICaseSpecContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCaseSpecContext differentiates from other interfaces. IsCaseSpecContext() }
ICaseSpecContext is an interface to support dynamic dispatch.
type IConstantContext ¶
type IConstantContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsConstantContext differentiates from other interfaces. IsConstantContext() }
IConstantContext is an interface to support dynamic dispatch.
type IConstantDefContext ¶
type IConstantDefContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsConstantDefContext differentiates from other interfaces. IsConstantDefContext() }
IConstantDefContext is an interface to support dynamic dispatch.
type IDeclarationContext ¶
type IDeclarationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDeclarationContext differentiates from other interfaces. IsDeclarationContext() }
IDeclarationContext is an interface to support dynamic dispatch.
type IDefinitionContext ¶
type IDefinitionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDefinitionContext differentiates from other interfaces. IsDefinitionContext() }
IDefinitionContext is an interface to support dynamic dispatch.
type IEnumBodyContext ¶
type IEnumBodyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsEnumBodyContext differentiates from other interfaces. IsEnumBodyContext() }
IEnumBodyContext is an interface to support dynamic dispatch.
type IEnumTypeSpecContext ¶
type IEnumTypeSpecContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsEnumTypeSpecContext differentiates from other interfaces. IsEnumTypeSpecContext() }
IEnumTypeSpecContext is an interface to support dynamic dispatch.
type IOncrpcv2SpecificationContext ¶
type IOncrpcv2SpecificationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsOncrpcv2SpecificationContext differentiates from other interfaces. IsOncrpcv2SpecificationContext() }
IOncrpcv2SpecificationContext is an interface to support dynamic dispatch.
type IProcFirstArgContext ¶
type IProcFirstArgContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProcFirstArgContext differentiates from other interfaces. IsProcFirstArgContext() }
IProcFirstArgContext is an interface to support dynamic dispatch.
type IProcReturnContext ¶
type IProcReturnContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProcReturnContext differentiates from other interfaces. IsProcReturnContext() }
IProcReturnContext is an interface to support dynamic dispatch.
type IProcedureDefContext ¶
type IProcedureDefContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProcedureDefContext differentiates from other interfaces. IsProcedureDefContext() }
IProcedureDefContext is an interface to support dynamic dispatch.
type IProgramDefContext ¶
type IProgramDefContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProgramDefContext differentiates from other interfaces. IsProgramDefContext() }
IProgramDefContext is an interface to support dynamic dispatch.
type IStructBodyContext ¶
type IStructBodyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStructBodyContext differentiates from other interfaces. IsStructBodyContext() }
IStructBodyContext is an interface to support dynamic dispatch.
type IStructTypeSpecContext ¶
type IStructTypeSpecContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStructTypeSpecContext differentiates from other interfaces. IsStructTypeSpecContext() }
IStructTypeSpecContext is an interface to support dynamic dispatch.
type ITypeDefContext ¶
type ITypeDefContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypeDefContext differentiates from other interfaces. IsTypeDefContext() }
ITypeDefContext is an interface to support dynamic dispatch.
type ITypeSpecifierContext ¶
type ITypeSpecifierContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypeSpecifierContext differentiates from other interfaces. IsTypeSpecifierContext() }
ITypeSpecifierContext is an interface to support dynamic dispatch.
type IUnionBodyContext ¶
type IUnionBodyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsUnionBodyContext differentiates from other interfaces. IsUnionBodyContext() }
IUnionBodyContext is an interface to support dynamic dispatch.
type IUnionTypeSpecContext ¶
type IUnionTypeSpecContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsUnionTypeSpecContext differentiates from other interfaces. IsUnionTypeSpecContext() }
IUnionTypeSpecContext is an interface to support dynamic dispatch.
type IValueContext ¶
type IValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsValueContext differentiates from other interfaces. IsValueContext() }
IValueContext is an interface to support dynamic dispatch.
type IVersionDefContext ¶
type IVersionDefContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsVersionDefContext differentiates from other interfaces. IsVersionDefContext() }
IVersionDefContext is an interface to support dynamic dispatch.
type IXdrSpecificationContext ¶
type IXdrSpecificationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsXdrSpecificationContext differentiates from other interfaces. IsXdrSpecificationContext() }
IXdrSpecificationContext is an interface to support dynamic dispatch.
type Oncrpcv2SpecificationContext ¶
type Oncrpcv2SpecificationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyOncrpcv2SpecificationContext ¶
func NewEmptyOncrpcv2SpecificationContext() *Oncrpcv2SpecificationContext
func NewOncrpcv2SpecificationContext ¶
func NewOncrpcv2SpecificationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Oncrpcv2SpecificationContext
func (*Oncrpcv2SpecificationContext) AllProgramDef ¶
func (s *Oncrpcv2SpecificationContext) AllProgramDef() []IProgramDefContext
func (*Oncrpcv2SpecificationContext) AllXdrSpecification ¶
func (s *Oncrpcv2SpecificationContext) AllXdrSpecification() []IXdrSpecificationContext
func (*Oncrpcv2SpecificationContext) EnterRule ¶
func (s *Oncrpcv2SpecificationContext) EnterRule(listener antlr.ParseTreeListener)
func (*Oncrpcv2SpecificationContext) ExitRule ¶
func (s *Oncrpcv2SpecificationContext) ExitRule(listener antlr.ParseTreeListener)
func (*Oncrpcv2SpecificationContext) GetParser ¶
func (s *Oncrpcv2SpecificationContext) GetParser() antlr.Parser
func (*Oncrpcv2SpecificationContext) GetRuleContext ¶
func (s *Oncrpcv2SpecificationContext) GetRuleContext() antlr.RuleContext
func (*Oncrpcv2SpecificationContext) IsOncrpcv2SpecificationContext ¶
func (*Oncrpcv2SpecificationContext) IsOncrpcv2SpecificationContext()
func (*Oncrpcv2SpecificationContext) ProgramDef ¶
func (s *Oncrpcv2SpecificationContext) ProgramDef(i int) IProgramDefContext
func (*Oncrpcv2SpecificationContext) ToStringTree ¶
func (s *Oncrpcv2SpecificationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*Oncrpcv2SpecificationContext) XdrSpecification ¶
func (s *Oncrpcv2SpecificationContext) XdrSpecification(i int) IXdrSpecificationContext
type ProcFirstArgContext ¶
type ProcFirstArgContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProcFirstArgContext ¶
func NewEmptyProcFirstArgContext() *ProcFirstArgContext
func NewProcFirstArgContext ¶
func NewProcFirstArgContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProcFirstArgContext
func (*ProcFirstArgContext) EnterRule ¶
func (s *ProcFirstArgContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProcFirstArgContext) ExitRule ¶
func (s *ProcFirstArgContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProcFirstArgContext) GetParser ¶
func (s *ProcFirstArgContext) GetParser() antlr.Parser
func (*ProcFirstArgContext) GetRuleContext ¶
func (s *ProcFirstArgContext) GetRuleContext() antlr.RuleContext
func (*ProcFirstArgContext) IsProcFirstArgContext ¶
func (*ProcFirstArgContext) IsProcFirstArgContext()
func (*ProcFirstArgContext) ToStringTree ¶
func (s *ProcFirstArgContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ProcFirstArgContext) TypeSpecifier ¶
func (s *ProcFirstArgContext) TypeSpecifier() ITypeSpecifierContext
type ProcReturnContext ¶
type ProcReturnContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProcReturnContext ¶
func NewEmptyProcReturnContext() *ProcReturnContext
func NewProcReturnContext ¶
func NewProcReturnContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProcReturnContext
func (*ProcReturnContext) EnterRule ¶
func (s *ProcReturnContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProcReturnContext) ExitRule ¶
func (s *ProcReturnContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProcReturnContext) GetParser ¶
func (s *ProcReturnContext) GetParser() antlr.Parser
func (*ProcReturnContext) GetRuleContext ¶
func (s *ProcReturnContext) GetRuleContext() antlr.RuleContext
func (*ProcReturnContext) IsProcReturnContext ¶
func (*ProcReturnContext) IsProcReturnContext()
func (*ProcReturnContext) ToStringTree ¶
func (s *ProcReturnContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ProcReturnContext) TypeSpecifier ¶
func (s *ProcReturnContext) TypeSpecifier() ITypeSpecifierContext
type ProcedureDefContext ¶
type ProcedureDefContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProcedureDefContext ¶
func NewEmptyProcedureDefContext() *ProcedureDefContext
func NewProcedureDefContext ¶
func NewProcedureDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProcedureDefContext
func (*ProcedureDefContext) AllTypeSpecifier ¶
func (s *ProcedureDefContext) AllTypeSpecifier() []ITypeSpecifierContext
func (*ProcedureDefContext) Constant ¶
func (s *ProcedureDefContext) Constant() IConstantContext
func (*ProcedureDefContext) EnterRule ¶
func (s *ProcedureDefContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProcedureDefContext) ExitRule ¶
func (s *ProcedureDefContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProcedureDefContext) GetParser ¶
func (s *ProcedureDefContext) GetParser() antlr.Parser
func (*ProcedureDefContext) GetRuleContext ¶
func (s *ProcedureDefContext) GetRuleContext() antlr.RuleContext
func (*ProcedureDefContext) IDENTIFIER ¶
func (s *ProcedureDefContext) IDENTIFIER() antlr.TerminalNode
func (*ProcedureDefContext) IsProcedureDefContext ¶
func (*ProcedureDefContext) IsProcedureDefContext()
func (*ProcedureDefContext) ProcFirstArg ¶
func (s *ProcedureDefContext) ProcFirstArg() IProcFirstArgContext
func (*ProcedureDefContext) ProcReturn ¶
func (s *ProcedureDefContext) ProcReturn() IProcReturnContext
func (*ProcedureDefContext) ToStringTree ¶
func (s *ProcedureDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ProcedureDefContext) TypeSpecifier ¶
func (s *ProcedureDefContext) TypeSpecifier(i int) ITypeSpecifierContext
type ProgramDefContext ¶
type ProgramDefContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProgramDefContext ¶
func NewEmptyProgramDefContext() *ProgramDefContext
func NewProgramDefContext ¶
func NewProgramDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProgramDefContext
func (*ProgramDefContext) AllVersionDef ¶
func (s *ProgramDefContext) AllVersionDef() []IVersionDefContext
func (*ProgramDefContext) Constant ¶
func (s *ProgramDefContext) Constant() IConstantContext
func (*ProgramDefContext) EnterRule ¶
func (s *ProgramDefContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProgramDefContext) ExitRule ¶
func (s *ProgramDefContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProgramDefContext) GetParser ¶
func (s *ProgramDefContext) GetParser() antlr.Parser
func (*ProgramDefContext) GetRuleContext ¶
func (s *ProgramDefContext) GetRuleContext() antlr.RuleContext
func (*ProgramDefContext) IDENTIFIER ¶
func (s *ProgramDefContext) IDENTIFIER() antlr.TerminalNode
func (*ProgramDefContext) IsProgramDefContext ¶
func (*ProgramDefContext) IsProgramDefContext()
func (*ProgramDefContext) ToStringTree ¶
func (s *ProgramDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ProgramDefContext) VersionDef ¶
func (s *ProgramDefContext) VersionDef(i int) IVersionDefContext
type StructBodyContext ¶
type StructBodyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStructBodyContext ¶
func NewEmptyStructBodyContext() *StructBodyContext
func NewStructBodyContext ¶
func NewStructBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StructBodyContext
func (*StructBodyContext) AllDeclaration ¶
func (s *StructBodyContext) AllDeclaration() []IDeclarationContext
func (*StructBodyContext) Declaration ¶
func (s *StructBodyContext) Declaration(i int) IDeclarationContext
func (*StructBodyContext) EnterRule ¶
func (s *StructBodyContext) EnterRule(listener antlr.ParseTreeListener)
func (*StructBodyContext) ExitRule ¶
func (s *StructBodyContext) ExitRule(listener antlr.ParseTreeListener)
func (*StructBodyContext) GetParser ¶
func (s *StructBodyContext) GetParser() antlr.Parser
func (*StructBodyContext) GetRuleContext ¶
func (s *StructBodyContext) GetRuleContext() antlr.RuleContext
func (*StructBodyContext) IsStructBodyContext ¶
func (*StructBodyContext) IsStructBodyContext()
func (*StructBodyContext) ToStringTree ¶
func (s *StructBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StructTypeSpecContext ¶
type StructTypeSpecContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStructTypeSpecContext ¶
func NewEmptyStructTypeSpecContext() *StructTypeSpecContext
func NewStructTypeSpecContext ¶
func NewStructTypeSpecContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StructTypeSpecContext
func (*StructTypeSpecContext) EnterRule ¶
func (s *StructTypeSpecContext) EnterRule(listener antlr.ParseTreeListener)
func (*StructTypeSpecContext) ExitRule ¶
func (s *StructTypeSpecContext) ExitRule(listener antlr.ParseTreeListener)
func (*StructTypeSpecContext) GetParser ¶
func (s *StructTypeSpecContext) GetParser() antlr.Parser
func (*StructTypeSpecContext) GetRuleContext ¶
func (s *StructTypeSpecContext) GetRuleContext() antlr.RuleContext
func (*StructTypeSpecContext) IsStructTypeSpecContext ¶
func (*StructTypeSpecContext) IsStructTypeSpecContext()
func (*StructTypeSpecContext) StructBody ¶
func (s *StructTypeSpecContext) StructBody() IStructBodyContext
func (*StructTypeSpecContext) ToStringTree ¶
func (s *StructTypeSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TypeDefContext ¶
type TypeDefContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeDefContext ¶
func NewEmptyTypeDefContext() *TypeDefContext
func NewTypeDefContext ¶
func NewTypeDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeDefContext
func (*TypeDefContext) Declaration ¶
func (s *TypeDefContext) Declaration() IDeclarationContext
func (*TypeDefContext) EnterRule ¶
func (s *TypeDefContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeDefContext) EnumBody ¶
func (s *TypeDefContext) EnumBody() IEnumBodyContext
func (*TypeDefContext) ExitRule ¶
func (s *TypeDefContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeDefContext) GetParser ¶
func (s *TypeDefContext) GetParser() antlr.Parser
func (*TypeDefContext) GetRuleContext ¶
func (s *TypeDefContext) GetRuleContext() antlr.RuleContext
func (*TypeDefContext) IDENTIFIER ¶
func (s *TypeDefContext) IDENTIFIER() antlr.TerminalNode
func (*TypeDefContext) IsTypeDefContext ¶
func (*TypeDefContext) IsTypeDefContext()
func (*TypeDefContext) StructBody ¶
func (s *TypeDefContext) StructBody() IStructBodyContext
func (*TypeDefContext) ToStringTree ¶
func (s *TypeDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypeDefContext) UnionBody ¶
func (s *TypeDefContext) UnionBody() IUnionBodyContext
type TypeSpecifierContext ¶
type TypeSpecifierContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeSpecifierContext ¶
func NewEmptyTypeSpecifierContext() *TypeSpecifierContext
func NewTypeSpecifierContext ¶
func NewTypeSpecifierContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeSpecifierContext
func (*TypeSpecifierContext) EnterRule ¶
func (s *TypeSpecifierContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeSpecifierContext) EnumTypeSpec ¶
func (s *TypeSpecifierContext) EnumTypeSpec() IEnumTypeSpecContext
func (*TypeSpecifierContext) ExitRule ¶
func (s *TypeSpecifierContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeSpecifierContext) GetParser ¶
func (s *TypeSpecifierContext) GetParser() antlr.Parser
func (*TypeSpecifierContext) GetRuleContext ¶
func (s *TypeSpecifierContext) GetRuleContext() antlr.RuleContext
func (*TypeSpecifierContext) IDENTIFIER ¶
func (s *TypeSpecifierContext) IDENTIFIER() antlr.TerminalNode
func (*TypeSpecifierContext) IsTypeSpecifierContext ¶
func (*TypeSpecifierContext) IsTypeSpecifierContext()
func (*TypeSpecifierContext) StructTypeSpec ¶
func (s *TypeSpecifierContext) StructTypeSpec() IStructTypeSpecContext
func (*TypeSpecifierContext) ToStringTree ¶
func (s *TypeSpecifierContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypeSpecifierContext) UnionTypeSpec ¶
func (s *TypeSpecifierContext) UnionTypeSpec() IUnionTypeSpecContext
type UnionBodyContext ¶
type UnionBodyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyUnionBodyContext ¶
func NewEmptyUnionBodyContext() *UnionBodyContext
func NewUnionBodyContext ¶
func NewUnionBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnionBodyContext
func (*UnionBodyContext) AllCaseSpec ¶
func (s *UnionBodyContext) AllCaseSpec() []ICaseSpecContext
func (*UnionBodyContext) AllDeclaration ¶
func (s *UnionBodyContext) AllDeclaration() []IDeclarationContext
func (*UnionBodyContext) CaseSpec ¶
func (s *UnionBodyContext) CaseSpec(i int) ICaseSpecContext
func (*UnionBodyContext) Declaration ¶
func (s *UnionBodyContext) Declaration(i int) IDeclarationContext
func (*UnionBodyContext) EnterRule ¶
func (s *UnionBodyContext) EnterRule(listener antlr.ParseTreeListener)
func (*UnionBodyContext) ExitRule ¶
func (s *UnionBodyContext) ExitRule(listener antlr.ParseTreeListener)
func (*UnionBodyContext) GetParser ¶
func (s *UnionBodyContext) GetParser() antlr.Parser
func (*UnionBodyContext) GetRuleContext ¶
func (s *UnionBodyContext) GetRuleContext() antlr.RuleContext
func (*UnionBodyContext) IsUnionBodyContext ¶
func (*UnionBodyContext) IsUnionBodyContext()
func (*UnionBodyContext) ToStringTree ¶
func (s *UnionBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type UnionTypeSpecContext ¶
type UnionTypeSpecContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyUnionTypeSpecContext ¶
func NewEmptyUnionTypeSpecContext() *UnionTypeSpecContext
func NewUnionTypeSpecContext ¶
func NewUnionTypeSpecContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnionTypeSpecContext
func (*UnionTypeSpecContext) EnterRule ¶
func (s *UnionTypeSpecContext) EnterRule(listener antlr.ParseTreeListener)
func (*UnionTypeSpecContext) ExitRule ¶
func (s *UnionTypeSpecContext) ExitRule(listener antlr.ParseTreeListener)
func (*UnionTypeSpecContext) GetParser ¶
func (s *UnionTypeSpecContext) GetParser() antlr.Parser
func (*UnionTypeSpecContext) GetRuleContext ¶
func (s *UnionTypeSpecContext) GetRuleContext() antlr.RuleContext
func (*UnionTypeSpecContext) IsUnionTypeSpecContext ¶
func (*UnionTypeSpecContext) IsUnionTypeSpecContext()
func (*UnionTypeSpecContext) ToStringTree ¶
func (s *UnionTypeSpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*UnionTypeSpecContext) UnionBody ¶
func (s *UnionTypeSpecContext) UnionBody() IUnionBodyContext
type ValueContext ¶
type ValueContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyValueContext ¶
func NewEmptyValueContext() *ValueContext
func NewValueContext ¶
func NewValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueContext
func (*ValueContext) Constant ¶
func (s *ValueContext) Constant() IConstantContext
func (*ValueContext) EnterRule ¶
func (s *ValueContext) EnterRule(listener antlr.ParseTreeListener)
func (*ValueContext) ExitRule ¶
func (s *ValueContext) ExitRule(listener antlr.ParseTreeListener)
func (*ValueContext) GetParser ¶
func (s *ValueContext) GetParser() antlr.Parser
func (*ValueContext) GetRuleContext ¶
func (s *ValueContext) GetRuleContext() antlr.RuleContext
func (*ValueContext) IDENTIFIER ¶
func (s *ValueContext) IDENTIFIER() antlr.TerminalNode
func (*ValueContext) IsValueContext ¶
func (*ValueContext) IsValueContext()
func (*ValueContext) ToStringTree ¶
func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type VersionDefContext ¶
type VersionDefContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyVersionDefContext ¶
func NewEmptyVersionDefContext() *VersionDefContext
func NewVersionDefContext ¶
func NewVersionDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VersionDefContext
func (*VersionDefContext) AllProcedureDef ¶
func (s *VersionDefContext) AllProcedureDef() []IProcedureDefContext
func (*VersionDefContext) Constant ¶
func (s *VersionDefContext) Constant() IConstantContext
func (*VersionDefContext) EnterRule ¶
func (s *VersionDefContext) EnterRule(listener antlr.ParseTreeListener)
func (*VersionDefContext) ExitRule ¶
func (s *VersionDefContext) ExitRule(listener antlr.ParseTreeListener)
func (*VersionDefContext) GetParser ¶
func (s *VersionDefContext) GetParser() antlr.Parser
func (*VersionDefContext) GetRuleContext ¶
func (s *VersionDefContext) GetRuleContext() antlr.RuleContext
func (*VersionDefContext) IDENTIFIER ¶
func (s *VersionDefContext) IDENTIFIER() antlr.TerminalNode
func (*VersionDefContext) IsVersionDefContext ¶
func (*VersionDefContext) IsVersionDefContext()
func (*VersionDefContext) ProcedureDef ¶
func (s *VersionDefContext) ProcedureDef(i int) IProcedureDefContext
func (*VersionDefContext) ToStringTree ¶
func (s *VersionDefContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type XdrSpecificationContext ¶
type XdrSpecificationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyXdrSpecificationContext ¶
func NewEmptyXdrSpecificationContext() *XdrSpecificationContext
func NewXdrSpecificationContext ¶
func NewXdrSpecificationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *XdrSpecificationContext
func (*XdrSpecificationContext) AllDefinition ¶
func (s *XdrSpecificationContext) AllDefinition() []IDefinitionContext
func (*XdrSpecificationContext) Definition ¶
func (s *XdrSpecificationContext) Definition(i int) IDefinitionContext
func (*XdrSpecificationContext) EnterRule ¶
func (s *XdrSpecificationContext) EnterRule(listener antlr.ParseTreeListener)
func (*XdrSpecificationContext) ExitRule ¶
func (s *XdrSpecificationContext) ExitRule(listener antlr.ParseTreeListener)
func (*XdrSpecificationContext) GetParser ¶
func (s *XdrSpecificationContext) GetParser() antlr.Parser
func (*XdrSpecificationContext) GetRuleContext ¶
func (s *XdrSpecificationContext) GetRuleContext() antlr.RuleContext
func (*XdrSpecificationContext) IsXdrSpecificationContext ¶
func (*XdrSpecificationContext) IsXdrSpecificationContext()
func (*XdrSpecificationContext) ToStringTree ¶
func (s *XdrSpecificationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string