Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/robotwar" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" ) type exampleListener struct { *robotwar.BaserobotwarListener } func (l *exampleListener) EnterEveryRule(ctx antlr.ParserRuleContext) { fmt.Println(ctx.GetText()) } func main() { // Setup the input is := antlr.NewInputStream("...some text to parse...") // Create the Lexer lexer := robotwar.NewrobotwarLexer(is) stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) // Create the Parser p := robotwar.NewrobotwarParser(stream) p.BuildParseTrees = true p.AddErrorListener(antlr.NewDiagnosticErrorListener(true)) // Finally walk the tree tree := p.Program() antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree) }
Output:
Index ¶
- func NewrobotwarLexer(input antlr.CharStream) *robotwarLexer
- func NewrobotwarParser(input antlr.TokenStream) *robotwarParser
- type AccumexpressionContext
- func (s *AccumexpressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AccumexpressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AccumexpressionContext) Expression() IExpressionContext
- func (s *AccumexpressionContext) GetParser() antlr.Parser
- func (s *AccumexpressionContext) GetRuleContext() antlr.RuleContext
- func (*AccumexpressionContext) IsAccumexpressionContext()
- func (s *AccumexpressionContext) Statement() IStatementContext
- func (s *AccumexpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AccumstatementContext
- func (s *AccumstatementContext) Accumexpression() IAccumexpressionContext
- func (s *AccumstatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AccumstatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AccumstatementContext) GetParser() antlr.Parser
- func (s *AccumstatementContext) GetRuleContext() antlr.RuleContext
- func (*AccumstatementContext) IsAccumstatementContext()
- func (s *AccumstatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ArgumentContext
- func (s *ArgumentContext) DATA() antlr.TerminalNode
- func (s *ArgumentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ArgumentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ArgumentContext) GetParser() antlr.Parser
- func (s *ArgumentContext) GetRuleContext() antlr.RuleContext
- func (*ArgumentContext) IsArgumentContext()
- func (s *ArgumentContext) Number() INumberContext
- func (s *ArgumentContext) Register() IRegisterContext
- func (s *ArgumentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaserobotwarListener
- func (s *BaserobotwarListener) EnterAccumexpression(ctx *AccumexpressionContext)
- func (s *BaserobotwarListener) EnterAccumstatement(ctx *AccumstatementContext)
- func (s *BaserobotwarListener) EnterArgument(ctx *ArgumentContext)
- func (s *BaserobotwarListener) EnterComment(ctx *CommentContext)
- func (s *BaserobotwarListener) EnterComparison(ctx *ComparisonContext)
- func (s *BaserobotwarListener) EnterCondition(ctx *ConditionContext)
- func (s *BaserobotwarListener) EnterEndsubstatement(ctx *EndsubstatementContext)
- func (s *BaserobotwarListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaserobotwarListener) EnterExpression(ctx *ExpressionContext)
- func (s *BaserobotwarListener) EnterGosubstatement(ctx *GosubstatementContext)
- func (s *BaserobotwarListener) EnterGotostatement(ctx *GotostatementContext)
- func (s *BaserobotwarListener) EnterIfstatement(ctx *IfstatementContext)
- func (s *BaserobotwarListener) EnterLabel(ctx *LabelContext)
- func (s *BaserobotwarListener) EnterLine(ctx *LineContext)
- func (s *BaserobotwarListener) EnterNumber(ctx *NumberContext)
- func (s *BaserobotwarListener) EnterOperation(ctx *OperationContext)
- func (s *BaserobotwarListener) EnterProgram(ctx *ProgramContext)
- func (s *BaserobotwarListener) EnterRegister(ctx *RegisterContext)
- func (s *BaserobotwarListener) EnterStatement(ctx *StatementContext)
- func (s *BaserobotwarListener) EnterTostatement(ctx *TostatementContext)
- func (s *BaserobotwarListener) ExitAccumexpression(ctx *AccumexpressionContext)
- func (s *BaserobotwarListener) ExitAccumstatement(ctx *AccumstatementContext)
- func (s *BaserobotwarListener) ExitArgument(ctx *ArgumentContext)
- func (s *BaserobotwarListener) ExitComment(ctx *CommentContext)
- func (s *BaserobotwarListener) ExitComparison(ctx *ComparisonContext)
- func (s *BaserobotwarListener) ExitCondition(ctx *ConditionContext)
- func (s *BaserobotwarListener) ExitEndsubstatement(ctx *EndsubstatementContext)
- func (s *BaserobotwarListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaserobotwarListener) ExitExpression(ctx *ExpressionContext)
- func (s *BaserobotwarListener) ExitGosubstatement(ctx *GosubstatementContext)
- func (s *BaserobotwarListener) ExitGotostatement(ctx *GotostatementContext)
- func (s *BaserobotwarListener) ExitIfstatement(ctx *IfstatementContext)
- func (s *BaserobotwarListener) ExitLabel(ctx *LabelContext)
- func (s *BaserobotwarListener) ExitLine(ctx *LineContext)
- func (s *BaserobotwarListener) ExitNumber(ctx *NumberContext)
- func (s *BaserobotwarListener) ExitOperation(ctx *OperationContext)
- func (s *BaserobotwarListener) ExitProgram(ctx *ProgramContext)
- func (s *BaserobotwarListener) ExitRegister(ctx *RegisterContext)
- func (s *BaserobotwarListener) ExitStatement(ctx *StatementContext)
- func (s *BaserobotwarListener) ExitTostatement(ctx *TostatementContext)
- func (s *BaserobotwarListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaserobotwarListener) VisitTerminal(node antlr.TerminalNode)
- type CommentContext
- func (s *CommentContext) COMMENT() antlr.TerminalNode
- func (s *CommentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CommentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CommentContext) GetParser() antlr.Parser
- func (s *CommentContext) GetRuleContext() antlr.RuleContext
- func (*CommentContext) IsCommentContext()
- func (s *CommentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ComparisonContext
- func (s *ComparisonContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ComparisonContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ComparisonContext) GetParser() antlr.Parser
- func (s *ComparisonContext) GetRuleContext() antlr.RuleContext
- func (*ComparisonContext) IsComparisonContext()
- func (s *ComparisonContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ConditionContext
- func (s *ConditionContext) AllExpression() []IExpressionContext
- func (s *ConditionContext) Comparison() IComparisonContext
- func (s *ConditionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ConditionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ConditionContext) Expression(i int) IExpressionContext
- func (s *ConditionContext) GetParser() antlr.Parser
- func (s *ConditionContext) GetRuleContext() antlr.RuleContext
- func (*ConditionContext) IsConditionContext()
- func (s *ConditionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type EndsubstatementContext
- func (s *EndsubstatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EndsubstatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EndsubstatementContext) GetParser() antlr.Parser
- func (s *EndsubstatementContext) GetRuleContext() antlr.RuleContext
- func (*EndsubstatementContext) IsEndsubstatementContext()
- func (s *EndsubstatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExpressionContext
- func (s *ExpressionContext) AllArgument() []IArgumentContext
- func (s *ExpressionContext) AllOperation() []IOperationContext
- func (s *ExpressionContext) Argument(i int) IArgumentContext
- 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) Operation(i int) IOperationContext
- func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type GosubstatementContext
- func (s *GosubstatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GosubstatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GosubstatementContext) GetParser() antlr.Parser
- func (s *GosubstatementContext) GetRuleContext() antlr.RuleContext
- func (*GosubstatementContext) IsGosubstatementContext()
- func (s *GosubstatementContext) Label() ILabelContext
- func (s *GosubstatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type GotostatementContext
- func (s *GotostatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *GotostatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *GotostatementContext) GetParser() antlr.Parser
- func (s *GotostatementContext) GetRuleContext() antlr.RuleContext
- func (*GotostatementContext) IsGotostatementContext()
- func (s *GotostatementContext) Label() ILabelContext
- func (s *GotostatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IAccumexpressionContext
- type IAccumstatementContext
- type IArgumentContext
- type ICommentContext
- type IComparisonContext
- type IConditionContext
- type IEndsubstatementContext
- type IExpressionContext
- type IGosubstatementContext
- type IGotostatementContext
- type IIfstatementContext
- type ILabelContext
- type ILineContext
- type INumberContext
- type IOperationContext
- type IProgramContext
- type IRegisterContext
- type IStatementContext
- type ITostatementContext
- type IfstatementContext
- func (s *IfstatementContext) COMMA() antlr.TerminalNode
- func (s *IfstatementContext) Condition() IConditionContext
- func (s *IfstatementContext) DOT() antlr.TerminalNode
- func (s *IfstatementContext) EOL() antlr.TerminalNode
- func (s *IfstatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IfstatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IfstatementContext) GetParser() antlr.Parser
- func (s *IfstatementContext) GetRuleContext() antlr.RuleContext
- func (*IfstatementContext) IsIfstatementContext()
- func (s *IfstatementContext) Statement() IStatementContext
- func (s *IfstatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LabelContext
- func (s *LabelContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LabelContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LabelContext) GetParser() antlr.Parser
- func (s *LabelContext) GetRuleContext() antlr.RuleContext
- func (s *LabelContext) ID() antlr.TerminalNode
- func (*LabelContext) IsLabelContext()
- func (s *LabelContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LineContext
- func (s *LineContext) Comment() ICommentContext
- func (s *LineContext) EOL() antlr.TerminalNode
- func (s *LineContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LineContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LineContext) GetParser() antlr.Parser
- func (s *LineContext) GetRuleContext() antlr.RuleContext
- func (*LineContext) IsLineContext()
- func (s *LineContext) Label() ILabelContext
- func (s *LineContext) Statement() IStatementContext
- func (s *LineContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type NumberContext
- func (s *NumberContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *NumberContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *NumberContext) GetParser() antlr.Parser
- func (s *NumberContext) GetRuleContext() antlr.RuleContext
- func (*NumberContext) IsNumberContext()
- func (s *NumberContext) NUMBER() antlr.TerminalNode
- func (s *NumberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type OperationContext
- func (s *OperationContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *OperationContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *OperationContext) GetParser() antlr.Parser
- func (s *OperationContext) GetRuleContext() antlr.RuleContext
- func (*OperationContext) IsOperationContext()
- func (s *OperationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ProgramContext
- func (s *ProgramContext) AllLine() []ILineContext
- func (s *ProgramContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProgramContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProgramContext) GetParser() antlr.Parser
- func (s *ProgramContext) GetRuleContext() antlr.RuleContext
- func (*ProgramContext) IsProgramContext()
- func (s *ProgramContext) Line(i int) ILineContext
- func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RegisterContext
- func (s *RegisterContext) A() antlr.TerminalNode
- func (s *RegisterContext) AIM() antlr.TerminalNode
- func (s *RegisterContext) B() antlr.TerminalNode
- func (s *RegisterContext) C() antlr.TerminalNode
- func (s *RegisterContext) D() antlr.TerminalNode
- func (s *RegisterContext) DAMAGE() antlr.TerminalNode
- func (s *RegisterContext) DATA() antlr.TerminalNode
- func (s *RegisterContext) E() antlr.TerminalNode
- func (s *RegisterContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RegisterContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RegisterContext) F() antlr.TerminalNode
- func (s *RegisterContext) G() antlr.TerminalNode
- func (s *RegisterContext) GetParser() antlr.Parser
- func (s *RegisterContext) GetRuleContext() antlr.RuleContext
- func (s *RegisterContext) H() antlr.TerminalNode
- func (s *RegisterContext) I() antlr.TerminalNode
- func (s *RegisterContext) INDEX() antlr.TerminalNode
- func (*RegisterContext) IsRegisterContext()
- func (s *RegisterContext) J() antlr.TerminalNode
- func (s *RegisterContext) K() antlr.TerminalNode
- func (s *RegisterContext) L() antlr.TerminalNode
- func (s *RegisterContext) M() antlr.TerminalNode
- func (s *RegisterContext) N() antlr.TerminalNode
- func (s *RegisterContext) O() antlr.TerminalNode
- func (s *RegisterContext) P() antlr.TerminalNode
- func (s *RegisterContext) Q() antlr.TerminalNode
- func (s *RegisterContext) R() antlr.TerminalNode
- func (s *RegisterContext) RADAR() antlr.TerminalNode
- func (s *RegisterContext) RANDOM() antlr.TerminalNode
- func (s *RegisterContext) S() antlr.TerminalNode
- func (s *RegisterContext) SHOT() antlr.TerminalNode
- func (s *RegisterContext) SPEEDX() antlr.TerminalNode
- func (s *RegisterContext) SPEEDY() antlr.TerminalNode
- func (s *RegisterContext) T() antlr.TerminalNode
- func (s *RegisterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *RegisterContext) U() antlr.TerminalNode
- func (s *RegisterContext) V() antlr.TerminalNode
- func (s *RegisterContext) W() antlr.TerminalNode
- func (s *RegisterContext) X() antlr.TerminalNode
- func (s *RegisterContext) Y() antlr.TerminalNode
- func (s *RegisterContext) Z() antlr.TerminalNode
- type StatementContext
- func (s *StatementContext) Accumstatement() IAccumstatementContext
- func (s *StatementContext) Endsubstatement() IEndsubstatementContext
- func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StatementContext) GetParser() antlr.Parser
- func (s *StatementContext) GetRuleContext() antlr.RuleContext
- func (s *StatementContext) Gosubstatement() IGosubstatementContext
- func (s *StatementContext) Gotostatement() IGotostatementContext
- func (s *StatementContext) Ifstatement() IIfstatementContext
- func (*StatementContext) IsStatementContext()
- func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *StatementContext) Tostatement() ITostatementContext
- type TostatementContext
- func (s *TostatementContext) AllRegister() []IRegisterContext
- func (s *TostatementContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TostatementContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TostatementContext) Expression() IExpressionContext
- func (s *TostatementContext) GetParser() antlr.Parser
- func (s *TostatementContext) GetRuleContext() antlr.RuleContext
- func (*TostatementContext) IsTostatementContext()
- func (s *TostatementContext) Register(i int) IRegisterContext
- func (s *TostatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewrobotwarLexer ¶
func NewrobotwarLexer(input antlr.CharStream) *robotwarLexer
func NewrobotwarParser ¶
func NewrobotwarParser(input antlr.TokenStream) *robotwarParser
Types ¶
type AccumexpressionContext ¶
type AccumexpressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAccumexpressionContext ¶
func NewAccumexpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AccumexpressionContext
func NewEmptyAccumexpressionContext ¶
func NewEmptyAccumexpressionContext() *AccumexpressionContext
func (*AccumexpressionContext) EnterRule ¶
func (s *AccumexpressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*AccumexpressionContext) ExitRule ¶
func (s *AccumexpressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*AccumexpressionContext) Expression ¶
func (s *AccumexpressionContext) Expression() IExpressionContext
func (*AccumexpressionContext) GetParser ¶
func (s *AccumexpressionContext) GetParser() antlr.Parser
func (*AccumexpressionContext) GetRuleContext ¶
func (s *AccumexpressionContext) GetRuleContext() antlr.RuleContext
func (*AccumexpressionContext) IsAccumexpressionContext ¶
func (*AccumexpressionContext) IsAccumexpressionContext()
func (*AccumexpressionContext) Statement ¶
func (s *AccumexpressionContext) Statement() IStatementContext
func (*AccumexpressionContext) ToStringTree ¶
func (s *AccumexpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type AccumstatementContext ¶
type AccumstatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAccumstatementContext ¶
func NewAccumstatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AccumstatementContext
func NewEmptyAccumstatementContext ¶
func NewEmptyAccumstatementContext() *AccumstatementContext
func (*AccumstatementContext) Accumexpression ¶
func (s *AccumstatementContext) Accumexpression() IAccumexpressionContext
func (*AccumstatementContext) EnterRule ¶
func (s *AccumstatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*AccumstatementContext) ExitRule ¶
func (s *AccumstatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*AccumstatementContext) GetParser ¶
func (s *AccumstatementContext) GetParser() antlr.Parser
func (*AccumstatementContext) GetRuleContext ¶
func (s *AccumstatementContext) GetRuleContext() antlr.RuleContext
func (*AccumstatementContext) IsAccumstatementContext ¶
func (*AccumstatementContext) IsAccumstatementContext()
func (*AccumstatementContext) ToStringTree ¶
func (s *AccumstatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ArgumentContext ¶
type ArgumentContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewArgumentContext ¶
func NewArgumentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgumentContext
func NewEmptyArgumentContext ¶
func NewEmptyArgumentContext() *ArgumentContext
func (*ArgumentContext) DATA ¶
func (s *ArgumentContext) DATA() antlr.TerminalNode
func (*ArgumentContext) EnterRule ¶
func (s *ArgumentContext) EnterRule(listener antlr.ParseTreeListener)
func (*ArgumentContext) ExitRule ¶
func (s *ArgumentContext) ExitRule(listener antlr.ParseTreeListener)
func (*ArgumentContext) GetParser ¶
func (s *ArgumentContext) GetParser() antlr.Parser
func (*ArgumentContext) GetRuleContext ¶
func (s *ArgumentContext) GetRuleContext() antlr.RuleContext
func (*ArgumentContext) IsArgumentContext ¶
func (*ArgumentContext) IsArgumentContext()
func (*ArgumentContext) Number ¶
func (s *ArgumentContext) Number() INumberContext
func (*ArgumentContext) Register ¶
func (s *ArgumentContext) Register() IRegisterContext
func (*ArgumentContext) ToStringTree ¶
func (s *ArgumentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaserobotwarListener ¶
type BaserobotwarListener struct{}
BaserobotwarListener is a complete listener for a parse tree produced by robotwarParser.
func (*BaserobotwarListener) EnterAccumexpression ¶
func (s *BaserobotwarListener) EnterAccumexpression(ctx *AccumexpressionContext)
EnterAccumexpression is called when production accumexpression is entered.
func (*BaserobotwarListener) EnterAccumstatement ¶
func (s *BaserobotwarListener) EnterAccumstatement(ctx *AccumstatementContext)
EnterAccumstatement is called when production accumstatement is entered.
func (*BaserobotwarListener) EnterArgument ¶
func (s *BaserobotwarListener) EnterArgument(ctx *ArgumentContext)
EnterArgument is called when production argument is entered.
func (*BaserobotwarListener) EnterComment ¶
func (s *BaserobotwarListener) EnterComment(ctx *CommentContext)
EnterComment is called when production comment is entered.
func (*BaserobotwarListener) EnterComparison ¶
func (s *BaserobotwarListener) EnterComparison(ctx *ComparisonContext)
EnterComparison is called when production comparison is entered.
func (*BaserobotwarListener) EnterCondition ¶
func (s *BaserobotwarListener) EnterCondition(ctx *ConditionContext)
EnterCondition is called when production condition is entered.
func (*BaserobotwarListener) EnterEndsubstatement ¶
func (s *BaserobotwarListener) EnterEndsubstatement(ctx *EndsubstatementContext)
EnterEndsubstatement is called when production endsubstatement is entered.
func (*BaserobotwarListener) EnterEveryRule ¶
func (s *BaserobotwarListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaserobotwarListener) EnterExpression ¶
func (s *BaserobotwarListener) EnterExpression(ctx *ExpressionContext)
EnterExpression is called when production expression is entered.
func (*BaserobotwarListener) EnterGosubstatement ¶
func (s *BaserobotwarListener) EnterGosubstatement(ctx *GosubstatementContext)
EnterGosubstatement is called when production gosubstatement is entered.
func (*BaserobotwarListener) EnterGotostatement ¶
func (s *BaserobotwarListener) EnterGotostatement(ctx *GotostatementContext)
EnterGotostatement is called when production gotostatement is entered.
func (*BaserobotwarListener) EnterIfstatement ¶
func (s *BaserobotwarListener) EnterIfstatement(ctx *IfstatementContext)
EnterIfstatement is called when production ifstatement is entered.
func (*BaserobotwarListener) EnterLabel ¶
func (s *BaserobotwarListener) EnterLabel(ctx *LabelContext)
EnterLabel is called when production label is entered.
func (*BaserobotwarListener) EnterLine ¶
func (s *BaserobotwarListener) EnterLine(ctx *LineContext)
EnterLine is called when production line is entered.
func (*BaserobotwarListener) EnterNumber ¶
func (s *BaserobotwarListener) EnterNumber(ctx *NumberContext)
EnterNumber is called when production number is entered.
func (*BaserobotwarListener) EnterOperation ¶
func (s *BaserobotwarListener) EnterOperation(ctx *OperationContext)
EnterOperation is called when production operation is entered.
func (*BaserobotwarListener) EnterProgram ¶
func (s *BaserobotwarListener) EnterProgram(ctx *ProgramContext)
EnterProgram is called when production program is entered.
func (*BaserobotwarListener) EnterRegister ¶
func (s *BaserobotwarListener) EnterRegister(ctx *RegisterContext)
EnterRegister is called when production register is entered.
func (*BaserobotwarListener) EnterStatement ¶
func (s *BaserobotwarListener) EnterStatement(ctx *StatementContext)
EnterStatement is called when production statement is entered.
func (*BaserobotwarListener) EnterTostatement ¶
func (s *BaserobotwarListener) EnterTostatement(ctx *TostatementContext)
EnterTostatement is called when production tostatement is entered.
func (*BaserobotwarListener) ExitAccumexpression ¶
func (s *BaserobotwarListener) ExitAccumexpression(ctx *AccumexpressionContext)
ExitAccumexpression is called when production accumexpression is exited.
func (*BaserobotwarListener) ExitAccumstatement ¶
func (s *BaserobotwarListener) ExitAccumstatement(ctx *AccumstatementContext)
ExitAccumstatement is called when production accumstatement is exited.
func (*BaserobotwarListener) ExitArgument ¶
func (s *BaserobotwarListener) ExitArgument(ctx *ArgumentContext)
ExitArgument is called when production argument is exited.
func (*BaserobotwarListener) ExitComment ¶
func (s *BaserobotwarListener) ExitComment(ctx *CommentContext)
ExitComment is called when production comment is exited.
func (*BaserobotwarListener) ExitComparison ¶
func (s *BaserobotwarListener) ExitComparison(ctx *ComparisonContext)
ExitComparison is called when production comparison is exited.
func (*BaserobotwarListener) ExitCondition ¶
func (s *BaserobotwarListener) ExitCondition(ctx *ConditionContext)
ExitCondition is called when production condition is exited.
func (*BaserobotwarListener) ExitEndsubstatement ¶
func (s *BaserobotwarListener) ExitEndsubstatement(ctx *EndsubstatementContext)
ExitEndsubstatement is called when production endsubstatement is exited.
func (*BaserobotwarListener) ExitEveryRule ¶
func (s *BaserobotwarListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaserobotwarListener) ExitExpression ¶
func (s *BaserobotwarListener) ExitExpression(ctx *ExpressionContext)
ExitExpression is called when production expression is exited.
func (*BaserobotwarListener) ExitGosubstatement ¶
func (s *BaserobotwarListener) ExitGosubstatement(ctx *GosubstatementContext)
ExitGosubstatement is called when production gosubstatement is exited.
func (*BaserobotwarListener) ExitGotostatement ¶
func (s *BaserobotwarListener) ExitGotostatement(ctx *GotostatementContext)
ExitGotostatement is called when production gotostatement is exited.
func (*BaserobotwarListener) ExitIfstatement ¶
func (s *BaserobotwarListener) ExitIfstatement(ctx *IfstatementContext)
ExitIfstatement is called when production ifstatement is exited.
func (*BaserobotwarListener) ExitLabel ¶
func (s *BaserobotwarListener) ExitLabel(ctx *LabelContext)
ExitLabel is called when production label is exited.
func (*BaserobotwarListener) ExitLine ¶
func (s *BaserobotwarListener) ExitLine(ctx *LineContext)
ExitLine is called when production line is exited.
func (*BaserobotwarListener) ExitNumber ¶
func (s *BaserobotwarListener) ExitNumber(ctx *NumberContext)
ExitNumber is called when production number is exited.
func (*BaserobotwarListener) ExitOperation ¶
func (s *BaserobotwarListener) ExitOperation(ctx *OperationContext)
ExitOperation is called when production operation is exited.
func (*BaserobotwarListener) ExitProgram ¶
func (s *BaserobotwarListener) ExitProgram(ctx *ProgramContext)
ExitProgram is called when production program is exited.
func (*BaserobotwarListener) ExitRegister ¶
func (s *BaserobotwarListener) ExitRegister(ctx *RegisterContext)
ExitRegister is called when production register is exited.
func (*BaserobotwarListener) ExitStatement ¶
func (s *BaserobotwarListener) ExitStatement(ctx *StatementContext)
ExitStatement is called when production statement is exited.
func (*BaserobotwarListener) ExitTostatement ¶
func (s *BaserobotwarListener) ExitTostatement(ctx *TostatementContext)
ExitTostatement is called when production tostatement is exited.
func (*BaserobotwarListener) VisitErrorNode ¶
func (s *BaserobotwarListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaserobotwarListener) VisitTerminal ¶
func (s *BaserobotwarListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type CommentContext ¶
type CommentContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCommentContext ¶
func NewCommentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CommentContext
func NewEmptyCommentContext ¶
func NewEmptyCommentContext() *CommentContext
func (*CommentContext) COMMENT ¶
func (s *CommentContext) COMMENT() antlr.TerminalNode
func (*CommentContext) EnterRule ¶
func (s *CommentContext) EnterRule(listener antlr.ParseTreeListener)
func (*CommentContext) ExitRule ¶
func (s *CommentContext) ExitRule(listener antlr.ParseTreeListener)
func (*CommentContext) GetParser ¶
func (s *CommentContext) GetParser() antlr.Parser
func (*CommentContext) GetRuleContext ¶
func (s *CommentContext) GetRuleContext() antlr.RuleContext
func (*CommentContext) IsCommentContext ¶
func (*CommentContext) IsCommentContext()
func (*CommentContext) ToStringTree ¶
func (s *CommentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ComparisonContext ¶
type ComparisonContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewComparisonContext ¶
func NewComparisonContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ComparisonContext
func NewEmptyComparisonContext ¶
func NewEmptyComparisonContext() *ComparisonContext
func (*ComparisonContext) EnterRule ¶
func (s *ComparisonContext) EnterRule(listener antlr.ParseTreeListener)
func (*ComparisonContext) ExitRule ¶
func (s *ComparisonContext) ExitRule(listener antlr.ParseTreeListener)
func (*ComparisonContext) GetParser ¶
func (s *ComparisonContext) GetParser() antlr.Parser
func (*ComparisonContext) GetRuleContext ¶
func (s *ComparisonContext) GetRuleContext() antlr.RuleContext
func (*ComparisonContext) IsComparisonContext ¶
func (*ComparisonContext) IsComparisonContext()
func (*ComparisonContext) ToStringTree ¶
func (s *ComparisonContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ConditionContext ¶
type ConditionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewConditionContext ¶
func NewConditionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConditionContext
func NewEmptyConditionContext ¶
func NewEmptyConditionContext() *ConditionContext
func (*ConditionContext) AllExpression ¶
func (s *ConditionContext) AllExpression() []IExpressionContext
func (*ConditionContext) Comparison ¶
func (s *ConditionContext) Comparison() IComparisonContext
func (*ConditionContext) EnterRule ¶
func (s *ConditionContext) EnterRule(listener antlr.ParseTreeListener)
func (*ConditionContext) ExitRule ¶
func (s *ConditionContext) ExitRule(listener antlr.ParseTreeListener)
func (*ConditionContext) Expression ¶
func (s *ConditionContext) Expression(i int) IExpressionContext
func (*ConditionContext) GetParser ¶
func (s *ConditionContext) GetParser() antlr.Parser
func (*ConditionContext) GetRuleContext ¶
func (s *ConditionContext) GetRuleContext() antlr.RuleContext
func (*ConditionContext) IsConditionContext ¶
func (*ConditionContext) IsConditionContext()
func (*ConditionContext) ToStringTree ¶
func (s *ConditionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type EndsubstatementContext ¶
type EndsubstatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEndsubstatementContext ¶
func NewEmptyEndsubstatementContext() *EndsubstatementContext
func NewEndsubstatementContext ¶
func NewEndsubstatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EndsubstatementContext
func (*EndsubstatementContext) EnterRule ¶
func (s *EndsubstatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*EndsubstatementContext) ExitRule ¶
func (s *EndsubstatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*EndsubstatementContext) GetParser ¶
func (s *EndsubstatementContext) GetParser() antlr.Parser
func (*EndsubstatementContext) GetRuleContext ¶
func (s *EndsubstatementContext) GetRuleContext() antlr.RuleContext
func (*EndsubstatementContext) IsEndsubstatementContext ¶
func (*EndsubstatementContext) IsEndsubstatementContext()
func (*EndsubstatementContext) ToStringTree ¶
func (s *EndsubstatementContext) 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) AllArgument ¶
func (s *ExpressionContext) AllArgument() []IArgumentContext
func (*ExpressionContext) AllOperation ¶
func (s *ExpressionContext) AllOperation() []IOperationContext
func (*ExpressionContext) Argument ¶
func (s *ExpressionContext) Argument(i int) IArgumentContext
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) Operation ¶
func (s *ExpressionContext) Operation(i int) IOperationContext
func (*ExpressionContext) ToStringTree ¶
func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type GosubstatementContext ¶
type GosubstatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGosubstatementContext ¶
func NewEmptyGosubstatementContext() *GosubstatementContext
func NewGosubstatementContext ¶
func NewGosubstatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GosubstatementContext
func (*GosubstatementContext) EnterRule ¶
func (s *GosubstatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*GosubstatementContext) ExitRule ¶
func (s *GosubstatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*GosubstatementContext) GetParser ¶
func (s *GosubstatementContext) GetParser() antlr.Parser
func (*GosubstatementContext) GetRuleContext ¶
func (s *GosubstatementContext) GetRuleContext() antlr.RuleContext
func (*GosubstatementContext) IsGosubstatementContext ¶
func (*GosubstatementContext) IsGosubstatementContext()
func (*GosubstatementContext) Label ¶
func (s *GosubstatementContext) Label() ILabelContext
func (*GosubstatementContext) ToStringTree ¶
func (s *GosubstatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type GotostatementContext ¶
type GotostatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyGotostatementContext ¶
func NewEmptyGotostatementContext() *GotostatementContext
func NewGotostatementContext ¶
func NewGotostatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GotostatementContext
func (*GotostatementContext) EnterRule ¶
func (s *GotostatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*GotostatementContext) ExitRule ¶
func (s *GotostatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*GotostatementContext) GetParser ¶
func (s *GotostatementContext) GetParser() antlr.Parser
func (*GotostatementContext) GetRuleContext ¶
func (s *GotostatementContext) GetRuleContext() antlr.RuleContext
func (*GotostatementContext) IsGotostatementContext ¶
func (*GotostatementContext) IsGotostatementContext()
func (*GotostatementContext) Label ¶
func (s *GotostatementContext) Label() ILabelContext
func (*GotostatementContext) ToStringTree ¶
func (s *GotostatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IAccumexpressionContext ¶
type IAccumexpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAccumexpressionContext differentiates from other interfaces. IsAccumexpressionContext() }
IAccumexpressionContext is an interface to support dynamic dispatch.
type IAccumstatementContext ¶
type IAccumstatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAccumstatementContext differentiates from other interfaces. IsAccumstatementContext() }
IAccumstatementContext is an interface to support dynamic dispatch.
type IArgumentContext ¶
type IArgumentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsArgumentContext differentiates from other interfaces. IsArgumentContext() }
IArgumentContext is an interface to support dynamic dispatch.
type ICommentContext ¶
type ICommentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCommentContext differentiates from other interfaces. IsCommentContext() }
ICommentContext is an interface to support dynamic dispatch.
type IComparisonContext ¶
type IComparisonContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsComparisonContext differentiates from other interfaces. IsComparisonContext() }
IComparisonContext is an interface to support dynamic dispatch.
type IConditionContext ¶
type IConditionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsConditionContext differentiates from other interfaces. IsConditionContext() }
IConditionContext is an interface to support dynamic dispatch.
type IEndsubstatementContext ¶
type IEndsubstatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsEndsubstatementContext differentiates from other interfaces. IsEndsubstatementContext() }
IEndsubstatementContext is an interface to support dynamic dispatch.
type IExpressionContext ¶
type IExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsExpressionContext differentiates from other interfaces. IsExpressionContext() }
IExpressionContext is an interface to support dynamic dispatch.
type IGosubstatementContext ¶
type IGosubstatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsGosubstatementContext differentiates from other interfaces. IsGosubstatementContext() }
IGosubstatementContext is an interface to support dynamic dispatch.
type IGotostatementContext ¶
type IGotostatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsGotostatementContext differentiates from other interfaces. IsGotostatementContext() }
IGotostatementContext is an interface to support dynamic dispatch.
type IIfstatementContext ¶
type IIfstatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIfstatementContext differentiates from other interfaces. IsIfstatementContext() }
IIfstatementContext is an interface to support dynamic dispatch.
type ILabelContext ¶
type ILabelContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLabelContext differentiates from other interfaces. IsLabelContext() }
ILabelContext is an interface to support dynamic dispatch.
type ILineContext ¶
type ILineContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLineContext differentiates from other interfaces. IsLineContext() }
ILineContext is an interface to support dynamic dispatch.
type INumberContext ¶
type INumberContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsNumberContext differentiates from other interfaces. IsNumberContext() }
INumberContext is an interface to support dynamic dispatch.
type IOperationContext ¶
type IOperationContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsOperationContext differentiates from other interfaces. IsOperationContext() }
IOperationContext is an interface to support dynamic dispatch.
type IProgramContext ¶
type IProgramContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProgramContext differentiates from other interfaces. IsProgramContext() }
IProgramContext is an interface to support dynamic dispatch.
type IRegisterContext ¶
type IRegisterContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRegisterContext differentiates from other interfaces. IsRegisterContext() }
IRegisterContext is an interface to support dynamic dispatch.
type IStatementContext ¶
type IStatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStatementContext differentiates from other interfaces. IsStatementContext() }
IStatementContext is an interface to support dynamic dispatch.
type ITostatementContext ¶
type ITostatementContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTostatementContext differentiates from other interfaces. IsTostatementContext() }
ITostatementContext is an interface to support dynamic dispatch.
type IfstatementContext ¶
type IfstatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIfstatementContext ¶
func NewEmptyIfstatementContext() *IfstatementContext
func NewIfstatementContext ¶
func NewIfstatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfstatementContext
func (*IfstatementContext) COMMA ¶
func (s *IfstatementContext) COMMA() antlr.TerminalNode
func (*IfstatementContext) Condition ¶
func (s *IfstatementContext) Condition() IConditionContext
func (*IfstatementContext) DOT ¶
func (s *IfstatementContext) DOT() antlr.TerminalNode
func (*IfstatementContext) EOL ¶
func (s *IfstatementContext) EOL() antlr.TerminalNode
func (*IfstatementContext) EnterRule ¶
func (s *IfstatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*IfstatementContext) ExitRule ¶
func (s *IfstatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*IfstatementContext) GetParser ¶
func (s *IfstatementContext) GetParser() antlr.Parser
func (*IfstatementContext) GetRuleContext ¶
func (s *IfstatementContext) GetRuleContext() antlr.RuleContext
func (*IfstatementContext) IsIfstatementContext ¶
func (*IfstatementContext) IsIfstatementContext()
func (*IfstatementContext) Statement ¶
func (s *IfstatementContext) Statement() IStatementContext
func (*IfstatementContext) ToStringTree ¶
func (s *IfstatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LabelContext ¶
type LabelContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLabelContext ¶
func NewEmptyLabelContext() *LabelContext
func NewLabelContext ¶
func NewLabelContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LabelContext
func (*LabelContext) EnterRule ¶
func (s *LabelContext) EnterRule(listener antlr.ParseTreeListener)
func (*LabelContext) ExitRule ¶
func (s *LabelContext) ExitRule(listener antlr.ParseTreeListener)
func (*LabelContext) GetParser ¶
func (s *LabelContext) GetParser() antlr.Parser
func (*LabelContext) GetRuleContext ¶
func (s *LabelContext) GetRuleContext() antlr.RuleContext
func (*LabelContext) ID ¶
func (s *LabelContext) ID() antlr.TerminalNode
func (*LabelContext) IsLabelContext ¶
func (*LabelContext) IsLabelContext()
func (*LabelContext) ToStringTree ¶
func (s *LabelContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LineContext ¶
type LineContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLineContext ¶
func NewEmptyLineContext() *LineContext
func NewLineContext ¶
func NewLineContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LineContext
func (*LineContext) Comment ¶
func (s *LineContext) Comment() ICommentContext
func (*LineContext) EOL ¶
func (s *LineContext) EOL() antlr.TerminalNode
func (*LineContext) EnterRule ¶
func (s *LineContext) EnterRule(listener antlr.ParseTreeListener)
func (*LineContext) ExitRule ¶
func (s *LineContext) ExitRule(listener antlr.ParseTreeListener)
func (*LineContext) GetParser ¶
func (s *LineContext) GetParser() antlr.Parser
func (*LineContext) GetRuleContext ¶
func (s *LineContext) GetRuleContext() antlr.RuleContext
func (*LineContext) IsLineContext ¶
func (*LineContext) IsLineContext()
func (*LineContext) Label ¶
func (s *LineContext) Label() ILabelContext
func (*LineContext) Statement ¶
func (s *LineContext) Statement() IStatementContext
func (*LineContext) ToStringTree ¶
func (s *LineContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type NumberContext ¶
type NumberContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNumberContext ¶
func NewEmptyNumberContext() *NumberContext
func NewNumberContext ¶
func NewNumberContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NumberContext
func (*NumberContext) EnterRule ¶
func (s *NumberContext) EnterRule(listener antlr.ParseTreeListener)
func (*NumberContext) ExitRule ¶
func (s *NumberContext) ExitRule(listener antlr.ParseTreeListener)
func (*NumberContext) GetParser ¶
func (s *NumberContext) GetParser() antlr.Parser
func (*NumberContext) GetRuleContext ¶
func (s *NumberContext) GetRuleContext() antlr.RuleContext
func (*NumberContext) IsNumberContext ¶
func (*NumberContext) IsNumberContext()
func (*NumberContext) NUMBER ¶
func (s *NumberContext) NUMBER() antlr.TerminalNode
func (*NumberContext) ToStringTree ¶
func (s *NumberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type OperationContext ¶
type OperationContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyOperationContext ¶
func NewEmptyOperationContext() *OperationContext
func NewOperationContext ¶
func NewOperationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OperationContext
func (*OperationContext) EnterRule ¶
func (s *OperationContext) EnterRule(listener antlr.ParseTreeListener)
func (*OperationContext) ExitRule ¶
func (s *OperationContext) ExitRule(listener antlr.ParseTreeListener)
func (*OperationContext) GetParser ¶
func (s *OperationContext) GetParser() antlr.Parser
func (*OperationContext) GetRuleContext ¶
func (s *OperationContext) GetRuleContext() antlr.RuleContext
func (*OperationContext) IsOperationContext ¶
func (*OperationContext) IsOperationContext()
func (*OperationContext) ToStringTree ¶
func (s *OperationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ProgramContext ¶
type ProgramContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProgramContext ¶
func NewEmptyProgramContext() *ProgramContext
func NewProgramContext ¶
func NewProgramContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProgramContext
func (*ProgramContext) AllLine ¶
func (s *ProgramContext) AllLine() []ILineContext
func (*ProgramContext) EnterRule ¶
func (s *ProgramContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProgramContext) ExitRule ¶
func (s *ProgramContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProgramContext) GetParser ¶
func (s *ProgramContext) GetParser() antlr.Parser
func (*ProgramContext) GetRuleContext ¶
func (s *ProgramContext) GetRuleContext() antlr.RuleContext
func (*ProgramContext) IsProgramContext ¶
func (*ProgramContext) IsProgramContext()
func (*ProgramContext) Line ¶
func (s *ProgramContext) Line(i int) ILineContext
func (*ProgramContext) ToStringTree ¶
func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RegisterContext ¶
type RegisterContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRegisterContext ¶
func NewEmptyRegisterContext() *RegisterContext
func NewRegisterContext ¶
func NewRegisterContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RegisterContext
func (*RegisterContext) A ¶
func (s *RegisterContext) A() antlr.TerminalNode
func (*RegisterContext) AIM ¶
func (s *RegisterContext) AIM() antlr.TerminalNode
func (*RegisterContext) B ¶
func (s *RegisterContext) B() antlr.TerminalNode
func (*RegisterContext) C ¶
func (s *RegisterContext) C() antlr.TerminalNode
func (*RegisterContext) D ¶
func (s *RegisterContext) D() antlr.TerminalNode
func (*RegisterContext) DAMAGE ¶
func (s *RegisterContext) DAMAGE() antlr.TerminalNode
func (*RegisterContext) DATA ¶
func (s *RegisterContext) DATA() antlr.TerminalNode
func (*RegisterContext) E ¶
func (s *RegisterContext) E() antlr.TerminalNode
func (*RegisterContext) EnterRule ¶
func (s *RegisterContext) EnterRule(listener antlr.ParseTreeListener)
func (*RegisterContext) ExitRule ¶
func (s *RegisterContext) ExitRule(listener antlr.ParseTreeListener)
func (*RegisterContext) F ¶
func (s *RegisterContext) F() antlr.TerminalNode
func (*RegisterContext) G ¶
func (s *RegisterContext) G() antlr.TerminalNode
func (*RegisterContext) GetParser ¶
func (s *RegisterContext) GetParser() antlr.Parser
func (*RegisterContext) GetRuleContext ¶
func (s *RegisterContext) GetRuleContext() antlr.RuleContext
func (*RegisterContext) H ¶
func (s *RegisterContext) H() antlr.TerminalNode
func (*RegisterContext) I ¶
func (s *RegisterContext) I() antlr.TerminalNode
func (*RegisterContext) INDEX ¶
func (s *RegisterContext) INDEX() antlr.TerminalNode
func (*RegisterContext) IsRegisterContext ¶
func (*RegisterContext) IsRegisterContext()
func (*RegisterContext) J ¶
func (s *RegisterContext) J() antlr.TerminalNode
func (*RegisterContext) K ¶
func (s *RegisterContext) K() antlr.TerminalNode
func (*RegisterContext) L ¶
func (s *RegisterContext) L() antlr.TerminalNode
func (*RegisterContext) M ¶
func (s *RegisterContext) M() antlr.TerminalNode
func (*RegisterContext) N ¶
func (s *RegisterContext) N() antlr.TerminalNode
func (*RegisterContext) O ¶
func (s *RegisterContext) O() antlr.TerminalNode
func (*RegisterContext) P ¶
func (s *RegisterContext) P() antlr.TerminalNode
func (*RegisterContext) Q ¶
func (s *RegisterContext) Q() antlr.TerminalNode
func (*RegisterContext) R ¶
func (s *RegisterContext) R() antlr.TerminalNode
func (*RegisterContext) RADAR ¶
func (s *RegisterContext) RADAR() antlr.TerminalNode
func (*RegisterContext) RANDOM ¶
func (s *RegisterContext) RANDOM() antlr.TerminalNode
func (*RegisterContext) S ¶
func (s *RegisterContext) S() antlr.TerminalNode
func (*RegisterContext) SHOT ¶
func (s *RegisterContext) SHOT() antlr.TerminalNode
func (*RegisterContext) SPEEDX ¶
func (s *RegisterContext) SPEEDX() antlr.TerminalNode
func (*RegisterContext) SPEEDY ¶
func (s *RegisterContext) SPEEDY() antlr.TerminalNode
func (*RegisterContext) T ¶
func (s *RegisterContext) T() antlr.TerminalNode
func (*RegisterContext) ToStringTree ¶
func (s *RegisterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*RegisterContext) U ¶
func (s *RegisterContext) U() antlr.TerminalNode
func (*RegisterContext) V ¶
func (s *RegisterContext) V() antlr.TerminalNode
func (*RegisterContext) W ¶
func (s *RegisterContext) W() antlr.TerminalNode
func (*RegisterContext) X ¶
func (s *RegisterContext) X() antlr.TerminalNode
func (*RegisterContext) Y ¶
func (s *RegisterContext) Y() antlr.TerminalNode
func (*RegisterContext) Z ¶
func (s *RegisterContext) Z() antlr.TerminalNode
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) Accumstatement ¶
func (s *StatementContext) Accumstatement() IAccumstatementContext
func (*StatementContext) Endsubstatement ¶
func (s *StatementContext) Endsubstatement() IEndsubstatementContext
func (*StatementContext) EnterRule ¶
func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*StatementContext) ExitRule ¶
func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*StatementContext) GetParser ¶
func (s *StatementContext) GetParser() antlr.Parser
func (*StatementContext) GetRuleContext ¶
func (s *StatementContext) GetRuleContext() antlr.RuleContext
func (*StatementContext) Gosubstatement ¶
func (s *StatementContext) Gosubstatement() IGosubstatementContext
func (*StatementContext) Gotostatement ¶
func (s *StatementContext) Gotostatement() IGotostatementContext
func (*StatementContext) Ifstatement ¶
func (s *StatementContext) Ifstatement() IIfstatementContext
func (*StatementContext) IsStatementContext ¶
func (*StatementContext) IsStatementContext()
func (*StatementContext) ToStringTree ¶
func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*StatementContext) Tostatement ¶
func (s *StatementContext) Tostatement() ITostatementContext
type TostatementContext ¶
type TostatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTostatementContext ¶
func NewEmptyTostatementContext() *TostatementContext
func NewTostatementContext ¶
func NewTostatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TostatementContext
func (*TostatementContext) AllRegister ¶
func (s *TostatementContext) AllRegister() []IRegisterContext
func (*TostatementContext) EnterRule ¶
func (s *TostatementContext) EnterRule(listener antlr.ParseTreeListener)
func (*TostatementContext) ExitRule ¶
func (s *TostatementContext) ExitRule(listener antlr.ParseTreeListener)
func (*TostatementContext) Expression ¶
func (s *TostatementContext) Expression() IExpressionContext
func (*TostatementContext) GetParser ¶
func (s *TostatementContext) GetParser() antlr.Parser
func (*TostatementContext) GetRuleContext ¶
func (s *TostatementContext) GetRuleContext() antlr.RuleContext
func (*TostatementContext) IsTostatementContext ¶
func (*TostatementContext) IsTostatementContext()
func (*TostatementContext) Register ¶
func (s *TostatementContext) Register(i int) IRegisterContext
func (*TostatementContext) ToStringTree ¶
func (s *TostatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string