parser

package
v0.0.0-...-9f26fef Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LuaLexerEqual           = 1
	LuaLexerAdd             = 2
	LuaLexerSubtract        = 3
	LuaLexerMultiply        = 4
	LuaLexerDivide          = 5
	LuaLexerComma           = 6
	LuaLexerAnd             = 7
	LuaLexerBreak           = 8
	LuaLexerDo              = 9
	LuaLexerElse            = 10
	LuaLexerElseIf          = 11
	LuaLexerEnd             = 12
	LuaLexerFalse           = 13
	LuaLexerFor             = 14
	LuaLexerFunction        = 15
	LuaLexerIf              = 16
	LuaLexerIn              = 17
	LuaLexerLocal           = 18
	LuaLexerNil             = 19
	LuaLexerNot             = 20
	LuaLexerOr              = 21
	LuaLexerRepeat          = 22
	LuaLexerReturn          = 23
	LuaLexerThen            = 24
	LuaLexerTrue            = 25
	LuaLexerUntil           = 26
	LuaLexerWhile           = 27
	LuaLexerIdentifier      = 28
	LuaLexerFloatConstant   = 29
	LuaLexerIntegerConstant = 30
	LuaLexerBlockComment    = 31
	LuaLexerLineComment     = 32
	LuaLexerWhitespace      = 33
	LuaLexerNewline         = 34
)

LuaLexer tokens.

View Source
const (
	LuaParserEOF             = antlr.TokenEOF
	LuaParserEqual           = 1
	LuaParserAdd             = 2
	LuaParserSubtract        = 3
	LuaParserMultiply        = 4
	LuaParserDivide          = 5
	LuaParserComma           = 6
	LuaParserAnd             = 7
	LuaParserBreak           = 8
	LuaParserDo              = 9
	LuaParserElse            = 10
	LuaParserElseIf          = 11
	LuaParserEnd             = 12
	LuaParserFalse           = 13
	LuaParserFor             = 14
	LuaParserFunction        = 15
	LuaParserIf              = 16
	LuaParserIn              = 17
	LuaParserLocal           = 18
	LuaParserNil             = 19
	LuaParserNot             = 20
	LuaParserOr              = 21
	LuaParserRepeat          = 22
	LuaParserReturn          = 23
	LuaParserThen            = 24
	LuaParserTrue            = 25
	LuaParserUntil           = 26
	LuaParserWhile           = 27
	LuaParserIdentifier      = 28
	LuaParserFloatConstant   = 29
	LuaParserIntegerConstant = 30
	LuaParserBlockComment    = 31
	LuaParserLineComment     = 32
	LuaParserWhitespace      = 33
	LuaParserNewline         = 34
)

LuaParser tokens.

View Source
const (
	LuaParserRULE_translation         = 0
	LuaParserRULE_chunk               = 1
	LuaParserRULE_statement           = 2
	LuaParserRULE_variableDeclaration = 3
	LuaParserRULE_expression          = 4
	LuaParserRULE_binaryOperator      = 5
	LuaParserRULE_ifStatement         = 6
	LuaParserRULE_elseifStatement     = 7
	LuaParserRULE_elseStatement       = 8
	LuaParserRULE_whileStatement      = 9
	LuaParserRULE_numericForStatement = 10
)

LuaParser rules.

Variables

This section is empty.

Functions

func LuaLexerInit

func LuaLexerInit()

LuaLexerInit initializes any static state used to implement LuaLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewLuaLexer(). You can call this function if you wish to initialize the static state ahead of time.

func LuaParserInit

func LuaParserInit()

LuaParserInit initializes any static state used to implement LuaParser. By default the static state used to implement the parser is lazily initialized during the first call to NewLuaParser(). You can call this function if you wish to initialize the static state ahead of time.

Types

type BaseLuaVisitor

type BaseLuaVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseLuaVisitor) VisitBinaryOperator

func (v *BaseLuaVisitor) VisitBinaryOperator(ctx *BinaryOperatorContext) interface{}

func (*BaseLuaVisitor) VisitChunk

func (v *BaseLuaVisitor) VisitChunk(ctx *ChunkContext) interface{}

func (*BaseLuaVisitor) VisitElseStatement

func (v *BaseLuaVisitor) VisitElseStatement(ctx *ElseStatementContext) interface{}

func (*BaseLuaVisitor) VisitElseifStatement

func (v *BaseLuaVisitor) VisitElseifStatement(ctx *ElseifStatementContext) interface{}

func (*BaseLuaVisitor) VisitExpressionBinary

func (v *BaseLuaVisitor) VisitExpressionBinary(ctx *ExpressionBinaryContext) interface{}

func (*BaseLuaVisitor) VisitExpressionConstant

func (v *BaseLuaVisitor) VisitExpressionConstant(ctx *ExpressionConstantContext) interface{}

func (*BaseLuaVisitor) VisitIfStatement

func (v *BaseLuaVisitor) VisitIfStatement(ctx *IfStatementContext) interface{}

func (*BaseLuaVisitor) VisitNumericForStatement

func (v *BaseLuaVisitor) VisitNumericForStatement(ctx *NumericForStatementContext) interface{}

func (*BaseLuaVisitor) VisitStatement

func (v *BaseLuaVisitor) VisitStatement(ctx *StatementContext) interface{}

func (*BaseLuaVisitor) VisitTranslation

func (v *BaseLuaVisitor) VisitTranslation(ctx *TranslationContext) interface{}

func (*BaseLuaVisitor) VisitVariableDeclaration

func (v *BaseLuaVisitor) VisitVariableDeclaration(ctx *VariableDeclarationContext) interface{}

func (*BaseLuaVisitor) VisitWhileStatement

func (v *BaseLuaVisitor) VisitWhileStatement(ctx *WhileStatementContext) interface{}

type BinaryOperatorContext

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

func NewBinaryOperatorContext

func NewBinaryOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BinaryOperatorContext

func NewEmptyBinaryOperatorContext

func NewEmptyBinaryOperatorContext() *BinaryOperatorContext

func (*BinaryOperatorContext) Accept

func (s *BinaryOperatorContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*BinaryOperatorContext) Add

func (*BinaryOperatorContext) Divide

func (*BinaryOperatorContext) GetParser

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

func (*BinaryOperatorContext) GetRuleContext

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

func (*BinaryOperatorContext) IsBinaryOperatorContext

func (*BinaryOperatorContext) IsBinaryOperatorContext()

func (*BinaryOperatorContext) Multiply

func (*BinaryOperatorContext) Subtract

func (*BinaryOperatorContext) ToStringTree

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

type ChunkContext

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

func NewChunkContext

func NewChunkContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ChunkContext

func NewEmptyChunkContext

func NewEmptyChunkContext() *ChunkContext

func (*ChunkContext) Accept

func (s *ChunkContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ChunkContext) AllStatement

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

func (*ChunkContext) GetParser

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

func (*ChunkContext) GetRuleContext

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

func (*ChunkContext) IsChunkContext

func (*ChunkContext) IsChunkContext()

func (*ChunkContext) Statement

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

func (*ChunkContext) ToStringTree

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

type ElseStatementContext

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

func NewElseStatementContext

func NewElseStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElseStatementContext

func NewEmptyElseStatementContext

func NewEmptyElseStatementContext() *ElseStatementContext

func (*ElseStatementContext) Accept

func (s *ElseStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ElseStatementContext) Chunk

func (*ElseStatementContext) Else

func (*ElseStatementContext) GetParser

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

func (*ElseStatementContext) GetRuleContext

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

func (*ElseStatementContext) IsElseStatementContext

func (*ElseStatementContext) IsElseStatementContext()

func (*ElseStatementContext) ToStringTree

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

type ElseifStatementContext

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

func NewElseifStatementContext

func NewElseifStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ElseifStatementContext

func NewEmptyElseifStatementContext

func NewEmptyElseifStatementContext() *ElseifStatementContext

func (*ElseifStatementContext) Accept

func (s *ElseifStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ElseifStatementContext) Chunk

func (*ElseifStatementContext) ElseIf

func (*ElseifStatementContext) Expression

func (*ElseifStatementContext) GetParser

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

func (*ElseifStatementContext) GetRuleContext

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

func (*ElseifStatementContext) IsElseifStatementContext

func (*ElseifStatementContext) IsElseifStatementContext()

func (*ElseifStatementContext) ToStringTree

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

type ExpressionBinaryContext

type ExpressionBinaryContext struct {
	*ExpressionContext
}

func NewExpressionBinaryContext

func NewExpressionBinaryContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ExpressionBinaryContext

func (*ExpressionBinaryContext) Accept

func (s *ExpressionBinaryContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ExpressionBinaryContext) AllExpression

func (s *ExpressionBinaryContext) AllExpression() []IExpressionContext

func (*ExpressionBinaryContext) BinaryOperator

func (s *ExpressionBinaryContext) BinaryOperator() IBinaryOperatorContext

func (*ExpressionBinaryContext) Expression

func (*ExpressionBinaryContext) GetRuleContext

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

type ExpressionConstantContext

type ExpressionConstantContext struct {
	*ExpressionContext
}

func NewExpressionConstantContext

func NewExpressionConstantContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ExpressionConstantContext

func (*ExpressionConstantContext) Accept

func (s *ExpressionConstantContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ExpressionConstantContext) FloatConstant

func (s *ExpressionConstantContext) FloatConstant() antlr.TerminalNode

func (*ExpressionConstantContext) GetRuleContext

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

func (*ExpressionConstantContext) IntegerConstant

func (s *ExpressionConstantContext) IntegerConstant() antlr.TerminalNode

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

func (s *ExpressionContext) CopyFrom(ctx *ExpressionContext)

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

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

type IBinaryOperatorContext

type IBinaryOperatorContext interface {
	antlr.ParserRuleContext

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

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

IBinaryOperatorContext is an interface to support dynamic dispatch.

type IChunkContext

type IChunkContext interface {
	antlr.ParserRuleContext

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

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

IChunkContext is an interface to support dynamic dispatch.

type IElseStatementContext

type IElseStatementContext interface {
	antlr.ParserRuleContext

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

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

IElseStatementContext is an interface to support dynamic dispatch.

type IElseifStatementContext

type IElseifStatementContext interface {
	antlr.ParserRuleContext

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

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

IElseifStatementContext 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 IIfStatementContext

type IIfStatementContext interface {
	antlr.ParserRuleContext

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

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

IIfStatementContext is an interface to support dynamic dispatch.

type INumericForStatementContext

type INumericForStatementContext interface {
	antlr.ParserRuleContext

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

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

INumericForStatementContext 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 ITranslationContext

type ITranslationContext interface {
	antlr.ParserRuleContext

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

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

ITranslationContext is an interface to support dynamic dispatch.

type IVariableDeclarationContext

type IVariableDeclarationContext interface {
	antlr.ParserRuleContext

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

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

IVariableDeclarationContext is an interface to support dynamic dispatch.

type IWhileStatementContext

type IWhileStatementContext interface {
	antlr.ParserRuleContext

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

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

IWhileStatementContext is an interface to support dynamic dispatch.

type IfStatementContext

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

func NewEmptyIfStatementContext

func NewEmptyIfStatementContext() *IfStatementContext

func NewIfStatementContext

func NewIfStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IfStatementContext

func (*IfStatementContext) Accept

func (s *IfStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*IfStatementContext) AllElseifStatement

func (s *IfStatementContext) AllElseifStatement() []IElseifStatementContext

func (*IfStatementContext) Chunk

func (s *IfStatementContext) Chunk() IChunkContext

func (*IfStatementContext) ElseStatement

func (s *IfStatementContext) ElseStatement() IElseStatementContext

func (*IfStatementContext) ElseifStatement

func (s *IfStatementContext) ElseifStatement(i int) IElseifStatementContext

func (*IfStatementContext) End

func (*IfStatementContext) Expression

func (s *IfStatementContext) Expression() IExpressionContext

func (*IfStatementContext) GetParser

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

func (*IfStatementContext) GetRuleContext

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

func (*IfStatementContext) If

func (*IfStatementContext) IsIfStatementContext

func (*IfStatementContext) IsIfStatementContext()

func (*IfStatementContext) Then

func (*IfStatementContext) ToStringTree

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

type LuaLexer

type LuaLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewLuaLexer

func NewLuaLexer(input antlr.CharStream) *LuaLexer

NewLuaLexer produces a new lexer instance for the optional input antlr.CharStream.

type LuaParser

type LuaParser struct {
	*antlr.BaseParser
}

func NewLuaParser

func NewLuaParser(input antlr.TokenStream) *LuaParser

NewLuaParser produces a new parser instance for the optional input antlr.TokenStream.

func (*LuaParser) BinaryOperator

func (p *LuaParser) BinaryOperator() (localctx IBinaryOperatorContext)

func (*LuaParser) Chunk

func (p *LuaParser) Chunk() (localctx IChunkContext)

func (*LuaParser) ElseStatement

func (p *LuaParser) ElseStatement() (localctx IElseStatementContext)

func (*LuaParser) ElseifStatement

func (p *LuaParser) ElseifStatement() (localctx IElseifStatementContext)

func (*LuaParser) Expression

func (p *LuaParser) Expression() (localctx IExpressionContext)

func (*LuaParser) Expression_Sempred

func (p *LuaParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*LuaParser) IfStatement

func (p *LuaParser) IfStatement() (localctx IIfStatementContext)

func (*LuaParser) NumericForStatement

func (p *LuaParser) NumericForStatement() (localctx INumericForStatementContext)

func (*LuaParser) Sempred

func (p *LuaParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool

func (*LuaParser) Statement

func (p *LuaParser) Statement() (localctx IStatementContext)

func (*LuaParser) Translation

func (p *LuaParser) Translation() (localctx ITranslationContext)

func (*LuaParser) VariableDeclaration

func (p *LuaParser) VariableDeclaration() (localctx IVariableDeclarationContext)

func (*LuaParser) WhileStatement

func (p *LuaParser) WhileStatement() (localctx IWhileStatementContext)

type LuaVisitor

type LuaVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by LuaParser#translation.
	VisitTranslation(ctx *TranslationContext) interface{}

	// Visit a parse tree produced by LuaParser#chunk.
	VisitChunk(ctx *ChunkContext) interface{}

	// Visit a parse tree produced by LuaParser#statement.
	VisitStatement(ctx *StatementContext) interface{}

	// Visit a parse tree produced by LuaParser#variableDeclaration.
	VisitVariableDeclaration(ctx *VariableDeclarationContext) interface{}

	// Visit a parse tree produced by LuaParser#ExpressionBinary.
	VisitExpressionBinary(ctx *ExpressionBinaryContext) interface{}

	// Visit a parse tree produced by LuaParser#ExpressionConstant.
	VisitExpressionConstant(ctx *ExpressionConstantContext) interface{}

	// Visit a parse tree produced by LuaParser#binaryOperator.
	VisitBinaryOperator(ctx *BinaryOperatorContext) interface{}

	// Visit a parse tree produced by LuaParser#ifStatement.
	VisitIfStatement(ctx *IfStatementContext) interface{}

	// Visit a parse tree produced by LuaParser#elseifStatement.
	VisitElseifStatement(ctx *ElseifStatementContext) interface{}

	// Visit a parse tree produced by LuaParser#elseStatement.
	VisitElseStatement(ctx *ElseStatementContext) interface{}

	// Visit a parse tree produced by LuaParser#whileStatement.
	VisitWhileStatement(ctx *WhileStatementContext) interface{}

	// Visit a parse tree produced by LuaParser#numericForStatement.
	VisitNumericForStatement(ctx *NumericForStatementContext) interface{}
}

A complete Visitor for a parse tree produced by LuaParser.

type NumericForStatementContext

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

func NewEmptyNumericForStatementContext

func NewEmptyNumericForStatementContext() *NumericForStatementContext

func NewNumericForStatementContext

func NewNumericForStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NumericForStatementContext

func (*NumericForStatementContext) Accept

func (s *NumericForStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*NumericForStatementContext) AllComma

func (*NumericForStatementContext) AllExpression

func (s *NumericForStatementContext) AllExpression() []IExpressionContext

func (*NumericForStatementContext) Chunk

func (*NumericForStatementContext) Comma

func (*NumericForStatementContext) Do

func (*NumericForStatementContext) End

func (*NumericForStatementContext) Equal

func (*NumericForStatementContext) Expression

func (*NumericForStatementContext) For

func (*NumericForStatementContext) GetParser

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

func (*NumericForStatementContext) GetRuleContext

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

func (*NumericForStatementContext) Identifier

func (*NumericForStatementContext) IsNumericForStatementContext

func (*NumericForStatementContext) IsNumericForStatementContext()

func (*NumericForStatementContext) ToStringTree

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

type StatementContext

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

func NewEmptyStatementContext

func NewEmptyStatementContext() *StatementContext

func NewStatementContext

func NewStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StatementContext

func (*StatementContext) Accept

func (s *StatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*StatementContext) GetParser

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

func (*StatementContext) GetRuleContext

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

func (*StatementContext) IfStatement

func (s *StatementContext) IfStatement() IIfStatementContext

func (*StatementContext) IsStatementContext

func (*StatementContext) IsStatementContext()

func (*StatementContext) NumericForStatement

func (s *StatementContext) NumericForStatement() INumericForStatementContext

func (*StatementContext) ToStringTree

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

func (*StatementContext) VariableDeclaration

func (s *StatementContext) VariableDeclaration() IVariableDeclarationContext

func (*StatementContext) WhileStatement

func (s *StatementContext) WhileStatement() IWhileStatementContext

type TranslationContext

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

func NewEmptyTranslationContext

func NewEmptyTranslationContext() *TranslationContext

func NewTranslationContext

func NewTranslationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TranslationContext

func (*TranslationContext) Accept

func (s *TranslationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*TranslationContext) Chunk

func (s *TranslationContext) Chunk() IChunkContext

func (*TranslationContext) GetParser

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

func (*TranslationContext) GetRuleContext

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

func (*TranslationContext) IsTranslationContext

func (*TranslationContext) IsTranslationContext()

func (*TranslationContext) ToStringTree

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

type VariableDeclarationContext

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

func NewEmptyVariableDeclarationContext

func NewEmptyVariableDeclarationContext() *VariableDeclarationContext

func NewVariableDeclarationContext

func NewVariableDeclarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VariableDeclarationContext

func (*VariableDeclarationContext) Accept

func (s *VariableDeclarationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*VariableDeclarationContext) Equal

func (*VariableDeclarationContext) Expression

func (*VariableDeclarationContext) GetParser

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

func (*VariableDeclarationContext) GetRuleContext

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

func (*VariableDeclarationContext) Identifier

func (*VariableDeclarationContext) IsVariableDeclarationContext

func (*VariableDeclarationContext) IsVariableDeclarationContext()

func (*VariableDeclarationContext) ToStringTree

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

type WhileStatementContext

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

func NewEmptyWhileStatementContext

func NewEmptyWhileStatementContext() *WhileStatementContext

func NewWhileStatementContext

func NewWhileStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *WhileStatementContext

func (*WhileStatementContext) Accept

func (s *WhileStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*WhileStatementContext) Chunk

func (*WhileStatementContext) Do

func (*WhileStatementContext) End

func (*WhileStatementContext) Expression

func (s *WhileStatementContext) Expression() IExpressionContext

func (*WhileStatementContext) GetParser

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

func (*WhileStatementContext) GetRuleContext

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

func (*WhileStatementContext) IsWhileStatementContext

func (*WhileStatementContext) IsWhileStatementContext()

func (*WhileStatementContext) ToStringTree

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

func (*WhileStatementContext) While

Jump to

Keyboard shortcuts

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