Documentation ¶
Index ¶
- Constants
- type AssertContext
- type AssignmentContext
- func (s *AssignmentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AssignmentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AssignmentContext) Expr() IExprContext
- func (s *AssignmentContext) GetLvalue() antlr.Token
- func (s *AssignmentContext) GetRuleContext() antlr.RuleContext
- func (s *AssignmentContext) NAME() antlr.TerminalNode
- func (s *AssignmentContext) SetLvalue(v antlr.Token)
- type BaseFGListener
- func (s *BaseFGListener) EnterAssert(ctx *AssertContext)
- func (s *BaseFGListener) EnterAssignment(ctx *AssignmentContext)
- func (s *BaseFGListener) EnterCall(ctx *CallContext)
- func (s *BaseFGListener) EnterCaseSelect(ctx *CaseSelectContext)
- func (s *BaseFGListener) EnterChClose(ctx *ChCloseContext)
- func (s *BaseFGListener) EnterChDispatch(ctx *ChDispatchContext)
- func (s *BaseFGListener) EnterChanRecv(ctx *ChanRecvContext)
- func (s *BaseFGListener) EnterChannelTypeLit(ctx *ChannelTypeLitContext)
- func (s *BaseFGListener) EnterDecls(ctx *DeclsContext)
- func (s *BaseFGListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseFGListener) EnterExprs(ctx *ExprsContext)
- func (s *BaseFGListener) EnterFieldDecl(ctx *FieldDeclContext)
- func (s *BaseFGListener) EnterFieldDecls(ctx *FieldDeclsContext)
- func (s *BaseFGListener) EnterGoroutine(ctx *GoroutineContext)
- func (s *BaseFGListener) EnterGuardDispatch(ctx *GuardDispatchContext)
- func (s *BaseFGListener) EnterGuardReceive(ctx *GuardReceiveContext)
- func (s *BaseFGListener) EnterInterfaceSpec(ctx *InterfaceSpecContext)
- func (s *BaseFGListener) EnterInterfaceTypeLit(ctx *InterfaceTypeLitContext)
- func (s *BaseFGListener) EnterMakeChan(ctx *MakeChanContext)
- func (s *BaseFGListener) EnterMethCallPrime(ctx *MethCallPrimeContext)
- func (s *BaseFGListener) EnterMethDecl(ctx *MethDeclContext)
- func (s *BaseFGListener) EnterMethReturn(ctx *MethReturnContext)
- func (s *BaseFGListener) EnterParamDecl(ctx *ParamDeclContext)
- func (s *BaseFGListener) EnterParams(ctx *ParamsContext)
- func (s *BaseFGListener) EnterProgram(ctx *ProgramContext)
- func (s *BaseFGListener) EnterSelect(ctx *SelectContext)
- func (s *BaseFGListener) EnterSequence(ctx *SequenceContext)
- func (s *BaseFGListener) EnterSig(ctx *SigContext)
- func (s *BaseFGListener) EnterSigSpec(ctx *SigSpecContext)
- func (s *BaseFGListener) EnterSpecs(ctx *SpecsContext)
- func (s *BaseFGListener) EnterSprintf(ctx *SprintfContext)
- func (s *BaseFGListener) EnterStructLit(ctx *StructLitContext)
- func (s *BaseFGListener) EnterStructTypeLit(ctx *StructTypeLitContext)
- func (s *BaseFGListener) EnterTypeDecl(ctx *TypeDeclContext)
- func (s *BaseFGListener) EnterType_(ctx *Type_Context)
- func (s *BaseFGListener) EnterVariable(ctx *VariableContext)
- func (s *BaseFGListener) ExitAssert(ctx *AssertContext)
- func (s *BaseFGListener) ExitAssignment(ctx *AssignmentContext)
- func (s *BaseFGListener) ExitCall(ctx *CallContext)
- func (s *BaseFGListener) ExitCaseSelect(ctx *CaseSelectContext)
- func (s *BaseFGListener) ExitChClose(ctx *ChCloseContext)
- func (s *BaseFGListener) ExitChDispatch(ctx *ChDispatchContext)
- func (s *BaseFGListener) ExitChanRecv(ctx *ChanRecvContext)
- func (s *BaseFGListener) ExitChannelTypeLit(ctx *ChannelTypeLitContext)
- func (s *BaseFGListener) ExitDecls(ctx *DeclsContext)
- func (s *BaseFGListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseFGListener) ExitExprs(ctx *ExprsContext)
- func (s *BaseFGListener) ExitFieldDecl(ctx *FieldDeclContext)
- func (s *BaseFGListener) ExitFieldDecls(ctx *FieldDeclsContext)
- func (s *BaseFGListener) ExitGoroutine(ctx *GoroutineContext)
- func (s *BaseFGListener) ExitGuardDispatch(ctx *GuardDispatchContext)
- func (s *BaseFGListener) ExitGuardReceive(ctx *GuardReceiveContext)
- func (s *BaseFGListener) ExitInterfaceSpec(ctx *InterfaceSpecContext)
- func (s *BaseFGListener) ExitInterfaceTypeLit(ctx *InterfaceTypeLitContext)
- func (s *BaseFGListener) ExitMakeChan(ctx *MakeChanContext)
- func (s *BaseFGListener) ExitMethCallPrime(ctx *MethCallPrimeContext)
- func (s *BaseFGListener) ExitMethDecl(ctx *MethDeclContext)
- func (s *BaseFGListener) ExitMethReturn(ctx *MethReturnContext)
- func (s *BaseFGListener) ExitParamDecl(ctx *ParamDeclContext)
- func (s *BaseFGListener) ExitParams(ctx *ParamsContext)
- func (s *BaseFGListener) ExitProgram(ctx *ProgramContext)
- func (s *BaseFGListener) ExitSelect(ctx *SelectContext)
- func (s *BaseFGListener) ExitSequence(ctx *SequenceContext)
- func (s *BaseFGListener) ExitSig(ctx *SigContext)
- func (s *BaseFGListener) ExitSigSpec(ctx *SigSpecContext)
- func (s *BaseFGListener) ExitSpecs(ctx *SpecsContext)
- func (s *BaseFGListener) ExitSprintf(ctx *SprintfContext)
- func (s *BaseFGListener) ExitStructLit(ctx *StructLitContext)
- func (s *BaseFGListener) ExitStructTypeLit(ctx *StructTypeLitContext)
- func (s *BaseFGListener) ExitTypeDecl(ctx *TypeDeclContext)
- func (s *BaseFGListener) ExitType_(ctx *Type_Context)
- func (s *BaseFGListener) ExitVariable(ctx *VariableContext)
- func (s *BaseFGListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseFGListener) 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) GetRecv() IExprContext
- func (s *CallContext) GetRuleContext() antlr.RuleContext
- func (s *CallContext) MethCall_() IMethCall_Context
- func (s *CallContext) SetRecv(v IExprContext)
- type CaseGuardContext
- func (s *CaseGuardContext) CopyFrom(ctx *CaseGuardContext)
- func (s *CaseGuardContext) GetParser() antlr.Parser
- func (s *CaseGuardContext) GetRuleContext() antlr.RuleContext
- func (*CaseGuardContext) IsCaseGuardContext()
- func (s *CaseGuardContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CaseSelectContext
- func (s *CaseSelectContext) AllCASE() []antlr.TerminalNode
- func (s *CaseSelectContext) AllCaseGuard() []ICaseGuardContext
- func (s *CaseSelectContext) AllMethBody() []IMethBodyContext
- func (s *CaseSelectContext) CASE(i int) antlr.TerminalNode
- func (s *CaseSelectContext) CaseGuard(i int) ICaseGuardContext
- func (s *CaseSelectContext) DEFAULT() antlr.TerminalNode
- func (s *CaseSelectContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CaseSelectContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CaseSelectContext) GetRuleContext() antlr.RuleContext
- func (s *CaseSelectContext) MethBody(i int) IMethBodyContext
- func (s *CaseSelectContext) SELECT() antlr.TerminalNode
- type ChCloseContext
- type ChDispatchContext
- func (s *ChDispatchContext) AllExpr() []IExprContext
- func (s *ChDispatchContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ChDispatchContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ChDispatchContext) Expr(i int) IExprContext
- func (s *ChDispatchContext) GetRuleContext() antlr.RuleContext
- type ChanRecvContext
- type ChannelTypeLitContext
- func (s *ChannelTypeLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ChannelTypeLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ChannelTypeLitContext) GetParser() antlr.Parser
- func (s *ChannelTypeLitContext) GetRuleContext() antlr.RuleContext
- func (*ChannelTypeLitContext) IsChannelTypeLitContext()
- func (s *ChannelTypeLitContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- 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 FGLexer
- type FGListener
- type FGParser
- func (p *FGParser) CaseGuard() (localctx ICaseGuardContext)
- func (p *FGParser) ChannelTypeLit() (localctx IChannelTypeLitContext)
- func (p *FGParser) Decls() (localctx IDeclsContext)
- func (p *FGParser) Expr() (localctx IExprContext)
- func (p *FGParser) Expr_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *FGParser) Exprs() (localctx IExprsContext)
- func (p *FGParser) FieldDecl() (localctx IFieldDeclContext)
- func (p *FGParser) FieldDecls() (localctx IFieldDeclsContext)
- func (p *FGParser) MethBody() (localctx IMethBodyContext)
- func (p *FGParser) MethCall_() (localctx IMethCall_Context)
- func (p *FGParser) MethDecl() (localctx IMethDeclContext)
- func (p *FGParser) ParamDecl() (localctx IParamDeclContext)
- func (p *FGParser) Params() (localctx IParamsContext)
- func (p *FGParser) Program() (localctx IProgramContext)
- func (p *FGParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *FGParser) Sig() (localctx ISigContext)
- func (p *FGParser) Spec() (localctx ISpecContext)
- func (p *FGParser) Specs() (localctx ISpecsContext)
- func (p *FGParser) Stmt() (localctx IStmtContext)
- func (p *FGParser) TypeDecl() (localctx ITypeDeclContext)
- func (p *FGParser) TypeLit() (localctx ITypeLitContext)
- func (p *FGParser) Type_() (localctx IType_Context)
- 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 (s *FieldDeclContext) GetTyp() IType_Context
- func (*FieldDeclContext) IsFieldDeclContext()
- func (s *FieldDeclContext) NAME() antlr.TerminalNode
- func (s *FieldDeclContext) SetField(v antlr.Token)
- func (s *FieldDeclContext) SetTyp(v IType_Context)
- func (s *FieldDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *FieldDeclContext) Type_() IType_Context
- 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 GoroutineContext
- func (s *GoroutineContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GoroutineContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GoroutineContext) Expr() IExprContext
- func (s *GoroutineContext) GORTN() antlr.TerminalNode
- func (s *GoroutineContext) GetRecv() IExprContext
- func (s *GoroutineContext) GetRuleContext() antlr.RuleContext
- func (s *GoroutineContext) MethCall_() IMethCall_Context
- func (s *GoroutineContext) SetRecv(v IExprContext)
- type GuardDispatchContext
- func (s *GuardDispatchContext) AllExpr() []IExprContext
- func (s *GuardDispatchContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GuardDispatchContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GuardDispatchContext) Expr(i int) IExprContext
- func (s *GuardDispatchContext) GetRuleContext() antlr.RuleContext
- type GuardReceiveContext
- func (s *GuardReceiveContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GuardReceiveContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GuardReceiveContext) Expr() IExprContext
- func (s *GuardReceiveContext) GetLvalue() antlr.Token
- func (s *GuardReceiveContext) GetRuleContext() antlr.RuleContext
- func (s *GuardReceiveContext) NAME() antlr.TerminalNode
- func (s *GuardReceiveContext) SetLvalue(v antlr.Token)
- type ICaseGuardContext
- type IChannelTypeLitContext
- type IDeclsContext
- type IExprContext
- type IExprsContext
- type IFieldDeclContext
- type IFieldDeclsContext
- type IMethBodyContext
- type IMethCall_Context
- type IMethDeclContext
- type IParamDeclContext
- type IParamsContext
- type IProgramContext
- type ISigContext
- type ISpecContext
- type ISpecsContext
- type IStmtContext
- type ITypeDeclContext
- type ITypeLitContext
- type IType_Context
- 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 MakeChanContext
- type MethBodyContext
- func (s *MethBodyContext) CopyFrom(ctx *MethBodyContext)
- func (s *MethBodyContext) GetParser() antlr.Parser
- func (s *MethBodyContext) GetRuleContext() antlr.RuleContext
- func (*MethBodyContext) IsMethBodyContext()
- func (s *MethBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MethCallPrimeContext
- func (s *MethCallPrimeContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MethCallPrimeContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MethCallPrimeContext) Exprs() IExprsContext
- func (s *MethCallPrimeContext) GetArgs() IExprsContext
- func (s *MethCallPrimeContext) GetRuleContext() antlr.RuleContext
- func (s *MethCallPrimeContext) NAME() antlr.TerminalNode
- func (s *MethCallPrimeContext) SetArgs(v IExprsContext)
- type MethCall_Context
- func (s *MethCall_Context) CopyFrom(ctx *MethCall_Context)
- func (s *MethCall_Context) GetParser() antlr.Parser
- func (s *MethCall_Context) GetRuleContext() antlr.RuleContext
- func (*MethCall_Context) IsMethCall_Context()
- func (s *MethCall_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MethDeclContext
- func (s *MethDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MethDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MethDeclContext) FUNC() antlr.TerminalNode
- func (s *MethDeclContext) GetParser() antlr.Parser
- func (s *MethDeclContext) GetRuleContext() antlr.RuleContext
- func (*MethDeclContext) IsMethDeclContext()
- func (s *MethDeclContext) MethBody() IMethBodyContext
- func (s *MethDeclContext) ParamDecl() IParamDeclContext
- func (s *MethDeclContext) Sig() ISigContext
- func (s *MethDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MethReturnContext
- func (s *MethReturnContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MethReturnContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MethReturnContext) Expr() IExprContext
- func (s *MethReturnContext) GetRuleContext() antlr.RuleContext
- func (s *MethReturnContext) RETURN() antlr.TerminalNode
- 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) GetTyp() IType_Context
- func (s *ParamDeclContext) GetVari() antlr.Token
- func (*ParamDeclContext) IsParamDeclContext()
- func (s *ParamDeclContext) NAME() antlr.TerminalNode
- func (s *ParamDeclContext) SetTyp(v IType_Context)
- func (s *ParamDeclContext) SetVari(v antlr.Token)
- func (s *ParamDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *ParamDeclContext) Type_() IType_Context
- 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 SequenceContext
- type SigContext
- func (s *SigContext) AllNAME() []antlr.TerminalNode
- 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) GetRet() antlr.Token
- func (s *SigContext) GetRuleContext() antlr.RuleContext
- func (*SigContext) IsSigContext()
- func (s *SigContext) NAME(i int) antlr.TerminalNode
- func (s *SigContext) Params() IParamsContext
- func (s *SigContext) SetMeth(v antlr.Token)
- func (s *SigContext) SetRet(v antlr.Token)
- func (s *SigContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- 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 StmtContext
- type StructLitContext
- func (s *StructLitContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StructLitContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StructLitContext) Exprs() IExprsContext
- func (s *StructLitContext) GetRuleContext() antlr.RuleContext
- func (s *StructLitContext) NAME() antlr.TerminalNode
- 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 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) TypeLit() ITypeLitContext
- type TypeLitContext
- type Type_Context
- func (s *Type_Context) ChannelTypeLit() IChannelTypeLitContext
- func (s *Type_Context) EnterRule(listener antlr.ParseTreeListener)
- func (s *Type_Context) ExitRule(listener antlr.ParseTreeListener)
- func (s *Type_Context) GetParser() antlr.Parser
- func (s *Type_Context) GetRuleContext() antlr.RuleContext
- func (s *Type_Context) GetTyName() antlr.Token
- func (*Type_Context) IsType_Context()
- func (s *Type_Context) NAME() antlr.TerminalNode
- func (s *Type_Context) SetTyName(v antlr.Token)
- func (s *Type_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *Type_Context) Type_() IType_Context
- type VariableContext
Constants ¶
const ( FGLexerT__0 = 1 FGLexerT__1 = 2 FGLexerT__2 = 3 FGLexerT__3 = 4 FGLexerT__4 = 5 FGLexerT__5 = 6 FGLexerT__6 = 7 FGLexerT__7 = 8 FGLexerT__8 = 9 FGLexerT__9 = 10 FGLexerT__10 = 11 FGLexerT__11 = 12 FGLexerT__12 = 13 FGLexerT__13 = 14 FGLexerFUNC = 15 FGLexerINTERFACE = 16 FGLexerMAIN = 17 FGLexerPACKAGE = 18 FGLexerRETURN = 19 FGLexerSTRUCT = 20 FGLexerTYPE = 21 FGLexerIMPORT = 22 FGLexerFMT = 23 FGLexerPRINTF = 24 FGLexerSPRINTF = 25 FGLexerCLOSE = 26 FGLexerGORTN = 27 FGLexerMAKE = 28 FGLexerSELECT = 29 FGLexerDEFAULT = 30 FGLexerCASE = 31 FGLexerNAME = 32 FGLexerWHITESPACE = 33 FGLexerCOMMENT = 34 FGLexerLINE_COMMENT = 35 FGLexerSTRING = 36 )
FGLexer tokens.
const ( FGParserEOF = antlr.TokenEOF FGParserT__0 = 1 FGParserT__1 = 2 FGParserT__2 = 3 FGParserT__3 = 4 FGParserT__4 = 5 FGParserT__5 = 6 FGParserT__6 = 7 FGParserT__7 = 8 FGParserT__8 = 9 FGParserT__9 = 10 FGParserT__10 = 11 FGParserT__11 = 12 FGParserT__12 = 13 FGParserT__13 = 14 FGParserFUNC = 15 FGParserINTERFACE = 16 FGParserMAIN = 17 FGParserPACKAGE = 18 FGParserRETURN = 19 FGParserSTRUCT = 20 FGParserTYPE = 21 FGParserIMPORT = 22 FGParserFMT = 23 FGParserPRINTF = 24 FGParserSPRINTF = 25 FGParserCLOSE = 26 FGParserGORTN = 27 FGParserMAKE = 28 FGParserSELECT = 29 FGParserDEFAULT = 30 FGParserCASE = 31 FGParserNAME = 32 FGParserWHITESPACE = 33 FGParserCOMMENT = 34 FGParserLINE_COMMENT = 35 FGParserSTRING = 36 )
FGParser tokens.
const ( FGParserRULE_program = 0 FGParserRULE_decls = 1 FGParserRULE_typeDecl = 2 FGParserRULE_methBody = 3 FGParserRULE_methDecl = 4 FGParserRULE_typeLit = 5 FGParserRULE_channelTypeLit = 6 FGParserRULE_type_ = 7 FGParserRULE_fieldDecls = 8 FGParserRULE_fieldDecl = 9 FGParserRULE_specs = 10 FGParserRULE_spec = 11 FGParserRULE_sig = 12 FGParserRULE_params = 13 FGParserRULE_paramDecl = 14 FGParserRULE_methCall_ = 15 FGParserRULE_stmt = 16 FGParserRULE_caseGuard = 17 FGParserRULE_expr = 18 FGParserRULE_exprs = 19 )
FGParser 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) NAME ¶
func (s *AssertContext) NAME() antlr.TerminalNode
type AssignmentContext ¶
type AssignmentContext struct { *StmtContext // contains filtered or unexported fields }
func NewAssignmentContext ¶
func NewAssignmentContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *AssignmentContext
func (*AssignmentContext) EnterRule ¶
func (s *AssignmentContext) EnterRule(listener antlr.ParseTreeListener)
func (*AssignmentContext) ExitRule ¶
func (s *AssignmentContext) ExitRule(listener antlr.ParseTreeListener)
func (*AssignmentContext) Expr ¶
func (s *AssignmentContext) Expr() IExprContext
func (*AssignmentContext) GetLvalue ¶
func (s *AssignmentContext) GetLvalue() antlr.Token
func (*AssignmentContext) GetRuleContext ¶
func (s *AssignmentContext) GetRuleContext() antlr.RuleContext
func (*AssignmentContext) NAME ¶
func (s *AssignmentContext) NAME() antlr.TerminalNode
func (*AssignmentContext) SetLvalue ¶
func (s *AssignmentContext) SetLvalue(v antlr.Token)
type BaseFGListener ¶
type BaseFGListener struct{}
BaseFGListener is a complete listener for a parse tree produced by FGParser.
func (*BaseFGListener) EnterAssert ¶
func (s *BaseFGListener) EnterAssert(ctx *AssertContext)
EnterAssert is called when production Assert is entered.
func (*BaseFGListener) EnterAssignment ¶
func (s *BaseFGListener) EnterAssignment(ctx *AssignmentContext)
EnterAssignment is called when production Assignment is entered.
func (*BaseFGListener) EnterCall ¶
func (s *BaseFGListener) EnterCall(ctx *CallContext)
EnterCall is called when production Call is entered.
func (*BaseFGListener) EnterCaseSelect ¶
func (s *BaseFGListener) EnterCaseSelect(ctx *CaseSelectContext)
EnterCaseSelect is called when production CaseSelect is entered.
func (*BaseFGListener) EnterChClose ¶
func (s *BaseFGListener) EnterChClose(ctx *ChCloseContext)
EnterChClose is called when production ChClose is entered.
func (*BaseFGListener) EnterChDispatch ¶
func (s *BaseFGListener) EnterChDispatch(ctx *ChDispatchContext)
EnterChDispatch is called when production ChDispatch is entered.
func (*BaseFGListener) EnterChanRecv ¶
func (s *BaseFGListener) EnterChanRecv(ctx *ChanRecvContext)
EnterChanRecv is called when production ChanRecv is entered.
func (*BaseFGListener) EnterChannelTypeLit ¶
func (s *BaseFGListener) EnterChannelTypeLit(ctx *ChannelTypeLitContext)
EnterChannelTypeLit is called when production channelTypeLit is entered.
func (*BaseFGListener) EnterDecls ¶
func (s *BaseFGListener) EnterDecls(ctx *DeclsContext)
EnterDecls is called when production decls is entered.
func (*BaseFGListener) EnterEveryRule ¶
func (s *BaseFGListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseFGListener) EnterExprs ¶
func (s *BaseFGListener) EnterExprs(ctx *ExprsContext)
EnterExprs is called when production exprs is entered.
func (*BaseFGListener) EnterFieldDecl ¶
func (s *BaseFGListener) EnterFieldDecl(ctx *FieldDeclContext)
EnterFieldDecl is called when production fieldDecl is entered.
func (*BaseFGListener) EnterFieldDecls ¶
func (s *BaseFGListener) EnterFieldDecls(ctx *FieldDeclsContext)
EnterFieldDecls is called when production fieldDecls is entered.
func (*BaseFGListener) EnterGoroutine ¶
func (s *BaseFGListener) EnterGoroutine(ctx *GoroutineContext)
EnterGoroutine is called when production Goroutine is entered.
func (*BaseFGListener) EnterGuardDispatch ¶
func (s *BaseFGListener) EnterGuardDispatch(ctx *GuardDispatchContext)
EnterGuardDispatch is called when production GuardDispatch is entered.
func (*BaseFGListener) EnterGuardReceive ¶
func (s *BaseFGListener) EnterGuardReceive(ctx *GuardReceiveContext)
EnterGuardReceive is called when production GuardReceive is entered.
func (*BaseFGListener) EnterInterfaceSpec ¶
func (s *BaseFGListener) EnterInterfaceSpec(ctx *InterfaceSpecContext)
EnterInterfaceSpec is called when production InterfaceSpec is entered.
func (*BaseFGListener) EnterInterfaceTypeLit ¶
func (s *BaseFGListener) EnterInterfaceTypeLit(ctx *InterfaceTypeLitContext)
EnterInterfaceTypeLit is called when production InterfaceTypeLit is entered.
func (*BaseFGListener) EnterMakeChan ¶
func (s *BaseFGListener) EnterMakeChan(ctx *MakeChanContext)
EnterMakeChan is called when production MakeChan is entered.
func (*BaseFGListener) EnterMethCallPrime ¶
func (s *BaseFGListener) EnterMethCallPrime(ctx *MethCallPrimeContext)
EnterMethCallPrime is called when production MethCallPrime is entered.
func (*BaseFGListener) EnterMethDecl ¶
func (s *BaseFGListener) EnterMethDecl(ctx *MethDeclContext)
EnterMethDecl is called when production methDecl is entered.
func (*BaseFGListener) EnterMethReturn ¶
func (s *BaseFGListener) EnterMethReturn(ctx *MethReturnContext)
EnterMethReturn is called when production MethReturn is entered.
func (*BaseFGListener) EnterParamDecl ¶
func (s *BaseFGListener) EnterParamDecl(ctx *ParamDeclContext)
EnterParamDecl is called when production paramDecl is entered.
func (*BaseFGListener) EnterParams ¶
func (s *BaseFGListener) EnterParams(ctx *ParamsContext)
EnterParams is called when production params is entered.
func (*BaseFGListener) EnterProgram ¶
func (s *BaseFGListener) EnterProgram(ctx *ProgramContext)
EnterProgram is called when production program is entered.
func (*BaseFGListener) EnterSelect ¶
func (s *BaseFGListener) EnterSelect(ctx *SelectContext)
EnterSelect is called when production Select is entered.
func (*BaseFGListener) EnterSequence ¶
func (s *BaseFGListener) EnterSequence(ctx *SequenceContext)
EnterSequence is called when production Sequence is entered.
func (*BaseFGListener) EnterSig ¶
func (s *BaseFGListener) EnterSig(ctx *SigContext)
EnterSig is called when production sig is entered.
func (*BaseFGListener) EnterSigSpec ¶
func (s *BaseFGListener) EnterSigSpec(ctx *SigSpecContext)
EnterSigSpec is called when production SigSpec is entered.
func (*BaseFGListener) EnterSpecs ¶
func (s *BaseFGListener) EnterSpecs(ctx *SpecsContext)
EnterSpecs is called when production specs is entered.
func (*BaseFGListener) EnterSprintf ¶
func (s *BaseFGListener) EnterSprintf(ctx *SprintfContext)
EnterSprintf is called when production Sprintf is entered.
func (*BaseFGListener) EnterStructLit ¶
func (s *BaseFGListener) EnterStructLit(ctx *StructLitContext)
EnterStructLit is called when production StructLit is entered.
func (*BaseFGListener) EnterStructTypeLit ¶
func (s *BaseFGListener) EnterStructTypeLit(ctx *StructTypeLitContext)
EnterStructTypeLit is called when production StructTypeLit is entered.
func (*BaseFGListener) EnterTypeDecl ¶
func (s *BaseFGListener) EnterTypeDecl(ctx *TypeDeclContext)
EnterTypeDecl is called when production typeDecl is entered.
func (*BaseFGListener) EnterType_ ¶
func (s *BaseFGListener) EnterType_(ctx *Type_Context)
EnterType_ is called when production type_ is entered.
func (*BaseFGListener) EnterVariable ¶
func (s *BaseFGListener) EnterVariable(ctx *VariableContext)
EnterVariable is called when production Variable is entered.
func (*BaseFGListener) ExitAssert ¶
func (s *BaseFGListener) ExitAssert(ctx *AssertContext)
ExitAssert is called when production Assert is exited.
func (*BaseFGListener) ExitAssignment ¶
func (s *BaseFGListener) ExitAssignment(ctx *AssignmentContext)
ExitAssignment is called when production Assignment is exited.
func (*BaseFGListener) ExitCall ¶
func (s *BaseFGListener) ExitCall(ctx *CallContext)
ExitCall is called when production Call is exited.
func (*BaseFGListener) ExitCaseSelect ¶
func (s *BaseFGListener) ExitCaseSelect(ctx *CaseSelectContext)
ExitCaseSelect is called when production CaseSelect is exited.
func (*BaseFGListener) ExitChClose ¶
func (s *BaseFGListener) ExitChClose(ctx *ChCloseContext)
ExitChClose is called when production ChClose is exited.
func (*BaseFGListener) ExitChDispatch ¶
func (s *BaseFGListener) ExitChDispatch(ctx *ChDispatchContext)
ExitChDispatch is called when production ChDispatch is exited.
func (*BaseFGListener) ExitChanRecv ¶
func (s *BaseFGListener) ExitChanRecv(ctx *ChanRecvContext)
ExitChanRecv is called when production ChanRecv is exited.
func (*BaseFGListener) ExitChannelTypeLit ¶
func (s *BaseFGListener) ExitChannelTypeLit(ctx *ChannelTypeLitContext)
ExitChannelTypeLit is called when production channelTypeLit is exited.
func (*BaseFGListener) ExitDecls ¶
func (s *BaseFGListener) ExitDecls(ctx *DeclsContext)
ExitDecls is called when production decls is exited.
func (*BaseFGListener) ExitEveryRule ¶
func (s *BaseFGListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseFGListener) ExitExprs ¶
func (s *BaseFGListener) ExitExprs(ctx *ExprsContext)
ExitExprs is called when production exprs is exited.
func (*BaseFGListener) ExitFieldDecl ¶
func (s *BaseFGListener) ExitFieldDecl(ctx *FieldDeclContext)
ExitFieldDecl is called when production fieldDecl is exited.
func (*BaseFGListener) ExitFieldDecls ¶
func (s *BaseFGListener) ExitFieldDecls(ctx *FieldDeclsContext)
ExitFieldDecls is called when production fieldDecls is exited.
func (*BaseFGListener) ExitGoroutine ¶
func (s *BaseFGListener) ExitGoroutine(ctx *GoroutineContext)
ExitGoroutine is called when production Goroutine is exited.
func (*BaseFGListener) ExitGuardDispatch ¶
func (s *BaseFGListener) ExitGuardDispatch(ctx *GuardDispatchContext)
ExitGuardDispatch is called when production GuardDispatch is exited.
func (*BaseFGListener) ExitGuardReceive ¶
func (s *BaseFGListener) ExitGuardReceive(ctx *GuardReceiveContext)
ExitGuardReceive is called when production GuardReceive is exited.
func (*BaseFGListener) ExitInterfaceSpec ¶
func (s *BaseFGListener) ExitInterfaceSpec(ctx *InterfaceSpecContext)
ExitInterfaceSpec is called when production InterfaceSpec is exited.
func (*BaseFGListener) ExitInterfaceTypeLit ¶
func (s *BaseFGListener) ExitInterfaceTypeLit(ctx *InterfaceTypeLitContext)
ExitInterfaceTypeLit is called when production InterfaceTypeLit is exited.
func (*BaseFGListener) ExitMakeChan ¶
func (s *BaseFGListener) ExitMakeChan(ctx *MakeChanContext)
ExitMakeChan is called when production MakeChan is exited.
func (*BaseFGListener) ExitMethCallPrime ¶
func (s *BaseFGListener) ExitMethCallPrime(ctx *MethCallPrimeContext)
ExitMethCallPrime is called when production MethCallPrime is exited.
func (*BaseFGListener) ExitMethDecl ¶
func (s *BaseFGListener) ExitMethDecl(ctx *MethDeclContext)
ExitMethDecl is called when production methDecl is exited.
func (*BaseFGListener) ExitMethReturn ¶
func (s *BaseFGListener) ExitMethReturn(ctx *MethReturnContext)
ExitMethReturn is called when production MethReturn is exited.
func (*BaseFGListener) ExitParamDecl ¶
func (s *BaseFGListener) ExitParamDecl(ctx *ParamDeclContext)
ExitParamDecl is called when production paramDecl is exited.
func (*BaseFGListener) ExitParams ¶
func (s *BaseFGListener) ExitParams(ctx *ParamsContext)
ExitParams is called when production params is exited.
func (*BaseFGListener) ExitProgram ¶
func (s *BaseFGListener) ExitProgram(ctx *ProgramContext)
ExitProgram is called when production program is exited.
func (*BaseFGListener) ExitSelect ¶
func (s *BaseFGListener) ExitSelect(ctx *SelectContext)
ExitSelect is called when production Select is exited.
func (*BaseFGListener) ExitSequence ¶
func (s *BaseFGListener) ExitSequence(ctx *SequenceContext)
ExitSequence is called when production Sequence is exited.
func (*BaseFGListener) ExitSig ¶
func (s *BaseFGListener) ExitSig(ctx *SigContext)
ExitSig is called when production sig is exited.
func (*BaseFGListener) ExitSigSpec ¶
func (s *BaseFGListener) ExitSigSpec(ctx *SigSpecContext)
ExitSigSpec is called when production SigSpec is exited.
func (*BaseFGListener) ExitSpecs ¶
func (s *BaseFGListener) ExitSpecs(ctx *SpecsContext)
ExitSpecs is called when production specs is exited.
func (*BaseFGListener) ExitSprintf ¶
func (s *BaseFGListener) ExitSprintf(ctx *SprintfContext)
ExitSprintf is called when production Sprintf is exited.
func (*BaseFGListener) ExitStructLit ¶
func (s *BaseFGListener) ExitStructLit(ctx *StructLitContext)
ExitStructLit is called when production StructLit is exited.
func (*BaseFGListener) ExitStructTypeLit ¶
func (s *BaseFGListener) ExitStructTypeLit(ctx *StructTypeLitContext)
ExitStructTypeLit is called when production StructTypeLit is exited.
func (*BaseFGListener) ExitTypeDecl ¶
func (s *BaseFGListener) ExitTypeDecl(ctx *TypeDeclContext)
ExitTypeDecl is called when production typeDecl is exited.
func (*BaseFGListener) ExitType_ ¶
func (s *BaseFGListener) ExitType_(ctx *Type_Context)
ExitType_ is called when production type_ is exited.
func (*BaseFGListener) ExitVariable ¶
func (s *BaseFGListener) ExitVariable(ctx *VariableContext)
ExitVariable is called when production Variable is exited.
func (*BaseFGListener) VisitErrorNode ¶
func (s *BaseFGListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseFGListener) VisitTerminal ¶
func (s *BaseFGListener) 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) GetRecv ¶
func (s *CallContext) GetRecv() IExprContext
func (*CallContext) GetRuleContext ¶
func (s *CallContext) GetRuleContext() antlr.RuleContext
func (*CallContext) MethCall_ ¶
func (s *CallContext) MethCall_() IMethCall_Context
func (*CallContext) SetRecv ¶
func (s *CallContext) SetRecv(v IExprContext)
type CaseGuardContext ¶
type CaseGuardContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCaseGuardContext ¶
func NewCaseGuardContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CaseGuardContext
func NewEmptyCaseGuardContext ¶
func NewEmptyCaseGuardContext() *CaseGuardContext
func (*CaseGuardContext) CopyFrom ¶
func (s *CaseGuardContext) CopyFrom(ctx *CaseGuardContext)
func (*CaseGuardContext) GetParser ¶
func (s *CaseGuardContext) GetParser() antlr.Parser
func (*CaseGuardContext) GetRuleContext ¶
func (s *CaseGuardContext) GetRuleContext() antlr.RuleContext
func (*CaseGuardContext) IsCaseGuardContext ¶
func (*CaseGuardContext) IsCaseGuardContext()
func (*CaseGuardContext) ToStringTree ¶
func (s *CaseGuardContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CaseSelectContext ¶
type CaseSelectContext struct {
*MethBodyContext
}
func NewCaseSelectContext ¶
func NewCaseSelectContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CaseSelectContext
func (*CaseSelectContext) AllCASE ¶
func (s *CaseSelectContext) AllCASE() []antlr.TerminalNode
func (*CaseSelectContext) AllCaseGuard ¶
func (s *CaseSelectContext) AllCaseGuard() []ICaseGuardContext
func (*CaseSelectContext) AllMethBody ¶
func (s *CaseSelectContext) AllMethBody() []IMethBodyContext
func (*CaseSelectContext) CASE ¶
func (s *CaseSelectContext) CASE(i int) antlr.TerminalNode
func (*CaseSelectContext) CaseGuard ¶
func (s *CaseSelectContext) CaseGuard(i int) ICaseGuardContext
func (*CaseSelectContext) DEFAULT ¶
func (s *CaseSelectContext) DEFAULT() antlr.TerminalNode
func (*CaseSelectContext) EnterRule ¶
func (s *CaseSelectContext) EnterRule(listener antlr.ParseTreeListener)
func (*CaseSelectContext) ExitRule ¶
func (s *CaseSelectContext) ExitRule(listener antlr.ParseTreeListener)
func (*CaseSelectContext) GetRuleContext ¶
func (s *CaseSelectContext) GetRuleContext() antlr.RuleContext
func (*CaseSelectContext) MethBody ¶
func (s *CaseSelectContext) MethBody(i int) IMethBodyContext
func (*CaseSelectContext) SELECT ¶
func (s *CaseSelectContext) SELECT() antlr.TerminalNode
type ChCloseContext ¶
type ChCloseContext struct {
*StmtContext
}
func NewChCloseContext ¶
func NewChCloseContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ChCloseContext
func (*ChCloseContext) CLOSE ¶
func (s *ChCloseContext) CLOSE() antlr.TerminalNode
func (*ChCloseContext) EnterRule ¶
func (s *ChCloseContext) EnterRule(listener antlr.ParseTreeListener)
func (*ChCloseContext) ExitRule ¶
func (s *ChCloseContext) ExitRule(listener antlr.ParseTreeListener)
func (*ChCloseContext) Expr ¶
func (s *ChCloseContext) Expr() IExprContext
func (*ChCloseContext) GetRuleContext ¶
func (s *ChCloseContext) GetRuleContext() antlr.RuleContext
type ChDispatchContext ¶
type ChDispatchContext struct {
*StmtContext
}
func NewChDispatchContext ¶
func NewChDispatchContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ChDispatchContext
func (*ChDispatchContext) AllExpr ¶
func (s *ChDispatchContext) AllExpr() []IExprContext
func (*ChDispatchContext) EnterRule ¶
func (s *ChDispatchContext) EnterRule(listener antlr.ParseTreeListener)
func (*ChDispatchContext) ExitRule ¶
func (s *ChDispatchContext) ExitRule(listener antlr.ParseTreeListener)
func (*ChDispatchContext) Expr ¶
func (s *ChDispatchContext) Expr(i int) IExprContext
func (*ChDispatchContext) GetRuleContext ¶
func (s *ChDispatchContext) GetRuleContext() antlr.RuleContext
type ChanRecvContext ¶
type ChanRecvContext struct {
*ExprContext
}
func NewChanRecvContext ¶
func NewChanRecvContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ChanRecvContext
func (*ChanRecvContext) EnterRule ¶
func (s *ChanRecvContext) EnterRule(listener antlr.ParseTreeListener)
func (*ChanRecvContext) ExitRule ¶
func (s *ChanRecvContext) ExitRule(listener antlr.ParseTreeListener)
func (*ChanRecvContext) Expr ¶
func (s *ChanRecvContext) Expr() IExprContext
func (*ChanRecvContext) GetRuleContext ¶
func (s *ChanRecvContext) GetRuleContext() antlr.RuleContext
type ChannelTypeLitContext ¶
type ChannelTypeLitContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewChannelTypeLitContext ¶
func NewChannelTypeLitContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ChannelTypeLitContext
func NewEmptyChannelTypeLitContext ¶
func NewEmptyChannelTypeLitContext() *ChannelTypeLitContext
func (*ChannelTypeLitContext) EnterRule ¶
func (s *ChannelTypeLitContext) EnterRule(listener antlr.ParseTreeListener)
func (*ChannelTypeLitContext) ExitRule ¶
func (s *ChannelTypeLitContext) ExitRule(listener antlr.ParseTreeListener)
func (*ChannelTypeLitContext) GetParser ¶
func (s *ChannelTypeLitContext) GetParser() antlr.Parser
func (*ChannelTypeLitContext) GetRuleContext ¶
func (s *ChannelTypeLitContext) GetRuleContext() antlr.RuleContext
func (*ChannelTypeLitContext) IsChannelTypeLitContext ¶
func (*ChannelTypeLitContext) IsChannelTypeLitContext()
func (*ChannelTypeLitContext) ToStringTree ¶
func (s *ChannelTypeLitContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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 FGLexer ¶
func NewFGLexer ¶
func NewFGLexer(input antlr.CharStream) *FGLexer
type FGListener ¶
type FGListener interface { antlr.ParseTreeListener // 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) // EnterMethReturn is called when entering the MethReturn production. EnterMethReturn(c *MethReturnContext) // EnterSequence is called when entering the Sequence production. EnterSequence(c *SequenceContext) // EnterSprintf is called when entering the Sprintf production. EnterSprintf(c *SprintfContext) // EnterCaseSelect is called when entering the CaseSelect production. EnterCaseSelect(c *CaseSelectContext) // 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) // EnterChannelTypeLit is called when entering the channelTypeLit production. EnterChannelTypeLit(c *ChannelTypeLitContext) // EnterType_ is called when entering the type_ production. EnterType_(c *Type_Context) // 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) // EnterMethCallPrime is called when entering the MethCallPrime production. EnterMethCallPrime(c *MethCallPrimeContext) // EnterChClose is called when entering the ChClose production. EnterChClose(c *ChCloseContext) // EnterChDispatch is called when entering the ChDispatch production. EnterChDispatch(c *ChDispatchContext) // EnterGoroutine is called when entering the Goroutine production. EnterGoroutine(c *GoroutineContext) // EnterAssignment is called when entering the Assignment production. EnterAssignment(c *AssignmentContext) // EnterGuardDispatch is called when entering the GuardDispatch production. EnterGuardDispatch(c *GuardDispatchContext) // EnterGuardReceive is called when entering the GuardReceive production. EnterGuardReceive(c *GuardReceiveContext) // 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) // EnterSelect is called when entering the Select production. EnterSelect(c *SelectContext) // EnterChanRecv is called when entering the ChanRecv production. EnterChanRecv(c *ChanRecvContext) // EnterStructLit is called when entering the StructLit production. EnterStructLit(c *StructLitContext) // EnterMakeChan is called when entering the MakeChan production. EnterMakeChan(c *MakeChanContext) // EnterExprs is called when entering the exprs production. EnterExprs(c *ExprsContext) // 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) // ExitMethReturn is called when exiting the MethReturn production. ExitMethReturn(c *MethReturnContext) // ExitSequence is called when exiting the Sequence production. ExitSequence(c *SequenceContext) // ExitSprintf is called when exiting the Sprintf production. ExitSprintf(c *SprintfContext) // ExitCaseSelect is called when exiting the CaseSelect production. ExitCaseSelect(c *CaseSelectContext) // 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) // ExitChannelTypeLit is called when exiting the channelTypeLit production. ExitChannelTypeLit(c *ChannelTypeLitContext) // ExitType_ is called when exiting the type_ production. ExitType_(c *Type_Context) // 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) // ExitMethCallPrime is called when exiting the MethCallPrime production. ExitMethCallPrime(c *MethCallPrimeContext) // ExitChClose is called when exiting the ChClose production. ExitChClose(c *ChCloseContext) // ExitChDispatch is called when exiting the ChDispatch production. ExitChDispatch(c *ChDispatchContext) // ExitGoroutine is called when exiting the Goroutine production. ExitGoroutine(c *GoroutineContext) // ExitAssignment is called when exiting the Assignment production. ExitAssignment(c *AssignmentContext) // ExitGuardDispatch is called when exiting the GuardDispatch production. ExitGuardDispatch(c *GuardDispatchContext) // ExitGuardReceive is called when exiting the GuardReceive production. ExitGuardReceive(c *GuardReceiveContext) // 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) // ExitSelect is called when exiting the Select production. ExitSelect(c *SelectContext) // ExitChanRecv is called when exiting the ChanRecv production. ExitChanRecv(c *ChanRecvContext) // ExitStructLit is called when exiting the StructLit production. ExitStructLit(c *StructLitContext) // ExitMakeChan is called when exiting the MakeChan production. ExitMakeChan(c *MakeChanContext) // ExitExprs is called when exiting the exprs production. ExitExprs(c *ExprsContext) }
FGListener is a complete listener for a parse tree produced by FGParser.
type FGParser ¶
type FGParser struct {
*antlr.BaseParser
}
func NewFGParser ¶
func NewFGParser(input antlr.TokenStream) *FGParser
func (*FGParser) CaseGuard ¶
func (p *FGParser) CaseGuard() (localctx ICaseGuardContext)
func (*FGParser) ChannelTypeLit ¶
func (p *FGParser) ChannelTypeLit() (localctx IChannelTypeLitContext)
func (*FGParser) Decls ¶
func (p *FGParser) Decls() (localctx IDeclsContext)
func (*FGParser) Expr ¶
func (p *FGParser) Expr() (localctx IExprContext)
func (*FGParser) Expr_Sempred ¶
func (p *FGParser) Expr_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*FGParser) Exprs ¶
func (p *FGParser) Exprs() (localctx IExprsContext)
func (*FGParser) FieldDecl ¶
func (p *FGParser) FieldDecl() (localctx IFieldDeclContext)
func (*FGParser) FieldDecls ¶
func (p *FGParser) FieldDecls() (localctx IFieldDeclsContext)
func (*FGParser) MethBody ¶
func (p *FGParser) MethBody() (localctx IMethBodyContext)
func (*FGParser) MethCall_ ¶
func (p *FGParser) MethCall_() (localctx IMethCall_Context)
func (*FGParser) MethDecl ¶
func (p *FGParser) MethDecl() (localctx IMethDeclContext)
func (*FGParser) ParamDecl ¶
func (p *FGParser) ParamDecl() (localctx IParamDeclContext)
func (*FGParser) Params ¶
func (p *FGParser) Params() (localctx IParamsContext)
func (*FGParser) Program ¶
func (p *FGParser) Program() (localctx IProgramContext)
func (*FGParser) Sempred ¶
func (p *FGParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
func (*FGParser) Sig ¶
func (p *FGParser) Sig() (localctx ISigContext)
func (*FGParser) Spec ¶
func (p *FGParser) Spec() (localctx ISpecContext)
func (*FGParser) Specs ¶
func (p *FGParser) Specs() (localctx ISpecsContext)
func (*FGParser) Stmt ¶
func (p *FGParser) Stmt() (localctx IStmtContext)
func (*FGParser) TypeDecl ¶
func (p *FGParser) TypeDecl() (localctx ITypeDeclContext)
func (*FGParser) TypeLit ¶
func (p *FGParser) TypeLit() (localctx ITypeLitContext)
func (*FGParser) Type_ ¶
func (p *FGParser) Type_() (localctx IType_Context)
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) GetTyp ¶
func (s *FieldDeclContext) GetTyp() IType_Context
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) SetTyp ¶
func (s *FieldDeclContext) SetTyp(v IType_Context)
func (*FieldDeclContext) ToStringTree ¶
func (s *FieldDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*FieldDeclContext) Type_ ¶
func (s *FieldDeclContext) Type_() IType_Context
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 GoroutineContext ¶
type GoroutineContext struct { *StmtContext // contains filtered or unexported fields }
func NewGoroutineContext ¶
func NewGoroutineContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *GoroutineContext
func (*GoroutineContext) EnterRule ¶
func (s *GoroutineContext) EnterRule(listener antlr.ParseTreeListener)
func (*GoroutineContext) ExitRule ¶
func (s *GoroutineContext) ExitRule(listener antlr.ParseTreeListener)
func (*GoroutineContext) Expr ¶
func (s *GoroutineContext) Expr() IExprContext
func (*GoroutineContext) GORTN ¶
func (s *GoroutineContext) GORTN() antlr.TerminalNode
func (*GoroutineContext) GetRecv ¶
func (s *GoroutineContext) GetRecv() IExprContext
func (*GoroutineContext) GetRuleContext ¶
func (s *GoroutineContext) GetRuleContext() antlr.RuleContext
func (*GoroutineContext) MethCall_ ¶
func (s *GoroutineContext) MethCall_() IMethCall_Context
func (*GoroutineContext) SetRecv ¶
func (s *GoroutineContext) SetRecv(v IExprContext)
type GuardDispatchContext ¶
type GuardDispatchContext struct {
*CaseGuardContext
}
func NewGuardDispatchContext ¶
func NewGuardDispatchContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *GuardDispatchContext
func (*GuardDispatchContext) AllExpr ¶
func (s *GuardDispatchContext) AllExpr() []IExprContext
func (*GuardDispatchContext) EnterRule ¶
func (s *GuardDispatchContext) EnterRule(listener antlr.ParseTreeListener)
func (*GuardDispatchContext) ExitRule ¶
func (s *GuardDispatchContext) ExitRule(listener antlr.ParseTreeListener)
func (*GuardDispatchContext) Expr ¶
func (s *GuardDispatchContext) Expr(i int) IExprContext
func (*GuardDispatchContext) GetRuleContext ¶
func (s *GuardDispatchContext) GetRuleContext() antlr.RuleContext
type GuardReceiveContext ¶
type GuardReceiveContext struct { *CaseGuardContext // contains filtered or unexported fields }
func NewGuardReceiveContext ¶
func NewGuardReceiveContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *GuardReceiveContext
func (*GuardReceiveContext) EnterRule ¶
func (s *GuardReceiveContext) EnterRule(listener antlr.ParseTreeListener)
func (*GuardReceiveContext) ExitRule ¶
func (s *GuardReceiveContext) ExitRule(listener antlr.ParseTreeListener)
func (*GuardReceiveContext) Expr ¶
func (s *GuardReceiveContext) Expr() IExprContext
func (*GuardReceiveContext) GetLvalue ¶
func (s *GuardReceiveContext) GetLvalue() antlr.Token
func (*GuardReceiveContext) GetRuleContext ¶
func (s *GuardReceiveContext) GetRuleContext() antlr.RuleContext
func (*GuardReceiveContext) NAME ¶
func (s *GuardReceiveContext) NAME() antlr.TerminalNode
func (*GuardReceiveContext) SetLvalue ¶
func (s *GuardReceiveContext) SetLvalue(v antlr.Token)
type ICaseGuardContext ¶
type ICaseGuardContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCaseGuardContext differentiates from other interfaces. IsCaseGuardContext() }
ICaseGuardContext is an interface to support dynamic dispatch.
type IChannelTypeLitContext ¶
type IChannelTypeLitContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsChannelTypeLitContext differentiates from other interfaces. IsChannelTypeLitContext() }
IChannelTypeLitContext is an interface to support dynamic dispatch.
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) // GetTyp returns the typ rule contexts. GetTyp() IType_Context // SetTyp sets the typ rule contexts. SetTyp(IType_Context) // 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 IMethBodyContext ¶
type IMethBodyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMethBodyContext differentiates from other interfaces. IsMethBodyContext() }
IMethBodyContext is an interface to support dynamic dispatch.
type IMethCall_Context ¶
type IMethCall_Context interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMethCall_Context differentiates from other interfaces. IsMethCall_Context() }
IMethCall_Context is an interface to support dynamic dispatch.
type IMethDeclContext ¶
type IMethDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // 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) // GetTyp returns the typ rule contexts. GetTyp() IType_Context // SetTyp sets the typ rule contexts. SetTyp(IType_Context) // 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 // GetRet returns the ret token. GetRet() antlr.Token // SetMeth sets the meth token. SetMeth(antlr.Token) // SetRet sets the ret token. SetRet(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 IStmtContext ¶
type IStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStmtContext differentiates from other interfaces. IsStmtContext() }
IStmtContext 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 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 IType_Context ¶
type IType_Context interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetTyName returns the tyName token. GetTyName() antlr.Token // SetTyName sets the tyName token. SetTyName(antlr.Token) // IsType_Context differentiates from other interfaces. IsType_Context() }
IType_Context 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) NAME ¶
func (s *InterfaceSpecContext) NAME() antlr.TerminalNode
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 MakeChanContext ¶
type MakeChanContext struct {
*ExprContext
}
func NewMakeChanContext ¶
func NewMakeChanContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MakeChanContext
func (*MakeChanContext) EnterRule ¶
func (s *MakeChanContext) EnterRule(listener antlr.ParseTreeListener)
func (*MakeChanContext) ExitRule ¶
func (s *MakeChanContext) ExitRule(listener antlr.ParseTreeListener)
func (*MakeChanContext) GetRuleContext ¶
func (s *MakeChanContext) GetRuleContext() antlr.RuleContext
func (*MakeChanContext) MAKE ¶
func (s *MakeChanContext) MAKE() antlr.TerminalNode
func (*MakeChanContext) Type_ ¶
func (s *MakeChanContext) Type_() IType_Context
type MethBodyContext ¶
type MethBodyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMethBodyContext ¶
func NewEmptyMethBodyContext() *MethBodyContext
func NewMethBodyContext ¶
func NewMethBodyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MethBodyContext
func (*MethBodyContext) CopyFrom ¶
func (s *MethBodyContext) CopyFrom(ctx *MethBodyContext)
func (*MethBodyContext) GetParser ¶
func (s *MethBodyContext) GetParser() antlr.Parser
func (*MethBodyContext) GetRuleContext ¶
func (s *MethBodyContext) GetRuleContext() antlr.RuleContext
func (*MethBodyContext) IsMethBodyContext ¶
func (*MethBodyContext) IsMethBodyContext()
func (*MethBodyContext) ToStringTree ¶
func (s *MethBodyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MethCallPrimeContext ¶
type MethCallPrimeContext struct { *MethCall_Context // contains filtered or unexported fields }
func NewMethCallPrimeContext ¶
func NewMethCallPrimeContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MethCallPrimeContext
func (*MethCallPrimeContext) EnterRule ¶
func (s *MethCallPrimeContext) EnterRule(listener antlr.ParseTreeListener)
func (*MethCallPrimeContext) ExitRule ¶
func (s *MethCallPrimeContext) ExitRule(listener antlr.ParseTreeListener)
func (*MethCallPrimeContext) Exprs ¶
func (s *MethCallPrimeContext) Exprs() IExprsContext
func (*MethCallPrimeContext) GetArgs ¶
func (s *MethCallPrimeContext) GetArgs() IExprsContext
func (*MethCallPrimeContext) GetRuleContext ¶
func (s *MethCallPrimeContext) GetRuleContext() antlr.RuleContext
func (*MethCallPrimeContext) NAME ¶
func (s *MethCallPrimeContext) NAME() antlr.TerminalNode
func (*MethCallPrimeContext) SetArgs ¶
func (s *MethCallPrimeContext) SetArgs(v IExprsContext)
type MethCall_Context ¶
type MethCall_Context struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMethCall_Context ¶
func NewEmptyMethCall_Context() *MethCall_Context
func NewMethCall_Context ¶
func NewMethCall_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MethCall_Context
func (*MethCall_Context) CopyFrom ¶
func (s *MethCall_Context) CopyFrom(ctx *MethCall_Context)
func (*MethCall_Context) GetParser ¶
func (s *MethCall_Context) GetParser() antlr.Parser
func (*MethCall_Context) GetRuleContext ¶
func (s *MethCall_Context) GetRuleContext() antlr.RuleContext
func (*MethCall_Context) IsMethCall_Context ¶
func (*MethCall_Context) IsMethCall_Context()
func (*MethCall_Context) ToStringTree ¶
func (s *MethCall_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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) EnterRule ¶
func (s *MethDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*MethDeclContext) ExitRule ¶
func (s *MethDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*MethDeclContext) FUNC ¶
func (s *MethDeclContext) FUNC() antlr.TerminalNode
func (*MethDeclContext) GetParser ¶
func (s *MethDeclContext) GetParser() antlr.Parser
func (*MethDeclContext) GetRuleContext ¶
func (s *MethDeclContext) GetRuleContext() antlr.RuleContext
func (*MethDeclContext) IsMethDeclContext ¶
func (*MethDeclContext) IsMethDeclContext()
func (*MethDeclContext) MethBody ¶
func (s *MethDeclContext) MethBody() IMethBodyContext
func (*MethDeclContext) ParamDecl ¶
func (s *MethDeclContext) ParamDecl() IParamDeclContext
func (*MethDeclContext) Sig ¶
func (s *MethDeclContext) Sig() ISigContext
func (*MethDeclContext) ToStringTree ¶
func (s *MethDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MethReturnContext ¶
type MethReturnContext struct {
*MethBodyContext
}
func NewMethReturnContext ¶
func NewMethReturnContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *MethReturnContext
func (*MethReturnContext) EnterRule ¶
func (s *MethReturnContext) EnterRule(listener antlr.ParseTreeListener)
func (*MethReturnContext) ExitRule ¶
func (s *MethReturnContext) ExitRule(listener antlr.ParseTreeListener)
func (*MethReturnContext) Expr ¶
func (s *MethReturnContext) Expr() IExprContext
func (*MethReturnContext) GetRuleContext ¶
func (s *MethReturnContext) GetRuleContext() antlr.RuleContext
func (*MethReturnContext) RETURN ¶
func (s *MethReturnContext) RETURN() antlr.TerminalNode
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) GetTyp ¶
func (s *ParamDeclContext) GetTyp() IType_Context
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) SetTyp ¶
func (s *ParamDeclContext) SetTyp(v IType_Context)
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) Type_ ¶
func (s *ParamDeclContext) Type_() IType_Context
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 SequenceContext ¶
type SequenceContext struct {
*MethBodyContext
}
func NewSequenceContext ¶
func NewSequenceContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *SequenceContext
func (*SequenceContext) EnterRule ¶
func (s *SequenceContext) EnterRule(listener antlr.ParseTreeListener)
func (*SequenceContext) ExitRule ¶
func (s *SequenceContext) ExitRule(listener antlr.ParseTreeListener)
func (*SequenceContext) GetRuleContext ¶
func (s *SequenceContext) GetRuleContext() antlr.RuleContext
func (*SequenceContext) MethBody ¶
func (s *SequenceContext) MethBody() IMethBodyContext
func (*SequenceContext) Stmt ¶
func (s *SequenceContext) Stmt() IStmtContext
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) AllNAME ¶
func (s *SigContext) AllNAME() []antlr.TerminalNode
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) GetRet ¶
func (s *SigContext) GetRet() antlr.Token
func (*SigContext) GetRuleContext ¶
func (s *SigContext) GetRuleContext() antlr.RuleContext
func (*SigContext) IsSigContext ¶
func (*SigContext) IsSigContext()
func (*SigContext) NAME ¶
func (s *SigContext) NAME(i int) antlr.TerminalNode
func (*SigContext) Params ¶
func (s *SigContext) Params() IParamsContext
func (*SigContext) SetMeth ¶
func (s *SigContext) SetMeth(v antlr.Token)
func (*SigContext) SetRet ¶
func (s *SigContext) SetRet(v antlr.Token)
func (*SigContext) ToStringTree ¶
func (s *SigContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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 {
*MethBodyContext
}
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 StmtContext ¶
type StmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStmtContext ¶
func NewEmptyStmtContext() *StmtContext
func NewStmtContext ¶
func NewStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StmtContext
func (*StmtContext) CopyFrom ¶
func (s *StmtContext) CopyFrom(ctx *StmtContext)
func (*StmtContext) GetParser ¶
func (s *StmtContext) GetParser() antlr.Parser
func (*StmtContext) GetRuleContext ¶
func (s *StmtContext) GetRuleContext() antlr.RuleContext
func (*StmtContext) IsStmtContext ¶
func (*StmtContext) IsStmtContext()
func (*StmtContext) ToStringTree ¶
func (s *StmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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) NAME ¶
func (s *StructLitContext) NAME() antlr.TerminalNode
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 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) TypeLit ¶
func (s *TypeDeclContext) TypeLit() ITypeLitContext
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 Type_Context ¶
type Type_Context struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyType_Context ¶
func NewEmptyType_Context() *Type_Context
func NewType_Context ¶
func NewType_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Type_Context
func (*Type_Context) ChannelTypeLit ¶
func (s *Type_Context) ChannelTypeLit() IChannelTypeLitContext
func (*Type_Context) EnterRule ¶
func (s *Type_Context) EnterRule(listener antlr.ParseTreeListener)
func (*Type_Context) ExitRule ¶
func (s *Type_Context) ExitRule(listener antlr.ParseTreeListener)
func (*Type_Context) GetParser ¶
func (s *Type_Context) GetParser() antlr.Parser
func (*Type_Context) GetRuleContext ¶
func (s *Type_Context) GetRuleContext() antlr.RuleContext
func (*Type_Context) GetTyName ¶
func (s *Type_Context) GetTyName() antlr.Token
func (*Type_Context) IsType_Context ¶
func (*Type_Context) IsType_Context()
func (*Type_Context) NAME ¶
func (s *Type_Context) NAME() antlr.TerminalNode
func (*Type_Context) SetTyName ¶
func (s *Type_Context) SetTyName(v antlr.Token)
func (*Type_Context) ToStringTree ¶
func (s *Type_Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*Type_Context) Type_ ¶
func (s *Type_Context) Type_() IType_Context
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