Documentation
¶
Index ¶
- Constants
- Variables
- func CellScriptParserInit()
- func InitEmptyArithmeticExprContext(p *ArithmeticExprContext)
- func InitEmptyAssign_opContext(p *Assign_opContext)
- func InitEmptyAssignmentContext(p *AssignmentContext)
- func InitEmptyBlockContext(p *BlockContext)
- func InitEmptyBreakStmtContext(p *BreakStmtContext)
- func InitEmptyContinueStmtContext(p *ContinueStmtContext)
- func InitEmptyDeclarationContext(p *DeclarationContext)
- func InitEmptyEosContext(p *EosContext)
- func InitEmptyExpressionContext(p *ExpressionContext)
- func InitEmptyExpressionStmtContext(p *ExpressionStmtContext)
- func InitEmptyForClauseContext(p *ForClauseContext)
- func InitEmptyForStmtContext(p *ForStmtContext)
- func InitEmptyFunctionDeclContext(p *FunctionDeclContext)
- func InitEmptyIfStmtContext(p *IfStmtContext)
- func InitEmptyImportDeclContext(p *ImportDeclContext)
- func InitEmptyImportStmtContext(p *ImportStmtContext)
- func InitEmptyReturnExprContext(p *ReturnExprContext)
- func InitEmptyReturnStmtContext(p *ReturnStmtContext)
- func InitEmptySignatureContext(p *SignatureContext)
- func InitEmptySimpleStmtContext(p *SimpleStmtContext)
- func InitEmptySourceFileContext(p *SourceFileContext)
- func InitEmptyStatementContext(p *StatementContext)
- func InitEmptyTypeParameterDeclContext(p *TypeParameterDeclContext)
- func InitEmptyTypeParametersContext(p *TypeParametersContext)
- func InitEmptyVarDeclContext(p *VarDeclContext)
- type ArithmeticExprContext
- func (s *ArithmeticExprContext) ADD() antlr.TerminalNode
- func (s *ArithmeticExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ArithmeticExprContext) AllArithmeticExpr() []IArithmeticExprContext
- func (s *ArithmeticExprContext) ArithmeticExpr(i int) IArithmeticExprContext
- func (s *ArithmeticExprContext) DIV() antlr.TerminalNode
- func (s *ArithmeticExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ArithmeticExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ArithmeticExprContext) GetOp() antlr.Token
- func (s *ArithmeticExprContext) GetParser() antlr.Parser
- func (s *ArithmeticExprContext) GetRuleContext() antlr.RuleContext
- func (s *ArithmeticExprContext) IDENTIFIER() antlr.TerminalNode
- func (*ArithmeticExprContext) IsArithmeticExprContext()
- func (s *ArithmeticExprContext) MUL() antlr.TerminalNode
- func (s *ArithmeticExprContext) SUB() antlr.TerminalNode
- func (s *ArithmeticExprContext) SetOp(v antlr.Token)
- func (s *ArithmeticExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Assign_opContext
- func (s *Assign_opContext) ADD() antlr.TerminalNode
- func (s *Assign_opContext) ASSIGN() antlr.TerminalNode
- func (s *Assign_opContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Assign_opContext) DIV() antlr.TerminalNode
- func (s *Assign_opContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *Assign_opContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *Assign_opContext) GetParser() antlr.Parser
- func (s *Assign_opContext) GetRuleContext() antlr.RuleContext
- func (*Assign_opContext) IsAssign_opContext()
- func (s *Assign_opContext) MOD() antlr.TerminalNode
- func (s *Assign_opContext) MUL() antlr.TerminalNode
- func (s *Assign_opContext) SUB() antlr.TerminalNode
- func (s *Assign_opContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AssignmentContext
- func (s *AssignmentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *AssignmentContext) AllExpression() []IExpressionContext
- func (s *AssignmentContext) Assign_op() IAssign_opContext
- func (s *AssignmentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AssignmentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AssignmentContext) Expression(i int) IExpressionContext
- func (s *AssignmentContext) GetParser() antlr.Parser
- func (s *AssignmentContext) GetRuleContext() antlr.RuleContext
- func (*AssignmentContext) IsAssignmentContext()
- func (s *AssignmentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaseCellScriptParserListener
- func (s *BaseCellScriptParserListener) EnterArithmeticExpr(ctx *ArithmeticExprContext)
- func (s *BaseCellScriptParserListener) EnterAssign_op(ctx *Assign_opContext)
- func (s *BaseCellScriptParserListener) EnterAssignment(ctx *AssignmentContext)
- func (s *BaseCellScriptParserListener) EnterBlock(ctx *BlockContext)
- func (s *BaseCellScriptParserListener) EnterBreakStmt(ctx *BreakStmtContext)
- func (s *BaseCellScriptParserListener) EnterContinueStmt(ctx *ContinueStmtContext)
- func (s *BaseCellScriptParserListener) EnterDeclaration(ctx *DeclarationContext)
- func (s *BaseCellScriptParserListener) EnterEos(ctx *EosContext)
- func (s *BaseCellScriptParserListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseCellScriptParserListener) EnterExpression(ctx *ExpressionContext)
- func (s *BaseCellScriptParserListener) EnterExpressionStmt(ctx *ExpressionStmtContext)
- func (s *BaseCellScriptParserListener) EnterForClause(ctx *ForClauseContext)
- func (s *BaseCellScriptParserListener) EnterForStmt(ctx *ForStmtContext)
- func (s *BaseCellScriptParserListener) EnterFunctionDecl(ctx *FunctionDeclContext)
- func (s *BaseCellScriptParserListener) EnterIfStmt(ctx *IfStmtContext)
- func (s *BaseCellScriptParserListener) EnterImportDecl(ctx *ImportDeclContext)
- func (s *BaseCellScriptParserListener) EnterImportStmt(ctx *ImportStmtContext)
- func (s *BaseCellScriptParserListener) EnterReturnExpr(ctx *ReturnExprContext)
- func (s *BaseCellScriptParserListener) EnterReturnStmt(ctx *ReturnStmtContext)
- func (s *BaseCellScriptParserListener) EnterSignature(ctx *SignatureContext)
- func (s *BaseCellScriptParserListener) EnterSimpleStmt(ctx *SimpleStmtContext)
- func (s *BaseCellScriptParserListener) EnterSourceFile(ctx *SourceFileContext)
- func (s *BaseCellScriptParserListener) EnterStatement(ctx *StatementContext)
- func (s *BaseCellScriptParserListener) EnterTypeParameterDecl(ctx *TypeParameterDeclContext)
- func (s *BaseCellScriptParserListener) EnterTypeParameters(ctx *TypeParametersContext)
- func (s *BaseCellScriptParserListener) EnterVarDecl(ctx *VarDeclContext)
- func (s *BaseCellScriptParserListener) ExitArithmeticExpr(ctx *ArithmeticExprContext)
- func (s *BaseCellScriptParserListener) ExitAssign_op(ctx *Assign_opContext)
- func (s *BaseCellScriptParserListener) ExitAssignment(ctx *AssignmentContext)
- func (s *BaseCellScriptParserListener) ExitBlock(ctx *BlockContext)
- func (s *BaseCellScriptParserListener) ExitBreakStmt(ctx *BreakStmtContext)
- func (s *BaseCellScriptParserListener) ExitContinueStmt(ctx *ContinueStmtContext)
- func (s *BaseCellScriptParserListener) ExitDeclaration(ctx *DeclarationContext)
- func (s *BaseCellScriptParserListener) ExitEos(ctx *EosContext)
- func (s *BaseCellScriptParserListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseCellScriptParserListener) ExitExpression(ctx *ExpressionContext)
- func (s *BaseCellScriptParserListener) ExitExpressionStmt(ctx *ExpressionStmtContext)
- func (s *BaseCellScriptParserListener) ExitForClause(ctx *ForClauseContext)
- func (s *BaseCellScriptParserListener) ExitForStmt(ctx *ForStmtContext)
- func (s *BaseCellScriptParserListener) ExitFunctionDecl(ctx *FunctionDeclContext)
- func (s *BaseCellScriptParserListener) ExitIfStmt(ctx *IfStmtContext)
- func (s *BaseCellScriptParserListener) ExitImportDecl(ctx *ImportDeclContext)
- func (s *BaseCellScriptParserListener) ExitImportStmt(ctx *ImportStmtContext)
- func (s *BaseCellScriptParserListener) ExitReturnExpr(ctx *ReturnExprContext)
- func (s *BaseCellScriptParserListener) ExitReturnStmt(ctx *ReturnStmtContext)
- func (s *BaseCellScriptParserListener) ExitSignature(ctx *SignatureContext)
- func (s *BaseCellScriptParserListener) ExitSimpleStmt(ctx *SimpleStmtContext)
- func (s *BaseCellScriptParserListener) ExitSourceFile(ctx *SourceFileContext)
- func (s *BaseCellScriptParserListener) ExitStatement(ctx *StatementContext)
- func (s *BaseCellScriptParserListener) ExitTypeParameterDecl(ctx *TypeParameterDeclContext)
- func (s *BaseCellScriptParserListener) ExitTypeParameters(ctx *TypeParametersContext)
- func (s *BaseCellScriptParserListener) ExitVarDecl(ctx *VarDeclContext)
- func (s *BaseCellScriptParserListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseCellScriptParserListener) VisitTerminal(node antlr.TerminalNode)
- type BaseCellScriptParserVisitor
- func (v *BaseCellScriptParserVisitor) VisitArithmeticExpr(ctx *ArithmeticExprContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitAssign_op(ctx *Assign_opContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitAssignment(ctx *AssignmentContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitBlock(ctx *BlockContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitBreakStmt(ctx *BreakStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitContinueStmt(ctx *ContinueStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitDeclaration(ctx *DeclarationContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitEos(ctx *EosContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitExpression(ctx *ExpressionContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitExpressionStmt(ctx *ExpressionStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitForClause(ctx *ForClauseContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitForStmt(ctx *ForStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitFunctionDecl(ctx *FunctionDeclContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitIfStmt(ctx *IfStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitImportDecl(ctx *ImportDeclContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitImportStmt(ctx *ImportStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitReturnExpr(ctx *ReturnExprContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitReturnStmt(ctx *ReturnStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitSignature(ctx *SignatureContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitSimpleStmt(ctx *SimpleStmtContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitSourceFile(ctx *SourceFileContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitStatement(ctx *StatementContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitTypeParameterDecl(ctx *TypeParameterDeclContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitTypeParameters(ctx *TypeParametersContext) interface{}
- func (v *BaseCellScriptParserVisitor) VisitVarDecl(ctx *VarDeclContext) interface{}
- type BlockContext
- func (s *BlockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *BlockContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BlockContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BlockContext) Expression() IExpressionContext
- func (s *BlockContext) GetParser() antlr.Parser
- func (s *BlockContext) GetRuleContext() antlr.RuleContext
- func (*BlockContext) IsBlockContext()
- func (s *BlockContext) L_CURLY() antlr.TerminalNode
- func (s *BlockContext) R_CURLY() antlr.TerminalNode
- func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BreakStmtContext
- func (s *BreakStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *BreakStmtContext) BREAK() antlr.TerminalNode
- func (s *BreakStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BreakStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BreakStmtContext) GetParser() antlr.Parser
- func (s *BreakStmtContext) GetRuleContext() antlr.RuleContext
- func (s *BreakStmtContext) IDENTIFIER() antlr.TerminalNode
- func (*BreakStmtContext) IsBreakStmtContext()
- func (s *BreakStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CellScriptParser
- func (p *CellScriptParser) ArithmeticExpr() (localctx IArithmeticExprContext)
- func (p *CellScriptParser) ArithmeticExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *CellScriptParser) Assign_op() (localctx IAssign_opContext)
- func (p *CellScriptParser) Assignment() (localctx IAssignmentContext)
- func (p *CellScriptParser) Block() (localctx IBlockContext)
- func (p *CellScriptParser) BreakStmt() (localctx IBreakStmtContext)
- func (p *CellScriptParser) ContinueStmt() (localctx IContinueStmtContext)
- func (p *CellScriptParser) Declaration() (localctx IDeclarationContext)
- func (p *CellScriptParser) Eos() (localctx IEosContext)
- func (p *CellScriptParser) Expression() (localctx IExpressionContext)
- func (p *CellScriptParser) ExpressionStmt() (localctx IExpressionStmtContext)
- func (p *CellScriptParser) ForClause() (localctx IForClauseContext)
- func (p *CellScriptParser) ForStmt() (localctx IForStmtContext)
- func (p *CellScriptParser) FunctionDecl() (localctx IFunctionDeclContext)
- func (p *CellScriptParser) IfStmt() (localctx IIfStmtContext)
- func (p *CellScriptParser) ImportDecl() (localctx IImportDeclContext)
- func (p *CellScriptParser) ImportStmt() (localctx IImportStmtContext)
- func (p *CellScriptParser) ReturnExpr() (localctx IReturnExprContext)
- func (p *CellScriptParser) ReturnStmt() (localctx IReturnStmtContext)
- func (p *CellScriptParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *CellScriptParser) Signature() (localctx ISignatureContext)
- func (p *CellScriptParser) SimpleStmt() (localctx ISimpleStmtContext)
- func (p *CellScriptParser) SourceFile() (localctx ISourceFileContext)
- func (p *CellScriptParser) Statement() (localctx IStatementContext)
- func (p *CellScriptParser) TypeParameterDecl() (localctx ITypeParameterDeclContext)
- func (p *CellScriptParser) TypeParameters() (localctx ITypeParametersContext)
- func (p *CellScriptParser) VarDecl() (localctx IVarDeclContext)
- type CellScriptParserListener
- type CellScriptParserVisitor
- type ContinueStmtContext
- func (s *ContinueStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ContinueStmtContext) CONTINUE() antlr.TerminalNode
- func (s *ContinueStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ContinueStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ContinueStmtContext) GetParser() antlr.Parser
- func (s *ContinueStmtContext) GetRuleContext() antlr.RuleContext
- func (s *ContinueStmtContext) IDENTIFIER() antlr.TerminalNode
- func (*ContinueStmtContext) IsContinueStmtContext()
- func (s *ContinueStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type DeclarationContext
- func (s *DeclarationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *DeclarationContext) AllEos() []IEosContext
- func (s *DeclarationContext) AllFunctionDecl() []IFunctionDeclContext
- func (s *DeclarationContext) AllVarDecl() []IVarDeclContext
- func (s *DeclarationContext) EOF() antlr.TerminalNode
- func (s *DeclarationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *DeclarationContext) Eos(i int) IEosContext
- func (s *DeclarationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *DeclarationContext) FunctionDecl(i int) IFunctionDeclContext
- func (s *DeclarationContext) GetParser() antlr.Parser
- func (s *DeclarationContext) GetRuleContext() antlr.RuleContext
- func (*DeclarationContext) IsDeclarationContext()
- func (s *DeclarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *DeclarationContext) VarDecl(i int) IVarDeclContext
- type EosContext
- func (s *EosContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *EosContext) EOF() antlr.TerminalNode
- func (s *EosContext) EOS() antlr.TerminalNode
- func (s *EosContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EosContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EosContext) GetParser() antlr.Parser
- func (s *EosContext) GetRuleContext() antlr.RuleContext
- func (*EosContext) IsEosContext()
- func (s *EosContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExpressionContext
- func (s *ExpressionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ExpressionContext) ArithmeticExpr() IArithmeticExprContext
- func (s *ExpressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ExpressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ExpressionContext) GetParser() antlr.Parser
- func (s *ExpressionContext) GetRuleContext() antlr.RuleContext
- func (*ExpressionContext) IsExpressionContext()
- func (s *ExpressionContext) ReturnExpr() IReturnExprContext
- func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExpressionStmtContext
- func (s *ExpressionStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ExpressionStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ExpressionStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ExpressionStmtContext) Expression() IExpressionContext
- func (s *ExpressionStmtContext) GetParser() antlr.Parser
- func (s *ExpressionStmtContext) GetRuleContext() antlr.RuleContext
- func (*ExpressionStmtContext) IsExpressionStmtContext()
- func (s *ExpressionStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ForClauseContext
- func (s *ForClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ForClauseContext) AllEos() []IEosContext
- func (s *ForClauseContext) AllSimpleStmt() []ISimpleStmtContext
- func (s *ForClauseContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ForClauseContext) Eos(i int) IEosContext
- func (s *ForClauseContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ForClauseContext) Expression() IExpressionContext
- func (s *ForClauseContext) GetInitStmt() ISimpleStmtContext
- func (s *ForClauseContext) GetParser() antlr.Parser
- func (s *ForClauseContext) GetPostStmt() ISimpleStmtContext
- func (s *ForClauseContext) GetRuleContext() antlr.RuleContext
- func (*ForClauseContext) IsForClauseContext()
- func (s *ForClauseContext) SetInitStmt(v ISimpleStmtContext)
- func (s *ForClauseContext) SetPostStmt(v ISimpleStmtContext)
- func (s *ForClauseContext) SimpleStmt(i int) ISimpleStmtContext
- func (s *ForClauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ForStmtContext
- func (s *ForStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ForStmtContext) Block() IBlockContext
- func (s *ForStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ForStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ForStmtContext) Expression() IExpressionContext
- func (s *ForStmtContext) FOR() antlr.TerminalNode
- func (s *ForStmtContext) ForClause() IForClauseContext
- func (s *ForStmtContext) GetParser() antlr.Parser
- func (s *ForStmtContext) GetRuleContext() antlr.RuleContext
- func (*ForStmtContext) IsForStmtContext()
- func (s *ForStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FunctionDeclContext
- func (s *FunctionDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FunctionDeclContext) Block() IBlockContext
- func (s *FunctionDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FunctionDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FunctionDeclContext) FUNC() antlr.TerminalNode
- func (s *FunctionDeclContext) GetParser() antlr.Parser
- func (s *FunctionDeclContext) GetRuleContext() antlr.RuleContext
- func (s *FunctionDeclContext) IDENTIFIER() antlr.TerminalNode
- func (*FunctionDeclContext) IsFunctionDeclContext()
- func (s *FunctionDeclContext) Signature() ISignatureContext
- func (s *FunctionDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *FunctionDeclContext) TypeParameters() ITypeParametersContext
- type IArithmeticExprContext
- type IAssign_opContext
- type IAssignmentContext
- type IBlockContext
- type IBreakStmtContext
- type IContinueStmtContext
- type IDeclarationContext
- type IEosContext
- type IExpressionContext
- type IExpressionStmtContext
- type IForClauseContext
- type IForStmtContext
- type IFunctionDeclContext
- type IIfStmtContext
- type IImportDeclContext
- type IImportStmtContext
- type IReturnExprContext
- type IReturnStmtContext
- type ISignatureContext
- type ISimpleStmtContext
- type ISourceFileContext
- type IStatementContext
- type ITypeParameterDeclContext
- type ITypeParametersContext
- type IVarDeclContext
- type IfStmtContext
- func (s *IfStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *IfStmtContext) AllBlock() []IBlockContext
- func (s *IfStmtContext) Block(i int) IBlockContext
- func (s *IfStmtContext) ELSE() antlr.TerminalNode
- func (s *IfStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IfStmtContext) Eos() IEosContext
- func (s *IfStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IfStmtContext) Expression() IExpressionContext
- func (s *IfStmtContext) GetParser() antlr.Parser
- func (s *IfStmtContext) GetRuleContext() antlr.RuleContext
- func (s *IfStmtContext) IF() antlr.TerminalNode
- func (s *IfStmtContext) IfStmt() IIfStmtContext
- func (*IfStmtContext) IsIfStmtContext()
- func (s *IfStmtContext) SimpleStmt() ISimpleStmtContext
- func (s *IfStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ImportDeclContext
- func (s *ImportDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ImportDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ImportDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ImportDeclContext) GetParser() antlr.Parser
- func (s *ImportDeclContext) GetRuleContext() antlr.RuleContext
- func (s *ImportDeclContext) IDENTIFIER() antlr.TerminalNode
- func (s *ImportDeclContext) IMPORT() antlr.TerminalNode
- func (*ImportDeclContext) IsImportDeclContext()
- func (s *ImportDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ImportStmtContext
- func (s *ImportStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ImportStmtContext) AllEos() []IEosContext
- func (s *ImportStmtContext) AllImportDecl() []IImportDeclContext
- func (s *ImportStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ImportStmtContext) Eos(i int) IEosContext
- func (s *ImportStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ImportStmtContext) GetParser() antlr.Parser
- func (s *ImportStmtContext) GetRuleContext() antlr.RuleContext
- func (s *ImportStmtContext) ImportDecl(i int) IImportDeclContext
- func (*ImportStmtContext) IsImportStmtContext()
- func (s *ImportStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ReturnExprContext
- func (s *ReturnExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ReturnExprContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ReturnExprContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ReturnExprContext) GetParser() antlr.Parser
- func (s *ReturnExprContext) GetRuleContext() antlr.RuleContext
- func (s *ReturnExprContext) IDENTIFIER() antlr.TerminalNode
- func (*ReturnExprContext) IsReturnExprContext()
- func (s *ReturnExprContext) RETURN() antlr.TerminalNode
- func (s *ReturnExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ReturnStmtContext
- func (s *ReturnStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ReturnStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ReturnStmtContext) Eos() IEosContext
- func (s *ReturnStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ReturnStmtContext) Expression() IExpressionContext
- func (s *ReturnStmtContext) GetParser() antlr.Parser
- func (s *ReturnStmtContext) GetRuleContext() antlr.RuleContext
- func (*ReturnStmtContext) IsReturnStmtContext()
- func (s *ReturnStmtContext) RETURN() antlr.TerminalNode
- func (s *ReturnStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SignatureContext
- func (s *SignatureContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SignatureContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SignatureContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SignatureContext) GetParser() antlr.Parser
- func (s *SignatureContext) GetRuleContext() antlr.RuleContext
- func (*SignatureContext) IsSignatureContext()
- func (s *SignatureContext) TYPE() antlr.TerminalNode
- func (s *SignatureContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SimpleStmtContext
- func (s *SimpleStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SimpleStmtContext) Assignment() IAssignmentContext
- func (s *SimpleStmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SimpleStmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SimpleStmtContext) ExpressionStmt() IExpressionStmtContext
- func (s *SimpleStmtContext) GetParser() antlr.Parser
- func (s *SimpleStmtContext) GetRuleContext() antlr.RuleContext
- func (*SimpleStmtContext) IsSimpleStmtContext()
- func (s *SimpleStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SourceFileContext
- func (s *SourceFileContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SourceFileContext) Declaration() IDeclarationContext
- func (s *SourceFileContext) EOF() antlr.TerminalNode
- func (s *SourceFileContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SourceFileContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SourceFileContext) GetParser() antlr.Parser
- func (s *SourceFileContext) GetRuleContext() antlr.RuleContext
- func (s *SourceFileContext) ImportStmt() IImportStmtContext
- func (*SourceFileContext) IsSourceFileContext()
- func (s *SourceFileContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StatementContext
- func (s *StatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *StatementContext) Block() IBlockContext
- func (s *StatementContext) BreakStmt() IBreakStmtContext
- func (s *StatementContext) ContinueStmt() IContinueStmtContext
- func (s *StatementContext) Declaration() IDeclarationContext
- func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) ForStmt() IForStmtContext
- func (s *StatementContext) GetParser() antlr.Parser
- func (s *StatementContext) GetRuleContext() antlr.RuleContext
- func (s *StatementContext) IfStmt() IIfStmtContext
- func (*StatementContext) IsStatementContext()
- func (s *StatementContext) ReturnStmt() IReturnStmtContext
- func (s *StatementContext) SimpleStmt() ISimpleStmtContext
- func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TypeParameterDeclContext
- func (s *TypeParameterDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *TypeParameterDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeParameterDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeParameterDeclContext) GetParser() antlr.Parser
- func (s *TypeParameterDeclContext) GetRuleContext() antlr.RuleContext
- func (s *TypeParameterDeclContext) IDENTIFIER() antlr.TerminalNode
- func (*TypeParameterDeclContext) IsTypeParameterDeclContext()
- func (s *TypeParameterDeclContext) TYPE() antlr.TerminalNode
- func (s *TypeParameterDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TypeParametersContext
- func (s *TypeParametersContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *TypeParametersContext) AllCOMMA() []antlr.TerminalNode
- func (s *TypeParametersContext) AllTypeParameterDecl() []ITypeParameterDeclContext
- func (s *TypeParametersContext) COMMA(i int) antlr.TerminalNode
- func (s *TypeParametersContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TypeParametersContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TypeParametersContext) GetParser() antlr.Parser
- func (s *TypeParametersContext) GetRuleContext() antlr.RuleContext
- func (*TypeParametersContext) IsTypeParametersContext()
- func (s *TypeParametersContext) L_BRACKET() antlr.TerminalNode
- func (s *TypeParametersContext) R_BRACKET() antlr.TerminalNode
- func (s *TypeParametersContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *TypeParametersContext) TypeParameterDecl(i int) ITypeParameterDeclContext
- type VarDeclContext
- func (s *VarDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *VarDeclContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *VarDeclContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *VarDeclContext) GetParser() antlr.Parser
- func (s *VarDeclContext) GetRuleContext() antlr.RuleContext
- func (s *VarDeclContext) IDENTIFIER() antlr.TerminalNode
- func (*VarDeclContext) IsVarDeclContext()
- func (s *VarDeclContext) TYPE() antlr.TerminalNode
- func (s *VarDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *VarDeclContext) VAR() antlr.TerminalNode
Constants ¶
const ( CellScriptParserEOF = antlr.TokenEOF CellScriptParserFUNC = 1 CellScriptParserPACKAGE = 2 CellScriptParserIF = 3 CellScriptParserELSE = 4 CellScriptParserFOR = 5 CellScriptParserCONTINUE = 6 CellScriptParserBREAK = 7 CellScriptParserIMPORT = 8 CellScriptParserRETURN = 9 CellScriptParserVECTOR = 10 CellScriptParserTABLE = 11 CellScriptParserUNION = 12 CellScriptParserVAR = 13 CellScriptParserL_CURLY = 14 CellScriptParserR_CURLY = 15 CellScriptParserL_BRACKET = 16 CellScriptParserR_BRACKET = 17 CellScriptParserCOMMA = 18 CellScriptParserIDENTIFIER = 19 CellScriptParserTYPE = 20 CellScriptParserTYPE_INT = 21 CellScriptParserTYPE_BOOL = 22 CellScriptParserADD = 23 CellScriptParserSUB = 24 CellScriptParserMUL = 25 CellScriptParserDIV = 26 CellScriptParserMOD = 27 CellScriptParserASSIGN = 28 CellScriptParserLITERAL = 29 CellScriptParserNUMBER = 30 CellScriptParserSTRING_LIT = 31 CellScriptParserBOOL_LIT = 32 CellScriptParserRAW_STRING_LIT = 33 CellScriptParserINTERPRETED_STRING_LIT = 34 CellScriptParserWS = 35 CellScriptParserCOMMENT = 36 CellScriptParserTERMINATOR = 37 CellScriptParserLINE_COMMENT = 38 CellScriptParserWS_DEFAULT = 39 CellScriptParserCOMMENT_DEFAULT = 40 CellScriptParserLINE_COMMENT_DEFAULT = 41 CellScriptParserEOS = 42 )
CellScriptParser tokens.
const ( CellScriptParserRULE_sourceFile = 0 CellScriptParserRULE_importStmt = 1 CellScriptParserRULE_declaration = 2 CellScriptParserRULE_eos = 3 CellScriptParserRULE_importDecl = 4 CellScriptParserRULE_varDecl = 5 CellScriptParserRULE_functionDecl = 6 CellScriptParserRULE_typeParameters = 7 CellScriptParserRULE_signature = 8 CellScriptParserRULE_block = 9 CellScriptParserRULE_typeParameterDecl = 10 CellScriptParserRULE_expression = 11 CellScriptParserRULE_arithmeticExpr = 12 CellScriptParserRULE_returnExpr = 13 CellScriptParserRULE_statement = 14 CellScriptParserRULE_simpleStmt = 15 CellScriptParserRULE_expressionStmt = 16 CellScriptParserRULE_assignment = 17 CellScriptParserRULE_assign_op = 18 CellScriptParserRULE_returnStmt = 19 CellScriptParserRULE_breakStmt = 20 CellScriptParserRULE_continueStmt = 21 CellScriptParserRULE_ifStmt = 22 CellScriptParserRULE_forStmt = 23 CellScriptParserRULE_forClause = 24 )
CellScriptParser rules.
Variables ¶
var CellScriptParserParserStaticData struct { LiteralNames []string SymbolicNames []string RuleNames []string PredictionContextCache *antlr.PredictionContextCache // contains filtered or unexported fields }
Functions ¶
func CellScriptParserInit ¶
func CellScriptParserInit()
CellScriptParserInit initializes any static state used to implement CellScriptParser. By default the static state used to implement the parser is lazily initialized during the first call to NewCellScriptParser(). You can call this function if you wish to initialize the static state ahead of time.
func InitEmptyArithmeticExprContext ¶
func InitEmptyArithmeticExprContext(p *ArithmeticExprContext)
func InitEmptyAssign_opContext ¶
func InitEmptyAssign_opContext(p *Assign_opContext)
func InitEmptyAssignmentContext ¶
func InitEmptyAssignmentContext(p *AssignmentContext)
func InitEmptyBlockContext ¶
func InitEmptyBlockContext(p *BlockContext)
func InitEmptyBreakStmtContext ¶
func InitEmptyBreakStmtContext(p *BreakStmtContext)
func InitEmptyContinueStmtContext ¶
func InitEmptyContinueStmtContext(p *ContinueStmtContext)
func InitEmptyDeclarationContext ¶
func InitEmptyDeclarationContext(p *DeclarationContext)
func InitEmptyEosContext ¶
func InitEmptyEosContext(p *EosContext)
func InitEmptyExpressionContext ¶
func InitEmptyExpressionContext(p *ExpressionContext)
func InitEmptyExpressionStmtContext ¶
func InitEmptyExpressionStmtContext(p *ExpressionStmtContext)
func InitEmptyForClauseContext ¶
func InitEmptyForClauseContext(p *ForClauseContext)
func InitEmptyForStmtContext ¶
func InitEmptyForStmtContext(p *ForStmtContext)
func InitEmptyFunctionDeclContext ¶
func InitEmptyFunctionDeclContext(p *FunctionDeclContext)
func InitEmptyIfStmtContext ¶
func InitEmptyIfStmtContext(p *IfStmtContext)
func InitEmptyImportDeclContext ¶
func InitEmptyImportDeclContext(p *ImportDeclContext)
func InitEmptyImportStmtContext ¶
func InitEmptyImportStmtContext(p *ImportStmtContext)
func InitEmptyReturnExprContext ¶
func InitEmptyReturnExprContext(p *ReturnExprContext)
func InitEmptyReturnStmtContext ¶
func InitEmptyReturnStmtContext(p *ReturnStmtContext)
func InitEmptySignatureContext ¶
func InitEmptySignatureContext(p *SignatureContext)
func InitEmptySimpleStmtContext ¶
func InitEmptySimpleStmtContext(p *SimpleStmtContext)
func InitEmptySourceFileContext ¶
func InitEmptySourceFileContext(p *SourceFileContext)
func InitEmptyStatementContext ¶
func InitEmptyStatementContext(p *StatementContext)
func InitEmptyTypeParameterDeclContext ¶
func InitEmptyTypeParameterDeclContext(p *TypeParameterDeclContext)
func InitEmptyTypeParametersContext ¶
func InitEmptyTypeParametersContext(p *TypeParametersContext)
func InitEmptyVarDeclContext ¶
func InitEmptyVarDeclContext(p *VarDeclContext)
Types ¶
type ArithmeticExprContext ¶
type ArithmeticExprContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewArithmeticExprContext ¶
func NewArithmeticExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArithmeticExprContext
func NewEmptyArithmeticExprContext ¶
func NewEmptyArithmeticExprContext() *ArithmeticExprContext
func (*ArithmeticExprContext) ADD ¶
func (s *ArithmeticExprContext) ADD() antlr.TerminalNode
func (*ArithmeticExprContext) Accept ¶
func (s *ArithmeticExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ArithmeticExprContext) AllArithmeticExpr ¶
func (s *ArithmeticExprContext) AllArithmeticExpr() []IArithmeticExprContext
func (*ArithmeticExprContext) ArithmeticExpr ¶
func (s *ArithmeticExprContext) ArithmeticExpr(i int) IArithmeticExprContext
func (*ArithmeticExprContext) DIV ¶
func (s *ArithmeticExprContext) DIV() antlr.TerminalNode
func (*ArithmeticExprContext) EnterRule ¶
func (s *ArithmeticExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*ArithmeticExprContext) ExitRule ¶
func (s *ArithmeticExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*ArithmeticExprContext) GetOp ¶
func (s *ArithmeticExprContext) GetOp() antlr.Token
func (*ArithmeticExprContext) GetParser ¶
func (s *ArithmeticExprContext) GetParser() antlr.Parser
func (*ArithmeticExprContext) GetRuleContext ¶
func (s *ArithmeticExprContext) GetRuleContext() antlr.RuleContext
func (*ArithmeticExprContext) IDENTIFIER ¶
func (s *ArithmeticExprContext) IDENTIFIER() antlr.TerminalNode
func (*ArithmeticExprContext) IsArithmeticExprContext ¶
func (*ArithmeticExprContext) IsArithmeticExprContext()
func (*ArithmeticExprContext) MUL ¶
func (s *ArithmeticExprContext) MUL() antlr.TerminalNode
func (*ArithmeticExprContext) SUB ¶
func (s *ArithmeticExprContext) SUB() antlr.TerminalNode
func (*ArithmeticExprContext) SetOp ¶
func (s *ArithmeticExprContext) SetOp(v antlr.Token)
func (*ArithmeticExprContext) ToStringTree ¶
func (s *ArithmeticExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Assign_opContext ¶
type Assign_opContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAssign_opContext ¶
func NewAssign_opContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Assign_opContext
func NewEmptyAssign_opContext ¶
func NewEmptyAssign_opContext() *Assign_opContext
func (*Assign_opContext) ADD ¶
func (s *Assign_opContext) ADD() antlr.TerminalNode
func (*Assign_opContext) ASSIGN ¶
func (s *Assign_opContext) ASSIGN() antlr.TerminalNode
func (*Assign_opContext) Accept ¶
func (s *Assign_opContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Assign_opContext) DIV ¶
func (s *Assign_opContext) DIV() antlr.TerminalNode
func (*Assign_opContext) EnterRule ¶
func (s *Assign_opContext) EnterRule(listener antlr.ParseTreeListener)
func (*Assign_opContext) ExitRule ¶
func (s *Assign_opContext) ExitRule(listener antlr.ParseTreeListener)
func (*Assign_opContext) GetParser ¶
func (s *Assign_opContext) GetParser() antlr.Parser
func (*Assign_opContext) GetRuleContext ¶
func (s *Assign_opContext) GetRuleContext() antlr.RuleContext
func (*Assign_opContext) IsAssign_opContext ¶
func (*Assign_opContext) IsAssign_opContext()
func (*Assign_opContext) MOD ¶
func (s *Assign_opContext) MOD() antlr.TerminalNode
func (*Assign_opContext) MUL ¶
func (s *Assign_opContext) MUL() antlr.TerminalNode
func (*Assign_opContext) SUB ¶
func (s *Assign_opContext) SUB() antlr.TerminalNode
func (*Assign_opContext) ToStringTree ¶
func (s *Assign_opContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type AssignmentContext ¶
type AssignmentContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAssignmentContext ¶
func NewAssignmentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AssignmentContext
func NewEmptyAssignmentContext ¶
func NewEmptyAssignmentContext() *AssignmentContext
func (*AssignmentContext) Accept ¶
func (s *AssignmentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*AssignmentContext) AllExpression ¶
func (s *AssignmentContext) AllExpression() []IExpressionContext
func (*AssignmentContext) Assign_op ¶
func (s *AssignmentContext) Assign_op() IAssign_opContext
func (*AssignmentContext) EnterRule ¶
func (s *AssignmentContext) EnterRule(listener antlr.ParseTreeListener)
func (*AssignmentContext) ExitRule ¶
func (s *AssignmentContext) ExitRule(listener antlr.ParseTreeListener)
func (*AssignmentContext) Expression ¶
func (s *AssignmentContext) Expression(i int) IExpressionContext
func (*AssignmentContext) GetParser ¶
func (s *AssignmentContext) GetParser() antlr.Parser
func (*AssignmentContext) GetRuleContext ¶
func (s *AssignmentContext) GetRuleContext() antlr.RuleContext
func (*AssignmentContext) IsAssignmentContext ¶
func (*AssignmentContext) IsAssignmentContext()
func (*AssignmentContext) ToStringTree ¶
func (s *AssignmentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaseCellScriptParserListener ¶
type BaseCellScriptParserListener struct{}
BaseCellScriptParserListener is a complete listener for a parse tree produced by CellScriptParser.
func (*BaseCellScriptParserListener) EnterArithmeticExpr ¶
func (s *BaseCellScriptParserListener) EnterArithmeticExpr(ctx *ArithmeticExprContext)
EnterArithmeticExpr is called when production arithmeticExpr is entered.
func (*BaseCellScriptParserListener) EnterAssign_op ¶
func (s *BaseCellScriptParserListener) EnterAssign_op(ctx *Assign_opContext)
EnterAssign_op is called when production assign_op is entered.
func (*BaseCellScriptParserListener) EnterAssignment ¶
func (s *BaseCellScriptParserListener) EnterAssignment(ctx *AssignmentContext)
EnterAssignment is called when production assignment is entered.
func (*BaseCellScriptParserListener) EnterBlock ¶
func (s *BaseCellScriptParserListener) EnterBlock(ctx *BlockContext)
EnterBlock is called when production block is entered.
func (*BaseCellScriptParserListener) EnterBreakStmt ¶
func (s *BaseCellScriptParserListener) EnterBreakStmt(ctx *BreakStmtContext)
EnterBreakStmt is called when production breakStmt is entered.
func (*BaseCellScriptParserListener) EnterContinueStmt ¶
func (s *BaseCellScriptParserListener) EnterContinueStmt(ctx *ContinueStmtContext)
EnterContinueStmt is called when production continueStmt is entered.
func (*BaseCellScriptParserListener) EnterDeclaration ¶
func (s *BaseCellScriptParserListener) EnterDeclaration(ctx *DeclarationContext)
EnterDeclaration is called when production declaration is entered.
func (*BaseCellScriptParserListener) EnterEos ¶
func (s *BaseCellScriptParserListener) EnterEos(ctx *EosContext)
EnterEos is called when production eos is entered.
func (*BaseCellScriptParserListener) EnterEveryRule ¶
func (s *BaseCellScriptParserListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseCellScriptParserListener) EnterExpression ¶
func (s *BaseCellScriptParserListener) EnterExpression(ctx *ExpressionContext)
EnterExpression is called when production expression is entered.
func (*BaseCellScriptParserListener) EnterExpressionStmt ¶
func (s *BaseCellScriptParserListener) EnterExpressionStmt(ctx *ExpressionStmtContext)
EnterExpressionStmt is called when production expressionStmt is entered.
func (*BaseCellScriptParserListener) EnterForClause ¶
func (s *BaseCellScriptParserListener) EnterForClause(ctx *ForClauseContext)
EnterForClause is called when production forClause is entered.
func (*BaseCellScriptParserListener) EnterForStmt ¶
func (s *BaseCellScriptParserListener) EnterForStmt(ctx *ForStmtContext)
EnterForStmt is called when production forStmt is entered.
func (*BaseCellScriptParserListener) EnterFunctionDecl ¶
func (s *BaseCellScriptParserListener) EnterFunctionDecl(ctx *FunctionDeclContext)
EnterFunctionDecl is called when production functionDecl is entered.
func (*BaseCellScriptParserListener) EnterIfStmt ¶
func (s *BaseCellScriptParserListener) EnterIfStmt(ctx *IfStmtContext)
EnterIfStmt is called when production ifStmt is entered.
func (*BaseCellScriptParserListener) EnterImportDecl ¶
func (s *BaseCellScriptParserListener) EnterImportDecl(ctx *ImportDeclContext)
EnterImportDecl is called when production importDecl is entered.
func (*BaseCellScriptParserListener) EnterImportStmt ¶
func (s *BaseCellScriptParserListener) EnterImportStmt(ctx *ImportStmtContext)
EnterImportStmt is called when production importStmt is entered.
func (*BaseCellScriptParserListener) EnterReturnExpr ¶
func (s *BaseCellScriptParserListener) EnterReturnExpr(ctx *ReturnExprContext)
EnterReturnExpr is called when production returnExpr is entered.
func (*BaseCellScriptParserListener) EnterReturnStmt ¶
func (s *BaseCellScriptParserListener) EnterReturnStmt(ctx *ReturnStmtContext)
EnterReturnStmt is called when production returnStmt is entered.
func (*BaseCellScriptParserListener) EnterSignature ¶
func (s *BaseCellScriptParserListener) EnterSignature(ctx *SignatureContext)
EnterSignature is called when production signature is entered.
func (*BaseCellScriptParserListener) EnterSimpleStmt ¶
func (s *BaseCellScriptParserListener) EnterSimpleStmt(ctx *SimpleStmtContext)
EnterSimpleStmt is called when production simpleStmt is entered.
func (*BaseCellScriptParserListener) EnterSourceFile ¶
func (s *BaseCellScriptParserListener) EnterSourceFile(ctx *SourceFileContext)
EnterSourceFile is called when production sourceFile is entered.
func (*BaseCellScriptParserListener) EnterStatement ¶
func (s *BaseCellScriptParserListener) EnterStatement(ctx *StatementContext)
EnterStatement is called when production statement is entered.
func (*BaseCellScriptParserListener) EnterTypeParameterDecl ¶
func (s *BaseCellScriptParserListener) EnterTypeParameterDecl(ctx *TypeParameterDeclContext)
EnterTypeParameterDecl is called when production typeParameterDecl is entered.
func (*BaseCellScriptParserListener) EnterTypeParameters ¶
func (s *BaseCellScriptParserListener) EnterTypeParameters(ctx *TypeParametersContext)
EnterTypeParameters is called when production typeParameters is entered.
func (*BaseCellScriptParserListener) EnterVarDecl ¶
func (s *BaseCellScriptParserListener) EnterVarDecl(ctx *VarDeclContext)
EnterVarDecl is called when production varDecl is entered.
func (*BaseCellScriptParserListener) ExitArithmeticExpr ¶
func (s *BaseCellScriptParserListener) ExitArithmeticExpr(ctx *ArithmeticExprContext)
ExitArithmeticExpr is called when production arithmeticExpr is exited.
func (*BaseCellScriptParserListener) ExitAssign_op ¶
func (s *BaseCellScriptParserListener) ExitAssign_op(ctx *Assign_opContext)
ExitAssign_op is called when production assign_op is exited.
func (*BaseCellScriptParserListener) ExitAssignment ¶
func (s *BaseCellScriptParserListener) ExitAssignment(ctx *AssignmentContext)
ExitAssignment is called when production assignment is exited.
func (*BaseCellScriptParserListener) ExitBlock ¶
func (s *BaseCellScriptParserListener) ExitBlock(ctx *BlockContext)
ExitBlock is called when production block is exited.
func (*BaseCellScriptParserListener) ExitBreakStmt ¶
func (s *BaseCellScriptParserListener) ExitBreakStmt(ctx *BreakStmtContext)
ExitBreakStmt is called when production breakStmt is exited.
func (*BaseCellScriptParserListener) ExitContinueStmt ¶
func (s *BaseCellScriptParserListener) ExitContinueStmt(ctx *ContinueStmtContext)
ExitContinueStmt is called when production continueStmt is exited.
func (*BaseCellScriptParserListener) ExitDeclaration ¶
func (s *BaseCellScriptParserListener) ExitDeclaration(ctx *DeclarationContext)
ExitDeclaration is called when production declaration is exited.
func (*BaseCellScriptParserListener) ExitEos ¶
func (s *BaseCellScriptParserListener) ExitEos(ctx *EosContext)
ExitEos is called when production eos is exited.
func (*BaseCellScriptParserListener) ExitEveryRule ¶
func (s *BaseCellScriptParserListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseCellScriptParserListener) ExitExpression ¶
func (s *BaseCellScriptParserListener) ExitExpression(ctx *ExpressionContext)
ExitExpression is called when production expression is exited.
func (*BaseCellScriptParserListener) ExitExpressionStmt ¶
func (s *BaseCellScriptParserListener) ExitExpressionStmt(ctx *ExpressionStmtContext)
ExitExpressionStmt is called when production expressionStmt is exited.
func (*BaseCellScriptParserListener) ExitForClause ¶
func (s *BaseCellScriptParserListener) ExitForClause(ctx *ForClauseContext)
ExitForClause is called when production forClause is exited.
func (*BaseCellScriptParserListener) ExitForStmt ¶
func (s *BaseCellScriptParserListener) ExitForStmt(ctx *ForStmtContext)
ExitForStmt is called when production forStmt is exited.
func (*BaseCellScriptParserListener) ExitFunctionDecl ¶
func (s *BaseCellScriptParserListener) ExitFunctionDecl(ctx *FunctionDeclContext)
ExitFunctionDecl is called when production functionDecl is exited.
func (*BaseCellScriptParserListener) ExitIfStmt ¶
func (s *BaseCellScriptParserListener) ExitIfStmt(ctx *IfStmtContext)
ExitIfStmt is called when production ifStmt is exited.
func (*BaseCellScriptParserListener) ExitImportDecl ¶
func (s *BaseCellScriptParserListener) ExitImportDecl(ctx *ImportDeclContext)
ExitImportDecl is called when production importDecl is exited.
func (*BaseCellScriptParserListener) ExitImportStmt ¶
func (s *BaseCellScriptParserListener) ExitImportStmt(ctx *ImportStmtContext)
ExitImportStmt is called when production importStmt is exited.
func (*BaseCellScriptParserListener) ExitReturnExpr ¶
func (s *BaseCellScriptParserListener) ExitReturnExpr(ctx *ReturnExprContext)
ExitReturnExpr is called when production returnExpr is exited.
func (*BaseCellScriptParserListener) ExitReturnStmt ¶
func (s *BaseCellScriptParserListener) ExitReturnStmt(ctx *ReturnStmtContext)
ExitReturnStmt is called when production returnStmt is exited.
func (*BaseCellScriptParserListener) ExitSignature ¶
func (s *BaseCellScriptParserListener) ExitSignature(ctx *SignatureContext)
ExitSignature is called when production signature is exited.
func (*BaseCellScriptParserListener) ExitSimpleStmt ¶
func (s *BaseCellScriptParserListener) ExitSimpleStmt(ctx *SimpleStmtContext)
ExitSimpleStmt is called when production simpleStmt is exited.
func (*BaseCellScriptParserListener) ExitSourceFile ¶
func (s *BaseCellScriptParserListener) ExitSourceFile(ctx *SourceFileContext)
ExitSourceFile is called when production sourceFile is exited.
func (*BaseCellScriptParserListener) ExitStatement ¶
func (s *BaseCellScriptParserListener) ExitStatement(ctx *StatementContext)
ExitStatement is called when production statement is exited.
func (*BaseCellScriptParserListener) ExitTypeParameterDecl ¶
func (s *BaseCellScriptParserListener) ExitTypeParameterDecl(ctx *TypeParameterDeclContext)
ExitTypeParameterDecl is called when production typeParameterDecl is exited.
func (*BaseCellScriptParserListener) ExitTypeParameters ¶
func (s *BaseCellScriptParserListener) ExitTypeParameters(ctx *TypeParametersContext)
ExitTypeParameters is called when production typeParameters is exited.
func (*BaseCellScriptParserListener) ExitVarDecl ¶
func (s *BaseCellScriptParserListener) ExitVarDecl(ctx *VarDeclContext)
ExitVarDecl is called when production varDecl is exited.
func (*BaseCellScriptParserListener) VisitErrorNode ¶
func (s *BaseCellScriptParserListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseCellScriptParserListener) VisitTerminal ¶
func (s *BaseCellScriptParserListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type BaseCellScriptParserVisitor ¶
type BaseCellScriptParserVisitor struct {
*antlr.BaseParseTreeVisitor
}
func (*BaseCellScriptParserVisitor) VisitArithmeticExpr ¶
func (v *BaseCellScriptParserVisitor) VisitArithmeticExpr(ctx *ArithmeticExprContext) interface{}
func (*BaseCellScriptParserVisitor) VisitAssign_op ¶
func (v *BaseCellScriptParserVisitor) VisitAssign_op(ctx *Assign_opContext) interface{}
func (*BaseCellScriptParserVisitor) VisitAssignment ¶
func (v *BaseCellScriptParserVisitor) VisitAssignment(ctx *AssignmentContext) interface{}
func (*BaseCellScriptParserVisitor) VisitBlock ¶
func (v *BaseCellScriptParserVisitor) VisitBlock(ctx *BlockContext) interface{}
func (*BaseCellScriptParserVisitor) VisitBreakStmt ¶
func (v *BaseCellScriptParserVisitor) VisitBreakStmt(ctx *BreakStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitContinueStmt ¶
func (v *BaseCellScriptParserVisitor) VisitContinueStmt(ctx *ContinueStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitDeclaration ¶
func (v *BaseCellScriptParserVisitor) VisitDeclaration(ctx *DeclarationContext) interface{}
func (*BaseCellScriptParserVisitor) VisitEos ¶
func (v *BaseCellScriptParserVisitor) VisitEos(ctx *EosContext) interface{}
func (*BaseCellScriptParserVisitor) VisitExpression ¶
func (v *BaseCellScriptParserVisitor) VisitExpression(ctx *ExpressionContext) interface{}
func (*BaseCellScriptParserVisitor) VisitExpressionStmt ¶
func (v *BaseCellScriptParserVisitor) VisitExpressionStmt(ctx *ExpressionStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitForClause ¶
func (v *BaseCellScriptParserVisitor) VisitForClause(ctx *ForClauseContext) interface{}
func (*BaseCellScriptParserVisitor) VisitForStmt ¶
func (v *BaseCellScriptParserVisitor) VisitForStmt(ctx *ForStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitFunctionDecl ¶
func (v *BaseCellScriptParserVisitor) VisitFunctionDecl(ctx *FunctionDeclContext) interface{}
func (*BaseCellScriptParserVisitor) VisitIfStmt ¶
func (v *BaseCellScriptParserVisitor) VisitIfStmt(ctx *IfStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitImportDecl ¶
func (v *BaseCellScriptParserVisitor) VisitImportDecl(ctx *ImportDeclContext) interface{}
func (*BaseCellScriptParserVisitor) VisitImportStmt ¶
func (v *BaseCellScriptParserVisitor) VisitImportStmt(ctx *ImportStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitReturnExpr ¶
func (v *BaseCellScriptParserVisitor) VisitReturnExpr(ctx *ReturnExprContext) interface{}
func (*BaseCellScriptParserVisitor) VisitReturnStmt ¶
func (v *BaseCellScriptParserVisitor) VisitReturnStmt(ctx *ReturnStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitSignature ¶
func (v *BaseCellScriptParserVisitor) VisitSignature(ctx *SignatureContext) interface{}
func (*BaseCellScriptParserVisitor) VisitSimpleStmt ¶
func (v *BaseCellScriptParserVisitor) VisitSimpleStmt(ctx *SimpleStmtContext) interface{}
func (*BaseCellScriptParserVisitor) VisitSourceFile ¶
func (v *BaseCellScriptParserVisitor) VisitSourceFile(ctx *SourceFileContext) interface{}
func (*BaseCellScriptParserVisitor) VisitStatement ¶
func (v *BaseCellScriptParserVisitor) VisitStatement(ctx *StatementContext) interface{}
func (*BaseCellScriptParserVisitor) VisitTypeParameterDecl ¶
func (v *BaseCellScriptParserVisitor) VisitTypeParameterDecl(ctx *TypeParameterDeclContext) interface{}
func (*BaseCellScriptParserVisitor) VisitTypeParameters ¶
func (v *BaseCellScriptParserVisitor) VisitTypeParameters(ctx *TypeParametersContext) interface{}
func (*BaseCellScriptParserVisitor) VisitVarDecl ¶
func (v *BaseCellScriptParserVisitor) VisitVarDecl(ctx *VarDeclContext) interface{}
type BlockContext ¶
type BlockContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBlockContext ¶
func NewBlockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BlockContext
func NewEmptyBlockContext ¶
func NewEmptyBlockContext() *BlockContext
func (*BlockContext) Accept ¶
func (s *BlockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*BlockContext) EnterRule ¶
func (s *BlockContext) EnterRule(listener antlr.ParseTreeListener)
func (*BlockContext) ExitRule ¶
func (s *BlockContext) ExitRule(listener antlr.ParseTreeListener)
func (*BlockContext) Expression ¶
func (s *BlockContext) Expression() IExpressionContext
func (*BlockContext) GetParser ¶
func (s *BlockContext) GetParser() antlr.Parser
func (*BlockContext) GetRuleContext ¶
func (s *BlockContext) GetRuleContext() antlr.RuleContext
func (*BlockContext) IsBlockContext ¶
func (*BlockContext) IsBlockContext()
func (*BlockContext) L_CURLY ¶
func (s *BlockContext) L_CURLY() antlr.TerminalNode
func (*BlockContext) R_CURLY ¶
func (s *BlockContext) R_CURLY() antlr.TerminalNode
func (*BlockContext) ToStringTree ¶
func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BreakStmtContext ¶
type BreakStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBreakStmtContext ¶
func NewBreakStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BreakStmtContext
func NewEmptyBreakStmtContext ¶
func NewEmptyBreakStmtContext() *BreakStmtContext
func (*BreakStmtContext) Accept ¶
func (s *BreakStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*BreakStmtContext) BREAK ¶
func (s *BreakStmtContext) BREAK() antlr.TerminalNode
func (*BreakStmtContext) EnterRule ¶
func (s *BreakStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*BreakStmtContext) ExitRule ¶
func (s *BreakStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*BreakStmtContext) GetParser ¶
func (s *BreakStmtContext) GetParser() antlr.Parser
func (*BreakStmtContext) GetRuleContext ¶
func (s *BreakStmtContext) GetRuleContext() antlr.RuleContext
func (*BreakStmtContext) IDENTIFIER ¶
func (s *BreakStmtContext) IDENTIFIER() antlr.TerminalNode
func (*BreakStmtContext) IsBreakStmtContext ¶
func (*BreakStmtContext) IsBreakStmtContext()
func (*BreakStmtContext) ToStringTree ¶
func (s *BreakStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CellScriptParser ¶
type CellScriptParser struct {
*antlr.BaseParser
}
func NewCellScriptParser ¶
func NewCellScriptParser(input antlr.TokenStream) *CellScriptParser
NewCellScriptParser produces a new parser instance for the optional input antlr.TokenStream.
func (*CellScriptParser) ArithmeticExpr ¶
func (p *CellScriptParser) ArithmeticExpr() (localctx IArithmeticExprContext)
func (*CellScriptParser) ArithmeticExpr_Sempred ¶
func (p *CellScriptParser) ArithmeticExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*CellScriptParser) Assign_op ¶
func (p *CellScriptParser) Assign_op() (localctx IAssign_opContext)
func (*CellScriptParser) Assignment ¶
func (p *CellScriptParser) Assignment() (localctx IAssignmentContext)
func (*CellScriptParser) Block ¶
func (p *CellScriptParser) Block() (localctx IBlockContext)
func (*CellScriptParser) BreakStmt ¶
func (p *CellScriptParser) BreakStmt() (localctx IBreakStmtContext)
func (*CellScriptParser) ContinueStmt ¶
func (p *CellScriptParser) ContinueStmt() (localctx IContinueStmtContext)
func (*CellScriptParser) Declaration ¶
func (p *CellScriptParser) Declaration() (localctx IDeclarationContext)
func (*CellScriptParser) Eos ¶
func (p *CellScriptParser) Eos() (localctx IEosContext)
func (*CellScriptParser) Expression ¶
func (p *CellScriptParser) Expression() (localctx IExpressionContext)
func (*CellScriptParser) ExpressionStmt ¶
func (p *CellScriptParser) ExpressionStmt() (localctx IExpressionStmtContext)
func (*CellScriptParser) ForClause ¶
func (p *CellScriptParser) ForClause() (localctx IForClauseContext)
func (*CellScriptParser) ForStmt ¶
func (p *CellScriptParser) ForStmt() (localctx IForStmtContext)
func (*CellScriptParser) FunctionDecl ¶
func (p *CellScriptParser) FunctionDecl() (localctx IFunctionDeclContext)
func (*CellScriptParser) IfStmt ¶
func (p *CellScriptParser) IfStmt() (localctx IIfStmtContext)
func (*CellScriptParser) ImportDecl ¶
func (p *CellScriptParser) ImportDecl() (localctx IImportDeclContext)
func (*CellScriptParser) ImportStmt ¶
func (p *CellScriptParser) ImportStmt() (localctx IImportStmtContext)
func (*CellScriptParser) ReturnExpr ¶
func (p *CellScriptParser) ReturnExpr() (localctx IReturnExprContext)
func (*CellScriptParser) ReturnStmt ¶
func (p *CellScriptParser) ReturnStmt() (localctx IReturnStmtContext)
func (*CellScriptParser) Sempred ¶
func (p *CellScriptParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
func (*CellScriptParser) Signature ¶
func (p *CellScriptParser) Signature() (localctx ISignatureContext)
func (*CellScriptParser) SimpleStmt ¶
func (p *CellScriptParser) SimpleStmt() (localctx ISimpleStmtContext)
func (*CellScriptParser) SourceFile ¶
func (p *CellScriptParser) SourceFile() (localctx ISourceFileContext)
func (*CellScriptParser) Statement ¶
func (p *CellScriptParser) Statement() (localctx IStatementContext)
func (*CellScriptParser) TypeParameterDecl ¶
func (p *CellScriptParser) TypeParameterDecl() (localctx ITypeParameterDeclContext)
func (*CellScriptParser) TypeParameters ¶
func (p *CellScriptParser) TypeParameters() (localctx ITypeParametersContext)
func (*CellScriptParser) VarDecl ¶
func (p *CellScriptParser) VarDecl() (localctx IVarDeclContext)
type CellScriptParserListener ¶
type CellScriptParserListener interface { antlr.ParseTreeListener // EnterSourceFile is called when entering the sourceFile production. EnterSourceFile(c *SourceFileContext) // EnterImportStmt is called when entering the importStmt production. EnterImportStmt(c *ImportStmtContext) // EnterDeclaration is called when entering the declaration production. EnterDeclaration(c *DeclarationContext) // EnterEos is called when entering the eos production. EnterEos(c *EosContext) // EnterImportDecl is called when entering the importDecl production. EnterImportDecl(c *ImportDeclContext) // EnterVarDecl is called when entering the varDecl production. EnterVarDecl(c *VarDeclContext) // EnterFunctionDecl is called when entering the functionDecl production. EnterFunctionDecl(c *FunctionDeclContext) // EnterTypeParameters is called when entering the typeParameters production. EnterTypeParameters(c *TypeParametersContext) // EnterSignature is called when entering the signature production. EnterSignature(c *SignatureContext) // EnterBlock is called when entering the block production. EnterBlock(c *BlockContext) // EnterTypeParameterDecl is called when entering the typeParameterDecl production. EnterTypeParameterDecl(c *TypeParameterDeclContext) // EnterExpression is called when entering the expression production. EnterExpression(c *ExpressionContext) // EnterArithmeticExpr is called when entering the arithmeticExpr production. EnterArithmeticExpr(c *ArithmeticExprContext) // EnterReturnExpr is called when entering the returnExpr production. EnterReturnExpr(c *ReturnExprContext) // EnterStatement is called when entering the statement production. EnterStatement(c *StatementContext) // EnterSimpleStmt is called when entering the simpleStmt production. EnterSimpleStmt(c *SimpleStmtContext) // EnterExpressionStmt is called when entering the expressionStmt production. EnterExpressionStmt(c *ExpressionStmtContext) // EnterAssignment is called when entering the assignment production. EnterAssignment(c *AssignmentContext) // EnterAssign_op is called when entering the assign_op production. EnterAssign_op(c *Assign_opContext) // EnterReturnStmt is called when entering the returnStmt production. EnterReturnStmt(c *ReturnStmtContext) // EnterBreakStmt is called when entering the breakStmt production. EnterBreakStmt(c *BreakStmtContext) // EnterContinueStmt is called when entering the continueStmt production. EnterContinueStmt(c *ContinueStmtContext) // EnterIfStmt is called when entering the ifStmt production. EnterIfStmt(c *IfStmtContext) // EnterForStmt is called when entering the forStmt production. EnterForStmt(c *ForStmtContext) // EnterForClause is called when entering the forClause production. EnterForClause(c *ForClauseContext) // ExitSourceFile is called when exiting the sourceFile production. ExitSourceFile(c *SourceFileContext) // ExitImportStmt is called when exiting the importStmt production. ExitImportStmt(c *ImportStmtContext) // ExitDeclaration is called when exiting the declaration production. ExitDeclaration(c *DeclarationContext) // ExitEos is called when exiting the eos production. ExitEos(c *EosContext) // ExitImportDecl is called when exiting the importDecl production. ExitImportDecl(c *ImportDeclContext) // ExitVarDecl is called when exiting the varDecl production. ExitVarDecl(c *VarDeclContext) // ExitFunctionDecl is called when exiting the functionDecl production. ExitFunctionDecl(c *FunctionDeclContext) // ExitTypeParameters is called when exiting the typeParameters production. ExitTypeParameters(c *TypeParametersContext) // ExitSignature is called when exiting the signature production. ExitSignature(c *SignatureContext) // ExitBlock is called when exiting the block production. ExitBlock(c *BlockContext) // ExitTypeParameterDecl is called when exiting the typeParameterDecl production. ExitTypeParameterDecl(c *TypeParameterDeclContext) // ExitExpression is called when exiting the expression production. ExitExpression(c *ExpressionContext) // ExitArithmeticExpr is called when exiting the arithmeticExpr production. ExitArithmeticExpr(c *ArithmeticExprContext) // ExitReturnExpr is called when exiting the returnExpr production. ExitReturnExpr(c *ReturnExprContext) // ExitStatement is called when exiting the statement production. ExitStatement(c *StatementContext) // ExitSimpleStmt is called when exiting the simpleStmt production. ExitSimpleStmt(c *SimpleStmtContext) // ExitExpressionStmt is called when exiting the expressionStmt production. ExitExpressionStmt(c *ExpressionStmtContext) // ExitAssignment is called when exiting the assignment production. ExitAssignment(c *AssignmentContext) // ExitAssign_op is called when exiting the assign_op production. ExitAssign_op(c *Assign_opContext) // ExitReturnStmt is called when exiting the returnStmt production. ExitReturnStmt(c *ReturnStmtContext) // ExitBreakStmt is called when exiting the breakStmt production. ExitBreakStmt(c *BreakStmtContext) // ExitContinueStmt is called when exiting the continueStmt production. ExitContinueStmt(c *ContinueStmtContext) // ExitIfStmt is called when exiting the ifStmt production. ExitIfStmt(c *IfStmtContext) // ExitForStmt is called when exiting the forStmt production. ExitForStmt(c *ForStmtContext) // ExitForClause is called when exiting the forClause production. ExitForClause(c *ForClauseContext) }
CellScriptParserListener is a complete listener for a parse tree produced by CellScriptParser.
type CellScriptParserVisitor ¶
type CellScriptParserVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by CellScriptParser#sourceFile. VisitSourceFile(ctx *SourceFileContext) interface{} // Visit a parse tree produced by CellScriptParser#importStmt. VisitImportStmt(ctx *ImportStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#declaration. VisitDeclaration(ctx *DeclarationContext) interface{} // Visit a parse tree produced by CellScriptParser#eos. VisitEos(ctx *EosContext) interface{} // Visit a parse tree produced by CellScriptParser#importDecl. VisitImportDecl(ctx *ImportDeclContext) interface{} // Visit a parse tree produced by CellScriptParser#varDecl. VisitVarDecl(ctx *VarDeclContext) interface{} // Visit a parse tree produced by CellScriptParser#functionDecl. VisitFunctionDecl(ctx *FunctionDeclContext) interface{} // Visit a parse tree produced by CellScriptParser#typeParameters. VisitTypeParameters(ctx *TypeParametersContext) interface{} // Visit a parse tree produced by CellScriptParser#signature. VisitSignature(ctx *SignatureContext) interface{} // Visit a parse tree produced by CellScriptParser#block. VisitBlock(ctx *BlockContext) interface{} // Visit a parse tree produced by CellScriptParser#typeParameterDecl. VisitTypeParameterDecl(ctx *TypeParameterDeclContext) interface{} // Visit a parse tree produced by CellScriptParser#expression. VisitExpression(ctx *ExpressionContext) interface{} // Visit a parse tree produced by CellScriptParser#arithmeticExpr. VisitArithmeticExpr(ctx *ArithmeticExprContext) interface{} // Visit a parse tree produced by CellScriptParser#returnExpr. VisitReturnExpr(ctx *ReturnExprContext) interface{} // Visit a parse tree produced by CellScriptParser#statement. VisitStatement(ctx *StatementContext) interface{} // Visit a parse tree produced by CellScriptParser#simpleStmt. VisitSimpleStmt(ctx *SimpleStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#expressionStmt. VisitExpressionStmt(ctx *ExpressionStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#assignment. VisitAssignment(ctx *AssignmentContext) interface{} // Visit a parse tree produced by CellScriptParser#assign_op. VisitAssign_op(ctx *Assign_opContext) interface{} // Visit a parse tree produced by CellScriptParser#returnStmt. VisitReturnStmt(ctx *ReturnStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#breakStmt. VisitBreakStmt(ctx *BreakStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#continueStmt. VisitContinueStmt(ctx *ContinueStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#ifStmt. VisitIfStmt(ctx *IfStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#forStmt. VisitForStmt(ctx *ForStmtContext) interface{} // Visit a parse tree produced by CellScriptParser#forClause. VisitForClause(ctx *ForClauseContext) interface{} }
A complete Visitor for a parse tree produced by CellScriptParser.
type ContinueStmtContext ¶
type ContinueStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewContinueStmtContext ¶
func NewContinueStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ContinueStmtContext
func NewEmptyContinueStmtContext ¶
func NewEmptyContinueStmtContext() *ContinueStmtContext
func (*ContinueStmtContext) Accept ¶
func (s *ContinueStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ContinueStmtContext) CONTINUE ¶
func (s *ContinueStmtContext) CONTINUE() antlr.TerminalNode
func (*ContinueStmtContext) EnterRule ¶
func (s *ContinueStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*ContinueStmtContext) ExitRule ¶
func (s *ContinueStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*ContinueStmtContext) GetParser ¶
func (s *ContinueStmtContext) GetParser() antlr.Parser
func (*ContinueStmtContext) GetRuleContext ¶
func (s *ContinueStmtContext) GetRuleContext() antlr.RuleContext
func (*ContinueStmtContext) IDENTIFIER ¶
func (s *ContinueStmtContext) IDENTIFIER() antlr.TerminalNode
func (*ContinueStmtContext) IsContinueStmtContext ¶
func (*ContinueStmtContext) IsContinueStmtContext()
func (*ContinueStmtContext) ToStringTree ¶
func (s *ContinueStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type DeclarationContext ¶
type DeclarationContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDeclarationContext ¶
func NewDeclarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DeclarationContext
func NewEmptyDeclarationContext ¶
func NewEmptyDeclarationContext() *DeclarationContext
func (*DeclarationContext) Accept ¶
func (s *DeclarationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*DeclarationContext) AllEos ¶
func (s *DeclarationContext) AllEos() []IEosContext
func (*DeclarationContext) AllFunctionDecl ¶
func (s *DeclarationContext) AllFunctionDecl() []IFunctionDeclContext
func (*DeclarationContext) AllVarDecl ¶
func (s *DeclarationContext) AllVarDecl() []IVarDeclContext
func (*DeclarationContext) EOF ¶
func (s *DeclarationContext) EOF() antlr.TerminalNode
func (*DeclarationContext) EnterRule ¶
func (s *DeclarationContext) EnterRule(listener antlr.ParseTreeListener)
func (*DeclarationContext) Eos ¶
func (s *DeclarationContext) Eos(i int) IEosContext
func (*DeclarationContext) ExitRule ¶
func (s *DeclarationContext) ExitRule(listener antlr.ParseTreeListener)
func (*DeclarationContext) FunctionDecl ¶
func (s *DeclarationContext) FunctionDecl(i int) IFunctionDeclContext
func (*DeclarationContext) GetParser ¶
func (s *DeclarationContext) GetParser() antlr.Parser
func (*DeclarationContext) GetRuleContext ¶
func (s *DeclarationContext) GetRuleContext() antlr.RuleContext
func (*DeclarationContext) IsDeclarationContext ¶
func (*DeclarationContext) IsDeclarationContext()
func (*DeclarationContext) ToStringTree ¶
func (s *DeclarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*DeclarationContext) VarDecl ¶
func (s *DeclarationContext) VarDecl(i int) IVarDeclContext
type EosContext ¶
type EosContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEosContext ¶
func NewEmptyEosContext() *EosContext
func NewEosContext ¶
func NewEosContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EosContext
func (*EosContext) Accept ¶
func (s *EosContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*EosContext) EOF ¶
func (s *EosContext) EOF() antlr.TerminalNode
func (*EosContext) EOS ¶
func (s *EosContext) EOS() antlr.TerminalNode
func (*EosContext) EnterRule ¶
func (s *EosContext) EnterRule(listener antlr.ParseTreeListener)
func (*EosContext) ExitRule ¶
func (s *EosContext) ExitRule(listener antlr.ParseTreeListener)
func (*EosContext) GetParser ¶
func (s *EosContext) GetParser() antlr.Parser
func (*EosContext) GetRuleContext ¶
func (s *EosContext) GetRuleContext() antlr.RuleContext
func (*EosContext) IsEosContext ¶
func (*EosContext) IsEosContext()
func (*EosContext) ToStringTree ¶
func (s *EosContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ExpressionContext ¶
type ExpressionContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyExpressionContext ¶
func NewEmptyExpressionContext() *ExpressionContext
func NewExpressionContext ¶
func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext
func (*ExpressionContext) Accept ¶
func (s *ExpressionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ExpressionContext) ArithmeticExpr ¶
func (s *ExpressionContext) ArithmeticExpr() IArithmeticExprContext
func (*ExpressionContext) EnterRule ¶
func (s *ExpressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*ExpressionContext) ExitRule ¶
func (s *ExpressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*ExpressionContext) GetParser ¶
func (s *ExpressionContext) GetParser() antlr.Parser
func (*ExpressionContext) GetRuleContext ¶
func (s *ExpressionContext) GetRuleContext() antlr.RuleContext
func (*ExpressionContext) IsExpressionContext ¶
func (*ExpressionContext) IsExpressionContext()
func (*ExpressionContext) ReturnExpr ¶
func (s *ExpressionContext) ReturnExpr() IReturnExprContext
func (*ExpressionContext) ToStringTree ¶
func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ExpressionStmtContext ¶
type ExpressionStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyExpressionStmtContext ¶
func NewEmptyExpressionStmtContext() *ExpressionStmtContext
func NewExpressionStmtContext ¶
func NewExpressionStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionStmtContext
func (*ExpressionStmtContext) Accept ¶
func (s *ExpressionStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ExpressionStmtContext) EnterRule ¶
func (s *ExpressionStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*ExpressionStmtContext) ExitRule ¶
func (s *ExpressionStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*ExpressionStmtContext) Expression ¶
func (s *ExpressionStmtContext) Expression() IExpressionContext
func (*ExpressionStmtContext) GetParser ¶
func (s *ExpressionStmtContext) GetParser() antlr.Parser
func (*ExpressionStmtContext) GetRuleContext ¶
func (s *ExpressionStmtContext) GetRuleContext() antlr.RuleContext
func (*ExpressionStmtContext) IsExpressionStmtContext ¶
func (*ExpressionStmtContext) IsExpressionStmtContext()
func (*ExpressionStmtContext) ToStringTree ¶
func (s *ExpressionStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ForClauseContext ¶
type ForClauseContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyForClauseContext ¶
func NewEmptyForClauseContext() *ForClauseContext
func NewForClauseContext ¶
func NewForClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ForClauseContext
func (*ForClauseContext) Accept ¶
func (s *ForClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ForClauseContext) AllEos ¶
func (s *ForClauseContext) AllEos() []IEosContext
func (*ForClauseContext) AllSimpleStmt ¶
func (s *ForClauseContext) AllSimpleStmt() []ISimpleStmtContext
func (*ForClauseContext) EnterRule ¶
func (s *ForClauseContext) EnterRule(listener antlr.ParseTreeListener)
func (*ForClauseContext) Eos ¶
func (s *ForClauseContext) Eos(i int) IEosContext
func (*ForClauseContext) ExitRule ¶
func (s *ForClauseContext) ExitRule(listener antlr.ParseTreeListener)
func (*ForClauseContext) Expression ¶
func (s *ForClauseContext) Expression() IExpressionContext
func (*ForClauseContext) GetInitStmt ¶
func (s *ForClauseContext) GetInitStmt() ISimpleStmtContext
func (*ForClauseContext) GetParser ¶
func (s *ForClauseContext) GetParser() antlr.Parser
func (*ForClauseContext) GetPostStmt ¶
func (s *ForClauseContext) GetPostStmt() ISimpleStmtContext
func (*ForClauseContext) GetRuleContext ¶
func (s *ForClauseContext) GetRuleContext() antlr.RuleContext
func (*ForClauseContext) IsForClauseContext ¶
func (*ForClauseContext) IsForClauseContext()
func (*ForClauseContext) SetInitStmt ¶
func (s *ForClauseContext) SetInitStmt(v ISimpleStmtContext)
func (*ForClauseContext) SetPostStmt ¶
func (s *ForClauseContext) SetPostStmt(v ISimpleStmtContext)
func (*ForClauseContext) SimpleStmt ¶
func (s *ForClauseContext) SimpleStmt(i int) ISimpleStmtContext
func (*ForClauseContext) ToStringTree ¶
func (s *ForClauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ForStmtContext ¶
type ForStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyForStmtContext ¶
func NewEmptyForStmtContext() *ForStmtContext
func NewForStmtContext ¶
func NewForStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ForStmtContext
func (*ForStmtContext) Accept ¶
func (s *ForStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ForStmtContext) Block ¶
func (s *ForStmtContext) Block() IBlockContext
func (*ForStmtContext) EnterRule ¶
func (s *ForStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*ForStmtContext) ExitRule ¶
func (s *ForStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*ForStmtContext) Expression ¶
func (s *ForStmtContext) Expression() IExpressionContext
func (*ForStmtContext) FOR ¶
func (s *ForStmtContext) FOR() antlr.TerminalNode
func (*ForStmtContext) ForClause ¶
func (s *ForStmtContext) ForClause() IForClauseContext
func (*ForStmtContext) GetParser ¶
func (s *ForStmtContext) GetParser() antlr.Parser
func (*ForStmtContext) GetRuleContext ¶
func (s *ForStmtContext) GetRuleContext() antlr.RuleContext
func (*ForStmtContext) IsForStmtContext ¶
func (*ForStmtContext) IsForStmtContext()
func (*ForStmtContext) ToStringTree ¶
func (s *ForStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FunctionDeclContext ¶
type FunctionDeclContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFunctionDeclContext ¶
func NewEmptyFunctionDeclContext() *FunctionDeclContext
func NewFunctionDeclContext ¶
func NewFunctionDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionDeclContext
func (*FunctionDeclContext) Accept ¶
func (s *FunctionDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*FunctionDeclContext) Block ¶
func (s *FunctionDeclContext) Block() IBlockContext
func (*FunctionDeclContext) EnterRule ¶
func (s *FunctionDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*FunctionDeclContext) ExitRule ¶
func (s *FunctionDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*FunctionDeclContext) FUNC ¶
func (s *FunctionDeclContext) FUNC() antlr.TerminalNode
func (*FunctionDeclContext) GetParser ¶
func (s *FunctionDeclContext) GetParser() antlr.Parser
func (*FunctionDeclContext) GetRuleContext ¶
func (s *FunctionDeclContext) GetRuleContext() antlr.RuleContext
func (*FunctionDeclContext) IDENTIFIER ¶
func (s *FunctionDeclContext) IDENTIFIER() antlr.TerminalNode
func (*FunctionDeclContext) IsFunctionDeclContext ¶
func (*FunctionDeclContext) IsFunctionDeclContext()
func (*FunctionDeclContext) Signature ¶
func (s *FunctionDeclContext) Signature() ISignatureContext
func (*FunctionDeclContext) ToStringTree ¶
func (s *FunctionDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*FunctionDeclContext) TypeParameters ¶
func (s *FunctionDeclContext) TypeParameters() ITypeParametersContext
type IArithmeticExprContext ¶
type IArithmeticExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetOp returns the op token. GetOp() antlr.Token // SetOp sets the op token. SetOp(antlr.Token) // Getter signatures IDENTIFIER() antlr.TerminalNode AllArithmeticExpr() []IArithmeticExprContext ArithmeticExpr(i int) IArithmeticExprContext ADD() antlr.TerminalNode SUB() antlr.TerminalNode MUL() antlr.TerminalNode DIV() antlr.TerminalNode // IsArithmeticExprContext differentiates from other interfaces. IsArithmeticExprContext() }
IArithmeticExprContext is an interface to support dynamic dispatch.
type IAssign_opContext ¶
type IAssign_opContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures ASSIGN() antlr.TerminalNode ADD() antlr.TerminalNode SUB() antlr.TerminalNode MUL() antlr.TerminalNode DIV() antlr.TerminalNode MOD() antlr.TerminalNode // IsAssign_opContext differentiates from other interfaces. IsAssign_opContext() }
IAssign_opContext is an interface to support dynamic dispatch.
type IAssignmentContext ¶
type IAssignmentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures AllExpression() []IExpressionContext Expression(i int) IExpressionContext Assign_op() IAssign_opContext // IsAssignmentContext differentiates from other interfaces. IsAssignmentContext() }
IAssignmentContext is an interface to support dynamic dispatch.
type IBlockContext ¶
type IBlockContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures L_CURLY() antlr.TerminalNode R_CURLY() antlr.TerminalNode Expression() IExpressionContext // IsBlockContext differentiates from other interfaces. IsBlockContext() }
IBlockContext is an interface to support dynamic dispatch.
type IBreakStmtContext ¶
type IBreakStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures BREAK() antlr.TerminalNode IDENTIFIER() antlr.TerminalNode // IsBreakStmtContext differentiates from other interfaces. IsBreakStmtContext() }
IBreakStmtContext is an interface to support dynamic dispatch.
type IContinueStmtContext ¶
type IContinueStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures CONTINUE() antlr.TerminalNode IDENTIFIER() antlr.TerminalNode // IsContinueStmtContext differentiates from other interfaces. IsContinueStmtContext() }
IContinueStmtContext is an interface to support dynamic dispatch.
type IDeclarationContext ¶
type IDeclarationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures EOF() antlr.TerminalNode AllEos() []IEosContext Eos(i int) IEosContext AllFunctionDecl() []IFunctionDeclContext FunctionDecl(i int) IFunctionDeclContext AllVarDecl() []IVarDeclContext VarDecl(i int) IVarDeclContext // IsDeclarationContext differentiates from other interfaces. IsDeclarationContext() }
IDeclarationContext is an interface to support dynamic dispatch.
type IEosContext ¶
type IEosContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures EOF() antlr.TerminalNode EOS() antlr.TerminalNode // IsEosContext differentiates from other interfaces. IsEosContext() }
IEosContext is an interface to support dynamic dispatch.
type IExpressionContext ¶
type IExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures ArithmeticExpr() IArithmeticExprContext ReturnExpr() IReturnExprContext // IsExpressionContext differentiates from other interfaces. IsExpressionContext() }
IExpressionContext is an interface to support dynamic dispatch.
type IExpressionStmtContext ¶
type IExpressionStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Expression() IExpressionContext // IsExpressionStmtContext differentiates from other interfaces. IsExpressionStmtContext() }
IExpressionStmtContext is an interface to support dynamic dispatch.
type IForClauseContext ¶
type IForClauseContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetInitStmt returns the initStmt rule contexts. GetInitStmt() ISimpleStmtContext // GetPostStmt returns the postStmt rule contexts. GetPostStmt() ISimpleStmtContext // SetInitStmt sets the initStmt rule contexts. SetInitStmt(ISimpleStmtContext) // SetPostStmt sets the postStmt rule contexts. SetPostStmt(ISimpleStmtContext) // Getter signatures AllEos() []IEosContext Eos(i int) IEosContext Expression() IExpressionContext AllSimpleStmt() []ISimpleStmtContext SimpleStmt(i int) ISimpleStmtContext // IsForClauseContext differentiates from other interfaces. IsForClauseContext() }
IForClauseContext is an interface to support dynamic dispatch.
type IForStmtContext ¶
type IForStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures FOR() antlr.TerminalNode Block() IBlockContext ForClause() IForClauseContext Expression() IExpressionContext // IsForStmtContext differentiates from other interfaces. IsForStmtContext() }
IForStmtContext is an interface to support dynamic dispatch.
type IFunctionDeclContext ¶
type IFunctionDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures FUNC() antlr.TerminalNode IDENTIFIER() antlr.TerminalNode Signature() ISignatureContext TypeParameters() ITypeParametersContext Block() IBlockContext // IsFunctionDeclContext differentiates from other interfaces. IsFunctionDeclContext() }
IFunctionDeclContext is an interface to support dynamic dispatch.
type IIfStmtContext ¶
type IIfStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures IF() antlr.TerminalNode AllBlock() []IBlockContext Block(i int) IBlockContext Expression() IExpressionContext Eos() IEosContext SimpleStmt() ISimpleStmtContext ELSE() antlr.TerminalNode IfStmt() IIfStmtContext // IsIfStmtContext differentiates from other interfaces. IsIfStmtContext() }
IIfStmtContext is an interface to support dynamic dispatch.
type IImportDeclContext ¶
type IImportDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures IMPORT() antlr.TerminalNode IDENTIFIER() antlr.TerminalNode // IsImportDeclContext differentiates from other interfaces. IsImportDeclContext() }
IImportDeclContext is an interface to support dynamic dispatch.
type IImportStmtContext ¶
type IImportStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures AllImportDecl() []IImportDeclContext ImportDecl(i int) IImportDeclContext AllEos() []IEosContext Eos(i int) IEosContext // IsImportStmtContext differentiates from other interfaces. IsImportStmtContext() }
IImportStmtContext is an interface to support dynamic dispatch.
type IReturnExprContext ¶
type IReturnExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures RETURN() antlr.TerminalNode IDENTIFIER() antlr.TerminalNode // IsReturnExprContext differentiates from other interfaces. IsReturnExprContext() }
IReturnExprContext is an interface to support dynamic dispatch.
type IReturnStmtContext ¶
type IReturnStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures RETURN() antlr.TerminalNode Eos() IEosContext Expression() IExpressionContext // IsReturnStmtContext differentiates from other interfaces. IsReturnStmtContext() }
IReturnStmtContext is an interface to support dynamic dispatch.
type ISignatureContext ¶
type ISignatureContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures TYPE() antlr.TerminalNode // IsSignatureContext differentiates from other interfaces. IsSignatureContext() }
ISignatureContext is an interface to support dynamic dispatch.
type ISimpleStmtContext ¶
type ISimpleStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Assignment() IAssignmentContext ExpressionStmt() IExpressionStmtContext // IsSimpleStmtContext differentiates from other interfaces. IsSimpleStmtContext() }
ISimpleStmtContext is an interface to support dynamic dispatch.
type ISourceFileContext ¶
type ISourceFileContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures ImportStmt() IImportStmtContext Declaration() IDeclarationContext EOF() antlr.TerminalNode // IsSourceFileContext differentiates from other interfaces. IsSourceFileContext() }
ISourceFileContext is an interface to support dynamic dispatch.
type IStatementContext ¶
type IStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Declaration() IDeclarationContext SimpleStmt() ISimpleStmtContext ReturnStmt() IReturnStmtContext BreakStmt() IBreakStmtContext ContinueStmt() IContinueStmtContext Block() IBlockContext IfStmt() IIfStmtContext ForStmt() IForStmtContext // IsStatementContext differentiates from other interfaces. IsStatementContext() }
IStatementContext is an interface to support dynamic dispatch.
type ITypeParameterDeclContext ¶
type ITypeParameterDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures TYPE() antlr.TerminalNode IDENTIFIER() antlr.TerminalNode // IsTypeParameterDeclContext differentiates from other interfaces. IsTypeParameterDeclContext() }
ITypeParameterDeclContext is an interface to support dynamic dispatch.
type ITypeParametersContext ¶
type ITypeParametersContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures L_BRACKET() antlr.TerminalNode R_BRACKET() antlr.TerminalNode AllTypeParameterDecl() []ITypeParameterDeclContext TypeParameterDecl(i int) ITypeParameterDeclContext AllCOMMA() []antlr.TerminalNode COMMA(i int) antlr.TerminalNode // IsTypeParametersContext differentiates from other interfaces. IsTypeParametersContext() }
ITypeParametersContext is an interface to support dynamic dispatch.
type IVarDeclContext ¶
type IVarDeclContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures VAR() antlr.TerminalNode TYPE() antlr.TerminalNode IDENTIFIER() antlr.TerminalNode // IsVarDeclContext differentiates from other interfaces. IsVarDeclContext() }
IVarDeclContext is an interface to support dynamic dispatch.
type IfStmtContext ¶
type IfStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIfStmtContext ¶
func NewEmptyIfStmtContext() *IfStmtContext
func NewIfStmtContext ¶
func NewIfStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfStmtContext
func (*IfStmtContext) Accept ¶
func (s *IfStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*IfStmtContext) AllBlock ¶
func (s *IfStmtContext) AllBlock() []IBlockContext
func (*IfStmtContext) Block ¶
func (s *IfStmtContext) Block(i int) IBlockContext
func (*IfStmtContext) ELSE ¶
func (s *IfStmtContext) ELSE() antlr.TerminalNode
func (*IfStmtContext) EnterRule ¶
func (s *IfStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*IfStmtContext) Eos ¶
func (s *IfStmtContext) Eos() IEosContext
func (*IfStmtContext) ExitRule ¶
func (s *IfStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*IfStmtContext) Expression ¶
func (s *IfStmtContext) Expression() IExpressionContext
func (*IfStmtContext) GetParser ¶
func (s *IfStmtContext) GetParser() antlr.Parser
func (*IfStmtContext) GetRuleContext ¶
func (s *IfStmtContext) GetRuleContext() antlr.RuleContext
func (*IfStmtContext) IF ¶
func (s *IfStmtContext) IF() antlr.TerminalNode
func (*IfStmtContext) IfStmt ¶
func (s *IfStmtContext) IfStmt() IIfStmtContext
func (*IfStmtContext) IsIfStmtContext ¶
func (*IfStmtContext) IsIfStmtContext()
func (*IfStmtContext) SimpleStmt ¶
func (s *IfStmtContext) SimpleStmt() ISimpleStmtContext
func (*IfStmtContext) ToStringTree ¶
func (s *IfStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ImportDeclContext ¶
type ImportDeclContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyImportDeclContext ¶
func NewEmptyImportDeclContext() *ImportDeclContext
func NewImportDeclContext ¶
func NewImportDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ImportDeclContext
func (*ImportDeclContext) Accept ¶
func (s *ImportDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ImportDeclContext) EnterRule ¶
func (s *ImportDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*ImportDeclContext) ExitRule ¶
func (s *ImportDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*ImportDeclContext) GetParser ¶
func (s *ImportDeclContext) GetParser() antlr.Parser
func (*ImportDeclContext) GetRuleContext ¶
func (s *ImportDeclContext) GetRuleContext() antlr.RuleContext
func (*ImportDeclContext) IDENTIFIER ¶
func (s *ImportDeclContext) IDENTIFIER() antlr.TerminalNode
func (*ImportDeclContext) IMPORT ¶
func (s *ImportDeclContext) IMPORT() antlr.TerminalNode
func (*ImportDeclContext) IsImportDeclContext ¶
func (*ImportDeclContext) IsImportDeclContext()
func (*ImportDeclContext) ToStringTree ¶
func (s *ImportDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ImportStmtContext ¶
type ImportStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyImportStmtContext ¶
func NewEmptyImportStmtContext() *ImportStmtContext
func NewImportStmtContext ¶
func NewImportStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ImportStmtContext
func (*ImportStmtContext) Accept ¶
func (s *ImportStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ImportStmtContext) AllEos ¶
func (s *ImportStmtContext) AllEos() []IEosContext
func (*ImportStmtContext) AllImportDecl ¶
func (s *ImportStmtContext) AllImportDecl() []IImportDeclContext
func (*ImportStmtContext) EnterRule ¶
func (s *ImportStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*ImportStmtContext) Eos ¶
func (s *ImportStmtContext) Eos(i int) IEosContext
func (*ImportStmtContext) ExitRule ¶
func (s *ImportStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*ImportStmtContext) GetParser ¶
func (s *ImportStmtContext) GetParser() antlr.Parser
func (*ImportStmtContext) GetRuleContext ¶
func (s *ImportStmtContext) GetRuleContext() antlr.RuleContext
func (*ImportStmtContext) ImportDecl ¶
func (s *ImportStmtContext) ImportDecl(i int) IImportDeclContext
func (*ImportStmtContext) IsImportStmtContext ¶
func (*ImportStmtContext) IsImportStmtContext()
func (*ImportStmtContext) ToStringTree ¶
func (s *ImportStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ReturnExprContext ¶
type ReturnExprContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyReturnExprContext ¶
func NewEmptyReturnExprContext() *ReturnExprContext
func NewReturnExprContext ¶
func NewReturnExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReturnExprContext
func (*ReturnExprContext) Accept ¶
func (s *ReturnExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ReturnExprContext) EnterRule ¶
func (s *ReturnExprContext) EnterRule(listener antlr.ParseTreeListener)
func (*ReturnExprContext) ExitRule ¶
func (s *ReturnExprContext) ExitRule(listener antlr.ParseTreeListener)
func (*ReturnExprContext) GetParser ¶
func (s *ReturnExprContext) GetParser() antlr.Parser
func (*ReturnExprContext) GetRuleContext ¶
func (s *ReturnExprContext) GetRuleContext() antlr.RuleContext
func (*ReturnExprContext) IDENTIFIER ¶
func (s *ReturnExprContext) IDENTIFIER() antlr.TerminalNode
func (*ReturnExprContext) IsReturnExprContext ¶
func (*ReturnExprContext) IsReturnExprContext()
func (*ReturnExprContext) RETURN ¶
func (s *ReturnExprContext) RETURN() antlr.TerminalNode
func (*ReturnExprContext) ToStringTree ¶
func (s *ReturnExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ReturnStmtContext ¶
type ReturnStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyReturnStmtContext ¶
func NewEmptyReturnStmtContext() *ReturnStmtContext
func NewReturnStmtContext ¶
func NewReturnStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReturnStmtContext
func (*ReturnStmtContext) Accept ¶
func (s *ReturnStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ReturnStmtContext) EnterRule ¶
func (s *ReturnStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*ReturnStmtContext) Eos ¶
func (s *ReturnStmtContext) Eos() IEosContext
func (*ReturnStmtContext) ExitRule ¶
func (s *ReturnStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*ReturnStmtContext) Expression ¶
func (s *ReturnStmtContext) Expression() IExpressionContext
func (*ReturnStmtContext) GetParser ¶
func (s *ReturnStmtContext) GetParser() antlr.Parser
func (*ReturnStmtContext) GetRuleContext ¶
func (s *ReturnStmtContext) GetRuleContext() antlr.RuleContext
func (*ReturnStmtContext) IsReturnStmtContext ¶
func (*ReturnStmtContext) IsReturnStmtContext()
func (*ReturnStmtContext) RETURN ¶
func (s *ReturnStmtContext) RETURN() antlr.TerminalNode
func (*ReturnStmtContext) ToStringTree ¶
func (s *ReturnStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SignatureContext ¶
type SignatureContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySignatureContext ¶
func NewEmptySignatureContext() *SignatureContext
func NewSignatureContext ¶
func NewSignatureContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SignatureContext
func (*SignatureContext) Accept ¶
func (s *SignatureContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SignatureContext) EnterRule ¶
func (s *SignatureContext) EnterRule(listener antlr.ParseTreeListener)
func (*SignatureContext) ExitRule ¶
func (s *SignatureContext) ExitRule(listener antlr.ParseTreeListener)
func (*SignatureContext) GetParser ¶
func (s *SignatureContext) GetParser() antlr.Parser
func (*SignatureContext) GetRuleContext ¶
func (s *SignatureContext) GetRuleContext() antlr.RuleContext
func (*SignatureContext) IsSignatureContext ¶
func (*SignatureContext) IsSignatureContext()
func (*SignatureContext) TYPE ¶
func (s *SignatureContext) TYPE() antlr.TerminalNode
func (*SignatureContext) ToStringTree ¶
func (s *SignatureContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SimpleStmtContext ¶
type SimpleStmtContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySimpleStmtContext ¶
func NewEmptySimpleStmtContext() *SimpleStmtContext
func NewSimpleStmtContext ¶
func NewSimpleStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SimpleStmtContext
func (*SimpleStmtContext) Accept ¶
func (s *SimpleStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SimpleStmtContext) Assignment ¶
func (s *SimpleStmtContext) Assignment() IAssignmentContext
func (*SimpleStmtContext) EnterRule ¶
func (s *SimpleStmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*SimpleStmtContext) ExitRule ¶
func (s *SimpleStmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*SimpleStmtContext) ExpressionStmt ¶
func (s *SimpleStmtContext) ExpressionStmt() IExpressionStmtContext
func (*SimpleStmtContext) GetParser ¶
func (s *SimpleStmtContext) GetParser() antlr.Parser
func (*SimpleStmtContext) GetRuleContext ¶
func (s *SimpleStmtContext) GetRuleContext() antlr.RuleContext
func (*SimpleStmtContext) IsSimpleStmtContext ¶
func (*SimpleStmtContext) IsSimpleStmtContext()
func (*SimpleStmtContext) ToStringTree ¶
func (s *SimpleStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SourceFileContext ¶
type SourceFileContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySourceFileContext ¶
func NewEmptySourceFileContext() *SourceFileContext
func NewSourceFileContext ¶
func NewSourceFileContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SourceFileContext
func (*SourceFileContext) Accept ¶
func (s *SourceFileContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SourceFileContext) Declaration ¶
func (s *SourceFileContext) Declaration() IDeclarationContext
func (*SourceFileContext) EOF ¶
func (s *SourceFileContext) EOF() antlr.TerminalNode
func (*SourceFileContext) EnterRule ¶
func (s *SourceFileContext) EnterRule(listener antlr.ParseTreeListener)
func (*SourceFileContext) ExitRule ¶
func (s *SourceFileContext) ExitRule(listener antlr.ParseTreeListener)
func (*SourceFileContext) GetParser ¶
func (s *SourceFileContext) GetParser() antlr.Parser
func (*SourceFileContext) GetRuleContext ¶
func (s *SourceFileContext) GetRuleContext() antlr.RuleContext
func (*SourceFileContext) ImportStmt ¶
func (s *SourceFileContext) ImportStmt() IImportStmtContext
func (*SourceFileContext) IsSourceFileContext ¶
func (*SourceFileContext) IsSourceFileContext()
func (*SourceFileContext) ToStringTree ¶
func (s *SourceFileContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StatementContext ¶
type StatementContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStatementContext ¶
func NewEmptyStatementContext() *StatementContext
func NewStatementContext ¶
func NewStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StatementContext
func (*StatementContext) Accept ¶
func (s *StatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*StatementContext) Block ¶
func (s *StatementContext) Block() IBlockContext
func (*StatementContext) BreakStmt ¶
func (s *StatementContext) BreakStmt() IBreakStmtContext
func (*StatementContext) ContinueStmt ¶
func (s *StatementContext) ContinueStmt() IContinueStmtContext
func (*StatementContext) Declaration ¶
func (s *StatementContext) Declaration() IDeclarationContext
func (*StatementContext) EnterRule ¶
func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*StatementContext) ExitRule ¶
func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*StatementContext) ForStmt ¶
func (s *StatementContext) ForStmt() IForStmtContext
func (*StatementContext) GetParser ¶
func (s *StatementContext) GetParser() antlr.Parser
func (*StatementContext) GetRuleContext ¶
func (s *StatementContext) GetRuleContext() antlr.RuleContext
func (*StatementContext) IfStmt ¶
func (s *StatementContext) IfStmt() IIfStmtContext
func (*StatementContext) IsStatementContext ¶
func (*StatementContext) IsStatementContext()
func (*StatementContext) ReturnStmt ¶
func (s *StatementContext) ReturnStmt() IReturnStmtContext
func (*StatementContext) SimpleStmt ¶
func (s *StatementContext) SimpleStmt() ISimpleStmtContext
func (*StatementContext) ToStringTree ¶
func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TypeParameterDeclContext ¶
type TypeParameterDeclContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeParameterDeclContext ¶
func NewEmptyTypeParameterDeclContext() *TypeParameterDeclContext
func NewTypeParameterDeclContext ¶
func NewTypeParameterDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeParameterDeclContext
func (*TypeParameterDeclContext) Accept ¶
func (s *TypeParameterDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*TypeParameterDeclContext) EnterRule ¶
func (s *TypeParameterDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeParameterDeclContext) ExitRule ¶
func (s *TypeParameterDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeParameterDeclContext) GetParser ¶
func (s *TypeParameterDeclContext) GetParser() antlr.Parser
func (*TypeParameterDeclContext) GetRuleContext ¶
func (s *TypeParameterDeclContext) GetRuleContext() antlr.RuleContext
func (*TypeParameterDeclContext) IDENTIFIER ¶
func (s *TypeParameterDeclContext) IDENTIFIER() antlr.TerminalNode
func (*TypeParameterDeclContext) IsTypeParameterDeclContext ¶
func (*TypeParameterDeclContext) IsTypeParameterDeclContext()
func (*TypeParameterDeclContext) TYPE ¶
func (s *TypeParameterDeclContext) TYPE() antlr.TerminalNode
func (*TypeParameterDeclContext) ToStringTree ¶
func (s *TypeParameterDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TypeParametersContext ¶
type TypeParametersContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTypeParametersContext ¶
func NewEmptyTypeParametersContext() *TypeParametersContext
func NewTypeParametersContext ¶
func NewTypeParametersContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeParametersContext
func (*TypeParametersContext) Accept ¶
func (s *TypeParametersContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*TypeParametersContext) AllCOMMA ¶
func (s *TypeParametersContext) AllCOMMA() []antlr.TerminalNode
func (*TypeParametersContext) AllTypeParameterDecl ¶
func (s *TypeParametersContext) AllTypeParameterDecl() []ITypeParameterDeclContext
func (*TypeParametersContext) COMMA ¶
func (s *TypeParametersContext) COMMA(i int) antlr.TerminalNode
func (*TypeParametersContext) EnterRule ¶
func (s *TypeParametersContext) EnterRule(listener antlr.ParseTreeListener)
func (*TypeParametersContext) ExitRule ¶
func (s *TypeParametersContext) ExitRule(listener antlr.ParseTreeListener)
func (*TypeParametersContext) GetParser ¶
func (s *TypeParametersContext) GetParser() antlr.Parser
func (*TypeParametersContext) GetRuleContext ¶
func (s *TypeParametersContext) GetRuleContext() antlr.RuleContext
func (*TypeParametersContext) IsTypeParametersContext ¶
func (*TypeParametersContext) IsTypeParametersContext()
func (*TypeParametersContext) L_BRACKET ¶
func (s *TypeParametersContext) L_BRACKET() antlr.TerminalNode
func (*TypeParametersContext) R_BRACKET ¶
func (s *TypeParametersContext) R_BRACKET() antlr.TerminalNode
func (*TypeParametersContext) ToStringTree ¶
func (s *TypeParametersContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*TypeParametersContext) TypeParameterDecl ¶
func (s *TypeParametersContext) TypeParameterDecl(i int) ITypeParameterDeclContext
type VarDeclContext ¶
type VarDeclContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyVarDeclContext ¶
func NewEmptyVarDeclContext() *VarDeclContext
func NewVarDeclContext ¶
func NewVarDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VarDeclContext
func (*VarDeclContext) Accept ¶
func (s *VarDeclContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*VarDeclContext) EnterRule ¶
func (s *VarDeclContext) EnterRule(listener antlr.ParseTreeListener)
func (*VarDeclContext) ExitRule ¶
func (s *VarDeclContext) ExitRule(listener antlr.ParseTreeListener)
func (*VarDeclContext) GetParser ¶
func (s *VarDeclContext) GetParser() antlr.Parser
func (*VarDeclContext) GetRuleContext ¶
func (s *VarDeclContext) GetRuleContext() antlr.RuleContext
func (*VarDeclContext) IDENTIFIER ¶
func (s *VarDeclContext) IDENTIFIER() antlr.TerminalNode
func (*VarDeclContext) IsVarDeclContext ¶
func (*VarDeclContext) IsVarDeclContext()
func (*VarDeclContext) TYPE ¶
func (s *VarDeclContext) TYPE() antlr.TerminalNode
func (*VarDeclContext) ToStringTree ¶
func (s *VarDeclContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*VarDeclContext) VAR ¶
func (s *VarDeclContext) VAR() antlr.TerminalNode