Documentation ¶
Overview ¶
Example ¶
package main import ( "bramp.net/antlr4/pl0" "fmt" "github.com/antlr/antlr4/runtime/Go/antlr" ) type exampleListener struct { *pl0.Basepl0Listener } 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 := pl0.Newpl0Lexer(is) stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel) // Create the Parser p := pl0.Newpl0Parser(stream) p.BuildParseTrees = true p.AddErrorListener(antlr.NewDiagnosticErrorListener(true)) // Finally walk the tree tree := p.Program() antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree) }
Output:
Index ¶
- func Newpl0Lexer(input antlr.CharStream) *pl0Lexer
- func Newpl0Parser(input antlr.TokenStream) *pl0Parser
- type AssignstmtContext
- func (s *AssignstmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *AssignstmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *AssignstmtContext) Expression() IExpressionContext
- func (s *AssignstmtContext) GetParser() antlr.Parser
- func (s *AssignstmtContext) GetRuleContext() antlr.RuleContext
- func (s *AssignstmtContext) Ident() IIdentContext
- func (*AssignstmtContext) IsAssignstmtContext()
- func (s *AssignstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BangstmtContext
- func (s *BangstmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BangstmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BangstmtContext) Expression() IExpressionContext
- func (s *BangstmtContext) GetParser() antlr.Parser
- func (s *BangstmtContext) GetRuleContext() antlr.RuleContext
- func (*BangstmtContext) IsBangstmtContext()
- func (s *BangstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Basepl0Listener
- func (s *Basepl0Listener) EnterAssignstmt(ctx *AssignstmtContext)
- func (s *Basepl0Listener) EnterBangstmt(ctx *BangstmtContext)
- func (s *Basepl0Listener) EnterBeginstmt(ctx *BeginstmtContext)
- func (s *Basepl0Listener) EnterBlock(ctx *BlockContext)
- func (s *Basepl0Listener) EnterCallstmt(ctx *CallstmtContext)
- func (s *Basepl0Listener) EnterCondition(ctx *ConditionContext)
- func (s *Basepl0Listener) EnterConsts(ctx *ConstsContext)
- func (s *Basepl0Listener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *Basepl0Listener) EnterExpression(ctx *ExpressionContext)
- func (s *Basepl0Listener) EnterFactor(ctx *FactorContext)
- func (s *Basepl0Listener) EnterIdent(ctx *IdentContext)
- func (s *Basepl0Listener) EnterIfstmt(ctx *IfstmtContext)
- func (s *Basepl0Listener) EnterNumber(ctx *NumberContext)
- func (s *Basepl0Listener) EnterProcedure(ctx *ProcedureContext)
- func (s *Basepl0Listener) EnterProgram(ctx *ProgramContext)
- func (s *Basepl0Listener) EnterQstmt(ctx *QstmtContext)
- func (s *Basepl0Listener) EnterStatement(ctx *StatementContext)
- func (s *Basepl0Listener) EnterTerm(ctx *TermContext)
- func (s *Basepl0Listener) EnterVars(ctx *VarsContext)
- func (s *Basepl0Listener) EnterWhilestmt(ctx *WhilestmtContext)
- func (s *Basepl0Listener) EnterWritestmt(ctx *WritestmtContext)
- func (s *Basepl0Listener) ExitAssignstmt(ctx *AssignstmtContext)
- func (s *Basepl0Listener) ExitBangstmt(ctx *BangstmtContext)
- func (s *Basepl0Listener) ExitBeginstmt(ctx *BeginstmtContext)
- func (s *Basepl0Listener) ExitBlock(ctx *BlockContext)
- func (s *Basepl0Listener) ExitCallstmt(ctx *CallstmtContext)
- func (s *Basepl0Listener) ExitCondition(ctx *ConditionContext)
- func (s *Basepl0Listener) ExitConsts(ctx *ConstsContext)
- func (s *Basepl0Listener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *Basepl0Listener) ExitExpression(ctx *ExpressionContext)
- func (s *Basepl0Listener) ExitFactor(ctx *FactorContext)
- func (s *Basepl0Listener) ExitIdent(ctx *IdentContext)
- func (s *Basepl0Listener) ExitIfstmt(ctx *IfstmtContext)
- func (s *Basepl0Listener) ExitNumber(ctx *NumberContext)
- func (s *Basepl0Listener) ExitProcedure(ctx *ProcedureContext)
- func (s *Basepl0Listener) ExitProgram(ctx *ProgramContext)
- func (s *Basepl0Listener) ExitQstmt(ctx *QstmtContext)
- func (s *Basepl0Listener) ExitStatement(ctx *StatementContext)
- func (s *Basepl0Listener) ExitTerm(ctx *TermContext)
- func (s *Basepl0Listener) ExitVars(ctx *VarsContext)
- func (s *Basepl0Listener) ExitWhilestmt(ctx *WhilestmtContext)
- func (s *Basepl0Listener) ExitWritestmt(ctx *WritestmtContext)
- func (s *Basepl0Listener) VisitErrorNode(node antlr.ErrorNode)
- func (s *Basepl0Listener) VisitTerminal(node antlr.TerminalNode)
- type BeginstmtContext
- func (s *BeginstmtContext) AllStatement() []IStatementContext
- func (s *BeginstmtContext) BEGIN() antlr.TerminalNode
- func (s *BeginstmtContext) END() antlr.TerminalNode
- func (s *BeginstmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *BeginstmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *BeginstmtContext) GetParser() antlr.Parser
- func (s *BeginstmtContext) GetRuleContext() antlr.RuleContext
- func (*BeginstmtContext) IsBeginstmtContext()
- func (s *BeginstmtContext) Statement(i int) IStatementContext
- func (s *BeginstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BlockContext
- func (s *BlockContext) AllProcedure() []IProcedureContext
- func (s *BlockContext) Consts() IConstsContext
- 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) Procedure(i int) IProcedureContext
- func (s *BlockContext) Statement() IStatementContext
- func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *BlockContext) Vars() IVarsContext
- type CallstmtContext
- func (s *CallstmtContext) CALL() antlr.TerminalNode
- func (s *CallstmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CallstmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CallstmtContext) GetParser() antlr.Parser
- func (s *CallstmtContext) GetRuleContext() antlr.RuleContext
- func (s *CallstmtContext) Ident() IIdentContext
- func (*CallstmtContext) IsCallstmtContext()
- func (s *CallstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ConditionContext
- func (s *ConditionContext) AllExpression() []IExpressionContext
- 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) ODD() antlr.TerminalNode
- func (s *ConditionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ConstsContext
- func (s *ConstsContext) AllIdent() []IIdentContext
- func (s *ConstsContext) AllNumber() []INumberContext
- func (s *ConstsContext) CONST() antlr.TerminalNode
- func (s *ConstsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ConstsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ConstsContext) GetParser() antlr.Parser
- func (s *ConstsContext) GetRuleContext() antlr.RuleContext
- func (s *ConstsContext) Ident(i int) IIdentContext
- func (*ConstsContext) IsConstsContext()
- func (s *ConstsContext) Number(i int) INumberContext
- func (s *ConstsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExpressionContext
- func (s *ExpressionContext) AllTerm() []ITermContext
- 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) Term(i int) ITermContext
- func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FactorContext
- func (s *FactorContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *FactorContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *FactorContext) Expression() IExpressionContext
- func (s *FactorContext) GetParser() antlr.Parser
- func (s *FactorContext) GetRuleContext() antlr.RuleContext
- func (s *FactorContext) Ident() IIdentContext
- func (*FactorContext) IsFactorContext()
- func (s *FactorContext) Number() INumberContext
- func (s *FactorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IAssignstmtContext
- type IBangstmtContext
- type IBeginstmtContext
- type IBlockContext
- type ICallstmtContext
- type IConditionContext
- type IConstsContext
- type IExpressionContext
- type IFactorContext
- type IIdentContext
- type IIfstmtContext
- type INumberContext
- type IProcedureContext
- type IProgramContext
- type IQstmtContext
- type IStatementContext
- type ITermContext
- type IVarsContext
- type IWhilestmtContext
- type IWritestmtContext
- type IdentContext
- func (s *IdentContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IdentContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IdentContext) GetParser() antlr.Parser
- func (s *IdentContext) GetRuleContext() antlr.RuleContext
- func (*IdentContext) IsIdentContext()
- func (s *IdentContext) STRING() antlr.TerminalNode
- func (s *IdentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IfstmtContext
- func (s *IfstmtContext) Condition() IConditionContext
- func (s *IfstmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *IfstmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *IfstmtContext) GetParser() antlr.Parser
- func (s *IfstmtContext) GetRuleContext() antlr.RuleContext
- func (s *IfstmtContext) IF() antlr.TerminalNode
- func (*IfstmtContext) IsIfstmtContext()
- func (s *IfstmtContext) Statement() IStatementContext
- func (s *IfstmtContext) THEN() antlr.TerminalNode
- func (s *IfstmtContext) 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 ProcedureContext
- func (s *ProcedureContext) Block() IBlockContext
- func (s *ProcedureContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *ProcedureContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *ProcedureContext) GetParser() antlr.Parser
- func (s *ProcedureContext) GetRuleContext() antlr.RuleContext
- func (s *ProcedureContext) Ident() IIdentContext
- func (*ProcedureContext) IsProcedureContext()
- func (s *ProcedureContext) PROCEDURE() antlr.TerminalNode
- func (s *ProcedureContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ProgramContext
- func (s *ProgramContext) Block() IBlockContext
- 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) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type QstmtContext
- func (s *QstmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *QstmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *QstmtContext) GetParser() antlr.Parser
- func (s *QstmtContext) GetRuleContext() antlr.RuleContext
- func (s *QstmtContext) Ident() IIdentContext
- func (*QstmtContext) IsQstmtContext()
- func (s *QstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StatementContext
- func (s *StatementContext) Assignstmt() IAssignstmtContext
- func (s *StatementContext) Bangstmt() IBangstmtContext
- func (s *StatementContext) Beginstmt() IBeginstmtContext
- func (s *StatementContext) Callstmt() ICallstmtContext
- 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) Ifstmt() IIfstmtContext
- func (*StatementContext) IsStatementContext()
- func (s *StatementContext) Qstmt() IQstmtContext
- func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *StatementContext) Whilestmt() IWhilestmtContext
- func (s *StatementContext) Writestmt() IWritestmtContext
- type TermContext
- func (s *TermContext) AllFactor() []IFactorContext
- 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) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type VarsContext
- func (s *VarsContext) AllIdent() []IIdentContext
- func (s *VarsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *VarsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *VarsContext) GetParser() antlr.Parser
- func (s *VarsContext) GetRuleContext() antlr.RuleContext
- func (s *VarsContext) Ident(i int) IIdentContext
- func (*VarsContext) IsVarsContext()
- func (s *VarsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *VarsContext) VAR() antlr.TerminalNode
- type WhilestmtContext
- func (s *WhilestmtContext) Condition() IConditionContext
- func (s *WhilestmtContext) DO() antlr.TerminalNode
- func (s *WhilestmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *WhilestmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *WhilestmtContext) GetParser() antlr.Parser
- func (s *WhilestmtContext) GetRuleContext() antlr.RuleContext
- func (*WhilestmtContext) IsWhilestmtContext()
- func (s *WhilestmtContext) Statement() IStatementContext
- func (s *WhilestmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *WhilestmtContext) WHILE() antlr.TerminalNode
- type WritestmtContext
- func (s *WritestmtContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *WritestmtContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *WritestmtContext) GetParser() antlr.Parser
- func (s *WritestmtContext) GetRuleContext() antlr.RuleContext
- func (s *WritestmtContext) Ident() IIdentContext
- func (*WritestmtContext) IsWritestmtContext()
- func (s *WritestmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *WritestmtContext) WRITE() antlr.TerminalNode
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Newpl0Lexer ¶
func Newpl0Lexer(input antlr.CharStream) *pl0Lexer
func Newpl0Parser ¶
func Newpl0Parser(input antlr.TokenStream) *pl0Parser
Types ¶
type AssignstmtContext ¶
type AssignstmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAssignstmtContext ¶
func NewAssignstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AssignstmtContext
func NewEmptyAssignstmtContext ¶
func NewEmptyAssignstmtContext() *AssignstmtContext
func (*AssignstmtContext) EnterRule ¶
func (s *AssignstmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*AssignstmtContext) ExitRule ¶
func (s *AssignstmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*AssignstmtContext) Expression ¶
func (s *AssignstmtContext) Expression() IExpressionContext
func (*AssignstmtContext) GetParser ¶
func (s *AssignstmtContext) GetParser() antlr.Parser
func (*AssignstmtContext) GetRuleContext ¶
func (s *AssignstmtContext) GetRuleContext() antlr.RuleContext
func (*AssignstmtContext) Ident ¶
func (s *AssignstmtContext) Ident() IIdentContext
func (*AssignstmtContext) IsAssignstmtContext ¶
func (*AssignstmtContext) IsAssignstmtContext()
func (*AssignstmtContext) ToStringTree ¶
func (s *AssignstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BangstmtContext ¶
type BangstmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBangstmtContext ¶
func NewBangstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BangstmtContext
func NewEmptyBangstmtContext ¶
func NewEmptyBangstmtContext() *BangstmtContext
func (*BangstmtContext) EnterRule ¶
func (s *BangstmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*BangstmtContext) ExitRule ¶
func (s *BangstmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*BangstmtContext) Expression ¶
func (s *BangstmtContext) Expression() IExpressionContext
func (*BangstmtContext) GetParser ¶
func (s *BangstmtContext) GetParser() antlr.Parser
func (*BangstmtContext) GetRuleContext ¶
func (s *BangstmtContext) GetRuleContext() antlr.RuleContext
func (*BangstmtContext) IsBangstmtContext ¶
func (*BangstmtContext) IsBangstmtContext()
func (*BangstmtContext) ToStringTree ¶
func (s *BangstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Basepl0Listener ¶
type Basepl0Listener struct{}
Basepl0Listener is a complete listener for a parse tree produced by pl0Parser.
func (*Basepl0Listener) EnterAssignstmt ¶
func (s *Basepl0Listener) EnterAssignstmt(ctx *AssignstmtContext)
EnterAssignstmt is called when production assignstmt is entered.
func (*Basepl0Listener) EnterBangstmt ¶
func (s *Basepl0Listener) EnterBangstmt(ctx *BangstmtContext)
EnterBangstmt is called when production bangstmt is entered.
func (*Basepl0Listener) EnterBeginstmt ¶
func (s *Basepl0Listener) EnterBeginstmt(ctx *BeginstmtContext)
EnterBeginstmt is called when production beginstmt is entered.
func (*Basepl0Listener) EnterBlock ¶
func (s *Basepl0Listener) EnterBlock(ctx *BlockContext)
EnterBlock is called when production block is entered.
func (*Basepl0Listener) EnterCallstmt ¶
func (s *Basepl0Listener) EnterCallstmt(ctx *CallstmtContext)
EnterCallstmt is called when production callstmt is entered.
func (*Basepl0Listener) EnterCondition ¶
func (s *Basepl0Listener) EnterCondition(ctx *ConditionContext)
EnterCondition is called when production condition is entered.
func (*Basepl0Listener) EnterConsts ¶
func (s *Basepl0Listener) EnterConsts(ctx *ConstsContext)
EnterConsts is called when production consts is entered.
func (*Basepl0Listener) EnterEveryRule ¶
func (s *Basepl0Listener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*Basepl0Listener) EnterExpression ¶
func (s *Basepl0Listener) EnterExpression(ctx *ExpressionContext)
EnterExpression is called when production expression is entered.
func (*Basepl0Listener) EnterFactor ¶
func (s *Basepl0Listener) EnterFactor(ctx *FactorContext)
EnterFactor is called when production factor is entered.
func (*Basepl0Listener) EnterIdent ¶
func (s *Basepl0Listener) EnterIdent(ctx *IdentContext)
EnterIdent is called when production ident is entered.
func (*Basepl0Listener) EnterIfstmt ¶
func (s *Basepl0Listener) EnterIfstmt(ctx *IfstmtContext)
EnterIfstmt is called when production ifstmt is entered.
func (*Basepl0Listener) EnterNumber ¶
func (s *Basepl0Listener) EnterNumber(ctx *NumberContext)
EnterNumber is called when production number is entered.
func (*Basepl0Listener) EnterProcedure ¶
func (s *Basepl0Listener) EnterProcedure(ctx *ProcedureContext)
EnterProcedure is called when production procedure is entered.
func (*Basepl0Listener) EnterProgram ¶
func (s *Basepl0Listener) EnterProgram(ctx *ProgramContext)
EnterProgram is called when production program is entered.
func (*Basepl0Listener) EnterQstmt ¶
func (s *Basepl0Listener) EnterQstmt(ctx *QstmtContext)
EnterQstmt is called when production qstmt is entered.
func (*Basepl0Listener) EnterStatement ¶
func (s *Basepl0Listener) EnterStatement(ctx *StatementContext)
EnterStatement is called when production statement is entered.
func (*Basepl0Listener) EnterTerm ¶
func (s *Basepl0Listener) EnterTerm(ctx *TermContext)
EnterTerm is called when production term is entered.
func (*Basepl0Listener) EnterVars ¶
func (s *Basepl0Listener) EnterVars(ctx *VarsContext)
EnterVars is called when production vars is entered.
func (*Basepl0Listener) EnterWhilestmt ¶
func (s *Basepl0Listener) EnterWhilestmt(ctx *WhilestmtContext)
EnterWhilestmt is called when production whilestmt is entered.
func (*Basepl0Listener) EnterWritestmt ¶
func (s *Basepl0Listener) EnterWritestmt(ctx *WritestmtContext)
EnterWritestmt is called when production writestmt is entered.
func (*Basepl0Listener) ExitAssignstmt ¶
func (s *Basepl0Listener) ExitAssignstmt(ctx *AssignstmtContext)
ExitAssignstmt is called when production assignstmt is exited.
func (*Basepl0Listener) ExitBangstmt ¶
func (s *Basepl0Listener) ExitBangstmt(ctx *BangstmtContext)
ExitBangstmt is called when production bangstmt is exited.
func (*Basepl0Listener) ExitBeginstmt ¶
func (s *Basepl0Listener) ExitBeginstmt(ctx *BeginstmtContext)
ExitBeginstmt is called when production beginstmt is exited.
func (*Basepl0Listener) ExitBlock ¶
func (s *Basepl0Listener) ExitBlock(ctx *BlockContext)
ExitBlock is called when production block is exited.
func (*Basepl0Listener) ExitCallstmt ¶
func (s *Basepl0Listener) ExitCallstmt(ctx *CallstmtContext)
ExitCallstmt is called when production callstmt is exited.
func (*Basepl0Listener) ExitCondition ¶
func (s *Basepl0Listener) ExitCondition(ctx *ConditionContext)
ExitCondition is called when production condition is exited.
func (*Basepl0Listener) ExitConsts ¶
func (s *Basepl0Listener) ExitConsts(ctx *ConstsContext)
ExitConsts is called when production consts is exited.
func (*Basepl0Listener) ExitEveryRule ¶
func (s *Basepl0Listener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*Basepl0Listener) ExitExpression ¶
func (s *Basepl0Listener) ExitExpression(ctx *ExpressionContext)
ExitExpression is called when production expression is exited.
func (*Basepl0Listener) ExitFactor ¶
func (s *Basepl0Listener) ExitFactor(ctx *FactorContext)
ExitFactor is called when production factor is exited.
func (*Basepl0Listener) ExitIdent ¶
func (s *Basepl0Listener) ExitIdent(ctx *IdentContext)
ExitIdent is called when production ident is exited.
func (*Basepl0Listener) ExitIfstmt ¶
func (s *Basepl0Listener) ExitIfstmt(ctx *IfstmtContext)
ExitIfstmt is called when production ifstmt is exited.
func (*Basepl0Listener) ExitNumber ¶
func (s *Basepl0Listener) ExitNumber(ctx *NumberContext)
ExitNumber is called when production number is exited.
func (*Basepl0Listener) ExitProcedure ¶
func (s *Basepl0Listener) ExitProcedure(ctx *ProcedureContext)
ExitProcedure is called when production procedure is exited.
func (*Basepl0Listener) ExitProgram ¶
func (s *Basepl0Listener) ExitProgram(ctx *ProgramContext)
ExitProgram is called when production program is exited.
func (*Basepl0Listener) ExitQstmt ¶
func (s *Basepl0Listener) ExitQstmt(ctx *QstmtContext)
ExitQstmt is called when production qstmt is exited.
func (*Basepl0Listener) ExitStatement ¶
func (s *Basepl0Listener) ExitStatement(ctx *StatementContext)
ExitStatement is called when production statement is exited.
func (*Basepl0Listener) ExitTerm ¶
func (s *Basepl0Listener) ExitTerm(ctx *TermContext)
ExitTerm is called when production term is exited.
func (*Basepl0Listener) ExitVars ¶
func (s *Basepl0Listener) ExitVars(ctx *VarsContext)
ExitVars is called when production vars is exited.
func (*Basepl0Listener) ExitWhilestmt ¶
func (s *Basepl0Listener) ExitWhilestmt(ctx *WhilestmtContext)
ExitWhilestmt is called when production whilestmt is exited.
func (*Basepl0Listener) ExitWritestmt ¶
func (s *Basepl0Listener) ExitWritestmt(ctx *WritestmtContext)
ExitWritestmt is called when production writestmt is exited.
func (*Basepl0Listener) VisitErrorNode ¶
func (s *Basepl0Listener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*Basepl0Listener) VisitTerminal ¶
func (s *Basepl0Listener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type BeginstmtContext ¶
type BeginstmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewBeginstmtContext ¶
func NewBeginstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BeginstmtContext
func NewEmptyBeginstmtContext ¶
func NewEmptyBeginstmtContext() *BeginstmtContext
func (*BeginstmtContext) AllStatement ¶
func (s *BeginstmtContext) AllStatement() []IStatementContext
func (*BeginstmtContext) BEGIN ¶
func (s *BeginstmtContext) BEGIN() antlr.TerminalNode
func (*BeginstmtContext) END ¶
func (s *BeginstmtContext) END() antlr.TerminalNode
func (*BeginstmtContext) EnterRule ¶
func (s *BeginstmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*BeginstmtContext) ExitRule ¶
func (s *BeginstmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*BeginstmtContext) GetParser ¶
func (s *BeginstmtContext) GetParser() antlr.Parser
func (*BeginstmtContext) GetRuleContext ¶
func (s *BeginstmtContext) GetRuleContext() antlr.RuleContext
func (*BeginstmtContext) IsBeginstmtContext ¶
func (*BeginstmtContext) IsBeginstmtContext()
func (*BeginstmtContext) Statement ¶
func (s *BeginstmtContext) Statement(i int) IStatementContext
func (*BeginstmtContext) ToStringTree ¶
func (s *BeginstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
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) AllProcedure ¶
func (s *BlockContext) AllProcedure() []IProcedureContext
func (*BlockContext) Consts ¶
func (s *BlockContext) Consts() IConstsContext
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) Procedure ¶
func (s *BlockContext) Procedure(i int) IProcedureContext
func (*BlockContext) Statement ¶
func (s *BlockContext) Statement() IStatementContext
func (*BlockContext) ToStringTree ¶
func (s *BlockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*BlockContext) Vars ¶
func (s *BlockContext) Vars() IVarsContext
type CallstmtContext ¶
type CallstmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCallstmtContext ¶
func NewCallstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CallstmtContext
func NewEmptyCallstmtContext ¶
func NewEmptyCallstmtContext() *CallstmtContext
func (*CallstmtContext) CALL ¶
func (s *CallstmtContext) CALL() antlr.TerminalNode
func (*CallstmtContext) EnterRule ¶
func (s *CallstmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*CallstmtContext) ExitRule ¶
func (s *CallstmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*CallstmtContext) GetParser ¶
func (s *CallstmtContext) GetParser() antlr.Parser
func (*CallstmtContext) GetRuleContext ¶
func (s *CallstmtContext) GetRuleContext() antlr.RuleContext
func (*CallstmtContext) Ident ¶
func (s *CallstmtContext) Ident() IIdentContext
func (*CallstmtContext) IsCallstmtContext ¶
func (*CallstmtContext) IsCallstmtContext()
func (*CallstmtContext) ToStringTree ¶
func (s *CallstmtContext) 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) 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) ODD ¶
func (s *ConditionContext) ODD() antlr.TerminalNode
func (*ConditionContext) ToStringTree ¶
func (s *ConditionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ConstsContext ¶
type ConstsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewConstsContext ¶
func NewConstsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConstsContext
func NewEmptyConstsContext ¶
func NewEmptyConstsContext() *ConstsContext
func (*ConstsContext) AllIdent ¶
func (s *ConstsContext) AllIdent() []IIdentContext
func (*ConstsContext) AllNumber ¶
func (s *ConstsContext) AllNumber() []INumberContext
func (*ConstsContext) CONST ¶
func (s *ConstsContext) CONST() antlr.TerminalNode
func (*ConstsContext) EnterRule ¶
func (s *ConstsContext) EnterRule(listener antlr.ParseTreeListener)
func (*ConstsContext) ExitRule ¶
func (s *ConstsContext) ExitRule(listener antlr.ParseTreeListener)
func (*ConstsContext) GetParser ¶
func (s *ConstsContext) GetParser() antlr.Parser
func (*ConstsContext) GetRuleContext ¶
func (s *ConstsContext) GetRuleContext() antlr.RuleContext
func (*ConstsContext) Ident ¶
func (s *ConstsContext) Ident(i int) IIdentContext
func (*ConstsContext) IsConstsContext ¶
func (*ConstsContext) IsConstsContext()
func (*ConstsContext) Number ¶
func (s *ConstsContext) Number(i int) INumberContext
func (*ConstsContext) ToStringTree ¶
func (s *ConstsContext) 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) AllTerm ¶
func (s *ExpressionContext) AllTerm() []ITermContext
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) Term ¶
func (s *ExpressionContext) Term(i int) ITermContext
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) 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) GetParser ¶
func (s *FactorContext) GetParser() antlr.Parser
func (*FactorContext) GetRuleContext ¶
func (s *FactorContext) GetRuleContext() antlr.RuleContext
func (*FactorContext) Ident ¶
func (s *FactorContext) Ident() IIdentContext
func (*FactorContext) IsFactorContext ¶
func (*FactorContext) IsFactorContext()
func (*FactorContext) Number ¶
func (s *FactorContext) Number() INumberContext
func (*FactorContext) ToStringTree ¶
func (s *FactorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IAssignstmtContext ¶
type IAssignstmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAssignstmtContext differentiates from other interfaces. IsAssignstmtContext() }
IAssignstmtContext is an interface to support dynamic dispatch.
type IBangstmtContext ¶
type IBangstmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBangstmtContext differentiates from other interfaces. IsBangstmtContext() }
IBangstmtContext is an interface to support dynamic dispatch.
type IBeginstmtContext ¶
type IBeginstmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsBeginstmtContext differentiates from other interfaces. IsBeginstmtContext() }
IBeginstmtContext 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 ICallstmtContext ¶
type ICallstmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCallstmtContext differentiates from other interfaces. IsCallstmtContext() }
ICallstmtContext 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 IConstsContext ¶
type IConstsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsConstsContext differentiates from other interfaces. IsConstsContext() }
IConstsContext 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 IIdentContext ¶
type IIdentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIdentContext differentiates from other interfaces. IsIdentContext() }
IIdentContext is an interface to support dynamic dispatch.
type IIfstmtContext ¶
type IIfstmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIfstmtContext differentiates from other interfaces. IsIfstmtContext() }
IIfstmtContext 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 IProcedureContext ¶
type IProcedureContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProcedureContext differentiates from other interfaces. IsProcedureContext() }
IProcedureContext 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 IQstmtContext ¶
type IQstmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsQstmtContext differentiates from other interfaces. IsQstmtContext() }
IQstmtContext 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 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 IVarsContext ¶
type IVarsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsVarsContext differentiates from other interfaces. IsVarsContext() }
IVarsContext is an interface to support dynamic dispatch.
type IWhilestmtContext ¶
type IWhilestmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsWhilestmtContext differentiates from other interfaces. IsWhilestmtContext() }
IWhilestmtContext is an interface to support dynamic dispatch.
type IWritestmtContext ¶
type IWritestmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsWritestmtContext differentiates from other interfaces. IsWritestmtContext() }
IWritestmtContext is an interface to support dynamic dispatch.
type IdentContext ¶
type IdentContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIdentContext ¶
func NewEmptyIdentContext() *IdentContext
func NewIdentContext ¶
func NewIdentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentContext
func (*IdentContext) EnterRule ¶
func (s *IdentContext) EnterRule(listener antlr.ParseTreeListener)
func (*IdentContext) ExitRule ¶
func (s *IdentContext) ExitRule(listener antlr.ParseTreeListener)
func (*IdentContext) GetParser ¶
func (s *IdentContext) GetParser() antlr.Parser
func (*IdentContext) GetRuleContext ¶
func (s *IdentContext) GetRuleContext() antlr.RuleContext
func (*IdentContext) IsIdentContext ¶
func (*IdentContext) IsIdentContext()
func (*IdentContext) STRING ¶
func (s *IdentContext) STRING() antlr.TerminalNode
func (*IdentContext) ToStringTree ¶
func (s *IdentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IfstmtContext ¶
type IfstmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIfstmtContext ¶
func NewEmptyIfstmtContext() *IfstmtContext
func NewIfstmtContext ¶
func NewIfstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfstmtContext
func (*IfstmtContext) Condition ¶
func (s *IfstmtContext) Condition() IConditionContext
func (*IfstmtContext) EnterRule ¶
func (s *IfstmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*IfstmtContext) ExitRule ¶
func (s *IfstmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*IfstmtContext) GetParser ¶
func (s *IfstmtContext) GetParser() antlr.Parser
func (*IfstmtContext) GetRuleContext ¶
func (s *IfstmtContext) GetRuleContext() antlr.RuleContext
func (*IfstmtContext) IF ¶
func (s *IfstmtContext) IF() antlr.TerminalNode
func (*IfstmtContext) IsIfstmtContext ¶
func (*IfstmtContext) IsIfstmtContext()
func (*IfstmtContext) Statement ¶
func (s *IfstmtContext) Statement() IStatementContext
func (*IfstmtContext) THEN ¶
func (s *IfstmtContext) THEN() antlr.TerminalNode
func (*IfstmtContext) ToStringTree ¶
func (s *IfstmtContext) 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 ProcedureContext ¶
type ProcedureContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProcedureContext ¶
func NewEmptyProcedureContext() *ProcedureContext
func NewProcedureContext ¶
func NewProcedureContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProcedureContext
func (*ProcedureContext) Block ¶
func (s *ProcedureContext) Block() IBlockContext
func (*ProcedureContext) EnterRule ¶
func (s *ProcedureContext) EnterRule(listener antlr.ParseTreeListener)
func (*ProcedureContext) ExitRule ¶
func (s *ProcedureContext) ExitRule(listener antlr.ParseTreeListener)
func (*ProcedureContext) GetParser ¶
func (s *ProcedureContext) GetParser() antlr.Parser
func (*ProcedureContext) GetRuleContext ¶
func (s *ProcedureContext) GetRuleContext() antlr.RuleContext
func (*ProcedureContext) Ident ¶
func (s *ProcedureContext) Ident() IIdentContext
func (*ProcedureContext) IsProcedureContext ¶
func (*ProcedureContext) IsProcedureContext()
func (*ProcedureContext) PROCEDURE ¶
func (s *ProcedureContext) PROCEDURE() antlr.TerminalNode
func (*ProcedureContext) ToStringTree ¶
func (s *ProcedureContext) 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) Block ¶
func (s *ProgramContext) Block() IBlockContext
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) ToStringTree ¶
func (s *ProgramContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type QstmtContext ¶
type QstmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyQstmtContext ¶
func NewEmptyQstmtContext() *QstmtContext
func NewQstmtContext ¶
func NewQstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QstmtContext
func (*QstmtContext) EnterRule ¶
func (s *QstmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*QstmtContext) ExitRule ¶
func (s *QstmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*QstmtContext) GetParser ¶
func (s *QstmtContext) GetParser() antlr.Parser
func (*QstmtContext) GetRuleContext ¶
func (s *QstmtContext) GetRuleContext() antlr.RuleContext
func (*QstmtContext) Ident ¶
func (s *QstmtContext) Ident() IIdentContext
func (*QstmtContext) IsQstmtContext ¶
func (*QstmtContext) IsQstmtContext()
func (*QstmtContext) ToStringTree ¶
func (s *QstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type StatementContext ¶
type StatementContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyStatementContext ¶
func NewEmptyStatementContext() *StatementContext
func NewStatementContext ¶
func NewStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StatementContext
func (*StatementContext) Assignstmt ¶
func (s *StatementContext) Assignstmt() IAssignstmtContext
func (*StatementContext) Bangstmt ¶
func (s *StatementContext) Bangstmt() IBangstmtContext
func (*StatementContext) Beginstmt ¶
func (s *StatementContext) Beginstmt() IBeginstmtContext
func (*StatementContext) Callstmt ¶
func (s *StatementContext) Callstmt() ICallstmtContext
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) Ifstmt ¶
func (s *StatementContext) Ifstmt() IIfstmtContext
func (*StatementContext) IsStatementContext ¶
func (*StatementContext) IsStatementContext()
func (*StatementContext) Qstmt ¶
func (s *StatementContext) Qstmt() IQstmtContext
func (*StatementContext) ToStringTree ¶
func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*StatementContext) Whilestmt ¶
func (s *StatementContext) Whilestmt() IWhilestmtContext
func (*StatementContext) Writestmt ¶
func (s *StatementContext) Writestmt() IWritestmtContext
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) 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) ToStringTree ¶
func (s *TermContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type VarsContext ¶
type VarsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyVarsContext ¶
func NewEmptyVarsContext() *VarsContext
func NewVarsContext ¶
func NewVarsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VarsContext
func (*VarsContext) AllIdent ¶
func (s *VarsContext) AllIdent() []IIdentContext
func (*VarsContext) EnterRule ¶
func (s *VarsContext) EnterRule(listener antlr.ParseTreeListener)
func (*VarsContext) ExitRule ¶
func (s *VarsContext) ExitRule(listener antlr.ParseTreeListener)
func (*VarsContext) GetParser ¶
func (s *VarsContext) GetParser() antlr.Parser
func (*VarsContext) GetRuleContext ¶
func (s *VarsContext) GetRuleContext() antlr.RuleContext
func (*VarsContext) Ident ¶
func (s *VarsContext) Ident(i int) IIdentContext
func (*VarsContext) IsVarsContext ¶
func (*VarsContext) IsVarsContext()
func (*VarsContext) ToStringTree ¶
func (s *VarsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*VarsContext) VAR ¶
func (s *VarsContext) VAR() antlr.TerminalNode
type WhilestmtContext ¶
type WhilestmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyWhilestmtContext ¶
func NewEmptyWhilestmtContext() *WhilestmtContext
func NewWhilestmtContext ¶
func NewWhilestmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *WhilestmtContext
func (*WhilestmtContext) Condition ¶
func (s *WhilestmtContext) Condition() IConditionContext
func (*WhilestmtContext) DO ¶
func (s *WhilestmtContext) DO() antlr.TerminalNode
func (*WhilestmtContext) EnterRule ¶
func (s *WhilestmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*WhilestmtContext) ExitRule ¶
func (s *WhilestmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*WhilestmtContext) GetParser ¶
func (s *WhilestmtContext) GetParser() antlr.Parser
func (*WhilestmtContext) GetRuleContext ¶
func (s *WhilestmtContext) GetRuleContext() antlr.RuleContext
func (*WhilestmtContext) IsWhilestmtContext ¶
func (*WhilestmtContext) IsWhilestmtContext()
func (*WhilestmtContext) Statement ¶
func (s *WhilestmtContext) Statement() IStatementContext
func (*WhilestmtContext) ToStringTree ¶
func (s *WhilestmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*WhilestmtContext) WHILE ¶
func (s *WhilestmtContext) WHILE() antlr.TerminalNode
type WritestmtContext ¶
type WritestmtContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyWritestmtContext ¶
func NewEmptyWritestmtContext() *WritestmtContext
func NewWritestmtContext ¶
func NewWritestmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *WritestmtContext
func (*WritestmtContext) EnterRule ¶
func (s *WritestmtContext) EnterRule(listener antlr.ParseTreeListener)
func (*WritestmtContext) ExitRule ¶
func (s *WritestmtContext) ExitRule(listener antlr.ParseTreeListener)
func (*WritestmtContext) GetParser ¶
func (s *WritestmtContext) GetParser() antlr.Parser
func (*WritestmtContext) GetRuleContext ¶
func (s *WritestmtContext) GetRuleContext() antlr.RuleContext
func (*WritestmtContext) Ident ¶
func (s *WritestmtContext) Ident() IIdentContext
func (*WritestmtContext) IsWritestmtContext ¶
func (*WritestmtContext) IsWritestmtContext()
func (*WritestmtContext) ToStringTree ¶
func (s *WritestmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*WritestmtContext) WRITE ¶
func (s *WritestmtContext) WRITE() antlr.TerminalNode