Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/mumath" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" ) type exampleListener struct { *mumath.BasemumathListener } 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 := mumath.NewmumathLexer(is) stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) // Create the Parser p := mumath.NewmumathParser(stream) p.BuildParseTrees = true p.AddErrorListener(antlr.NewDiagnosticErrorListener(true)) // Finally walk the tree tree := p.Program() antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree) }
Output:
Index ¶
- func NewmumathLexer(input antlr.CharStream) *mumathLexer
- func NewmumathParser(input antlr.TokenStream) *mumathParser
- type ActualParameterContext
- func (s *ActualParameterContext) Assignment() IAssignmentContext
- func (s *ActualParameterContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ActualParameterContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ActualParameterContext) Expression() IExpressionContext
- func (s *ActualParameterContext) GetParser() antlr.Parser
- func (s *ActualParameterContext) GetRuleContext() antlr.RuleContext
- func (*ActualParameterContext) IsActualParameterContext()
- func (s *ActualParameterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AddingOperatorContext
- func (s *AddingOperatorContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AddingOperatorContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AddingOperatorContext) GetParser() antlr.Parser
- func (s *AddingOperatorContext) GetRuleContext() antlr.RuleContext
- func (*AddingOperatorContext) IsAddingOperatorContext()
- func (s *AddingOperatorContext) MINUS() antlr.TerminalNode
- func (s *AddingOperatorContext) OR() antlr.TerminalNode
- func (s *AddingOperatorContext) PLUS() antlr.TerminalNode
- func (s *AddingOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AssignmentContext
- func (s *AssignmentContext) AllCOLON() []antlr.TerminalNode
- func (s *AssignmentContext) AllID() []antlr.TerminalNode
- func (s *AssignmentContext) COLON(i int) antlr.TerminalNode
- func (s *AssignmentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AssignmentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AssignmentContext) Expression() IExpressionContext
- func (s *AssignmentContext) GetParser() antlr.Parser
- func (s *AssignmentContext) GetRuleContext() antlr.RuleContext
- func (s *AssignmentContext) ID(i int) antlr.TerminalNode
- func (*AssignmentContext) IsAssignmentContext()
- func (s *AssignmentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BasemumathListener
- func (s *BasemumathListener) EnterActualParameter(ctx *ActualParameterContext)
- func (s *BasemumathListener) EnterAddingOperator(ctx *AddingOperatorContext)
- func (s *BasemumathListener) EnterAssignment(ctx *AssignmentContext)
- func (s *BasemumathListener) EnterBlock(ctx *BlockContext)
- func (s *BasemumathListener) EnterConstant(ctx *ConstantContext)
- func (s *BasemumathListener) EnterEqual(ctx *EqualContext)
- func (s *BasemumathListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasemumathListener) EnterExpression(ctx *ExpressionContext)
- func (s *BasemumathListener) EnterFactor(ctx *FactorContext)
- func (s *BasemumathListener) EnterFunctionDefinition(ctx *FunctionDefinitionContext)
- func (s *BasemumathListener) EnterFunctionDesignator(ctx *FunctionDesignatorContext)
- func (s *BasemumathListener) EnterList(ctx *ListContext)
- func (s *BasemumathListener) EnterLoop(ctx *LoopContext)
- func (s *BasemumathListener) EnterMultiplyingOperator(ctx *MultiplyingOperatorContext)
- func (s *BasemumathListener) EnterProgram(ctx *ProgramContext)
- func (s *BasemumathListener) EnterRelationalOperator(ctx *RelationalOperatorContext)
- func (s *BasemumathListener) EnterSimpleExpression(ctx *SimpleExpressionContext)
- func (s *BasemumathListener) EnterStatments(ctx *StatmentsContext)
- func (s *BasemumathListener) EnterTerm(ctx *TermContext)
- func (s *BasemumathListener) EnterWhen(ctx *WhenContext)
- func (s *BasemumathListener) ExitActualParameter(ctx *ActualParameterContext)
- func (s *BasemumathListener) ExitAddingOperator(ctx *AddingOperatorContext)
- func (s *BasemumathListener) ExitAssignment(ctx *AssignmentContext)
- func (s *BasemumathListener) ExitBlock(ctx *BlockContext)
- func (s *BasemumathListener) ExitConstant(ctx *ConstantContext)
- func (s *BasemumathListener) ExitEqual(ctx *EqualContext)
- func (s *BasemumathListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BasemumathListener) ExitExpression(ctx *ExpressionContext)
- func (s *BasemumathListener) ExitFactor(ctx *FactorContext)
- func (s *BasemumathListener) ExitFunctionDefinition(ctx *FunctionDefinitionContext)
- func (s *BasemumathListener) ExitFunctionDesignator(ctx *FunctionDesignatorContext)
- func (s *BasemumathListener) ExitList(ctx *ListContext)
- func (s *BasemumathListener) ExitLoop(ctx *LoopContext)
- func (s *BasemumathListener) ExitMultiplyingOperator(ctx *MultiplyingOperatorContext)
- func (s *BasemumathListener) ExitProgram(ctx *ProgramContext)
- func (s *BasemumathListener) ExitRelationalOperator(ctx *RelationalOperatorContext)
- func (s *BasemumathListener) ExitSimpleExpression(ctx *SimpleExpressionContext)
- func (s *BasemumathListener) ExitStatments(ctx *StatmentsContext)
- func (s *BasemumathListener) ExitTerm(ctx *TermContext)
- func (s *BasemumathListener) ExitWhen(ctx *WhenContext)
- func (s *BasemumathListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BasemumathListener) VisitTerminal(node antlr.TerminalNode)
- type BlockContext
- func (s *BlockContext) BLOCK() antlr.TerminalNode
- func (s *BlockContext) COMMA() antlr.TerminalNode
- func (s *BlockContext) ENDBLOCK() antlr.TerminalNode
- func (s *BlockContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BlockContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BlockContext) GetParser() antlr.Parser
- func (s *BlockContext) GetRuleContext() antlr.RuleContext
- func (*BlockContext) IsBlockContext()
- func (s *BlockContext) Statments() IStatmentsContext
- func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ConstantContext
- func (s *ConstantContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ConstantContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ConstantContext) GetParser() antlr.Parser
- func (s *ConstantContext) GetRuleContext() antlr.RuleContext
- func (s *ConstantContext) ID() antlr.TerminalNode
- func (*ConstantContext) IsConstantContext()
- func (s *ConstantContext) NUMBER() antlr.TerminalNode
- func (s *ConstantContext) QUOTE() antlr.TerminalNode
- func (s *ConstantContext) STRING() antlr.TerminalNode
- func (s *ConstantContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type EqualContext
- func (s *EqualContext) EQC() antlr.TerminalNode
- func (s *EqualContext) EQF() antlr.TerminalNode
- func (s *EqualContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *EqualContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *EqualContext) GetParser() antlr.Parser
- func (s *EqualContext) GetRuleContext() antlr.RuleContext
- func (*EqualContext) IsEqualContext()
- func (s *EqualContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExpressionContext
- func (s *ExpressionContext) AllRelationalOperator() []IRelationalOperatorContext
- func (s *ExpressionContext) AllSimpleExpression() []ISimpleExpressionContext
- 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) RelationalOperator(i int) IRelationalOperatorContext
- func (s *ExpressionContext) SimpleExpression(i int) ISimpleExpressionContext
- func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FactorContext
- func (s *FactorContext) Constant() IConstantContext
- func (s *FactorContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FactorContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FactorContext) Expression() IExpressionContext
- func (s *FactorContext) Factor() IFactorContext
- func (s *FactorContext) FunctionDesignator() IFunctionDesignatorContext
- func (s *FactorContext) GetParser() antlr.Parser
- func (s *FactorContext) GetRuleContext() antlr.RuleContext
- func (s *FactorContext) ID() antlr.TerminalNode
- func (*FactorContext) IsFactorContext()
- func (s *FactorContext) LPAREN() antlr.TerminalNode
- func (s *FactorContext) NOT() antlr.TerminalNode
- func (s *FactorContext) RPAREN() antlr.TerminalNode
- func (s *FactorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FunctionDefinitionContext
- func (s *FunctionDefinitionContext) AllCOMMA() []antlr.TerminalNode
- func (s *FunctionDefinitionContext) COMMA(i int) antlr.TerminalNode
- func (s *FunctionDefinitionContext) ENDFUN() antlr.TerminalNode
- func (s *FunctionDefinitionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FunctionDefinitionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FunctionDefinitionContext) FUNCTION() antlr.TerminalNode
- func (s *FunctionDefinitionContext) GetParser() antlr.Parser
- func (s *FunctionDefinitionContext) GetRuleContext() antlr.RuleContext
- func (s *FunctionDefinitionContext) ID() antlr.TerminalNode
- func (*FunctionDefinitionContext) IsFunctionDefinitionContext()
- func (s *FunctionDefinitionContext) List() IListContext
- func (s *FunctionDefinitionContext) Statments() IStatmentsContext
- func (s *FunctionDefinitionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FunctionDesignatorContext
- func (s *FunctionDesignatorContext) ActualParameter(i int) IActualParameterContext
- func (s *FunctionDesignatorContext) AllActualParameter() []IActualParameterContext
- func (s *FunctionDesignatorContext) AllCOMMA() []antlr.TerminalNode
- func (s *FunctionDesignatorContext) COMMA(i int) antlr.TerminalNode
- func (s *FunctionDesignatorContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FunctionDesignatorContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FunctionDesignatorContext) GetParser() antlr.Parser
- func (s *FunctionDesignatorContext) GetRuleContext() antlr.RuleContext
- func (s *FunctionDesignatorContext) ID() antlr.TerminalNode
- func (*FunctionDesignatorContext) IsFunctionDesignatorContext()
- func (s *FunctionDesignatorContext) LPAREN() antlr.TerminalNode
- func (s *FunctionDesignatorContext) RPAREN() antlr.TerminalNode
- func (s *FunctionDesignatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IActualParameterContext
- type IAddingOperatorContext
- type IAssignmentContext
- type IBlockContext
- type IConstantContext
- type IEqualContext
- type IExpressionContext
- type IFactorContext
- type IFunctionDefinitionContext
- type IFunctionDesignatorContext
- type IListContext
- type ILoopContext
- type IMultiplyingOperatorContext
- type IProgramContext
- type IRelationalOperatorContext
- type ISimpleExpressionContext
- type IStatmentsContext
- type ITermContext
- type IWhenContext
- type ListContext
- func (s *ListContext) AllCOMMA() []antlr.TerminalNode
- func (s *ListContext) AllID() []antlr.TerminalNode
- func (s *ListContext) COMMA(i int) antlr.TerminalNode
- func (s *ListContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ListContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ListContext) GetParser() antlr.Parser
- func (s *ListContext) GetRuleContext() antlr.RuleContext
- func (s *ListContext) ID(i int) antlr.TerminalNode
- func (*ListContext) IsListContext()
- func (s *ListContext) LPAREN() antlr.TerminalNode
- func (s *ListContext) RPAREN() antlr.TerminalNode
- func (s *ListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LoopContext
- func (s *LoopContext) COMMA() antlr.TerminalNode
- func (s *LoopContext) ENDLOOP() antlr.TerminalNode
- func (s *LoopContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *LoopContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *LoopContext) GetParser() antlr.Parser
- func (s *LoopContext) GetRuleContext() antlr.RuleContext
- func (*LoopContext) IsLoopContext()
- func (s *LoopContext) LOOP() antlr.TerminalNode
- func (s *LoopContext) Statments() IStatmentsContext
- func (s *LoopContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MultiplyingOperatorContext
- func (s *MultiplyingOperatorContext) AND() antlr.TerminalNode
- func (s *MultiplyingOperatorContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MultiplyingOperatorContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MultiplyingOperatorContext) GetParser() antlr.Parser
- func (s *MultiplyingOperatorContext) GetRuleContext() antlr.RuleContext
- func (*MultiplyingOperatorContext) IsMultiplyingOperatorContext()
- func (s *MultiplyingOperatorContext) MOD() antlr.TerminalNode
- func (s *MultiplyingOperatorContext) POWER() antlr.TerminalNode
- func (s *MultiplyingOperatorContext) SLASH() antlr.TerminalNode
- func (s *MultiplyingOperatorContext) STAR() antlr.TerminalNode
- func (s *MultiplyingOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ProgramContext
- func (s *ProgramContext) AllAssignment() []IAssignmentContext
- func (s *ProgramContext) AllDOLLAR() []antlr.TerminalNode
- func (s *ProgramContext) AllFunctionDefinition() []IFunctionDefinitionContext
- func (s *ProgramContext) AllFunctionDesignator() []IFunctionDesignatorContext
- func (s *ProgramContext) AllSEMI() []antlr.TerminalNode
- func (s *ProgramContext) Assignment(i int) IAssignmentContext
- func (s *ProgramContext) DOLLAR(i int) antlr.TerminalNode
- func (s *ProgramContext) EOF() antlr.TerminalNode
- func (s *ProgramContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProgramContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProgramContext) FunctionDefinition(i int) IFunctionDefinitionContext
- func (s *ProgramContext) FunctionDesignator(i int) IFunctionDesignatorContext
- func (s *ProgramContext) GetParser() antlr.Parser
- func (s *ProgramContext) GetRuleContext() antlr.RuleContext
- func (*ProgramContext) IsProgramContext()
- func (s *ProgramContext) SEMI(i int) antlr.TerminalNode
- func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RelationalOperatorContext
- func (s *RelationalOperatorContext) EQUATION() antlr.TerminalNode
- func (s *RelationalOperatorContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *RelationalOperatorContext) Equal() IEqualContext
- func (s *RelationalOperatorContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *RelationalOperatorContext) GE() antlr.TerminalNode
- func (s *RelationalOperatorContext) GT() antlr.TerminalNode
- func (s *RelationalOperatorContext) GetParser() antlr.Parser
- func (s *RelationalOperatorContext) GetRuleContext() antlr.RuleContext
- func (*RelationalOperatorContext) IsRelationalOperatorContext()
- func (s *RelationalOperatorContext) LE() antlr.TerminalNode
- func (s *RelationalOperatorContext) LT() antlr.TerminalNode
- func (s *RelationalOperatorContext) NOT_EQUAL() antlr.TerminalNode
- func (s *RelationalOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SimpleExpressionContext
- func (s *SimpleExpressionContext) AddingOperator(i int) IAddingOperatorContext
- func (s *SimpleExpressionContext) AllAddingOperator() []IAddingOperatorContext
- func (s *SimpleExpressionContext) AllTerm() []ITermContext
- func (s *SimpleExpressionContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *SimpleExpressionContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *SimpleExpressionContext) GetParser() antlr.Parser
- func (s *SimpleExpressionContext) GetRuleContext() antlr.RuleContext
- func (*SimpleExpressionContext) IsSimpleExpressionContext()
- func (s *SimpleExpressionContext) MINUS() antlr.TerminalNode
- func (s *SimpleExpressionContext) Term(i int) ITermContext
- func (s *SimpleExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StatmentsContext
- func (s *StatmentsContext) AllCOMMA() []antlr.TerminalNode
- func (s *StatmentsContext) AllStatments() []IStatmentsContext
- func (s *StatmentsContext) Assignment() IAssignmentContext
- func (s *StatmentsContext) Block() IBlockContext
- func (s *StatmentsContext) COMMA(i int) antlr.TerminalNode
- func (s *StatmentsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *StatmentsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *StatmentsContext) Expression() IExpressionContext
- func (s *StatmentsContext) FunctionDesignator() IFunctionDesignatorContext
- func (s *StatmentsContext) GetParser() antlr.Parser
- func (s *StatmentsContext) GetRuleContext() antlr.RuleContext
- func (*StatmentsContext) IsStatmentsContext()
- func (s *StatmentsContext) Loop() ILoopContext
- func (s *StatmentsContext) Statments(i int) IStatmentsContext
- func (s *StatmentsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *StatmentsContext) When() IWhenContext
- type TermContext
- func (s *TermContext) AllFactor() []IFactorContext
- func (s *TermContext) AllMultiplyingOperator() []IMultiplyingOperatorContext
- func (s *TermContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TermContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TermContext) Factor(i int) IFactorContext
- func (s *TermContext) GetParser() antlr.Parser
- func (s *TermContext) GetRuleContext() antlr.RuleContext
- func (*TermContext) IsTermContext()
- func (s *TermContext) MultiplyingOperator(i int) IMultiplyingOperatorContext
- func (s *TermContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type WhenContext
- func (s *WhenContext) AllCOMMA() []antlr.TerminalNode
- func (s *WhenContext) AllEXIT() []antlr.TerminalNode
- func (s *WhenContext) COMMA(i int) antlr.TerminalNode
- func (s *WhenContext) EXIT(i int) antlr.TerminalNode
- func (s *WhenContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *WhenContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *WhenContext) Expression() IExpressionContext
- func (s *WhenContext) GetParser() antlr.Parser
- func (s *WhenContext) GetRuleContext() antlr.RuleContext
- func (*WhenContext) IsWhenContext()
- func (s *WhenContext) Statments() IStatmentsContext
- func (s *WhenContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *WhenContext) WHEN() antlr.TerminalNode
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewmumathLexer ¶
func NewmumathLexer(input antlr.CharStream) *mumathLexer
func NewmumathParser ¶
func NewmumathParser(input antlr.TokenStream) *mumathParser
Types ¶
type ActualParameterContext ¶
type ActualParameterContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewActualParameterContext ¶
func NewActualParameterContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ActualParameterContext
func NewEmptyActualParameterContext ¶
func NewEmptyActualParameterContext() *ActualParameterContext
func (*ActualParameterContext) Assignment ¶
func (s *ActualParameterContext) Assignment() IAssignmentContext
func (*ActualParameterContext) EnterRule ¶
func (s *ActualParameterContext) EnterRule(listener antlr.ParseTreeListener)
func (*ActualParameterContext) ExitRule ¶
func (s *ActualParameterContext) ExitRule(listener antlr.ParseTreeListener)
func (*ActualParameterContext) Expression ¶
func (s *ActualParameterContext) Expression() IExpressionContext
func (*ActualParameterContext) GetParser ¶
func (s *ActualParameterContext) GetParser() antlr.Parser
func (*ActualParameterContext) GetRuleContext ¶
func (s *ActualParameterContext) GetRuleContext() antlr.RuleContext
func (*ActualParameterContext) IsActualParameterContext ¶
func (*ActualParameterContext) IsActualParameterContext()
func (*ActualParameterContext) ToStringTree ¶
func (s *ActualParameterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type AddingOperatorContext ¶
type AddingOperatorContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAddingOperatorContext ¶
func NewAddingOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AddingOperatorContext
func NewEmptyAddingOperatorContext ¶
func NewEmptyAddingOperatorContext() *AddingOperatorContext
func (*AddingOperatorContext) EnterRule ¶
func (s *AddingOperatorContext) EnterRule(listener antlr.ParseTreeListener)
func (*AddingOperatorContext) ExitRule ¶
func (s *AddingOperatorContext) ExitRule(listener antlr.ParseTreeListener)
func (*AddingOperatorContext) GetParser ¶
func (s *AddingOperatorContext) GetParser() antlr.Parser
func (*AddingOperatorContext) GetRuleContext ¶
func (s *AddingOperatorContext) GetRuleContext() antlr.RuleContext
func (*AddingOperatorContext) IsAddingOperatorContext ¶
func (*AddingOperatorContext) IsAddingOperatorContext()
func (*AddingOperatorContext) MINUS ¶
func (s *AddingOperatorContext) MINUS() antlr.TerminalNode
func (*AddingOperatorContext) OR ¶
func (s *AddingOperatorContext) OR() antlr.TerminalNode
func (*AddingOperatorContext) PLUS ¶
func (s *AddingOperatorContext) PLUS() antlr.TerminalNode
func (*AddingOperatorContext) ToStringTree ¶
func (s *AddingOperatorContext) 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) AllCOLON ¶
func (s *AssignmentContext) AllCOLON() []antlr.TerminalNode
func (*AssignmentContext) AllID ¶
func (s *AssignmentContext) AllID() []antlr.TerminalNode
func (*AssignmentContext) COLON ¶
func (s *AssignmentContext) COLON(i int) antlr.TerminalNode
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() IExpressionContext
func (*AssignmentContext) GetParser ¶
func (s *AssignmentContext) GetParser() antlr.Parser
func (*AssignmentContext) GetRuleContext ¶
func (s *AssignmentContext) GetRuleContext() antlr.RuleContext
func (*AssignmentContext) ID ¶
func (s *AssignmentContext) ID(i int) antlr.TerminalNode
func (*AssignmentContext) IsAssignmentContext ¶
func (*AssignmentContext) IsAssignmentContext()
func (*AssignmentContext) ToStringTree ¶
func (s *AssignmentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BasemumathListener ¶
type BasemumathListener struct{}
BasemumathListener is a complete listener for a parse tree produced by mumathParser.
func (*BasemumathListener) EnterActualParameter ¶
func (s *BasemumathListener) EnterActualParameter(ctx *ActualParameterContext)
EnterActualParameter is called when production actualParameter is entered.
func (*BasemumathListener) EnterAddingOperator ¶
func (s *BasemumathListener) EnterAddingOperator(ctx *AddingOperatorContext)
EnterAddingOperator is called when production addingOperator is entered.
func (*BasemumathListener) EnterAssignment ¶
func (s *BasemumathListener) EnterAssignment(ctx *AssignmentContext)
EnterAssignment is called when production assignment is entered.
func (*BasemumathListener) EnterBlock ¶
func (s *BasemumathListener) EnterBlock(ctx *BlockContext)
EnterBlock is called when production block is entered.
func (*BasemumathListener) EnterConstant ¶
func (s *BasemumathListener) EnterConstant(ctx *ConstantContext)
EnterConstant is called when production constant is entered.
func (*BasemumathListener) EnterEqual ¶
func (s *BasemumathListener) EnterEqual(ctx *EqualContext)
EnterEqual is called when production equal is entered.
func (*BasemumathListener) EnterEveryRule ¶
func (s *BasemumathListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BasemumathListener) EnterExpression ¶
func (s *BasemumathListener) EnterExpression(ctx *ExpressionContext)
EnterExpression is called when production expression is entered.
func (*BasemumathListener) EnterFactor ¶
func (s *BasemumathListener) EnterFactor(ctx *FactorContext)
EnterFactor is called when production factor is entered.
func (*BasemumathListener) EnterFunctionDefinition ¶
func (s *BasemumathListener) EnterFunctionDefinition(ctx *FunctionDefinitionContext)
EnterFunctionDefinition is called when production functionDefinition is entered.
func (*BasemumathListener) EnterFunctionDesignator ¶
func (s *BasemumathListener) EnterFunctionDesignator(ctx *FunctionDesignatorContext)
EnterFunctionDesignator is called when production functionDesignator is entered.
func (*BasemumathListener) EnterList ¶
func (s *BasemumathListener) EnterList(ctx *ListContext)
EnterList is called when production list is entered.
func (*BasemumathListener) EnterLoop ¶
func (s *BasemumathListener) EnterLoop(ctx *LoopContext)
EnterLoop is called when production loop is entered.
func (*BasemumathListener) EnterMultiplyingOperator ¶
func (s *BasemumathListener) EnterMultiplyingOperator(ctx *MultiplyingOperatorContext)
EnterMultiplyingOperator is called when production multiplyingOperator is entered.
func (*BasemumathListener) EnterProgram ¶
func (s *BasemumathListener) EnterProgram(ctx *ProgramContext)
EnterProgram is called when production program is entered.
func (*BasemumathListener) EnterRelationalOperator ¶
func (s *BasemumathListener) EnterRelationalOperator(ctx *RelationalOperatorContext)
EnterRelationalOperator is called when production relationalOperator is entered.
func (*BasemumathListener) EnterSimpleExpression ¶
func (s *BasemumathListener) EnterSimpleExpression(ctx *SimpleExpressionContext)
EnterSimpleExpression is called when production simpleExpression is entered.
func (*BasemumathListener) EnterStatments ¶
func (s *BasemumathListener) EnterStatments(ctx *StatmentsContext)
EnterStatments is called when production statments is entered.
func (*BasemumathListener) EnterTerm ¶
func (s *BasemumathListener) EnterTerm(ctx *TermContext)
EnterTerm is called when production term is entered.
func (*BasemumathListener) EnterWhen ¶
func (s *BasemumathListener) EnterWhen(ctx *WhenContext)
EnterWhen is called when production when is entered.
func (*BasemumathListener) ExitActualParameter ¶
func (s *BasemumathListener) ExitActualParameter(ctx *ActualParameterContext)
ExitActualParameter is called when production actualParameter is exited.
func (*BasemumathListener) ExitAddingOperator ¶
func (s *BasemumathListener) ExitAddingOperator(ctx *AddingOperatorContext)
ExitAddingOperator is called when production addingOperator is exited.
func (*BasemumathListener) ExitAssignment ¶
func (s *BasemumathListener) ExitAssignment(ctx *AssignmentContext)
ExitAssignment is called when production assignment is exited.
func (*BasemumathListener) ExitBlock ¶
func (s *BasemumathListener) ExitBlock(ctx *BlockContext)
ExitBlock is called when production block is exited.
func (*BasemumathListener) ExitConstant ¶
func (s *BasemumathListener) ExitConstant(ctx *ConstantContext)
ExitConstant is called when production constant is exited.
func (*BasemumathListener) ExitEqual ¶
func (s *BasemumathListener) ExitEqual(ctx *EqualContext)
ExitEqual is called when production equal is exited.
func (*BasemumathListener) ExitEveryRule ¶
func (s *BasemumathListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BasemumathListener) ExitExpression ¶
func (s *BasemumathListener) ExitExpression(ctx *ExpressionContext)
ExitExpression is called when production expression is exited.
func (*BasemumathListener) ExitFactor ¶
func (s *BasemumathListener) ExitFactor(ctx *FactorContext)
ExitFactor is called when production factor is exited.
func (*BasemumathListener) ExitFunctionDefinition ¶
func (s *BasemumathListener) ExitFunctionDefinition(ctx *FunctionDefinitionContext)
ExitFunctionDefinition is called when production functionDefinition is exited.
func (*BasemumathListener) ExitFunctionDesignator ¶
func (s *BasemumathListener) ExitFunctionDesignator(ctx *FunctionDesignatorContext)
ExitFunctionDesignator is called when production functionDesignator is exited.
func (*BasemumathListener) ExitList ¶
func (s *BasemumathListener) ExitList(ctx *ListContext)
ExitList is called when production list is exited.
func (*BasemumathListener) ExitLoop ¶
func (s *BasemumathListener) ExitLoop(ctx *LoopContext)
ExitLoop is called when production loop is exited.
func (*BasemumathListener) ExitMultiplyingOperator ¶
func (s *BasemumathListener) ExitMultiplyingOperator(ctx *MultiplyingOperatorContext)
ExitMultiplyingOperator is called when production multiplyingOperator is exited.
func (*BasemumathListener) ExitProgram ¶
func (s *BasemumathListener) ExitProgram(ctx *ProgramContext)
ExitProgram is called when production program is exited.
func (*BasemumathListener) ExitRelationalOperator ¶
func (s *BasemumathListener) ExitRelationalOperator(ctx *RelationalOperatorContext)
ExitRelationalOperator is called when production relationalOperator is exited.
func (*BasemumathListener) ExitSimpleExpression ¶
func (s *BasemumathListener) ExitSimpleExpression(ctx *SimpleExpressionContext)
ExitSimpleExpression is called when production simpleExpression is exited.
func (*BasemumathListener) ExitStatments ¶
func (s *BasemumathListener) ExitStatments(ctx *StatmentsContext)
ExitStatments is called when production statments is exited.
func (*BasemumathListener) ExitTerm ¶
func (s *BasemumathListener) ExitTerm(ctx *TermContext)
ExitTerm is called when production term is exited.
func (*BasemumathListener) ExitWhen ¶
func (s *BasemumathListener) ExitWhen(ctx *WhenContext)
ExitWhen is called when production when is exited.
func (*BasemumathListener) VisitErrorNode ¶
func (s *BasemumathListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BasemumathListener) VisitTerminal ¶
func (s *BasemumathListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
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) BLOCK ¶
func (s *BlockContext) BLOCK() antlr.TerminalNode
func (*BlockContext) COMMA ¶
func (s *BlockContext) COMMA() antlr.TerminalNode
func (*BlockContext) ENDBLOCK ¶
func (s *BlockContext) ENDBLOCK() antlr.TerminalNode
func (*BlockContext) EnterRule ¶
func (s *BlockContext) EnterRule(listener antlr.ParseTreeListener)
func (*BlockContext) ExitRule ¶
func (s *BlockContext) ExitRule(listener antlr.ParseTreeListener)
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) Statments ¶
func (s *BlockContext) Statments() IStatmentsContext
func (*BlockContext) ToStringTree ¶
func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ConstantContext ¶
type ConstantContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewConstantContext ¶
func NewConstantContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConstantContext
func NewEmptyConstantContext ¶
func NewEmptyConstantContext() *ConstantContext
func (*ConstantContext) EnterRule ¶
func (s *ConstantContext) EnterRule(listener antlr.ParseTreeListener)
func (*ConstantContext) ExitRule ¶
func (s *ConstantContext) ExitRule(listener antlr.ParseTreeListener)
func (*ConstantContext) GetParser ¶
func (s *ConstantContext) GetParser() antlr.Parser
func (*ConstantContext) GetRuleContext ¶
func (s *ConstantContext) GetRuleContext() antlr.RuleContext
func (*ConstantContext) ID ¶
func (s *ConstantContext) ID() antlr.TerminalNode
func (*ConstantContext) IsConstantContext ¶
func (*ConstantContext) IsConstantContext()
func (*ConstantContext) NUMBER ¶
func (s *ConstantContext) NUMBER() antlr.TerminalNode
func (*ConstantContext) QUOTE ¶
func (s *ConstantContext) QUOTE() antlr.TerminalNode
func (*ConstantContext) STRING ¶
func (s *ConstantContext) STRING() antlr.TerminalNode
func (*ConstantContext) ToStringTree ¶
func (s *ConstantContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type EqualContext ¶
type EqualContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEqualContext ¶
func NewEmptyEqualContext() *EqualContext
func NewEqualContext ¶
func NewEqualContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EqualContext
func (*EqualContext) EQC ¶
func (s *EqualContext) EQC() antlr.TerminalNode
func (*EqualContext) EQF ¶
func (s *EqualContext) EQF() antlr.TerminalNode
func (*EqualContext) EnterRule ¶
func (s *EqualContext) EnterRule(listener antlr.ParseTreeListener)
func (*EqualContext) ExitRule ¶
func (s *EqualContext) ExitRule(listener antlr.ParseTreeListener)
func (*EqualContext) GetParser ¶
func (s *EqualContext) GetParser() antlr.Parser
func (*EqualContext) GetRuleContext ¶
func (s *EqualContext) GetRuleContext() antlr.RuleContext
func (*EqualContext) IsEqualContext ¶
func (*EqualContext) IsEqualContext()
func (*EqualContext) ToStringTree ¶
func (s *EqualContext) 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) AllRelationalOperator ¶
func (s *ExpressionContext) AllRelationalOperator() []IRelationalOperatorContext
func (*ExpressionContext) AllSimpleExpression ¶
func (s *ExpressionContext) AllSimpleExpression() []ISimpleExpressionContext
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) RelationalOperator ¶
func (s *ExpressionContext) RelationalOperator(i int) IRelationalOperatorContext
func (*ExpressionContext) SimpleExpression ¶
func (s *ExpressionContext) SimpleExpression(i int) ISimpleExpressionContext
func (*ExpressionContext) ToStringTree ¶
func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FactorContext ¶
type FactorContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFactorContext ¶
func NewEmptyFactorContext() *FactorContext
func NewFactorContext ¶
func NewFactorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FactorContext
func (*FactorContext) Constant ¶
func (s *FactorContext) Constant() IConstantContext
func (*FactorContext) EnterRule ¶
func (s *FactorContext) EnterRule(listener antlr.ParseTreeListener)
func (*FactorContext) ExitRule ¶
func (s *FactorContext) ExitRule(listener antlr.ParseTreeListener)
func (*FactorContext) Expression ¶
func (s *FactorContext) Expression() IExpressionContext
func (*FactorContext) Factor ¶
func (s *FactorContext) Factor() IFactorContext
func (*FactorContext) FunctionDesignator ¶
func (s *FactorContext) FunctionDesignator() IFunctionDesignatorContext
func (*FactorContext) GetParser ¶
func (s *FactorContext) GetParser() antlr.Parser
func (*FactorContext) GetRuleContext ¶
func (s *FactorContext) GetRuleContext() antlr.RuleContext
func (*FactorContext) ID ¶
func (s *FactorContext) ID() antlr.TerminalNode
func (*FactorContext) IsFactorContext ¶
func (*FactorContext) IsFactorContext()
func (*FactorContext) LPAREN ¶
func (s *FactorContext) LPAREN() antlr.TerminalNode
func (*FactorContext) NOT ¶
func (s *FactorContext) NOT() antlr.TerminalNode
func (*FactorContext) RPAREN ¶
func (s *FactorContext) RPAREN() antlr.TerminalNode
func (*FactorContext) ToStringTree ¶
func (s *FactorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FunctionDefinitionContext ¶
type FunctionDefinitionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFunctionDefinitionContext ¶
func NewEmptyFunctionDefinitionContext() *FunctionDefinitionContext
func NewFunctionDefinitionContext ¶
func NewFunctionDefinitionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionDefinitionContext
func (*FunctionDefinitionContext) AllCOMMA ¶
func (s *FunctionDefinitionContext) AllCOMMA() []antlr.TerminalNode
func (*FunctionDefinitionContext) COMMA ¶
func (s *FunctionDefinitionContext) COMMA(i int) antlr.TerminalNode
func (*FunctionDefinitionContext) ENDFUN ¶
func (s *FunctionDefinitionContext) ENDFUN() antlr.TerminalNode
func (*FunctionDefinitionContext) EnterRule ¶
func (s *FunctionDefinitionContext) EnterRule(listener antlr.ParseTreeListener)
func (*FunctionDefinitionContext) ExitRule ¶
func (s *FunctionDefinitionContext) ExitRule(listener antlr.ParseTreeListener)
func (*FunctionDefinitionContext) FUNCTION ¶
func (s *FunctionDefinitionContext) FUNCTION() antlr.TerminalNode
func (*FunctionDefinitionContext) GetParser ¶
func (s *FunctionDefinitionContext) GetParser() antlr.Parser
func (*FunctionDefinitionContext) GetRuleContext ¶
func (s *FunctionDefinitionContext) GetRuleContext() antlr.RuleContext
func (*FunctionDefinitionContext) ID ¶
func (s *FunctionDefinitionContext) ID() antlr.TerminalNode
func (*FunctionDefinitionContext) IsFunctionDefinitionContext ¶
func (*FunctionDefinitionContext) IsFunctionDefinitionContext()
func (*FunctionDefinitionContext) List ¶
func (s *FunctionDefinitionContext) List() IListContext
func (*FunctionDefinitionContext) Statments ¶
func (s *FunctionDefinitionContext) Statments() IStatmentsContext
func (*FunctionDefinitionContext) ToStringTree ¶
func (s *FunctionDefinitionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FunctionDesignatorContext ¶
type FunctionDesignatorContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFunctionDesignatorContext ¶
func NewEmptyFunctionDesignatorContext() *FunctionDesignatorContext
func NewFunctionDesignatorContext ¶
func NewFunctionDesignatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionDesignatorContext
func (*FunctionDesignatorContext) ActualParameter ¶
func (s *FunctionDesignatorContext) ActualParameter(i int) IActualParameterContext
func (*FunctionDesignatorContext) AllActualParameter ¶
func (s *FunctionDesignatorContext) AllActualParameter() []IActualParameterContext
func (*FunctionDesignatorContext) AllCOMMA ¶
func (s *FunctionDesignatorContext) AllCOMMA() []antlr.TerminalNode
func (*FunctionDesignatorContext) COMMA ¶
func (s *FunctionDesignatorContext) COMMA(i int) antlr.TerminalNode
func (*FunctionDesignatorContext) EnterRule ¶
func (s *FunctionDesignatorContext) EnterRule(listener antlr.ParseTreeListener)
func (*FunctionDesignatorContext) ExitRule ¶
func (s *FunctionDesignatorContext) ExitRule(listener antlr.ParseTreeListener)
func (*FunctionDesignatorContext) GetParser ¶
func (s *FunctionDesignatorContext) GetParser() antlr.Parser
func (*FunctionDesignatorContext) GetRuleContext ¶
func (s *FunctionDesignatorContext) GetRuleContext() antlr.RuleContext
func (*FunctionDesignatorContext) ID ¶
func (s *FunctionDesignatorContext) ID() antlr.TerminalNode
func (*FunctionDesignatorContext) IsFunctionDesignatorContext ¶
func (*FunctionDesignatorContext) IsFunctionDesignatorContext()
func (*FunctionDesignatorContext) LPAREN ¶
func (s *FunctionDesignatorContext) LPAREN() antlr.TerminalNode
func (*FunctionDesignatorContext) RPAREN ¶
func (s *FunctionDesignatorContext) RPAREN() antlr.TerminalNode
func (*FunctionDesignatorContext) ToStringTree ¶
func (s *FunctionDesignatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IActualParameterContext ¶
type IActualParameterContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsActualParameterContext differentiates from other interfaces. IsActualParameterContext() }
IActualParameterContext is an interface to support dynamic dispatch.
type IAddingOperatorContext ¶
type IAddingOperatorContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAddingOperatorContext differentiates from other interfaces. IsAddingOperatorContext() }
IAddingOperatorContext is an interface to support dynamic dispatch.
type IAssignmentContext ¶
type IAssignmentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // 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 // IsBlockContext differentiates from other interfaces. IsBlockContext() }
IBlockContext is an interface to support dynamic dispatch.
type IConstantContext ¶
type IConstantContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsConstantContext differentiates from other interfaces. IsConstantContext() }
IConstantContext is an interface to support dynamic dispatch.
type IEqualContext ¶
type IEqualContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsEqualContext differentiates from other interfaces. IsEqualContext() }
IEqualContext 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 IFactorContext ¶
type IFactorContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsFactorContext differentiates from other interfaces. IsFactorContext() }
IFactorContext is an interface to support dynamic dispatch.
type IFunctionDefinitionContext ¶
type IFunctionDefinitionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsFunctionDefinitionContext differentiates from other interfaces. IsFunctionDefinitionContext() }
IFunctionDefinitionContext is an interface to support dynamic dispatch.
type IFunctionDesignatorContext ¶
type IFunctionDesignatorContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsFunctionDesignatorContext differentiates from other interfaces. IsFunctionDesignatorContext() }
IFunctionDesignatorContext is an interface to support dynamic dispatch.
type IListContext ¶
type IListContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsListContext differentiates from other interfaces. IsListContext() }
IListContext is an interface to support dynamic dispatch.
type ILoopContext ¶
type ILoopContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsLoopContext differentiates from other interfaces. IsLoopContext() }
ILoopContext is an interface to support dynamic dispatch.
type IMultiplyingOperatorContext ¶
type IMultiplyingOperatorContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMultiplyingOperatorContext differentiates from other interfaces. IsMultiplyingOperatorContext() }
IMultiplyingOperatorContext 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 IRelationalOperatorContext ¶
type IRelationalOperatorContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRelationalOperatorContext differentiates from other interfaces. IsRelationalOperatorContext() }
IRelationalOperatorContext is an interface to support dynamic dispatch.
type ISimpleExpressionContext ¶
type ISimpleExpressionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSimpleExpressionContext differentiates from other interfaces. IsSimpleExpressionContext() }
ISimpleExpressionContext is an interface to support dynamic dispatch.
type IStatmentsContext ¶
type IStatmentsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsStatmentsContext differentiates from other interfaces. IsStatmentsContext() }
IStatmentsContext is an interface to support dynamic dispatch.
type ITermContext ¶
type ITermContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTermContext differentiates from other interfaces. IsTermContext() }
ITermContext is an interface to support dynamic dispatch.
type IWhenContext ¶
type IWhenContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsWhenContext differentiates from other interfaces. IsWhenContext() }
IWhenContext is an interface to support dynamic dispatch.
type ListContext ¶
type ListContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyListContext ¶
func NewEmptyListContext() *ListContext
func NewListContext ¶
func NewListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ListContext
func (*ListContext) AllCOMMA ¶
func (s *ListContext) AllCOMMA() []antlr.TerminalNode
func (*ListContext) AllID ¶
func (s *ListContext) AllID() []antlr.TerminalNode
func (*ListContext) COMMA ¶
func (s *ListContext) COMMA(i int) antlr.TerminalNode
func (*ListContext) EnterRule ¶
func (s *ListContext) EnterRule(listener antlr.ParseTreeListener)
func (*ListContext) ExitRule ¶
func (s *ListContext) ExitRule(listener antlr.ParseTreeListener)
func (*ListContext) GetParser ¶
func (s *ListContext) GetParser() antlr.Parser
func (*ListContext) GetRuleContext ¶
func (s *ListContext) GetRuleContext() antlr.RuleContext
func (*ListContext) ID ¶
func (s *ListContext) ID(i int) antlr.TerminalNode
func (*ListContext) IsListContext ¶
func (*ListContext) IsListContext()
func (*ListContext) LPAREN ¶
func (s *ListContext) LPAREN() antlr.TerminalNode
func (*ListContext) RPAREN ¶
func (s *ListContext) RPAREN() antlr.TerminalNode
func (*ListContext) ToStringTree ¶
func (s *ListContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LoopContext ¶
type LoopContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyLoopContext ¶
func NewEmptyLoopContext() *LoopContext
func NewLoopContext ¶
func NewLoopContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LoopContext
func (*LoopContext) COMMA ¶
func (s *LoopContext) COMMA() antlr.TerminalNode
func (*LoopContext) ENDLOOP ¶
func (s *LoopContext) ENDLOOP() antlr.TerminalNode
func (*LoopContext) EnterRule ¶
func (s *LoopContext) EnterRule(listener antlr.ParseTreeListener)
func (*LoopContext) ExitRule ¶
func (s *LoopContext) ExitRule(listener antlr.ParseTreeListener)
func (*LoopContext) GetParser ¶
func (s *LoopContext) GetParser() antlr.Parser
func (*LoopContext) GetRuleContext ¶
func (s *LoopContext) GetRuleContext() antlr.RuleContext
func (*LoopContext) IsLoopContext ¶
func (*LoopContext) IsLoopContext()
func (*LoopContext) LOOP ¶
func (s *LoopContext) LOOP() antlr.TerminalNode
func (*LoopContext) Statments ¶
func (s *LoopContext) Statments() IStatmentsContext
func (*LoopContext) ToStringTree ¶
func (s *LoopContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MultiplyingOperatorContext ¶
type MultiplyingOperatorContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMultiplyingOperatorContext ¶
func NewEmptyMultiplyingOperatorContext() *MultiplyingOperatorContext
func NewMultiplyingOperatorContext ¶
func NewMultiplyingOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MultiplyingOperatorContext
func (*MultiplyingOperatorContext) AND ¶
func (s *MultiplyingOperatorContext) AND() antlr.TerminalNode
func (*MultiplyingOperatorContext) EnterRule ¶
func (s *MultiplyingOperatorContext) EnterRule(listener antlr.ParseTreeListener)
func (*MultiplyingOperatorContext) ExitRule ¶
func (s *MultiplyingOperatorContext) ExitRule(listener antlr.ParseTreeListener)
func (*MultiplyingOperatorContext) GetParser ¶
func (s *MultiplyingOperatorContext) GetParser() antlr.Parser
func (*MultiplyingOperatorContext) GetRuleContext ¶
func (s *MultiplyingOperatorContext) GetRuleContext() antlr.RuleContext
func (*MultiplyingOperatorContext) IsMultiplyingOperatorContext ¶
func (*MultiplyingOperatorContext) IsMultiplyingOperatorContext()
func (*MultiplyingOperatorContext) MOD ¶
func (s *MultiplyingOperatorContext) MOD() antlr.TerminalNode
func (*MultiplyingOperatorContext) POWER ¶
func (s *MultiplyingOperatorContext) POWER() antlr.TerminalNode
func (*MultiplyingOperatorContext) SLASH ¶
func (s *MultiplyingOperatorContext) SLASH() antlr.TerminalNode
func (*MultiplyingOperatorContext) STAR ¶
func (s *MultiplyingOperatorContext) STAR() antlr.TerminalNode
func (*MultiplyingOperatorContext) ToStringTree ¶
func (s *MultiplyingOperatorContext) 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) AllAssignment ¶
func (s *ProgramContext) AllAssignment() []IAssignmentContext
func (*ProgramContext) AllDOLLAR ¶
func (s *ProgramContext) AllDOLLAR() []antlr.TerminalNode
func (*ProgramContext) AllFunctionDefinition ¶
func (s *ProgramContext) AllFunctionDefinition() []IFunctionDefinitionContext
func (*ProgramContext) AllFunctionDesignator ¶
func (s *ProgramContext) AllFunctionDesignator() []IFunctionDesignatorContext
func (*ProgramContext) AllSEMI ¶
func (s *ProgramContext) AllSEMI() []antlr.TerminalNode
func (*ProgramContext) Assignment ¶
func (s *ProgramContext) Assignment(i int) IAssignmentContext
func (*ProgramContext) DOLLAR ¶
func (s *ProgramContext) DOLLAR(i int) antlr.TerminalNode
func (*ProgramContext) EOF ¶
func (s *ProgramContext) EOF() antlr.TerminalNode
func (*ProgramContext) EnterRule ¶
func (s *ProgramContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProgramContext) ExitRule ¶
func (s *ProgramContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProgramContext) FunctionDefinition ¶
func (s *ProgramContext) FunctionDefinition(i int) IFunctionDefinitionContext
func (*ProgramContext) FunctionDesignator ¶
func (s *ProgramContext) FunctionDesignator(i int) IFunctionDesignatorContext
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) SEMI ¶
func (s *ProgramContext) SEMI(i int) antlr.TerminalNode
func (*ProgramContext) ToStringTree ¶
func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RelationalOperatorContext ¶
type RelationalOperatorContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRelationalOperatorContext ¶
func NewEmptyRelationalOperatorContext() *RelationalOperatorContext
func NewRelationalOperatorContext ¶
func NewRelationalOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RelationalOperatorContext
func (*RelationalOperatorContext) EQUATION ¶
func (s *RelationalOperatorContext) EQUATION() antlr.TerminalNode
func (*RelationalOperatorContext) EnterRule ¶
func (s *RelationalOperatorContext) EnterRule(listener antlr.ParseTreeListener)
func (*RelationalOperatorContext) Equal ¶
func (s *RelationalOperatorContext) Equal() IEqualContext
func (*RelationalOperatorContext) ExitRule ¶
func (s *RelationalOperatorContext) ExitRule(listener antlr.ParseTreeListener)
func (*RelationalOperatorContext) GE ¶
func (s *RelationalOperatorContext) GE() antlr.TerminalNode
func (*RelationalOperatorContext) GT ¶
func (s *RelationalOperatorContext) GT() antlr.TerminalNode
func (*RelationalOperatorContext) GetParser ¶
func (s *RelationalOperatorContext) GetParser() antlr.Parser
func (*RelationalOperatorContext) GetRuleContext ¶
func (s *RelationalOperatorContext) GetRuleContext() antlr.RuleContext
func (*RelationalOperatorContext) IsRelationalOperatorContext ¶
func (*RelationalOperatorContext) IsRelationalOperatorContext()
func (*RelationalOperatorContext) LE ¶
func (s *RelationalOperatorContext) LE() antlr.TerminalNode
func (*RelationalOperatorContext) LT ¶
func (s *RelationalOperatorContext) LT() antlr.TerminalNode
func (*RelationalOperatorContext) NOT_EQUAL ¶
func (s *RelationalOperatorContext) NOT_EQUAL() antlr.TerminalNode
func (*RelationalOperatorContext) ToStringTree ¶
func (s *RelationalOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SimpleExpressionContext ¶
type SimpleExpressionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySimpleExpressionContext ¶
func NewEmptySimpleExpressionContext() *SimpleExpressionContext
func NewSimpleExpressionContext ¶
func NewSimpleExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SimpleExpressionContext
func (*SimpleExpressionContext) AddingOperator ¶
func (s *SimpleExpressionContext) AddingOperator(i int) IAddingOperatorContext
func (*SimpleExpressionContext) AllAddingOperator ¶
func (s *SimpleExpressionContext) AllAddingOperator() []IAddingOperatorContext
func (*SimpleExpressionContext) AllTerm ¶
func (s *SimpleExpressionContext) AllTerm() []ITermContext
func (*SimpleExpressionContext) EnterRule ¶
func (s *SimpleExpressionContext) EnterRule(listener antlr.ParseTreeListener)
func (*SimpleExpressionContext) ExitRule ¶
func (s *SimpleExpressionContext) ExitRule(listener antlr.ParseTreeListener)
func (*SimpleExpressionContext) GetParser ¶
func (s *SimpleExpressionContext) GetParser() antlr.Parser
func (*SimpleExpressionContext) GetRuleContext ¶
func (s *SimpleExpressionContext) GetRuleContext() antlr.RuleContext
func (*SimpleExpressionContext) IsSimpleExpressionContext ¶
func (*SimpleExpressionContext) IsSimpleExpressionContext()
func (*SimpleExpressionContext) MINUS ¶
func (s *SimpleExpressionContext) MINUS() antlr.TerminalNode
func (*SimpleExpressionContext) Term ¶
func (s *SimpleExpressionContext) Term(i int) ITermContext
func (*SimpleExpressionContext) ToStringTree ¶
func (s *SimpleExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StatmentsContext ¶
type StatmentsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStatmentsContext ¶
func NewEmptyStatmentsContext() *StatmentsContext
func NewStatmentsContext ¶
func NewStatmentsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StatmentsContext
func (*StatmentsContext) AllCOMMA ¶
func (s *StatmentsContext) AllCOMMA() []antlr.TerminalNode
func (*StatmentsContext) AllStatments ¶
func (s *StatmentsContext) AllStatments() []IStatmentsContext
func (*StatmentsContext) Assignment ¶
func (s *StatmentsContext) Assignment() IAssignmentContext
func (*StatmentsContext) Block ¶
func (s *StatmentsContext) Block() IBlockContext
func (*StatmentsContext) COMMA ¶
func (s *StatmentsContext) COMMA(i int) antlr.TerminalNode
func (*StatmentsContext) EnterRule ¶
func (s *StatmentsContext) EnterRule(listener antlr.ParseTreeListener)
func (*StatmentsContext) ExitRule ¶
func (s *StatmentsContext) ExitRule(listener antlr.ParseTreeListener)
func (*StatmentsContext) Expression ¶
func (s *StatmentsContext) Expression() IExpressionContext
func (*StatmentsContext) FunctionDesignator ¶
func (s *StatmentsContext) FunctionDesignator() IFunctionDesignatorContext
func (*StatmentsContext) GetParser ¶
func (s *StatmentsContext) GetParser() antlr.Parser
func (*StatmentsContext) GetRuleContext ¶
func (s *StatmentsContext) GetRuleContext() antlr.RuleContext
func (*StatmentsContext) IsStatmentsContext ¶
func (*StatmentsContext) IsStatmentsContext()
func (*StatmentsContext) Loop ¶
func (s *StatmentsContext) Loop() ILoopContext
func (*StatmentsContext) Statments ¶
func (s *StatmentsContext) Statments(i int) IStatmentsContext
func (*StatmentsContext) ToStringTree ¶
func (s *StatmentsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*StatmentsContext) When ¶
func (s *StatmentsContext) When() IWhenContext
type TermContext ¶
type TermContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTermContext ¶
func NewEmptyTermContext() *TermContext
func NewTermContext ¶
func NewTermContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TermContext
func (*TermContext) AllFactor ¶
func (s *TermContext) AllFactor() []IFactorContext
func (*TermContext) AllMultiplyingOperator ¶
func (s *TermContext) AllMultiplyingOperator() []IMultiplyingOperatorContext
func (*TermContext) EnterRule ¶
func (s *TermContext) EnterRule(listener antlr.ParseTreeListener)
func (*TermContext) ExitRule ¶
func (s *TermContext) ExitRule(listener antlr.ParseTreeListener)
func (*TermContext) Factor ¶
func (s *TermContext) Factor(i int) IFactorContext
func (*TermContext) GetParser ¶
func (s *TermContext) GetParser() antlr.Parser
func (*TermContext) GetRuleContext ¶
func (s *TermContext) GetRuleContext() antlr.RuleContext
func (*TermContext) IsTermContext ¶
func (*TermContext) IsTermContext()
func (*TermContext) MultiplyingOperator ¶
func (s *TermContext) MultiplyingOperator(i int) IMultiplyingOperatorContext
func (*TermContext) ToStringTree ¶
func (s *TermContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type WhenContext ¶
type WhenContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyWhenContext ¶
func NewEmptyWhenContext() *WhenContext
func NewWhenContext ¶
func NewWhenContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *WhenContext
func (*WhenContext) AllCOMMA ¶
func (s *WhenContext) AllCOMMA() []antlr.TerminalNode
func (*WhenContext) AllEXIT ¶
func (s *WhenContext) AllEXIT() []antlr.TerminalNode
func (*WhenContext) COMMA ¶
func (s *WhenContext) COMMA(i int) antlr.TerminalNode
func (*WhenContext) EXIT ¶
func (s *WhenContext) EXIT(i int) antlr.TerminalNode
func (*WhenContext) EnterRule ¶
func (s *WhenContext) EnterRule(listener antlr.ParseTreeListener)
func (*WhenContext) ExitRule ¶
func (s *WhenContext) ExitRule(listener antlr.ParseTreeListener)
func (*WhenContext) Expression ¶
func (s *WhenContext) Expression() IExpressionContext
func (*WhenContext) GetParser ¶
func (s *WhenContext) GetParser() antlr.Parser
func (*WhenContext) GetRuleContext ¶
func (s *WhenContext) GetRuleContext() antlr.RuleContext
func (*WhenContext) IsWhenContext ¶
func (*WhenContext) IsWhenContext()
func (*WhenContext) Statments ¶
func (s *WhenContext) Statments() IStatmentsContext
func (*WhenContext) ToStringTree ¶
func (s *WhenContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*WhenContext) WHEN ¶
func (s *WhenContext) WHEN() antlr.TerminalNode