Documentation ¶
Index ¶
- Constants
- type AssertContext
- type BaseFGGListener
- func (s *BaseFGGListener) EnterAssert(ctx *AssertContext)
- func (s *BaseFGGListener) EnterCall(ctx *CallContext)
- func (s *BaseFGGListener) EnterDecls(ctx *DeclsContext)
- func (s *BaseFGGListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseFGGListener) EnterExprs(ctx *ExprsContext)
- func (s *BaseFGGListener) EnterFieldDecl(ctx *FieldDeclContext)
- func (s *BaseFGGListener) EnterFieldDecls(ctx *FieldDeclsContext)
- func (s *BaseFGGListener) EnterInterfaceSpec(ctx *InterfaceSpecContext)
- func (s *BaseFGGListener) EnterInterfaceTypeLit(ctx *InterfaceTypeLitContext)
- func (s *BaseFGGListener) EnterMethDecl(ctx *MethDeclContext)
- func (s *BaseFGGListener) EnterParamDecl(ctx *ParamDeclContext)
- func (s *BaseFGGListener) EnterParams(ctx *ParamsContext)
- func (s *BaseFGGListener) EnterProgram(ctx *ProgramContext)
- func (s *BaseFGGListener) EnterSelect(ctx *SelectContext)
- func (s *BaseFGGListener) EnterSig(ctx *SigContext)
- func (s *BaseFGGListener) EnterSigSpec(ctx *SigSpecContext)
- func (s *BaseFGGListener) EnterSpecs(ctx *SpecsContext)
- func (s *BaseFGGListener) EnterSprintf(ctx *SprintfContext)
- func (s *BaseFGGListener) EnterStructLit(ctx *StructLitContext)
- func (s *BaseFGGListener) EnterStructTypeLit(ctx *StructTypeLitContext)
- func (s *BaseFGGListener) EnterTypeDecl(ctx *TypeDeclContext)
- func (s *BaseFGGListener) EnterTypeFDecl(ctx *TypeFDeclContext)
- func (s *BaseFGGListener) EnterTypeFDecls(ctx *TypeFDeclsContext)
- func (s *BaseFGGListener) EnterTypeFormals(ctx *TypeFormalsContext)
- func (s *BaseFGGListener) EnterTypeName(ctx *TypeNameContext)
- func (s *BaseFGGListener) EnterTypeParam(ctx *TypeParamContext)
- func (s *BaseFGGListener) EnterTyps(ctx *TypsContext)
- func (s *BaseFGGListener) EnterVariable(ctx *VariableContext)
- func (s *BaseFGGListener) ExitAssert(ctx *AssertContext)
- func (s *BaseFGGListener) ExitCall(ctx *CallContext)
- func (s *BaseFGGListener) ExitDecls(ctx *DeclsContext)
- func (s *BaseFGGListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseFGGListener) ExitExprs(ctx *ExprsContext)
- func (s *BaseFGGListener) ExitFieldDecl(ctx *FieldDeclContext)
- func (s *BaseFGGListener) ExitFieldDecls(ctx *FieldDeclsContext)
- func (s *BaseFGGListener) ExitInterfaceSpec(ctx *InterfaceSpecContext)
- func (s *BaseFGGListener) ExitInterfaceTypeLit(ctx *InterfaceTypeLitContext)
- func (s *BaseFGGListener) ExitMethDecl(ctx *MethDeclContext)
- func (s *BaseFGGListener) ExitParamDecl(ctx *ParamDeclContext)
- func (s *BaseFGGListener) ExitParams(ctx *ParamsContext)
- func (s *BaseFGGListener) ExitProgram(ctx *ProgramContext)
- func (s *BaseFGGListener) ExitSelect(ctx *SelectContext)
- func (s *BaseFGGListener) ExitSig(ctx *SigContext)
- func (s *BaseFGGListener) ExitSigSpec(ctx *SigSpecContext)
- func (s *BaseFGGListener) ExitSpecs(ctx *SpecsContext)
- func (s *BaseFGGListener) ExitSprintf(ctx *SprintfContext)
- func (s *BaseFGGListener) ExitStructLit(ctx *StructLitContext)
- func (s *BaseFGGListener) ExitStructTypeLit(ctx *StructTypeLitContext)
- func (s *BaseFGGListener) ExitTypeDecl(ctx *TypeDeclContext)
- func (s *BaseFGGListener) ExitTypeFDecl(ctx *TypeFDeclContext)
- func (s *BaseFGGListener) ExitTypeFDecls(ctx *TypeFDeclsContext)
- func (s *BaseFGGListener) ExitTypeFormals(ctx *TypeFormalsContext)
- func (s *BaseFGGListener) ExitTypeName(ctx *TypeNameContext)
- func (s *BaseFGGListener) ExitTypeParam(ctx *TypeParamContext)
- func (s *BaseFGGListener) ExitTyps(ctx *TypsContext)
- func (s *BaseFGGListener) ExitVariable(ctx *VariableContext)
- func (s *BaseFGGListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseFGGListener) VisitTerminal(node antlr.TerminalNode)
- type CallContext
- func (s *CallContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CallContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CallContext) Expr() IExprContext
- func (s *CallContext) Exprs() IExprsContext
- func (s *CallContext) GetArgs() IExprsContext
- func (s *CallContext) GetRecv() IExprContext
- func (s *CallContext) GetRuleContext() antlr.RuleContext
- func (s *CallContext) GetTargs() ITypsContext
- func (s *CallContext) NAME() antlr.TerminalNode
- func (s *CallContext) SetArgs(v IExprsContext)
- func (s *CallContext) SetRecv(v IExprContext)
- func (s *CallContext) SetTargs(v ITypsContext)
- func (s *CallContext) Typs() ITypsContext
- type DeclsContext
- func (s *DeclsContext) AllMethDecl() []IMethDeclContext
- func (s *DeclsContext) AllTypeDecl() []ITypeDeclContext
- func (s *DeclsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DeclsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DeclsContext) GetParser() antlr.Parser
- func (s *DeclsContext) GetRuleContext() antlr.RuleContext
- func (*DeclsContext) IsDeclsContext()
- func (s *DeclsContext) MethDecl(i int) IMethDeclContext
- func (s *DeclsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *DeclsContext) TypeDecl(i int) ITypeDeclContext
- type ExprContext
- type ExprsContext
- func (s *ExprsContext) AllExpr() []IExprContext
- func (s *ExprsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ExprsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ExprsContext) Expr(i int) IExprContext
- func (s *ExprsContext) GetParser() antlr.Parser
- func (s *ExprsContext) GetRuleContext() antlr.RuleContext
- func (*ExprsContext) IsExprsContext()
- func (s *ExprsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FGGLexer
- type FGGListener
- type FGGParser
- func (p *FGGParser) Decls() (localctx IDeclsContext)
- func (p *FGGParser) Expr() (localctx IExprContext)
- func (p *FGGParser) Expr_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *FGGParser) Exprs() (localctx IExprsContext)
- func (p *FGGParser) FieldDecl() (localctx IFieldDeclContext)
- func (p *FGGParser) FieldDecls() (localctx IFieldDeclsContext)
- func (p *FGGParser) MethDecl() (localctx IMethDeclContext)
- func (p *FGGParser) ParamDecl() (localctx IParamDeclContext)
- func (p *FGGParser) Params() (localctx IParamsContext)
- func (p *FGGParser) Program() (localctx IProgramContext)
- func (p *FGGParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *FGGParser) Sig() (localctx ISigContext)
- func (p *FGGParser) Spec() (localctx ISpecContext)
- func (p *FGGParser) Specs() (localctx ISpecsContext)
- func (p *FGGParser) Typ() (localctx ITypContext)
- func (p *FGGParser) TypeDecl() (localctx ITypeDeclContext)
- func (p *FGGParser) TypeFDecl() (localctx ITypeFDeclContext)
- func (p *FGGParser) TypeFDecls() (localctx ITypeFDeclsContext)
- func (p *FGGParser) TypeFormals() (localctx ITypeFormalsContext)
- func (p *FGGParser) TypeLit() (localctx ITypeLitContext)
- func (p *FGGParser) Typs() (localctx ITypsContext)
- type FieldDeclContext
- func (s *FieldDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FieldDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FieldDeclContext) GetField() antlr.Token
- func (s *FieldDeclContext) GetParser() antlr.Parser
- func (s *FieldDeclContext) GetRuleContext() antlr.RuleContext
- func (*FieldDeclContext) IsFieldDeclContext()
- func (s *FieldDeclContext) NAME() antlr.TerminalNode
- func (s *FieldDeclContext) SetField(v antlr.Token)
- func (s *FieldDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *FieldDeclContext) Typ() ITypContext
- type FieldDeclsContext
- func (s *FieldDeclsContext) AllFieldDecl() []IFieldDeclContext
- func (s *FieldDeclsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FieldDeclsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FieldDeclsContext) FieldDecl(i int) IFieldDeclContext
- func (s *FieldDeclsContext) GetParser() antlr.Parser
- func (s *FieldDeclsContext) GetRuleContext() antlr.RuleContext
- func (*FieldDeclsContext) IsFieldDeclsContext()
- func (s *FieldDeclsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IDeclsContext
- type IExprContext
- type IExprsContext
- type IFieldDeclContext
- type IFieldDeclsContext
- type IMethDeclContext
- type IParamDeclContext
- type IParamsContext
- type IProgramContext
- type ISigContext
- type ISpecContext
- type ISpecsContext
- type ITypContext
- type ITypeDeclContext
- type ITypeFDeclContext
- type ITypeFDeclsContext
- type ITypeFormalsContext
- type ITypeLitContext
- type ITypsContext
- type InterfaceSpecContext
- type InterfaceTypeLitContext
- func (s *InterfaceTypeLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *InterfaceTypeLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *InterfaceTypeLitContext) GetRuleContext() antlr.RuleContext
- func (s *InterfaceTypeLitContext) INTERFACE() antlr.TerminalNode
- func (s *InterfaceTypeLitContext) Specs() ISpecsContext
- type MethDeclContext
- func (s *MethDeclContext) AllNAME() []antlr.TerminalNode
- func (s *MethDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MethDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MethDeclContext) Expr() IExprContext
- func (s *MethDeclContext) FUNC() antlr.TerminalNode
- func (s *MethDeclContext) GetParser() antlr.Parser
- func (s *MethDeclContext) GetRecv() antlr.Token
- func (s *MethDeclContext) GetRuleContext() antlr.RuleContext
- func (s *MethDeclContext) GetTypn() antlr.Token
- func (*MethDeclContext) IsMethDeclContext()
- func (s *MethDeclContext) NAME(i int) antlr.TerminalNode
- func (s *MethDeclContext) RETURN() antlr.TerminalNode
- func (s *MethDeclContext) SetRecv(v antlr.Token)
- func (s *MethDeclContext) SetTypn(v antlr.Token)
- func (s *MethDeclContext) Sig() ISigContext
- func (s *MethDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *MethDeclContext) TypeFormals() ITypeFormalsContext
- type ParamDeclContext
- func (s *ParamDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ParamDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ParamDeclContext) GetParser() antlr.Parser
- func (s *ParamDeclContext) GetRuleContext() antlr.RuleContext
- func (s *ParamDeclContext) GetVari() antlr.Token
- func (*ParamDeclContext) IsParamDeclContext()
- func (s *ParamDeclContext) NAME() antlr.TerminalNode
- func (s *ParamDeclContext) SetVari(v antlr.Token)
- func (s *ParamDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ParamDeclContext) Typ() ITypContext
- type ParamsContext
- func (s *ParamsContext) AllParamDecl() []IParamDeclContext
- func (s *ParamsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ParamsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ParamsContext) GetParser() antlr.Parser
- func (s *ParamsContext) GetRuleContext() antlr.RuleContext
- func (*ParamsContext) IsParamsContext()
- func (s *ParamsContext) ParamDecl(i int) IParamDeclContext
- func (s *ParamsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ProgramContext
- func (s *ProgramContext) AllMAIN() []antlr.TerminalNode
- func (s *ProgramContext) Decls() IDeclsContext
- func (s *ProgramContext) EOF() antlr.TerminalNode
- func (s *ProgramContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProgramContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProgramContext) Expr() IExprContext
- func (s *ProgramContext) FMT() antlr.TerminalNode
- func (s *ProgramContext) FUNC() antlr.TerminalNode
- func (s *ProgramContext) GetParser() antlr.Parser
- func (s *ProgramContext) GetRuleContext() antlr.RuleContext
- func (s *ProgramContext) IMPORT() antlr.TerminalNode
- func (*ProgramContext) IsProgramContext()
- func (s *ProgramContext) MAIN(i int) antlr.TerminalNode
- func (s *ProgramContext) PACKAGE() antlr.TerminalNode
- func (s *ProgramContext) PRINTF() antlr.TerminalNode
- func (s *ProgramContext) STRING() antlr.TerminalNode
- func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SelectContext
- type SigContext
- func (s *SigContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SigContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SigContext) GetMeth() antlr.Token
- func (s *SigContext) GetParser() antlr.Parser
- func (s *SigContext) GetRuleContext() antlr.RuleContext
- func (*SigContext) IsSigContext()
- func (s *SigContext) NAME() antlr.TerminalNode
- func (s *SigContext) Params() IParamsContext
- func (s *SigContext) SetMeth(v antlr.Token)
- func (s *SigContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *SigContext) Typ() ITypContext
- func (s *SigContext) TypeFormals() ITypeFormalsContext
- type SigSpecContext
- type SpecContext
- type SpecsContext
- func (s *SpecsContext) AllSpec() []ISpecContext
- func (s *SpecsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SpecsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SpecsContext) GetParser() antlr.Parser
- func (s *SpecsContext) GetRuleContext() antlr.RuleContext
- func (*SpecsContext) IsSpecsContext()
- func (s *SpecsContext) Spec(i int) ISpecContext
- func (s *SpecsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SprintfContext
- func (s *SprintfContext) AllExpr() []IExprContext
- func (s *SprintfContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SprintfContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SprintfContext) Expr(i int) IExprContext
- func (s *SprintfContext) FMT() antlr.TerminalNode
- func (s *SprintfContext) GetRuleContext() antlr.RuleContext
- func (s *SprintfContext) SPRINTF() antlr.TerminalNode
- func (s *SprintfContext) STRING() antlr.TerminalNode
- type StructLitContext
- type StructTypeLitContext
- func (s *StructTypeLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StructTypeLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StructTypeLitContext) FieldDecls() IFieldDeclsContext
- func (s *StructTypeLitContext) GetRuleContext() antlr.RuleContext
- func (s *StructTypeLitContext) STRUCT() antlr.TerminalNode
- type TypContext
- type TypeDeclContext
- func (s *TypeDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeDeclContext) GetParser() antlr.Parser
- func (s *TypeDeclContext) GetRuleContext() antlr.RuleContext
- func (*TypeDeclContext) IsTypeDeclContext()
- func (s *TypeDeclContext) NAME() antlr.TerminalNode
- func (s *TypeDeclContext) TYPE() antlr.TerminalNode
- func (s *TypeDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypeDeclContext) TypeFormals() ITypeFormalsContext
- func (s *TypeDeclContext) TypeLit() ITypeLitContext
- type TypeFDeclContext
- func (s *TypeFDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeFDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeFDeclContext) GetParser() antlr.Parser
- func (s *TypeFDeclContext) GetRuleContext() antlr.RuleContext
- func (*TypeFDeclContext) IsTypeFDeclContext()
- func (s *TypeFDeclContext) NAME() antlr.TerminalNode
- func (s *TypeFDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypeFDeclContext) Typ() ITypContext
- type TypeFDeclsContext
- func (s *TypeFDeclsContext) AllTypeFDecl() []ITypeFDeclContext
- func (s *TypeFDeclsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeFDeclsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeFDeclsContext) GetParser() antlr.Parser
- func (s *TypeFDeclsContext) GetRuleContext() antlr.RuleContext
- func (*TypeFDeclsContext) IsTypeFDeclsContext()
- func (s *TypeFDeclsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypeFDeclsContext) TypeFDecl(i int) ITypeFDeclContext
- type TypeFormalsContext
- func (s *TypeFormalsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeFormalsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeFormalsContext) GetParser() antlr.Parser
- func (s *TypeFormalsContext) GetRuleContext() antlr.RuleContext
- func (*TypeFormalsContext) IsTypeFormalsContext()
- func (s *TypeFormalsContext) TYPE() antlr.TerminalNode
- func (s *TypeFormalsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypeFormalsContext) TypeFDecls() ITypeFDeclsContext
- type TypeLitContext
- type TypeNameContext
- type TypeParamContext
- type TypsContext
- func (s *TypsContext) AllTyp() []ITypContext
- func (s *TypsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypsContext) GetParser() antlr.Parser
- func (s *TypsContext) GetRuleContext() antlr.RuleContext
- func (*TypsContext) IsTypsContext()
- func (s *TypsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypsContext) Typ(i int) ITypContext
- type VariableContext
Constants ¶
const ( FGGLexerT__0 = 1 FGGLexerT__1 = 2 FGGLexerT__2 = 3 FGGLexerT__3 = 4 FGGLexerT__4 = 5 FGGLexerT__5 = 6 FGGLexerT__6 = 7 FGGLexerT__7 = 8 FGGLexerT__8 = 9 FGGLexerT__9 = 10 FGGLexerFUNC = 11 FGGLexerINTERFACE = 12 FGGLexerMAIN = 13 FGGLexerPACKAGE = 14 FGGLexerRETURN = 15 FGGLexerSTRUCT = 16 FGGLexerTYPE = 17 FGGLexerIMPORT = 18 FGGLexerFMT = 19 FGGLexerPRINTF = 20 FGGLexerSPRINTF = 21 FGGLexerNAME = 22 FGGLexerWHITESPACE = 23 FGGLexerCOMMENT = 24 FGGLexerLINE_COMMENT = 25 FGGLexerSTRING = 26 )
FGGLexer tokens.
const ( FGGParserEOF = antlr.TokenEOF FGGParserT__0 = 1 FGGParserT__1 = 2 FGGParserT__2 = 3 FGGParserT__3 = 4 FGGParserT__4 = 5 FGGParserT__5 = 6 FGGParserT__6 = 7 FGGParserT__7 = 8 FGGParserT__8 = 9 FGGParserT__9 = 10 FGGParserFUNC = 11 FGGParserINTERFACE = 12 FGGParserMAIN = 13 FGGParserPACKAGE = 14 FGGParserRETURN = 15 FGGParserSTRUCT = 16 FGGParserTYPE = 17 FGGParserIMPORT = 18 FGGParserFMT = 19 FGGParserPRINTF = 20 FGGParserSPRINTF = 21 FGGParserNAME = 22 FGGParserWHITESPACE = 23 FGGParserCOMMENT = 24 FGGParserLINE_COMMENT = 25 FGGParserSTRING = 26 )
FGGParser tokens.
const ( FGGParserRULE_typ = 0 FGGParserRULE_typs = 1 FGGParserRULE_typeFormals = 2 FGGParserRULE_typeFDecls = 3 FGGParserRULE_typeFDecl = 4 FGGParserRULE_program = 5 FGGParserRULE_decls = 6 FGGParserRULE_typeDecl = 7 FGGParserRULE_methDecl = 8 FGGParserRULE_typeLit = 9 FGGParserRULE_fieldDecls = 10 FGGParserRULE_fieldDecl = 11 FGGParserRULE_specs = 12 FGGParserRULE_spec = 13 FGGParserRULE_sig = 14 FGGParserRULE_params = 15 FGGParserRULE_paramDecl = 16 FGGParserRULE_expr = 17 FGGParserRULE_exprs = 18 )
FGGParser rules.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssertContext ¶
type AssertContext struct {
*ExprContext
}
func NewAssertContext ¶
func NewAssertContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AssertContext
func (*AssertContext) EnterRule ¶
func (s *AssertContext) EnterRule(listener antlr.ParseTreeListener)
func (*AssertContext) ExitRule ¶
func (s *AssertContext) ExitRule(listener antlr.ParseTreeListener)
func (*AssertContext) Expr ¶
func (s *AssertContext) Expr() IExprContext
func (*AssertContext) GetRuleContext ¶
func (s *AssertContext) GetRuleContext() antlr.RuleContext
func (*AssertContext) Typ ¶
func (s *AssertContext) Typ() ITypContext
type BaseFGGListener ¶
type BaseFGGListener struct{}
BaseFGGListener is a complete listener for a parse tree produced by FGGParser.
func (*BaseFGGListener) EnterAssert ¶
func (s *BaseFGGListener) EnterAssert(ctx *AssertContext)
EnterAssert is called when production Assert is entered.
func (*BaseFGGListener) EnterCall ¶
func (s *BaseFGGListener) EnterCall(ctx *CallContext)
EnterCall is called when production Call is entered.
func (*BaseFGGListener) EnterDecls ¶
func (s *BaseFGGListener) EnterDecls(ctx *DeclsContext)
EnterDecls is called when production decls is entered.
func (*BaseFGGListener) EnterEveryRule ¶
func (s *BaseFGGListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseFGGListener) EnterExprs ¶
func (s *BaseFGGListener) EnterExprs(ctx *ExprsContext)
EnterExprs is called when production exprs is entered.
func (*BaseFGGListener) EnterFieldDecl ¶
func (s *BaseFGGListener) EnterFieldDecl(ctx *FieldDeclContext)
EnterFieldDecl is called when production fieldDecl is entered.
func (*BaseFGGListener) EnterFieldDecls ¶
func (s *BaseFGGListener) EnterFieldDecls(ctx *FieldDeclsContext)
EnterFieldDecls is called when production fieldDecls is entered.
func (*BaseFGGListener) EnterInterfaceSpec ¶
func (s *BaseFGGListener) EnterInterfaceSpec(ctx *InterfaceSpecContext)
EnterInterfaceSpec is called when production InterfaceSpec is entered.
func (*BaseFGGListener) EnterInterfaceTypeLit ¶
func (s *BaseFGGListener) EnterInterfaceTypeLit(ctx *InterfaceTypeLitContext)
EnterInterfaceTypeLit is called when production InterfaceTypeLit is entered.
func (*BaseFGGListener) EnterMethDecl ¶
func (s *BaseFGGListener) EnterMethDecl(ctx *MethDeclContext)
EnterMethDecl is called when production methDecl is entered.
func (*BaseFGGListener) EnterParamDecl ¶
func (s *BaseFGGListener) EnterParamDecl(ctx *ParamDeclContext)
EnterParamDecl is called when production paramDecl is entered.
func (*BaseFGGListener) EnterParams ¶
func (s *BaseFGGListener) EnterParams(ctx *ParamsContext)
EnterParams is called when production params is entered.
func (*BaseFGGListener) EnterProgram ¶
func (s *BaseFGGListener) EnterProgram(ctx *ProgramContext)
EnterProgram is called when production program is entered.
func (*BaseFGGListener) EnterSelect ¶
func (s *BaseFGGListener) EnterSelect(ctx *SelectContext)
EnterSelect is called when production Select is entered.
func (*BaseFGGListener) EnterSig ¶
func (s *BaseFGGListener) EnterSig(ctx *SigContext)
EnterSig is called when production sig is entered.
func (*BaseFGGListener) EnterSigSpec ¶
func (s *BaseFGGListener) EnterSigSpec(ctx *SigSpecContext)
EnterSigSpec is called when production SigSpec is entered.
func (*BaseFGGListener) EnterSpecs ¶
func (s *BaseFGGListener) EnterSpecs(ctx *SpecsContext)
EnterSpecs is called when production specs is entered.
func (*BaseFGGListener) EnterSprintf ¶
func (s *BaseFGGListener) EnterSprintf(ctx *SprintfContext)
EnterSprintf is called when production Sprintf is entered.
func (*BaseFGGListener) EnterStructLit ¶
func (s *BaseFGGListener) EnterStructLit(ctx *StructLitContext)
EnterStructLit is called when production StructLit is entered.
func (*BaseFGGListener) EnterStructTypeLit ¶
func (s *BaseFGGListener) EnterStructTypeLit(ctx *StructTypeLitContext)
EnterStructTypeLit is called when production StructTypeLit is entered.
func (*BaseFGGListener) EnterTypeDecl ¶
func (s *BaseFGGListener) EnterTypeDecl(ctx *TypeDeclContext)
EnterTypeDecl is called when production typeDecl is entered.
func (*BaseFGGListener) EnterTypeFDecl ¶
func (s *BaseFGGListener) EnterTypeFDecl(ctx *TypeFDeclContext)
EnterTypeFDecl is called when production typeFDecl is entered.
func (*BaseFGGListener) EnterTypeFDecls ¶
func (s *BaseFGGListener) EnterTypeFDecls(ctx *TypeFDeclsContext)
EnterTypeFDecls is called when production typeFDecls is entered.
func (*BaseFGGListener) EnterTypeFormals ¶
func (s *BaseFGGListener) EnterTypeFormals(ctx *TypeFormalsContext)
EnterTypeFormals is called when production typeFormals is entered.
func (*BaseFGGListener) EnterTypeName ¶
func (s *BaseFGGListener) EnterTypeName(ctx *TypeNameContext)
EnterTypeName is called when production TypeName is entered.
func (*BaseFGGListener) EnterTypeParam ¶
func (s *BaseFGGListener) EnterTypeParam(ctx *TypeParamContext)
EnterTypeParam is called when production TypeParam is entered.
func (*BaseFGGListener) EnterTyps ¶
func (s *BaseFGGListener) EnterTyps(ctx *TypsContext)
EnterTyps is called when production typs is entered.
func (*BaseFGGListener) EnterVariable ¶
func (s *BaseFGGListener) EnterVariable(ctx *VariableContext)
EnterVariable is called when production Variable is entered.
func (*BaseFGGListener) ExitAssert ¶
func (s *BaseFGGListener) ExitAssert(ctx *AssertContext)
ExitAssert is called when production Assert is exited.
func (*BaseFGGListener) ExitCall ¶
func (s *BaseFGGListener) ExitCall(ctx *CallContext)
ExitCall is called when production Call is exited.
func (*BaseFGGListener) ExitDecls ¶
func (s *BaseFGGListener) ExitDecls(ctx *DeclsContext)
ExitDecls is called when production decls is exited.
func (*BaseFGGListener) ExitEveryRule ¶
func (s *BaseFGGListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseFGGListener) ExitExprs ¶
func (s *BaseFGGListener) ExitExprs(ctx *ExprsContext)
ExitExprs is called when production exprs is exited.
func (*BaseFGGListener) ExitFieldDecl ¶
func (s *BaseFGGListener) ExitFieldDecl(ctx *FieldDeclContext)
ExitFieldDecl is called when production fieldDecl is exited.
func (*BaseFGGListener) ExitFieldDecls ¶
func (s *BaseFGGListener) ExitFieldDecls(ctx *FieldDeclsContext)
ExitFieldDecls is called when production fieldDecls is exited.
func (*BaseFGGListener) ExitInterfaceSpec ¶
func (s *BaseFGGListener) ExitInterfaceSpec(ctx *InterfaceSpecContext)
ExitInterfaceSpec is called when production InterfaceSpec is exited.
func (*BaseFGGListener) ExitInterfaceTypeLit ¶
func (s *BaseFGGListener) ExitInterfaceTypeLit(ctx *InterfaceTypeLitContext)
ExitInterfaceTypeLit is called when production InterfaceTypeLit is exited.
func (*BaseFGGListener) ExitMethDecl ¶
func (s *BaseFGGListener) ExitMethDecl(ctx *MethDeclContext)
ExitMethDecl is called when production methDecl is exited.
func (*BaseFGGListener) ExitParamDecl ¶
func (s *BaseFGGListener) ExitParamDecl(ctx *ParamDeclContext)
ExitParamDecl is called when production paramDecl is exited.
func (*BaseFGGListener) ExitParams ¶
func (s *BaseFGGListener) ExitParams(ctx *ParamsContext)
ExitParams is called when production params is exited.
func (*BaseFGGListener) ExitProgram ¶
func (s *BaseFGGListener) ExitProgram(ctx *ProgramContext)
ExitProgram is called when production program is exited.
func (*BaseFGGListener) ExitSelect ¶
func (s *BaseFGGListener) ExitSelect(ctx *SelectContext)
ExitSelect is called when production Select is exited.
func (*BaseFGGListener) ExitSig ¶
func (s *BaseFGGListener) ExitSig(ctx *SigContext)
ExitSig is called when production sig is exited.
func (*BaseFGGListener) ExitSigSpec ¶
func (s *BaseFGGListener) ExitSigSpec(ctx *SigSpecContext)
ExitSigSpec is called when production SigSpec is exited.
func (*BaseFGGListener) ExitSpecs ¶
func (s *BaseFGGListener) ExitSpecs(ctx *SpecsContext)
ExitSpecs is called when production specs is exited.
func (*BaseFGGListener) ExitSprintf ¶
func (s *BaseFGGListener) ExitSprintf(ctx *SprintfContext)
ExitSprintf is called when production Sprintf is exited.
func (*BaseFGGListener) ExitStructLit ¶
func (s *BaseFGGListener) ExitStructLit(ctx *StructLitContext)
ExitStructLit is called when production StructLit is exited.
func (*BaseFGGListener) ExitStructTypeLit ¶
func (s *BaseFGGListener) ExitStructTypeLit(ctx *StructTypeLitContext)
ExitStructTypeLit is called when production StructTypeLit is exited.
func (*BaseFGGListener) ExitTypeDecl ¶
func (s *BaseFGGListener) ExitTypeDecl(ctx *TypeDeclContext)
ExitTypeDecl is called when production typeDecl is exited.
func (*BaseFGGListener) ExitTypeFDecl ¶
func (s *BaseFGGListener) ExitTypeFDecl(ctx *TypeFDeclContext)
ExitTypeFDecl is called when production typeFDecl is exited.
func (*BaseFGGListener) ExitTypeFDecls ¶
func (s *BaseFGGListener) ExitTypeFDecls(ctx *TypeFDeclsContext)
ExitTypeFDecls is called when production typeFDecls is exited.
func (*BaseFGGListener) ExitTypeFormals ¶
func (s *BaseFGGListener) ExitTypeFormals(ctx *TypeFormalsContext)
ExitTypeFormals is called when production typeFormals is exited.
func (*BaseFGGListener) ExitTypeName ¶
func (s *BaseFGGListener) ExitTypeName(ctx *TypeNameContext)
ExitTypeName is called when production TypeName is exited.
func (*BaseFGGListener) ExitTypeParam ¶
func (s *BaseFGGListener) ExitTypeParam(ctx *TypeParamContext)
ExitTypeParam is called when production TypeParam is exited.
func (*BaseFGGListener) ExitTyps ¶
func (s *BaseFGGListener) ExitTyps(ctx *TypsContext)
ExitTyps is called when production typs is exited.
func (*BaseFGGListener) ExitVariable ¶
func (s *BaseFGGListener) ExitVariable(ctx *VariableContext)
ExitVariable is called when production Variable is exited.
func (*BaseFGGListener) VisitErrorNode ¶
func (s *BaseFGGListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseFGGListener) VisitTerminal ¶
func (s *BaseFGGListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type CallContext ¶
type CallContext struct { *ExprContext // contains filtered or unexported fields }
func NewCallContext ¶
func NewCallContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CallContext
func (*CallContext) EnterRule ¶
func (s *CallContext) EnterRule(listener antlr.ParseTreeListener)
func (*CallContext) ExitRule ¶
func (s *CallContext) ExitRule(listener antlr.ParseTreeListener)
func (*CallContext) Expr ¶
func (s *CallContext) Expr() IExprContext
func (*CallContext) Exprs ¶
func (s *CallContext) Exprs() IExprsContext
func (*CallContext) GetArgs ¶
func (s *CallContext) GetArgs() IExprsContext
func (*CallContext) GetRecv ¶
func (s *CallContext) GetRecv() IExprContext
func (*CallContext) GetRuleContext ¶
func (s *CallContext) GetRuleContext() antlr.RuleContext
func (*CallContext) GetTargs ¶
func (s *CallContext) GetTargs() ITypsContext
func (*CallContext) NAME ¶
func (s *CallContext) NAME() antlr.TerminalNode
func (*CallContext) SetArgs ¶
func (s *CallContext) SetArgs(v IExprsContext)
func (*CallContext) SetRecv ¶
func (s *CallContext) SetRecv(v IExprContext)
func (*CallContext) SetTargs ¶
func (s *CallContext) SetTargs(v ITypsContext)
func (*CallContext) Typs ¶
func (s *CallContext) Typs() ITypsContext
type DeclsContext ¶
type DeclsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDeclsContext ¶
func NewDeclsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DeclsContext
func NewEmptyDeclsContext ¶
func NewEmptyDeclsContext() *DeclsContext
func (*DeclsContext) AllMethDecl ¶
func (s *DeclsContext) AllMethDecl() []IMethDeclContext
func (*DeclsContext) AllTypeDecl ¶
func (s *DeclsContext) AllTypeDecl() []ITypeDeclContext
func (*DeclsContext) EnterRule ¶
func (s *DeclsContext) EnterRule(listener antlr.ParseTreeListener)
func (*DeclsContext) ExitRule ¶
func (s *DeclsContext) ExitRule(listener antlr.ParseTreeListener)
func (*DeclsContext) GetParser ¶
func (s *DeclsContext) GetParser() antlr.Parser
func (*DeclsContext) GetRuleContext ¶
func (s *DeclsContext) GetRuleContext() antlr.RuleContext
func (*DeclsContext) IsDeclsContext ¶
func (*DeclsContext) IsDeclsContext()
func (*DeclsContext) MethDecl ¶
func (s *DeclsContext) MethDecl(i int) IMethDeclContext
func (*DeclsContext) ToStringTree ¶
func (s *DeclsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*DeclsContext) TypeDecl ¶
func (s *DeclsContext) TypeDecl(i int) ITypeDeclContext
type ExprContext ¶
type ExprContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyExprContext ¶
func NewEmptyExprContext() *ExprContext
func NewExprContext ¶
func NewExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExprContext
func (*ExprContext) CopyFrom ¶
func (s *ExprContext) CopyFrom(ctx *ExprContext)
func (*ExprContext) GetParser ¶
func (s *ExprContext) GetParser() antlr.Parser
func (*ExprContext) GetRuleContext ¶
func (s *ExprContext) GetRuleContext() antlr.RuleContext
func (*ExprContext) IsExprContext ¶
func (*ExprContext) IsExprContext()
func (*ExprContext) ToStringTree ¶
func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ExprsContext ¶
type ExprsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyExprsContext ¶
func NewEmptyExprsContext() *ExprsContext
func NewExprsContext ¶
func NewExprsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExprsContext
func (*ExprsContext) AllExpr ¶
func (s *ExprsContext) AllExpr() []IExprContext
func (*ExprsContext) EnterRule ¶
func (s *ExprsContext) EnterRule(listener antlr.ParseTreeListener)
func (*ExprsContext) ExitRule ¶
func (s *ExprsContext) ExitRule(listener antlr.ParseTreeListener)
func (*ExprsContext) Expr ¶
func (s *ExprsContext) Expr(i int) IExprContext
func (*ExprsContext) GetParser ¶
func (s *ExprsContext) GetParser() antlr.Parser
func (*ExprsContext) GetRuleContext ¶
func (s *ExprsContext) GetRuleContext() antlr.RuleContext
func (*ExprsContext) IsExprsContext ¶
func (*ExprsContext) IsExprsContext()
func (*ExprsContext) ToStringTree ¶
func (s *ExprsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FGGLexer ¶
func NewFGGLexer ¶
func NewFGGLexer(input antlr.CharStream) *FGGLexer
type FGGListener ¶
type FGGListener interface { antlr.ParseTreeListener // EnterTypeParam is called when entering the TypeParam production. EnterTypeParam(c *TypeParamContext) // EnterTypeName is called when entering the TypeName production. EnterTypeName(c *TypeNameContext) // EnterTyps is called when entering the typs production. EnterTyps(c *TypsContext) // EnterTypeFormals is called when entering the typeFormals production. EnterTypeFormals(c *TypeFormalsContext) // EnterTypeFDecls is called when entering the typeFDecls production. EnterTypeFDecls(c *TypeFDeclsContext) // EnterTypeFDecl is called when entering the typeFDecl production. EnterTypeFDecl(c *TypeFDeclContext) // EnterProgram is called when entering the program production. EnterProgram(c *ProgramContext) // EnterDecls is called when entering the decls production. EnterDecls(c *DeclsContext) // EnterTypeDecl is called when entering the typeDecl production. EnterTypeDecl(c *TypeDeclContext) // EnterMethDecl is called when entering the methDecl production. EnterMethDecl(c *MethDeclContext) // EnterStructTypeLit is called when entering the StructTypeLit production. EnterStructTypeLit(c *StructTypeLitContext) // EnterInterfaceTypeLit is called when entering the InterfaceTypeLit production. EnterInterfaceTypeLit(c *InterfaceTypeLitContext) // EnterFieldDecls is called when entering the fieldDecls production. EnterFieldDecls(c *FieldDeclsContext) // EnterFieldDecl is called when entering the fieldDecl production. EnterFieldDecl(c *FieldDeclContext) // EnterSpecs is called when entering the specs production. EnterSpecs(c *SpecsContext) // EnterSigSpec is called when entering the SigSpec production. EnterSigSpec(c *SigSpecContext) // EnterInterfaceSpec is called when entering the InterfaceSpec production. EnterInterfaceSpec(c *InterfaceSpecContext) // EnterSig is called when entering the sig production. EnterSig(c *SigContext) // EnterParams is called when entering the params production. EnterParams(c *ParamsContext) // EnterParamDecl is called when entering the paramDecl production. EnterParamDecl(c *ParamDeclContext) // EnterCall is called when entering the Call production. EnterCall(c *CallContext) // EnterVariable is called when entering the Variable production. EnterVariable(c *VariableContext) // EnterAssert is called when entering the Assert production. EnterAssert(c *AssertContext) // EnterSprintf is called when entering the Sprintf production. EnterSprintf(c *SprintfContext) // EnterSelect is called when entering the Select production. EnterSelect(c *SelectContext) // EnterStructLit is called when entering the StructLit production. EnterStructLit(c *StructLitContext) // EnterExprs is called when entering the exprs production. EnterExprs(c *ExprsContext) // ExitTypeParam is called when exiting the TypeParam production. ExitTypeParam(c *TypeParamContext) // ExitTypeName is called when exiting the TypeName production. ExitTypeName(c *TypeNameContext) // ExitTyps is called when exiting the typs production. ExitTyps(c *TypsContext) // ExitTypeFormals is called when exiting the typeFormals production. ExitTypeFormals(c *TypeFormalsContext) // ExitTypeFDecls is called when exiting the typeFDecls production. ExitTypeFDecls(c *TypeFDeclsContext) // ExitTypeFDecl is called when exiting the typeFDecl production. ExitTypeFDecl(c *TypeFDeclContext) // ExitProgram is called when exiting the program production. ExitProgram(c *ProgramContext) // ExitDecls is called when exiting the decls production. ExitDecls(c *DeclsContext) // ExitTypeDecl is called when exiting the typeDecl production. ExitTypeDecl(c *TypeDeclContext) // ExitMethDecl is called when exiting the methDecl production. ExitMethDecl(c *MethDeclContext) // ExitStructTypeLit is called when exiting the StructTypeLit production. ExitStructTypeLit(c *StructTypeLitContext) // ExitInterfaceTypeLit is called when exiting the InterfaceTypeLit production. ExitInterfaceTypeLit(c *InterfaceTypeLitContext) // ExitFieldDecls is called when exiting the fieldDecls production. ExitFieldDecls(c *FieldDeclsContext) // ExitFieldDecl is called when exiting the fieldDecl production. ExitFieldDecl(c *FieldDeclContext) // ExitSpecs is called when exiting the specs production. ExitSpecs(c *SpecsContext) // ExitSigSpec is called when exiting the SigSpec production. ExitSigSpec(c *SigSpecContext) // ExitInterfaceSpec is called when exiting the InterfaceSpec production. ExitInterfaceSpec(c *InterfaceSpecContext) // ExitSig is called when exiting the sig production. ExitSig(c *SigContext) // ExitParams is called when exiting the params production. ExitParams(c *ParamsContext) // ExitParamDecl is called when exiting the paramDecl production. ExitParamDecl(c *ParamDeclContext) // ExitCall is called when exiting the Call production. ExitCall(c *CallContext) // ExitVariable is called when exiting the Variable production. ExitVariable(c *VariableContext) // ExitAssert is called when exiting the Assert production. ExitAssert(c *AssertContext) // ExitSprintf is called when exiting the Sprintf production. ExitSprintf(c *SprintfContext) // ExitSelect is called when exiting the Select production. ExitSelect(c *SelectContext) // ExitStructLit is called when exiting the StructLit production. ExitStructLit(c *StructLitContext) // ExitExprs is called when exiting the exprs production. ExitExprs(c *ExprsContext) }
FGGListener is a complete listener for a parse tree produced by FGGParser.
type FGGParser ¶
type FGGParser struct {
*antlr.BaseParser
}
func NewFGGParser ¶
func NewFGGParser(input antlr.TokenStream) *FGGParser
func (*FGGParser) Decls ¶
func (p *FGGParser) Decls() (localctx IDeclsContext)
func (*FGGParser) Expr ¶
func (p *FGGParser) Expr() (localctx IExprContext)
func (*FGGParser) Expr_Sempred ¶
func (p *FGGParser) Expr_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*FGGParser) Exprs ¶
func (p *FGGParser) Exprs() (localctx IExprsContext)
func (*FGGParser) FieldDecl ¶
func (p *FGGParser) FieldDecl() (localctx IFieldDeclContext)
func (*FGGParser) FieldDecls ¶
func (p *FGGParser) FieldDecls() (localctx IFieldDeclsContext)
func (*FGGParser) MethDecl ¶
func (p *FGGParser) MethDecl() (localctx IMethDeclContext)
func (*FGGParser) ParamDecl ¶
func (p *FGGParser) ParamDecl() (localctx IParamDeclContext)
func (*FGGParser) Params ¶
func (p *FGGParser) Params() (localctx IParamsContext)
func (*FGGParser) Program ¶
func (p *FGGParser) Program() (localctx IProgramContext)
func (*FGGParser) Sempred ¶
func (p *FGGParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
func (*FGGParser) Sig ¶
func (p *FGGParser) Sig() (localctx ISigContext)
func (*FGGParser) Spec ¶
func (p *FGGParser) Spec() (localctx ISpecContext)
func (*FGGParser) Specs ¶
func (p *FGGParser) Specs() (localctx ISpecsContext)
func (*FGGParser) Typ ¶
func (p *FGGParser) Typ() (localctx ITypContext)
func (*FGGParser) TypeDecl ¶
func (p *FGGParser) TypeDecl() (localctx ITypeDeclContext)
func (*FGGParser) TypeFDecl ¶
func (p *FGGParser) TypeFDecl() (localctx ITypeFDeclContext)
func (*FGGParser) TypeFDecls ¶
func (p *FGGParser) TypeFDecls() (localctx ITypeFDeclsContext)
func (*FGGParser) TypeFormals ¶
func (p *FGGParser) TypeFormals() (localctx ITypeFormalsContext)
func (*FGGParser) TypeLit ¶
func (p *FGGParser) TypeLit() (localctx ITypeLitContext)
func (*FGGParser) Typs ¶
func (p *FGGParser) Typs() (localctx ITypsContext)
type FieldDeclContext ¶
type FieldDeclContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFieldDeclContext ¶
func NewEmptyFieldDeclContext() *FieldDeclContext
func NewFieldDeclContext ¶
func NewFieldDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldDeclContext
func (*FieldDeclContext) EnterRule ¶
func (s *FieldDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*FieldDeclContext) ExitRule ¶
func (s *FieldDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*FieldDeclContext) GetField ¶
func (s *FieldDeclContext) GetField() antlr.Token
func (*FieldDeclContext) GetParser ¶
func (s *FieldDeclContext) GetParser() antlr.Parser
func (*FieldDeclContext) GetRuleContext ¶
func (s *FieldDeclContext) GetRuleContext() antlr.RuleContext
func (*FieldDeclContext) IsFieldDeclContext ¶
func (*FieldDeclContext) IsFieldDeclContext()
func (*FieldDeclContext) NAME ¶
func (s *FieldDeclContext) NAME() antlr.TerminalNode
func (*FieldDeclContext) SetField ¶
func (s *FieldDeclContext) SetField(v antlr.Token)
func (*FieldDeclContext) ToStringTree ¶
func (s *FieldDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*FieldDeclContext) Typ ¶
func (s *FieldDeclContext) Typ() ITypContext
type FieldDeclsContext ¶
type FieldDeclsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFieldDeclsContext ¶
func NewEmptyFieldDeclsContext() *FieldDeclsContext
func NewFieldDeclsContext ¶
func NewFieldDeclsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldDeclsContext
func (*FieldDeclsContext) AllFieldDecl ¶
func (s *FieldDeclsContext) AllFieldDecl() []IFieldDeclContext
func (*FieldDeclsContext) EnterRule ¶
func (s *FieldDeclsContext) EnterRule(listener antlr.ParseTreeListener)
func (*FieldDeclsContext) ExitRule ¶
func (s *FieldDeclsContext) ExitRule(listener antlr.ParseTreeListener)
func (*FieldDeclsContext) FieldDecl ¶
func (s *FieldDeclsContext) FieldDecl(i int) IFieldDeclContext
func (*FieldDeclsContext) GetParser ¶
func (s *FieldDeclsContext) GetParser() antlr.Parser
func (*FieldDeclsContext) GetRuleContext ¶
func (s *FieldDeclsContext) GetRuleContext() antlr.RuleContext
func (*FieldDeclsContext) IsFieldDeclsContext ¶
func (*FieldDeclsContext) IsFieldDeclsContext()
func (*FieldDeclsContext) ToStringTree ¶
func (s *FieldDeclsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IDeclsContext ¶
type IDeclsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDeclsContext differentiates from other interfaces. IsDeclsContext() }
IDeclsContext is an interface to support dynamic dispatch.
type IExprContext ¶
type IExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsExprContext differentiates from other interfaces. IsExprContext() }
IExprContext is an interface to support dynamic dispatch.
type IExprsContext ¶
type IExprsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsExprsContext differentiates from other interfaces. IsExprsContext() }
IExprsContext is an interface to support dynamic dispatch.
type IFieldDeclContext ¶
type IFieldDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetField returns the field token. GetField() antlr.Token // SetField sets the field token. SetField(antlr.Token) // IsFieldDeclContext differentiates from other interfaces. IsFieldDeclContext() }
IFieldDeclContext is an interface to support dynamic dispatch.
type IFieldDeclsContext ¶
type IFieldDeclsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsFieldDeclsContext differentiates from other interfaces. IsFieldDeclsContext() }
IFieldDeclsContext is an interface to support dynamic dispatch.
type IMethDeclContext ¶
type IMethDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetRecv returns the recv token. GetRecv() antlr.Token // GetTypn returns the typn token. GetTypn() antlr.Token // SetRecv sets the recv token. SetRecv(antlr.Token) // SetTypn sets the typn token. SetTypn(antlr.Token) // IsMethDeclContext differentiates from other interfaces. IsMethDeclContext() }
IMethDeclContext is an interface to support dynamic dispatch.
type IParamDeclContext ¶
type IParamDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetVari returns the vari token. GetVari() antlr.Token // SetVari sets the vari token. SetVari(antlr.Token) // IsParamDeclContext differentiates from other interfaces. IsParamDeclContext() }
IParamDeclContext is an interface to support dynamic dispatch.
type IParamsContext ¶
type IParamsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsParamsContext differentiates from other interfaces. IsParamsContext() }
IParamsContext is an interface to support dynamic dispatch.
type IProgramContext ¶
type IProgramContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProgramContext differentiates from other interfaces. IsProgramContext() }
IProgramContext is an interface to support dynamic dispatch.
type ISigContext ¶
type ISigContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetMeth returns the meth token. GetMeth() antlr.Token // SetMeth sets the meth token. SetMeth(antlr.Token) // IsSigContext differentiates from other interfaces. IsSigContext() }
ISigContext is an interface to support dynamic dispatch.
type ISpecContext ¶
type ISpecContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSpecContext differentiates from other interfaces. IsSpecContext() }
ISpecContext is an interface to support dynamic dispatch.
type ISpecsContext ¶
type ISpecsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSpecsContext differentiates from other interfaces. IsSpecsContext() }
ISpecsContext is an interface to support dynamic dispatch.
type ITypContext ¶
type ITypContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypContext differentiates from other interfaces. IsTypContext() }
ITypContext is an interface to support dynamic dispatch.
type ITypeDeclContext ¶
type ITypeDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypeDeclContext differentiates from other interfaces. IsTypeDeclContext() }
ITypeDeclContext is an interface to support dynamic dispatch.
type ITypeFDeclContext ¶
type ITypeFDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypeFDeclContext differentiates from other interfaces. IsTypeFDeclContext() }
ITypeFDeclContext is an interface to support dynamic dispatch.
type ITypeFDeclsContext ¶
type ITypeFDeclsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypeFDeclsContext differentiates from other interfaces. IsTypeFDeclsContext() }
ITypeFDeclsContext is an interface to support dynamic dispatch.
type ITypeFormalsContext ¶
type ITypeFormalsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypeFormalsContext differentiates from other interfaces. IsTypeFormalsContext() }
ITypeFormalsContext is an interface to support dynamic dispatch.
type ITypeLitContext ¶
type ITypeLitContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypeLitContext differentiates from other interfaces. IsTypeLitContext() }
ITypeLitContext is an interface to support dynamic dispatch.
type ITypsContext ¶
type ITypsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTypsContext differentiates from other interfaces. IsTypsContext() }
ITypsContext is an interface to support dynamic dispatch.
type InterfaceSpecContext ¶
type InterfaceSpecContext struct {
*SpecContext
}
func NewInterfaceSpecContext ¶
func NewInterfaceSpecContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *InterfaceSpecContext
func (*InterfaceSpecContext) EnterRule ¶
func (s *InterfaceSpecContext) EnterRule(listener antlr.ParseTreeListener)
func (*InterfaceSpecContext) ExitRule ¶
func (s *InterfaceSpecContext) ExitRule(listener antlr.ParseTreeListener)
func (*InterfaceSpecContext) GetRuleContext ¶
func (s *InterfaceSpecContext) GetRuleContext() antlr.RuleContext
func (*InterfaceSpecContext) Typ ¶
func (s *InterfaceSpecContext) Typ() ITypContext
type InterfaceTypeLitContext ¶
type InterfaceTypeLitContext struct {
*TypeLitContext
}
func NewInterfaceTypeLitContext ¶
func NewInterfaceTypeLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *InterfaceTypeLitContext
func (*InterfaceTypeLitContext) EnterRule ¶
func (s *InterfaceTypeLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*InterfaceTypeLitContext) ExitRule ¶
func (s *InterfaceTypeLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*InterfaceTypeLitContext) GetRuleContext ¶
func (s *InterfaceTypeLitContext) GetRuleContext() antlr.RuleContext
func (*InterfaceTypeLitContext) INTERFACE ¶
func (s *InterfaceTypeLitContext) INTERFACE() antlr.TerminalNode
func (*InterfaceTypeLitContext) Specs ¶
func (s *InterfaceTypeLitContext) Specs() ISpecsContext
type MethDeclContext ¶
type MethDeclContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMethDeclContext ¶
func NewEmptyMethDeclContext() *MethDeclContext
func NewMethDeclContext ¶
func NewMethDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MethDeclContext
func (*MethDeclContext) AllNAME ¶
func (s *MethDeclContext) AllNAME() []antlr.TerminalNode
func (*MethDeclContext) EnterRule ¶
func (s *MethDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*MethDeclContext) ExitRule ¶
func (s *MethDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*MethDeclContext) Expr ¶
func (s *MethDeclContext) Expr() IExprContext
func (*MethDeclContext) FUNC ¶
func (s *MethDeclContext) FUNC() antlr.TerminalNode
func (*MethDeclContext) GetParser ¶
func (s *MethDeclContext) GetParser() antlr.Parser
func (*MethDeclContext) GetRecv ¶
func (s *MethDeclContext) GetRecv() antlr.Token
func (*MethDeclContext) GetRuleContext ¶
func (s *MethDeclContext) GetRuleContext() antlr.RuleContext
func (*MethDeclContext) GetTypn ¶
func (s *MethDeclContext) GetTypn() antlr.Token
func (*MethDeclContext) IsMethDeclContext ¶
func (*MethDeclContext) IsMethDeclContext()
func (*MethDeclContext) NAME ¶
func (s *MethDeclContext) NAME(i int) antlr.TerminalNode
func (*MethDeclContext) RETURN ¶
func (s *MethDeclContext) RETURN() antlr.TerminalNode
func (*MethDeclContext) SetRecv ¶
func (s *MethDeclContext) SetRecv(v antlr.Token)
func (*MethDeclContext) SetTypn ¶
func (s *MethDeclContext) SetTypn(v antlr.Token)
func (*MethDeclContext) Sig ¶
func (s *MethDeclContext) Sig() ISigContext
func (*MethDeclContext) ToStringTree ¶
func (s *MethDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*MethDeclContext) TypeFormals ¶
func (s *MethDeclContext) TypeFormals() ITypeFormalsContext
type ParamDeclContext ¶
type ParamDeclContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyParamDeclContext ¶
func NewEmptyParamDeclContext() *ParamDeclContext
func NewParamDeclContext ¶
func NewParamDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParamDeclContext
func (*ParamDeclContext) EnterRule ¶
func (s *ParamDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*ParamDeclContext) ExitRule ¶
func (s *ParamDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*ParamDeclContext) GetParser ¶
func (s *ParamDeclContext) GetParser() antlr.Parser
func (*ParamDeclContext) GetRuleContext ¶
func (s *ParamDeclContext) GetRuleContext() antlr.RuleContext
func (*ParamDeclContext) GetVari ¶
func (s *ParamDeclContext) GetVari() antlr.Token
func (*ParamDeclContext) IsParamDeclContext ¶
func (*ParamDeclContext) IsParamDeclContext()
func (*ParamDeclContext) NAME ¶
func (s *ParamDeclContext) NAME() antlr.TerminalNode
func (*ParamDeclContext) SetVari ¶
func (s *ParamDeclContext) SetVari(v antlr.Token)
func (*ParamDeclContext) ToStringTree ¶
func (s *ParamDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*ParamDeclContext) Typ ¶
func (s *ParamDeclContext) Typ() ITypContext
type ParamsContext ¶
type ParamsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyParamsContext ¶
func NewEmptyParamsContext() *ParamsContext
func NewParamsContext ¶
func NewParamsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParamsContext
func (*ParamsContext) AllParamDecl ¶
func (s *ParamsContext) AllParamDecl() []IParamDeclContext
func (*ParamsContext) EnterRule ¶
func (s *ParamsContext) EnterRule(listener antlr.ParseTreeListener)
func (*ParamsContext) ExitRule ¶
func (s *ParamsContext) ExitRule(listener antlr.ParseTreeListener)
func (*ParamsContext) GetParser ¶
func (s *ParamsContext) GetParser() antlr.Parser
func (*ParamsContext) GetRuleContext ¶
func (s *ParamsContext) GetRuleContext() antlr.RuleContext
func (*ParamsContext) IsParamsContext ¶
func (*ParamsContext) IsParamsContext()
func (*ParamsContext) ParamDecl ¶
func (s *ParamsContext) ParamDecl(i int) IParamDeclContext
func (*ParamsContext) ToStringTree ¶
func (s *ParamsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ProgramContext ¶
type ProgramContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProgramContext ¶
func NewEmptyProgramContext() *ProgramContext
func NewProgramContext ¶
func NewProgramContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProgramContext
func (*ProgramContext) AllMAIN ¶
func (s *ProgramContext) AllMAIN() []antlr.TerminalNode
func (*ProgramContext) Decls ¶
func (s *ProgramContext) Decls() IDeclsContext
func (*ProgramContext) EOF ¶
func (s *ProgramContext) EOF() antlr.TerminalNode
func (*ProgramContext) EnterRule ¶
func (s *ProgramContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProgramContext) ExitRule ¶
func (s *ProgramContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProgramContext) Expr ¶
func (s *ProgramContext) Expr() IExprContext
func (*ProgramContext) FMT ¶
func (s *ProgramContext) FMT() antlr.TerminalNode
func (*ProgramContext) FUNC ¶
func (s *ProgramContext) FUNC() antlr.TerminalNode
func (*ProgramContext) GetParser ¶
func (s *ProgramContext) GetParser() antlr.Parser
func (*ProgramContext) GetRuleContext ¶
func (s *ProgramContext) GetRuleContext() antlr.RuleContext
func (*ProgramContext) IMPORT ¶
func (s *ProgramContext) IMPORT() antlr.TerminalNode
func (*ProgramContext) IsProgramContext ¶
func (*ProgramContext) IsProgramContext()
func (*ProgramContext) MAIN ¶
func (s *ProgramContext) MAIN(i int) antlr.TerminalNode
func (*ProgramContext) PACKAGE ¶
func (s *ProgramContext) PACKAGE() antlr.TerminalNode
func (*ProgramContext) PRINTF ¶
func (s *ProgramContext) PRINTF() antlr.TerminalNode
func (*ProgramContext) STRING ¶
func (s *ProgramContext) STRING() antlr.TerminalNode
func (*ProgramContext) ToStringTree ¶
func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SelectContext ¶
type SelectContext struct {
*ExprContext
}
func NewSelectContext ¶
func NewSelectContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *SelectContext
func (*SelectContext) EnterRule ¶
func (s *SelectContext) EnterRule(listener antlr.ParseTreeListener)
func (*SelectContext) ExitRule ¶
func (s *SelectContext) ExitRule(listener antlr.ParseTreeListener)
func (*SelectContext) Expr ¶
func (s *SelectContext) Expr() IExprContext
func (*SelectContext) GetRuleContext ¶
func (s *SelectContext) GetRuleContext() antlr.RuleContext
func (*SelectContext) NAME ¶
func (s *SelectContext) NAME() antlr.TerminalNode
type SigContext ¶
type SigContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySigContext ¶
func NewEmptySigContext() *SigContext
func NewSigContext ¶
func NewSigContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SigContext
func (*SigContext) EnterRule ¶
func (s *SigContext) EnterRule(listener antlr.ParseTreeListener)
func (*SigContext) ExitRule ¶
func (s *SigContext) ExitRule(listener antlr.ParseTreeListener)
func (*SigContext) GetMeth ¶
func (s *SigContext) GetMeth() antlr.Token
func (*SigContext) GetParser ¶
func (s *SigContext) GetParser() antlr.Parser
func (*SigContext) GetRuleContext ¶
func (s *SigContext) GetRuleContext() antlr.RuleContext
func (*SigContext) IsSigContext ¶
func (*SigContext) IsSigContext()
func (*SigContext) NAME ¶
func (s *SigContext) NAME() antlr.TerminalNode
func (*SigContext) Params ¶
func (s *SigContext) Params() IParamsContext
func (*SigContext) SetMeth ¶
func (s *SigContext) SetMeth(v antlr.Token)
func (*SigContext) ToStringTree ¶
func (s *SigContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*SigContext) Typ ¶
func (s *SigContext) Typ() ITypContext
func (*SigContext) TypeFormals ¶
func (s *SigContext) TypeFormals() ITypeFormalsContext
type SigSpecContext ¶
type SigSpecContext struct {
*SpecContext
}
func NewSigSpecContext ¶
func NewSigSpecContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *SigSpecContext
func (*SigSpecContext) EnterRule ¶
func (s *SigSpecContext) EnterRule(listener antlr.ParseTreeListener)
func (*SigSpecContext) ExitRule ¶
func (s *SigSpecContext) ExitRule(listener antlr.ParseTreeListener)
func (*SigSpecContext) GetRuleContext ¶
func (s *SigSpecContext) GetRuleContext() antlr.RuleContext
func (*SigSpecContext) Sig ¶
func (s *SigSpecContext) Sig() ISigContext
type SpecContext ¶
type SpecContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySpecContext ¶
func NewEmptySpecContext() *SpecContext
func NewSpecContext ¶
func NewSpecContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SpecContext
func (*SpecContext) CopyFrom ¶
func (s *SpecContext) CopyFrom(ctx *SpecContext)
func (*SpecContext) GetParser ¶
func (s *SpecContext) GetParser() antlr.Parser
func (*SpecContext) GetRuleContext ¶
func (s *SpecContext) GetRuleContext() antlr.RuleContext
func (*SpecContext) IsSpecContext ¶
func (*SpecContext) IsSpecContext()
func (*SpecContext) ToStringTree ¶
func (s *SpecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SpecsContext ¶
type SpecsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySpecsContext ¶
func NewEmptySpecsContext() *SpecsContext
func NewSpecsContext ¶
func NewSpecsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SpecsContext
func (*SpecsContext) AllSpec ¶
func (s *SpecsContext) AllSpec() []ISpecContext
func (*SpecsContext) EnterRule ¶
func (s *SpecsContext) EnterRule(listener antlr.ParseTreeListener)
func (*SpecsContext) ExitRule ¶
func (s *SpecsContext) ExitRule(listener antlr.ParseTreeListener)
func (*SpecsContext) GetParser ¶
func (s *SpecsContext) GetParser() antlr.Parser
func (*SpecsContext) GetRuleContext ¶
func (s *SpecsContext) GetRuleContext() antlr.RuleContext
func (*SpecsContext) IsSpecsContext ¶
func (*SpecsContext) IsSpecsContext()
func (*SpecsContext) Spec ¶
func (s *SpecsContext) Spec(i int) ISpecContext
func (*SpecsContext) ToStringTree ¶
func (s *SpecsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SprintfContext ¶
type SprintfContext struct {
*ExprContext
}
func NewSprintfContext ¶
func NewSprintfContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *SprintfContext
func (*SprintfContext) AllExpr ¶
func (s *SprintfContext) AllExpr() []IExprContext
func (*SprintfContext) EnterRule ¶
func (s *SprintfContext) EnterRule(listener antlr.ParseTreeListener)
func (*SprintfContext) ExitRule ¶
func (s *SprintfContext) ExitRule(listener antlr.ParseTreeListener)
func (*SprintfContext) Expr ¶
func (s *SprintfContext) Expr(i int) IExprContext
func (*SprintfContext) FMT ¶
func (s *SprintfContext) FMT() antlr.TerminalNode
func (*SprintfContext) GetRuleContext ¶
func (s *SprintfContext) GetRuleContext() antlr.RuleContext
func (*SprintfContext) SPRINTF ¶
func (s *SprintfContext) SPRINTF() antlr.TerminalNode
func (*SprintfContext) STRING ¶
func (s *SprintfContext) STRING() antlr.TerminalNode
type StructLitContext ¶
type StructLitContext struct {
*ExprContext
}
func NewStructLitContext ¶
func NewStructLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StructLitContext
func (*StructLitContext) EnterRule ¶
func (s *StructLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*StructLitContext) ExitRule ¶
func (s *StructLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*StructLitContext) Exprs ¶
func (s *StructLitContext) Exprs() IExprsContext
func (*StructLitContext) GetRuleContext ¶
func (s *StructLitContext) GetRuleContext() antlr.RuleContext
func (*StructLitContext) Typ ¶
func (s *StructLitContext) Typ() ITypContext
type StructTypeLitContext ¶
type StructTypeLitContext struct {
*TypeLitContext
}
func NewStructTypeLitContext ¶
func NewStructTypeLitContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StructTypeLitContext
func (*StructTypeLitContext) EnterRule ¶
func (s *StructTypeLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*StructTypeLitContext) ExitRule ¶
func (s *StructTypeLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*StructTypeLitContext) FieldDecls ¶
func (s *StructTypeLitContext) FieldDecls() IFieldDeclsContext
func (*StructTypeLitContext) GetRuleContext ¶
func (s *StructTypeLitContext) GetRuleContext() antlr.RuleContext
func (*StructTypeLitContext) STRUCT ¶
func (s *StructTypeLitContext) STRUCT() antlr.TerminalNode
type TypContext ¶
type TypContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypContext ¶
func NewEmptyTypContext() *TypContext
func NewTypContext ¶
func NewTypContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypContext
func (*TypContext) CopyFrom ¶
func (s *TypContext) CopyFrom(ctx *TypContext)
func (*TypContext) GetParser ¶
func (s *TypContext) GetParser() antlr.Parser
func (*TypContext) GetRuleContext ¶
func (s *TypContext) GetRuleContext() antlr.RuleContext
func (*TypContext) IsTypContext ¶
func (*TypContext) IsTypContext()
func (*TypContext) ToStringTree ¶
func (s *TypContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TypeDeclContext ¶
type TypeDeclContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeDeclContext ¶
func NewEmptyTypeDeclContext() *TypeDeclContext
func NewTypeDeclContext ¶
func NewTypeDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeDeclContext
func (*TypeDeclContext) EnterRule ¶
func (s *TypeDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeDeclContext) ExitRule ¶
func (s *TypeDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeDeclContext) GetParser ¶
func (s *TypeDeclContext) GetParser() antlr.Parser
func (*TypeDeclContext) GetRuleContext ¶
func (s *TypeDeclContext) GetRuleContext() antlr.RuleContext
func (*TypeDeclContext) IsTypeDeclContext ¶
func (*TypeDeclContext) IsTypeDeclContext()
func (*TypeDeclContext) NAME ¶
func (s *TypeDeclContext) NAME() antlr.TerminalNode
func (*TypeDeclContext) TYPE ¶
func (s *TypeDeclContext) TYPE() antlr.TerminalNode
func (*TypeDeclContext) ToStringTree ¶
func (s *TypeDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypeDeclContext) TypeFormals ¶
func (s *TypeDeclContext) TypeFormals() ITypeFormalsContext
func (*TypeDeclContext) TypeLit ¶
func (s *TypeDeclContext) TypeLit() ITypeLitContext
type TypeFDeclContext ¶
type TypeFDeclContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeFDeclContext ¶
func NewEmptyTypeFDeclContext() *TypeFDeclContext
func NewTypeFDeclContext ¶
func NewTypeFDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeFDeclContext
func (*TypeFDeclContext) EnterRule ¶
func (s *TypeFDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeFDeclContext) ExitRule ¶
func (s *TypeFDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeFDeclContext) GetParser ¶
func (s *TypeFDeclContext) GetParser() antlr.Parser
func (*TypeFDeclContext) GetRuleContext ¶
func (s *TypeFDeclContext) GetRuleContext() antlr.RuleContext
func (*TypeFDeclContext) IsTypeFDeclContext ¶
func (*TypeFDeclContext) IsTypeFDeclContext()
func (*TypeFDeclContext) NAME ¶
func (s *TypeFDeclContext) NAME() antlr.TerminalNode
func (*TypeFDeclContext) ToStringTree ¶
func (s *TypeFDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypeFDeclContext) Typ ¶
func (s *TypeFDeclContext) Typ() ITypContext
type TypeFDeclsContext ¶
type TypeFDeclsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeFDeclsContext ¶
func NewEmptyTypeFDeclsContext() *TypeFDeclsContext
func NewTypeFDeclsContext ¶
func NewTypeFDeclsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeFDeclsContext
func (*TypeFDeclsContext) AllTypeFDecl ¶
func (s *TypeFDeclsContext) AllTypeFDecl() []ITypeFDeclContext
func (*TypeFDeclsContext) EnterRule ¶
func (s *TypeFDeclsContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeFDeclsContext) ExitRule ¶
func (s *TypeFDeclsContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeFDeclsContext) GetParser ¶
func (s *TypeFDeclsContext) GetParser() antlr.Parser
func (*TypeFDeclsContext) GetRuleContext ¶
func (s *TypeFDeclsContext) GetRuleContext() antlr.RuleContext
func (*TypeFDeclsContext) IsTypeFDeclsContext ¶
func (*TypeFDeclsContext) IsTypeFDeclsContext()
func (*TypeFDeclsContext) ToStringTree ¶
func (s *TypeFDeclsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypeFDeclsContext) TypeFDecl ¶
func (s *TypeFDeclsContext) TypeFDecl(i int) ITypeFDeclContext
type TypeFormalsContext ¶
type TypeFormalsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeFormalsContext ¶
func NewEmptyTypeFormalsContext() *TypeFormalsContext
func NewTypeFormalsContext ¶
func NewTypeFormalsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeFormalsContext
func (*TypeFormalsContext) EnterRule ¶
func (s *TypeFormalsContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeFormalsContext) ExitRule ¶
func (s *TypeFormalsContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeFormalsContext) GetParser ¶
func (s *TypeFormalsContext) GetParser() antlr.Parser
func (*TypeFormalsContext) GetRuleContext ¶
func (s *TypeFormalsContext) GetRuleContext() antlr.RuleContext
func (*TypeFormalsContext) IsTypeFormalsContext ¶
func (*TypeFormalsContext) IsTypeFormalsContext()
func (*TypeFormalsContext) TYPE ¶
func (s *TypeFormalsContext) TYPE() antlr.TerminalNode
func (*TypeFormalsContext) ToStringTree ¶
func (s *TypeFormalsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypeFormalsContext) TypeFDecls ¶
func (s *TypeFormalsContext) TypeFDecls() ITypeFDeclsContext
type TypeLitContext ¶
type TypeLitContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeLitContext ¶
func NewEmptyTypeLitContext() *TypeLitContext
func NewTypeLitContext ¶
func NewTypeLitContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeLitContext
func (*TypeLitContext) CopyFrom ¶
func (s *TypeLitContext) CopyFrom(ctx *TypeLitContext)
func (*TypeLitContext) GetParser ¶
func (s *TypeLitContext) GetParser() antlr.Parser
func (*TypeLitContext) GetRuleContext ¶
func (s *TypeLitContext) GetRuleContext() antlr.RuleContext
func (*TypeLitContext) IsTypeLitContext ¶
func (*TypeLitContext) IsTypeLitContext()
func (*TypeLitContext) ToStringTree ¶
func (s *TypeLitContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TypeNameContext ¶
type TypeNameContext struct {
*TypContext
}
func NewTypeNameContext ¶
func NewTypeNameContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TypeNameContext
func (*TypeNameContext) EnterRule ¶
func (s *TypeNameContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeNameContext) ExitRule ¶
func (s *TypeNameContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeNameContext) GetRuleContext ¶
func (s *TypeNameContext) GetRuleContext() antlr.RuleContext
func (*TypeNameContext) NAME ¶
func (s *TypeNameContext) NAME() antlr.TerminalNode
func (*TypeNameContext) Typs ¶
func (s *TypeNameContext) Typs() ITypsContext
type TypeParamContext ¶
type TypeParamContext struct {
*TypContext
}
func NewTypeParamContext ¶
func NewTypeParamContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *TypeParamContext
func (*TypeParamContext) EnterRule ¶
func (s *TypeParamContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeParamContext) ExitRule ¶
func (s *TypeParamContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeParamContext) GetRuleContext ¶
func (s *TypeParamContext) GetRuleContext() antlr.RuleContext
func (*TypeParamContext) NAME ¶
func (s *TypeParamContext) NAME() antlr.TerminalNode
type TypsContext ¶
type TypsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypsContext ¶
func NewEmptyTypsContext() *TypsContext
func NewTypsContext ¶
func NewTypsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypsContext
func (*TypsContext) AllTyp ¶
func (s *TypsContext) AllTyp() []ITypContext
func (*TypsContext) EnterRule ¶
func (s *TypsContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypsContext) ExitRule ¶
func (s *TypsContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypsContext) GetParser ¶
func (s *TypsContext) GetParser() antlr.Parser
func (*TypsContext) GetRuleContext ¶
func (s *TypsContext) GetRuleContext() antlr.RuleContext
func (*TypsContext) IsTypsContext ¶
func (*TypsContext) IsTypsContext()
func (*TypsContext) ToStringTree ¶
func (s *TypsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypsContext) Typ ¶
func (s *TypsContext) Typ(i int) ITypContext
type VariableContext ¶
type VariableContext struct {
*ExprContext
}
func NewVariableContext ¶
func NewVariableContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *VariableContext
func (*VariableContext) EnterRule ¶
func (s *VariableContext) EnterRule(listener antlr.ParseTreeListener)
func (*VariableContext) ExitRule ¶
func (s *VariableContext) ExitRule(listener antlr.ParseTreeListener)
func (*VariableContext) GetRuleContext ¶
func (s *VariableContext) GetRuleContext() antlr.RuleContext
func (*VariableContext) NAME ¶
func (s *VariableContext) NAME() antlr.TerminalNode