b

package
v0.0.0-...-4c43aeb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Example
package main

import (
	"bramp.net/antlr4/b"

	"fmt"
	"github.com/antlr/antlr4/runtime/Go/antlr"
)

type exampleListener struct {
	*b.BasebListener
}

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 := b.NewbLexer(is)
	stream := antlr.NewCommonTokenStream(lexer, antlr.TokenDefaultChannel)

	// Create the Parser
	p := b.NewbParser(stream)
	p.BuildParseTrees = true
	p.AddErrorListener(antlr.NewDiagnosticErrorListener(true))

	// Finally walk the tree
	tree := p.Program()
	antlr.ParseTreeWalkerDefault.Walk(&exampleListener{}, tree)
}
Output:

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewbLexer

func NewbLexer(input antlr.CharStream) *bLexer

func NewbParser

func NewbParser(input antlr.TokenStream) *bParser

Types

type AssignContext

type AssignContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAssignContext

func NewAssignContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AssignContext

func NewEmptyAssignContext

func NewEmptyAssignContext() *AssignContext

func (*AssignContext) Binary

func (s *AssignContext) Binary() IBinaryContext

func (*AssignContext) EnterRule

func (s *AssignContext) EnterRule(listener antlr.ParseTreeListener)

func (*AssignContext) ExitRule

func (s *AssignContext) ExitRule(listener antlr.ParseTreeListener)

func (*AssignContext) GetParser

func (s *AssignContext) GetParser() antlr.Parser

func (*AssignContext) GetRuleContext

func (s *AssignContext) GetRuleContext() antlr.RuleContext

func (*AssignContext) IsAssignContext

func (*AssignContext) IsAssignContext()

func (*AssignContext) ToStringTree

func (s *AssignContext) 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) Assign

func (s *AssignmentContext) Assign() IAssignContext

func (*AssignmentContext) EnterRule

func (s *AssignmentContext) EnterRule(listener antlr.ParseTreeListener)

func (*AssignmentContext) ExitRule

func (s *AssignmentContext) ExitRule(listener antlr.ParseTreeListener)

func (*AssignmentContext) GetParser

func (s *AssignmentContext) GetParser() antlr.Parser

func (*AssignmentContext) GetRuleContext

func (s *AssignmentContext) GetRuleContext() antlr.RuleContext

func (*AssignmentContext) IsAssignmentContext

func (*AssignmentContext) IsAssignmentContext()

func (*AssignmentContext) Name

func (s *AssignmentContext) Name() INameContext

func (*AssignmentContext) Rvalue

func (s *AssignmentContext) Rvalue() IRvalueContext

func (*AssignmentContext) ToStringTree

func (s *AssignmentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type AutosmtContext

type AutosmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAutosmtContext

func NewAutosmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AutosmtContext

func NewEmptyAutosmtContext

func NewEmptyAutosmtContext() *AutosmtContext

func (*AutosmtContext) AllConstant

func (s *AutosmtContext) AllConstant() []IConstantContext

func (*AutosmtContext) AllName

func (s *AutosmtContext) AllName() []INameContext

func (*AutosmtContext) Constant

func (s *AutosmtContext) Constant(i int) IConstantContext

func (*AutosmtContext) EnterRule

func (s *AutosmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*AutosmtContext) ExitRule

func (s *AutosmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*AutosmtContext) GetParser

func (s *AutosmtContext) GetParser() antlr.Parser

func (*AutosmtContext) GetRuleContext

func (s *AutosmtContext) GetRuleContext() antlr.RuleContext

func (*AutosmtContext) IsAutosmtContext

func (*AutosmtContext) IsAutosmtContext()

func (*AutosmtContext) Name

func (s *AutosmtContext) Name(i int) INameContext

func (*AutosmtContext) ToStringTree

func (s *AutosmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BasebListener

type BasebListener struct{}

BasebListener is a complete listener for a parse tree produced by bParser.

func (*BasebListener) EnterAssign

func (s *BasebListener) EnterAssign(ctx *AssignContext)

EnterAssign is called when production assign is entered.

func (*BasebListener) EnterAssignment

func (s *BasebListener) EnterAssignment(ctx *AssignmentContext)

EnterAssignment is called when production assignment is entered.

func (*BasebListener) EnterAutosmt

func (s *BasebListener) EnterAutosmt(ctx *AutosmtContext)

EnterAutosmt is called when production autosmt is entered.

func (*BasebListener) EnterBinary

func (s *BasebListener) EnterBinary(ctx *BinaryContext)

EnterBinary is called when production binary is entered.

func (*BasebListener) EnterBlockstmt

func (s *BasebListener) EnterBlockstmt(ctx *BlockstmtContext)

EnterBlockstmt is called when production blockstmt is entered.

func (*BasebListener) EnterCasestmt

func (s *BasebListener) EnterCasestmt(ctx *CasestmtContext)

EnterCasestmt is called when production casestmt is entered.

func (*BasebListener) EnterComparison

func (s *BasebListener) EnterComparison(ctx *ComparisonContext)

EnterComparison is called when production comparison is entered.

func (*BasebListener) EnterConstant

func (s *BasebListener) EnterConstant(ctx *ConstantContext)

EnterConstant is called when production constant is entered.

func (*BasebListener) EnterDefinition

func (s *BasebListener) EnterDefinition(ctx *DefinitionContext)

EnterDefinition is called when production definition is entered.

func (*BasebListener) EnterEveryRule

func (s *BasebListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BasebListener) EnterExpression

func (s *BasebListener) EnterExpression(ctx *ExpressionContext)

EnterExpression is called when production expression is entered.

func (*BasebListener) EnterExpressionstmt

func (s *BasebListener) EnterExpressionstmt(ctx *ExpressionstmtContext)

EnterExpressionstmt is called when production expressionstmt is entered.

func (*BasebListener) EnterExternsmt

func (s *BasebListener) EnterExternsmt(ctx *ExternsmtContext)

EnterExternsmt is called when production externsmt is entered.

func (*BasebListener) EnterFunctioninvocation

func (s *BasebListener) EnterFunctioninvocation(ctx *FunctioninvocationContext)

EnterFunctioninvocation is called when production functioninvocation is entered.

func (*BasebListener) EnterFunctionparameters

func (s *BasebListener) EnterFunctionparameters(ctx *FunctionparametersContext)

EnterFunctionparameters is called when production functionparameters is entered.

func (*BasebListener) EnterGotostmt

func (s *BasebListener) EnterGotostmt(ctx *GotostmtContext)

EnterGotostmt is called when production gotostmt is entered.

func (*BasebListener) EnterIfstmt

func (s *BasebListener) EnterIfstmt(ctx *IfstmtContext)

EnterIfstmt is called when production ifstmt is entered.

func (*BasebListener) EnterIncdec

func (s *BasebListener) EnterIncdec(ctx *IncdecContext)

EnterIncdec is called when production incdec is entered.

func (*BasebListener) EnterIval

func (s *BasebListener) EnterIval(ctx *IvalContext)

EnterIval is called when production ival is entered.

func (*BasebListener) EnterLvalue

func (s *BasebListener) EnterLvalue(ctx *LvalueContext)

EnterLvalue is called when production lvalue is entered.

func (*BasebListener) EnterName

func (s *BasebListener) EnterName(ctx *NameContext)

EnterName is called when production name is entered.

func (*BasebListener) EnterNullstmt

func (s *BasebListener) EnterNullstmt(ctx *NullstmtContext)

EnterNullstmt is called when production nullstmt is entered.

func (*BasebListener) EnterProgram

func (s *BasebListener) EnterProgram(ctx *ProgramContext)

EnterProgram is called when production program is entered.

func (*BasebListener) EnterReturnstmt

func (s *BasebListener) EnterReturnstmt(ctx *ReturnstmtContext)

EnterReturnstmt is called when production returnstmt is entered.

func (*BasebListener) EnterRvalue

func (s *BasebListener) EnterRvalue(ctx *RvalueContext)

EnterRvalue is called when production rvalue is entered.

func (*BasebListener) EnterStatement

func (s *BasebListener) EnterStatement(ctx *StatementContext)

EnterStatement is called when production statement is entered.

func (*BasebListener) EnterSwitchstmt

func (s *BasebListener) EnterSwitchstmt(ctx *SwitchstmtContext)

EnterSwitchstmt is called when production switchstmt is entered.

func (*BasebListener) EnterTernary

func (s *BasebListener) EnterTernary(ctx *TernaryContext)

EnterTernary is called when production ternary is entered.

func (*BasebListener) EnterUnary

func (s *BasebListener) EnterUnary(ctx *UnaryContext)

EnterUnary is called when production unary is entered.

func (*BasebListener) EnterWhilestmt

func (s *BasebListener) EnterWhilestmt(ctx *WhilestmtContext)

EnterWhilestmt is called when production whilestmt is entered.

func (*BasebListener) ExitAssign

func (s *BasebListener) ExitAssign(ctx *AssignContext)

ExitAssign is called when production assign is exited.

func (*BasebListener) ExitAssignment

func (s *BasebListener) ExitAssignment(ctx *AssignmentContext)

ExitAssignment is called when production assignment is exited.

func (*BasebListener) ExitAutosmt

func (s *BasebListener) ExitAutosmt(ctx *AutosmtContext)

ExitAutosmt is called when production autosmt is exited.

func (*BasebListener) ExitBinary

func (s *BasebListener) ExitBinary(ctx *BinaryContext)

ExitBinary is called when production binary is exited.

func (*BasebListener) ExitBlockstmt

func (s *BasebListener) ExitBlockstmt(ctx *BlockstmtContext)

ExitBlockstmt is called when production blockstmt is exited.

func (*BasebListener) ExitCasestmt

func (s *BasebListener) ExitCasestmt(ctx *CasestmtContext)

ExitCasestmt is called when production casestmt is exited.

func (*BasebListener) ExitComparison

func (s *BasebListener) ExitComparison(ctx *ComparisonContext)

ExitComparison is called when production comparison is exited.

func (*BasebListener) ExitConstant

func (s *BasebListener) ExitConstant(ctx *ConstantContext)

ExitConstant is called when production constant is exited.

func (*BasebListener) ExitDefinition

func (s *BasebListener) ExitDefinition(ctx *DefinitionContext)

ExitDefinition is called when production definition is exited.

func (*BasebListener) ExitEveryRule

func (s *BasebListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BasebListener) ExitExpression

func (s *BasebListener) ExitExpression(ctx *ExpressionContext)

ExitExpression is called when production expression is exited.

func (*BasebListener) ExitExpressionstmt

func (s *BasebListener) ExitExpressionstmt(ctx *ExpressionstmtContext)

ExitExpressionstmt is called when production expressionstmt is exited.

func (*BasebListener) ExitExternsmt

func (s *BasebListener) ExitExternsmt(ctx *ExternsmtContext)

ExitExternsmt is called when production externsmt is exited.

func (*BasebListener) ExitFunctioninvocation

func (s *BasebListener) ExitFunctioninvocation(ctx *FunctioninvocationContext)

ExitFunctioninvocation is called when production functioninvocation is exited.

func (*BasebListener) ExitFunctionparameters

func (s *BasebListener) ExitFunctionparameters(ctx *FunctionparametersContext)

ExitFunctionparameters is called when production functionparameters is exited.

func (*BasebListener) ExitGotostmt

func (s *BasebListener) ExitGotostmt(ctx *GotostmtContext)

ExitGotostmt is called when production gotostmt is exited.

func (*BasebListener) ExitIfstmt

func (s *BasebListener) ExitIfstmt(ctx *IfstmtContext)

ExitIfstmt is called when production ifstmt is exited.

func (*BasebListener) ExitIncdec

func (s *BasebListener) ExitIncdec(ctx *IncdecContext)

ExitIncdec is called when production incdec is exited.

func (*BasebListener) ExitIval

func (s *BasebListener) ExitIval(ctx *IvalContext)

ExitIval is called when production ival is exited.

func (*BasebListener) ExitLvalue

func (s *BasebListener) ExitLvalue(ctx *LvalueContext)

ExitLvalue is called when production lvalue is exited.

func (*BasebListener) ExitName

func (s *BasebListener) ExitName(ctx *NameContext)

ExitName is called when production name is exited.

func (*BasebListener) ExitNullstmt

func (s *BasebListener) ExitNullstmt(ctx *NullstmtContext)

ExitNullstmt is called when production nullstmt is exited.

func (*BasebListener) ExitProgram

func (s *BasebListener) ExitProgram(ctx *ProgramContext)

ExitProgram is called when production program is exited.

func (*BasebListener) ExitReturnstmt

func (s *BasebListener) ExitReturnstmt(ctx *ReturnstmtContext)

ExitReturnstmt is called when production returnstmt is exited.

func (*BasebListener) ExitRvalue

func (s *BasebListener) ExitRvalue(ctx *RvalueContext)

ExitRvalue is called when production rvalue is exited.

func (*BasebListener) ExitStatement

func (s *BasebListener) ExitStatement(ctx *StatementContext)

ExitStatement is called when production statement is exited.

func (*BasebListener) ExitSwitchstmt

func (s *BasebListener) ExitSwitchstmt(ctx *SwitchstmtContext)

ExitSwitchstmt is called when production switchstmt is exited.

func (*BasebListener) ExitTernary

func (s *BasebListener) ExitTernary(ctx *TernaryContext)

ExitTernary is called when production ternary is exited.

func (*BasebListener) ExitUnary

func (s *BasebListener) ExitUnary(ctx *UnaryContext)

ExitUnary is called when production unary is exited.

func (*BasebListener) ExitWhilestmt

func (s *BasebListener) ExitWhilestmt(ctx *WhilestmtContext)

ExitWhilestmt is called when production whilestmt is exited.

func (*BasebListener) VisitErrorNode

func (s *BasebListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BasebListener) VisitTerminal

func (s *BasebListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BinaryContext

type BinaryContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBinaryContext

func NewBinaryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BinaryContext

func NewEmptyBinaryContext

func NewEmptyBinaryContext() *BinaryContext

func (*BinaryContext) EnterRule

func (s *BinaryContext) EnterRule(listener antlr.ParseTreeListener)

func (*BinaryContext) ExitRule

func (s *BinaryContext) ExitRule(listener antlr.ParseTreeListener)

func (*BinaryContext) GetParser

func (s *BinaryContext) GetParser() antlr.Parser

func (*BinaryContext) GetRuleContext

func (s *BinaryContext) GetRuleContext() antlr.RuleContext

func (*BinaryContext) IsBinaryContext

func (*BinaryContext) IsBinaryContext()

func (*BinaryContext) ToStringTree

func (s *BinaryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BlockstmtContext

type BlockstmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewBlockstmtContext

func NewBlockstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BlockstmtContext

func NewEmptyBlockstmtContext

func NewEmptyBlockstmtContext() *BlockstmtContext

func (*BlockstmtContext) AllStatement

func (s *BlockstmtContext) AllStatement() []IStatementContext

func (*BlockstmtContext) EnterRule

func (s *BlockstmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*BlockstmtContext) ExitRule

func (s *BlockstmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*BlockstmtContext) GetParser

func (s *BlockstmtContext) GetParser() antlr.Parser

func (*BlockstmtContext) GetRuleContext

func (s *BlockstmtContext) GetRuleContext() antlr.RuleContext

func (*BlockstmtContext) IsBlockstmtContext

func (*BlockstmtContext) IsBlockstmtContext()

func (*BlockstmtContext) Statement

func (s *BlockstmtContext) Statement(i int) IStatementContext

func (*BlockstmtContext) ToStringTree

func (s *BlockstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type CasestmtContext

type CasestmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewCasestmtContext

func NewCasestmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CasestmtContext

func NewEmptyCasestmtContext

func NewEmptyCasestmtContext() *CasestmtContext

func (*CasestmtContext) Constant

func (s *CasestmtContext) Constant() IConstantContext

func (*CasestmtContext) EnterRule

func (s *CasestmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*CasestmtContext) ExitRule

func (s *CasestmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*CasestmtContext) GetParser

func (s *CasestmtContext) GetParser() antlr.Parser

func (*CasestmtContext) GetRuleContext

func (s *CasestmtContext) GetRuleContext() antlr.RuleContext

func (*CasestmtContext) IsCasestmtContext

func (*CasestmtContext) IsCasestmtContext()

func (*CasestmtContext) Statement

func (s *CasestmtContext) Statement() IStatementContext

func (*CasestmtContext) ToStringTree

func (s *CasestmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ComparisonContext

type ComparisonContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewComparisonContext

func NewComparisonContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ComparisonContext

func NewEmptyComparisonContext

func NewEmptyComparisonContext() *ComparisonContext

func (*ComparisonContext) Binary

func (s *ComparisonContext) Binary() IBinaryContext

func (*ComparisonContext) EnterRule

func (s *ComparisonContext) EnterRule(listener antlr.ParseTreeListener)

func (*ComparisonContext) ExitRule

func (s *ComparisonContext) ExitRule(listener antlr.ParseTreeListener)

func (*ComparisonContext) Expression

func (s *ComparisonContext) Expression() IExpressionContext

func (*ComparisonContext) GetParser

func (s *ComparisonContext) GetParser() antlr.Parser

func (*ComparisonContext) GetRuleContext

func (s *ComparisonContext) GetRuleContext() antlr.RuleContext

func (*ComparisonContext) IsComparisonContext

func (*ComparisonContext) IsComparisonContext()

func (*ComparisonContext) Rvalue

func (s *ComparisonContext) Rvalue() IRvalueContext

func (*ComparisonContext) ToStringTree

func (s *ComparisonContext) 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) INT

func (*ConstantContext) IsConstantContext

func (*ConstantContext) IsConstantContext()

func (*ConstantContext) STRING1

func (s *ConstantContext) STRING1() antlr.TerminalNode

func (*ConstantContext) STRING2

func (s *ConstantContext) STRING2() antlr.TerminalNode

func (*ConstantContext) ToStringTree

func (s *ConstantContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type DefinitionContext

type DefinitionContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewDefinitionContext

func NewDefinitionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DefinitionContext

func NewEmptyDefinitionContext

func NewEmptyDefinitionContext() *DefinitionContext

func (*DefinitionContext) AllIval

func (s *DefinitionContext) AllIval() []IIvalContext

func (*DefinitionContext) AllName

func (s *DefinitionContext) AllName() []INameContext

func (*DefinitionContext) Constant

func (s *DefinitionContext) Constant() IConstantContext

func (*DefinitionContext) EnterRule

func (s *DefinitionContext) EnterRule(listener antlr.ParseTreeListener)

func (*DefinitionContext) ExitRule

func (s *DefinitionContext) ExitRule(listener antlr.ParseTreeListener)

func (*DefinitionContext) GetParser

func (s *DefinitionContext) GetParser() antlr.Parser

func (*DefinitionContext) GetRuleContext

func (s *DefinitionContext) GetRuleContext() antlr.RuleContext

func (*DefinitionContext) IsDefinitionContext

func (*DefinitionContext) IsDefinitionContext()

func (*DefinitionContext) Ival

func (s *DefinitionContext) Ival(i int) IIvalContext

func (*DefinitionContext) Name

func (s *DefinitionContext) Name(i int) INameContext

func (*DefinitionContext) Statement

func (s *DefinitionContext) Statement() IStatementContext

func (*DefinitionContext) ToStringTree

func (s *DefinitionContext) 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) Constant

func (s *ExpressionContext) Constant() IConstantContext

func (*ExpressionContext) EnterRule

func (s *ExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*ExpressionContext) ExitRule

func (s *ExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*ExpressionContext) Functioninvocation

func (s *ExpressionContext) Functioninvocation() IFunctioninvocationContext

func (*ExpressionContext) GetParser

func (s *ExpressionContext) GetParser() antlr.Parser

func (*ExpressionContext) GetRuleContext

func (s *ExpressionContext) GetRuleContext() antlr.RuleContext

func (*ExpressionContext) Incdec

func (s *ExpressionContext) Incdec() IIncdecContext

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) Name

func (s *ExpressionContext) Name() INameContext

func (*ExpressionContext) Rvalue

func (s *ExpressionContext) Rvalue() IRvalueContext

func (*ExpressionContext) ToStringTree

func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*ExpressionContext) Unary

func (s *ExpressionContext) Unary() IUnaryContext

type ExpressionstmtContext

type ExpressionstmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExpressionstmtContext

func NewEmptyExpressionstmtContext() *ExpressionstmtContext

func NewExpressionstmtContext

func NewExpressionstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionstmtContext

func (*ExpressionstmtContext) EnterRule

func (s *ExpressionstmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*ExpressionstmtContext) ExitRule

func (s *ExpressionstmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*ExpressionstmtContext) GetParser

func (s *ExpressionstmtContext) GetParser() antlr.Parser

func (*ExpressionstmtContext) GetRuleContext

func (s *ExpressionstmtContext) GetRuleContext() antlr.RuleContext

func (*ExpressionstmtContext) IsExpressionstmtContext

func (*ExpressionstmtContext) IsExpressionstmtContext()

func (*ExpressionstmtContext) Rvalue

func (*ExpressionstmtContext) ToStringTree

func (s *ExpressionstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ExternsmtContext

type ExternsmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExternsmtContext

func NewEmptyExternsmtContext() *ExternsmtContext

func NewExternsmtContext

func NewExternsmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExternsmtContext

func (*ExternsmtContext) AllName

func (s *ExternsmtContext) AllName() []INameContext

func (*ExternsmtContext) EnterRule

func (s *ExternsmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*ExternsmtContext) ExitRule

func (s *ExternsmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*ExternsmtContext) GetParser

func (s *ExternsmtContext) GetParser() antlr.Parser

func (*ExternsmtContext) GetRuleContext

func (s *ExternsmtContext) GetRuleContext() antlr.RuleContext

func (*ExternsmtContext) IsExternsmtContext

func (*ExternsmtContext) IsExternsmtContext()

func (*ExternsmtContext) Name

func (s *ExternsmtContext) Name(i int) INameContext

func (*ExternsmtContext) ToStringTree

func (s *ExternsmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FunctioninvocationContext

type FunctioninvocationContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFunctioninvocationContext

func NewEmptyFunctioninvocationContext() *FunctioninvocationContext

func NewFunctioninvocationContext

func NewFunctioninvocationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctioninvocationContext

func (*FunctioninvocationContext) EnterRule

func (s *FunctioninvocationContext) EnterRule(listener antlr.ParseTreeListener)

func (*FunctioninvocationContext) ExitRule

func (s *FunctioninvocationContext) ExitRule(listener antlr.ParseTreeListener)

func (*FunctioninvocationContext) Functionparameters

func (s *FunctioninvocationContext) Functionparameters() IFunctionparametersContext

func (*FunctioninvocationContext) GetParser

func (s *FunctioninvocationContext) GetParser() antlr.Parser

func (*FunctioninvocationContext) GetRuleContext

func (s *FunctioninvocationContext) GetRuleContext() antlr.RuleContext

func (*FunctioninvocationContext) IsFunctioninvocationContext

func (*FunctioninvocationContext) IsFunctioninvocationContext()

func (*FunctioninvocationContext) Name

func (*FunctioninvocationContext) ToStringTree

func (s *FunctioninvocationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FunctionparametersContext

type FunctionparametersContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFunctionparametersContext

func NewEmptyFunctionparametersContext() *FunctionparametersContext

func NewFunctionparametersContext

func NewFunctionparametersContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionparametersContext

func (*FunctionparametersContext) AllRvalue

func (s *FunctionparametersContext) AllRvalue() []IRvalueContext

func (*FunctionparametersContext) EnterRule

func (s *FunctionparametersContext) EnterRule(listener antlr.ParseTreeListener)

func (*FunctionparametersContext) ExitRule

func (s *FunctionparametersContext) ExitRule(listener antlr.ParseTreeListener)

func (*FunctionparametersContext) GetParser

func (s *FunctionparametersContext) GetParser() antlr.Parser

func (*FunctionparametersContext) GetRuleContext

func (s *FunctionparametersContext) GetRuleContext() antlr.RuleContext

func (*FunctionparametersContext) IsFunctionparametersContext

func (*FunctionparametersContext) IsFunctionparametersContext()

func (*FunctionparametersContext) Rvalue

func (*FunctionparametersContext) ToStringTree

func (s *FunctionparametersContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type GotostmtContext

type GotostmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyGotostmtContext

func NewEmptyGotostmtContext() *GotostmtContext

func NewGotostmtContext

func NewGotostmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *GotostmtContext

func (*GotostmtContext) EnterRule

func (s *GotostmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*GotostmtContext) ExitRule

func (s *GotostmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*GotostmtContext) GetParser

func (s *GotostmtContext) GetParser() antlr.Parser

func (*GotostmtContext) GetRuleContext

func (s *GotostmtContext) GetRuleContext() antlr.RuleContext

func (*GotostmtContext) IsGotostmtContext

func (*GotostmtContext) IsGotostmtContext()

func (*GotostmtContext) Rvalue

func (s *GotostmtContext) Rvalue() IRvalueContext

func (*GotostmtContext) ToStringTree

func (s *GotostmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IAssignContext

type IAssignContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAssignContext differentiates from other interfaces.
	IsAssignContext()
}

IAssignContext 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 IAutosmtContext

type IAutosmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsAutosmtContext differentiates from other interfaces.
	IsAutosmtContext()
}

IAutosmtContext is an interface to support dynamic dispatch.

type IBinaryContext

type IBinaryContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBinaryContext differentiates from other interfaces.
	IsBinaryContext()
}

IBinaryContext is an interface to support dynamic dispatch.

type IBlockstmtContext

type IBlockstmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsBlockstmtContext differentiates from other interfaces.
	IsBlockstmtContext()
}

IBlockstmtContext is an interface to support dynamic dispatch.

type ICasestmtContext

type ICasestmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsCasestmtContext differentiates from other interfaces.
	IsCasestmtContext()
}

ICasestmtContext is an interface to support dynamic dispatch.

type IComparisonContext

type IComparisonContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsComparisonContext differentiates from other interfaces.
	IsComparisonContext()
}

IComparisonContext is an interface to support dynamic dispatch.

type 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 IDefinitionContext

type IDefinitionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsDefinitionContext differentiates from other interfaces.
	IsDefinitionContext()
}

IDefinitionContext 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 IExpressionstmtContext

type IExpressionstmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsExpressionstmtContext differentiates from other interfaces.
	IsExpressionstmtContext()
}

IExpressionstmtContext is an interface to support dynamic dispatch.

type IExternsmtContext

type IExternsmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsExternsmtContext differentiates from other interfaces.
	IsExternsmtContext()
}

IExternsmtContext is an interface to support dynamic dispatch.

type IFunctioninvocationContext

type IFunctioninvocationContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFunctioninvocationContext differentiates from other interfaces.
	IsFunctioninvocationContext()
}

IFunctioninvocationContext is an interface to support dynamic dispatch.

type IFunctionparametersContext

type IFunctionparametersContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFunctionparametersContext differentiates from other interfaces.
	IsFunctionparametersContext()
}

IFunctionparametersContext is an interface to support dynamic dispatch.

type IGotostmtContext

type IGotostmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsGotostmtContext differentiates from other interfaces.
	IsGotostmtContext()
}

IGotostmtContext 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 IIncdecContext

type IIncdecContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsIncdecContext differentiates from other interfaces.
	IsIncdecContext()
}

IIncdecContext is an interface to support dynamic dispatch.

type IIvalContext

type IIvalContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsIvalContext differentiates from other interfaces.
	IsIvalContext()
}

IIvalContext is an interface to support dynamic dispatch.

type ILvalueContext

type ILvalueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsLvalueContext differentiates from other interfaces.
	IsLvalueContext()
}

ILvalueContext is an interface to support dynamic dispatch.

type INameContext

type INameContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsNameContext differentiates from other interfaces.
	IsNameContext()
}

INameContext is an interface to support dynamic dispatch.

type INullstmtContext

type INullstmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsNullstmtContext differentiates from other interfaces.
	IsNullstmtContext()
}

INullstmtContext 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 IReturnstmtContext

type IReturnstmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsReturnstmtContext differentiates from other interfaces.
	IsReturnstmtContext()
}

IReturnstmtContext is an interface to support dynamic dispatch.

type IRvalueContext

type IRvalueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsRvalueContext differentiates from other interfaces.
	IsRvalueContext()
}

IRvalueContext 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 ISwitchstmtContext

type ISwitchstmtContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsSwitchstmtContext differentiates from other interfaces.
	IsSwitchstmtContext()
}

ISwitchstmtContext is an interface to support dynamic dispatch.

type ITernaryContext

type ITernaryContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsTernaryContext differentiates from other interfaces.
	IsTernaryContext()
}

ITernaryContext is an interface to support dynamic dispatch.

type IUnaryContext

type IUnaryContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsUnaryContext differentiates from other interfaces.
	IsUnaryContext()
}

IUnaryContext 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 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) AllStatement

func (s *IfstmtContext) AllStatement() []IStatementContext

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) IsIfstmtContext

func (*IfstmtContext) IsIfstmtContext()

func (*IfstmtContext) Rvalue

func (s *IfstmtContext) Rvalue() IRvalueContext

func (*IfstmtContext) Statement

func (s *IfstmtContext) Statement(i int) IStatementContext

func (*IfstmtContext) ToStringTree

func (s *IfstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IncdecContext

type IncdecContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIncdecContext

func NewEmptyIncdecContext() *IncdecContext

func NewIncdecContext

func NewIncdecContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IncdecContext

func (*IncdecContext) EnterRule

func (s *IncdecContext) EnterRule(listener antlr.ParseTreeListener)

func (*IncdecContext) ExitRule

func (s *IncdecContext) ExitRule(listener antlr.ParseTreeListener)

func (*IncdecContext) GetParser

func (s *IncdecContext) GetParser() antlr.Parser

func (*IncdecContext) GetRuleContext

func (s *IncdecContext) GetRuleContext() antlr.RuleContext

func (*IncdecContext) IsIncdecContext

func (*IncdecContext) IsIncdecContext()

func (*IncdecContext) ToStringTree

func (s *IncdecContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IvalContext

type IvalContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyIvalContext

func NewEmptyIvalContext() *IvalContext

func NewIvalContext

func NewIvalContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IvalContext

func (*IvalContext) Constant

func (s *IvalContext) Constant() IConstantContext

func (*IvalContext) EnterRule

func (s *IvalContext) EnterRule(listener antlr.ParseTreeListener)

func (*IvalContext) ExitRule

func (s *IvalContext) ExitRule(listener antlr.ParseTreeListener)

func (*IvalContext) GetParser

func (s *IvalContext) GetParser() antlr.Parser

func (*IvalContext) GetRuleContext

func (s *IvalContext) GetRuleContext() antlr.RuleContext

func (*IvalContext) IsIvalContext

func (*IvalContext) IsIvalContext()

func (*IvalContext) Name

func (s *IvalContext) Name() INameContext

func (*IvalContext) ToStringTree

func (s *IvalContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type LvalueContext

type LvalueContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyLvalueContext

func NewEmptyLvalueContext() *LvalueContext

func NewLvalueContext

func NewLvalueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LvalueContext

func (*LvalueContext) AllRvalue

func (s *LvalueContext) AllRvalue() []IRvalueContext

func (*LvalueContext) EnterRule

func (s *LvalueContext) EnterRule(listener antlr.ParseTreeListener)

func (*LvalueContext) ExitRule

func (s *LvalueContext) ExitRule(listener antlr.ParseTreeListener)

func (*LvalueContext) GetParser

func (s *LvalueContext) GetParser() antlr.Parser

func (*LvalueContext) GetRuleContext

func (s *LvalueContext) GetRuleContext() antlr.RuleContext

func (*LvalueContext) IsLvalueContext

func (*LvalueContext) IsLvalueContext()

func (*LvalueContext) Name

func (s *LvalueContext) Name() INameContext

func (*LvalueContext) Rvalue

func (s *LvalueContext) Rvalue(i int) IRvalueContext

func (*LvalueContext) ToStringTree

func (s *LvalueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type NameContext

type NameContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyNameContext

func NewEmptyNameContext() *NameContext

func NewNameContext

func NewNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NameContext

func (*NameContext) EnterRule

func (s *NameContext) EnterRule(listener antlr.ParseTreeListener)

func (*NameContext) ExitRule

func (s *NameContext) ExitRule(listener antlr.ParseTreeListener)

func (*NameContext) GetParser

func (s *NameContext) GetParser() antlr.Parser

func (*NameContext) GetRuleContext

func (s *NameContext) GetRuleContext() antlr.RuleContext

func (*NameContext) IsNameContext

func (*NameContext) IsNameContext()

func (*NameContext) NAME

func (s *NameContext) NAME() antlr.TerminalNode

func (*NameContext) ToStringTree

func (s *NameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type NullstmtContext

type NullstmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyNullstmtContext

func NewEmptyNullstmtContext() *NullstmtContext

func NewNullstmtContext

func NewNullstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NullstmtContext

func (*NullstmtContext) EnterRule

func (s *NullstmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*NullstmtContext) ExitRule

func (s *NullstmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*NullstmtContext) GetParser

func (s *NullstmtContext) GetParser() antlr.Parser

func (*NullstmtContext) GetRuleContext

func (s *NullstmtContext) GetRuleContext() antlr.RuleContext

func (*NullstmtContext) IsNullstmtContext

func (*NullstmtContext) IsNullstmtContext()

func (*NullstmtContext) ToStringTree

func (s *NullstmtContext) 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) AllDefinition

func (s *ProgramContext) AllDefinition() []IDefinitionContext

func (*ProgramContext) Definition

func (s *ProgramContext) Definition(i int) IDefinitionContext

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 ReturnstmtContext

type ReturnstmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyReturnstmtContext

func NewEmptyReturnstmtContext() *ReturnstmtContext

func NewReturnstmtContext

func NewReturnstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReturnstmtContext

func (*ReturnstmtContext) EnterRule

func (s *ReturnstmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*ReturnstmtContext) ExitRule

func (s *ReturnstmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*ReturnstmtContext) GetParser

func (s *ReturnstmtContext) GetParser() antlr.Parser

func (*ReturnstmtContext) GetRuleContext

func (s *ReturnstmtContext) GetRuleContext() antlr.RuleContext

func (*ReturnstmtContext) IsReturnstmtContext

func (*ReturnstmtContext) IsReturnstmtContext()

func (*ReturnstmtContext) Rvalue

func (s *ReturnstmtContext) Rvalue() IRvalueContext

func (*ReturnstmtContext) ToStringTree

func (s *ReturnstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type RvalueContext

type RvalueContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyRvalueContext

func NewEmptyRvalueContext() *RvalueContext

func NewRvalueContext

func NewRvalueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RvalueContext

func (*RvalueContext) Assignment

func (s *RvalueContext) Assignment() IAssignmentContext

func (*RvalueContext) Comparison

func (s *RvalueContext) Comparison() IComparisonContext

func (*RvalueContext) EnterRule

func (s *RvalueContext) EnterRule(listener antlr.ParseTreeListener)

func (*RvalueContext) ExitRule

func (s *RvalueContext) ExitRule(listener antlr.ParseTreeListener)

func (*RvalueContext) Expression

func (s *RvalueContext) Expression() IExpressionContext

func (*RvalueContext) GetParser

func (s *RvalueContext) GetParser() antlr.Parser

func (*RvalueContext) GetRuleContext

func (s *RvalueContext) GetRuleContext() antlr.RuleContext

func (*RvalueContext) IsRvalueContext

func (*RvalueContext) IsRvalueContext()

func (*RvalueContext) Ternary

func (s *RvalueContext) Ternary() ITernaryContext

func (*RvalueContext) ToStringTree

func (s *RvalueContext) 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) Autosmt

func (s *StatementContext) Autosmt() IAutosmtContext

func (*StatementContext) Blockstmt

func (s *StatementContext) Blockstmt() IBlockstmtContext

func (*StatementContext) Casestmt

func (s *StatementContext) Casestmt() ICasestmtContext

func (*StatementContext) EnterRule

func (s *StatementContext) EnterRule(listener antlr.ParseTreeListener)

func (*StatementContext) ExitRule

func (s *StatementContext) ExitRule(listener antlr.ParseTreeListener)

func (*StatementContext) Expressionstmt

func (s *StatementContext) Expressionstmt() IExpressionstmtContext

func (*StatementContext) Externsmt

func (s *StatementContext) Externsmt() IExternsmtContext

func (*StatementContext) GetParser

func (s *StatementContext) GetParser() antlr.Parser

func (*StatementContext) GetRuleContext

func (s *StatementContext) GetRuleContext() antlr.RuleContext

func (*StatementContext) Gotostmt

func (s *StatementContext) Gotostmt() IGotostmtContext

func (*StatementContext) Ifstmt

func (s *StatementContext) Ifstmt() IIfstmtContext

func (*StatementContext) IsStatementContext

func (*StatementContext) IsStatementContext()

func (*StatementContext) Name

func (s *StatementContext) Name() INameContext

func (*StatementContext) Nullstmt

func (s *StatementContext) Nullstmt() INullstmtContext

func (*StatementContext) Returnstmt

func (s *StatementContext) Returnstmt() IReturnstmtContext

func (*StatementContext) Statement

func (s *StatementContext) Statement() IStatementContext

func (*StatementContext) Switchstmt

func (s *StatementContext) Switchstmt() ISwitchstmtContext

func (*StatementContext) ToStringTree

func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*StatementContext) Whilestmt

func (s *StatementContext) Whilestmt() IWhilestmtContext

type SwitchstmtContext

type SwitchstmtContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySwitchstmtContext

func NewEmptySwitchstmtContext() *SwitchstmtContext

func NewSwitchstmtContext

func NewSwitchstmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SwitchstmtContext

func (*SwitchstmtContext) EnterRule

func (s *SwitchstmtContext) EnterRule(listener antlr.ParseTreeListener)

func (*SwitchstmtContext) ExitRule

func (s *SwitchstmtContext) ExitRule(listener antlr.ParseTreeListener)

func (*SwitchstmtContext) GetParser

func (s *SwitchstmtContext) GetParser() antlr.Parser

func (*SwitchstmtContext) GetRuleContext

func (s *SwitchstmtContext) GetRuleContext() antlr.RuleContext

func (*SwitchstmtContext) IsSwitchstmtContext

func (*SwitchstmtContext) IsSwitchstmtContext()

func (*SwitchstmtContext) Rvalue

func (s *SwitchstmtContext) Rvalue() IRvalueContext

func (*SwitchstmtContext) Statement

func (s *SwitchstmtContext) Statement() IStatementContext

func (*SwitchstmtContext) ToStringTree

func (s *SwitchstmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type TernaryContext

type TernaryContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyTernaryContext

func NewEmptyTernaryContext() *TernaryContext

func NewTernaryContext

func NewTernaryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TernaryContext

func (*TernaryContext) AllRvalue

func (s *TernaryContext) AllRvalue() []IRvalueContext

func (*TernaryContext) EnterRule

func (s *TernaryContext) EnterRule(listener antlr.ParseTreeListener)

func (*TernaryContext) ExitRule

func (s *TernaryContext) ExitRule(listener antlr.ParseTreeListener)

func (*TernaryContext) Expression

func (s *TernaryContext) Expression() IExpressionContext

func (*TernaryContext) GetParser

func (s *TernaryContext) GetParser() antlr.Parser

func (*TernaryContext) GetRuleContext

func (s *TernaryContext) GetRuleContext() antlr.RuleContext

func (*TernaryContext) IsTernaryContext

func (*TernaryContext) IsTernaryContext()

func (*TernaryContext) Rvalue

func (s *TernaryContext) Rvalue(i int) IRvalueContext

func (*TernaryContext) ToStringTree

func (s *TernaryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type UnaryContext

type UnaryContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyUnaryContext

func NewEmptyUnaryContext() *UnaryContext

func NewUnaryContext

func NewUnaryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnaryContext

func (*UnaryContext) EnterRule

func (s *UnaryContext) EnterRule(listener antlr.ParseTreeListener)

func (*UnaryContext) ExitRule

func (s *UnaryContext) ExitRule(listener antlr.ParseTreeListener)

func (*UnaryContext) GetParser

func (s *UnaryContext) GetParser() antlr.Parser

func (*UnaryContext) GetRuleContext

func (s *UnaryContext) GetRuleContext() antlr.RuleContext

func (*UnaryContext) IsUnaryContext

func (*UnaryContext) IsUnaryContext()

func (*UnaryContext) ToStringTree

func (s *UnaryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

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) 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) Rvalue

func (s *WhilestmtContext) Rvalue() IRvalueContext

func (*WhilestmtContext) Statement

func (s *WhilestmtContext) Statement() IStatementContext

func (*WhilestmtContext) ToStringTree

func (s *WhilestmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL