Documentation ¶
Index ¶
- Constants
- func LuaLexerInit()
- func LuaParserInit()
- type BaseLuaVisitor
- func (v *BaseLuaVisitor) VisitBinaryOperator(ctx *BinaryOperatorContext) interface{}
- func (v *BaseLuaVisitor) VisitChunk(ctx *ChunkContext) interface{}
- func (v *BaseLuaVisitor) VisitElseStatement(ctx *ElseStatementContext) interface{}
- func (v *BaseLuaVisitor) VisitElseifStatement(ctx *ElseifStatementContext) interface{}
- func (v *BaseLuaVisitor) VisitExpressionBinary(ctx *ExpressionBinaryContext) interface{}
- func (v *BaseLuaVisitor) VisitExpressionConstant(ctx *ExpressionConstantContext) interface{}
- func (v *BaseLuaVisitor) VisitIfStatement(ctx *IfStatementContext) interface{}
- func (v *BaseLuaVisitor) VisitNumericForStatement(ctx *NumericForStatementContext) interface{}
- func (v *BaseLuaVisitor) VisitStatement(ctx *StatementContext) interface{}
- func (v *BaseLuaVisitor) VisitTranslation(ctx *TranslationContext) interface{}
- func (v *BaseLuaVisitor) VisitVariableDeclaration(ctx *VariableDeclarationContext) interface{}
- func (v *BaseLuaVisitor) VisitWhileStatement(ctx *WhileStatementContext) interface{}
- type BinaryOperatorContext
- func (s *BinaryOperatorContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *BinaryOperatorContext) Add() antlr.TerminalNode
- func (s *BinaryOperatorContext) Divide() antlr.TerminalNode
- func (s *BinaryOperatorContext) GetParser() antlr.Parser
- func (s *BinaryOperatorContext) GetRuleContext() antlr.RuleContext
- func (*BinaryOperatorContext) IsBinaryOperatorContext()
- func (s *BinaryOperatorContext) Multiply() antlr.TerminalNode
- func (s *BinaryOperatorContext) Subtract() antlr.TerminalNode
- func (s *BinaryOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ChunkContext
- func (s *ChunkContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ChunkContext) AllStatement() []IStatementContext
- func (s *ChunkContext) GetParser() antlr.Parser
- func (s *ChunkContext) GetRuleContext() antlr.RuleContext
- func (*ChunkContext) IsChunkContext()
- func (s *ChunkContext) Statement(i int) IStatementContext
- func (s *ChunkContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ElseStatementContext
- func (s *ElseStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ElseStatementContext) Chunk() IChunkContext
- func (s *ElseStatementContext) Else() antlr.TerminalNode
- func (s *ElseStatementContext) GetParser() antlr.Parser
- func (s *ElseStatementContext) GetRuleContext() antlr.RuleContext
- func (*ElseStatementContext) IsElseStatementContext()
- func (s *ElseStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ElseifStatementContext
- func (s *ElseifStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ElseifStatementContext) Chunk() IChunkContext
- func (s *ElseifStatementContext) ElseIf() antlr.TerminalNode
- func (s *ElseifStatementContext) Expression() IExpressionContext
- func (s *ElseifStatementContext) GetParser() antlr.Parser
- func (s *ElseifStatementContext) GetRuleContext() antlr.RuleContext
- func (*ElseifStatementContext) IsElseifStatementContext()
- func (s *ElseifStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExpressionBinaryContext
- func (s *ExpressionBinaryContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ExpressionBinaryContext) AllExpression() []IExpressionContext
- func (s *ExpressionBinaryContext) BinaryOperator() IBinaryOperatorContext
- func (s *ExpressionBinaryContext) Expression(i int) IExpressionContext
- func (s *ExpressionBinaryContext) GetRuleContext() antlr.RuleContext
- type ExpressionConstantContext
- func (s *ExpressionConstantContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ExpressionConstantContext) FloatConstant() antlr.TerminalNode
- func (s *ExpressionConstantContext) GetRuleContext() antlr.RuleContext
- func (s *ExpressionConstantContext) IntegerConstant() antlr.TerminalNode
- type ExpressionContext
- func (s *ExpressionContext) CopyFrom(ctx *ExpressionContext)
- func (s *ExpressionContext) GetParser() antlr.Parser
- func (s *ExpressionContext) GetRuleContext() antlr.RuleContext
- func (*ExpressionContext) IsExpressionContext()
- func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IBinaryOperatorContext
- type IChunkContext
- type IElseStatementContext
- type IElseifStatementContext
- type IExpressionContext
- type IIfStatementContext
- type INumericForStatementContext
- type IStatementContext
- type ITranslationContext
- type IVariableDeclarationContext
- type IWhileStatementContext
- type IfStatementContext
- func (s *IfStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *IfStatementContext) AllElseifStatement() []IElseifStatementContext
- func (s *IfStatementContext) Chunk() IChunkContext
- func (s *IfStatementContext) ElseStatement() IElseStatementContext
- func (s *IfStatementContext) ElseifStatement(i int) IElseifStatementContext
- func (s *IfStatementContext) End() antlr.TerminalNode
- func (s *IfStatementContext) Expression() IExpressionContext
- func (s *IfStatementContext) GetParser() antlr.Parser
- func (s *IfStatementContext) GetRuleContext() antlr.RuleContext
- func (s *IfStatementContext) If() antlr.TerminalNode
- func (*IfStatementContext) IsIfStatementContext()
- func (s *IfStatementContext) Then() antlr.TerminalNode
- func (s *IfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type LuaLexer
- type LuaParser
- func (p *LuaParser) BinaryOperator() (localctx IBinaryOperatorContext)
- func (p *LuaParser) Chunk() (localctx IChunkContext)
- func (p *LuaParser) ElseStatement() (localctx IElseStatementContext)
- func (p *LuaParser) ElseifStatement() (localctx IElseifStatementContext)
- func (p *LuaParser) Expression() (localctx IExpressionContext)
- func (p *LuaParser) Expression_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *LuaParser) IfStatement() (localctx IIfStatementContext)
- func (p *LuaParser) NumericForStatement() (localctx INumericForStatementContext)
- func (p *LuaParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *LuaParser) Statement() (localctx IStatementContext)
- func (p *LuaParser) Translation() (localctx ITranslationContext)
- func (p *LuaParser) VariableDeclaration() (localctx IVariableDeclarationContext)
- func (p *LuaParser) WhileStatement() (localctx IWhileStatementContext)
- type LuaVisitor
- type NumericForStatementContext
- func (s *NumericForStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *NumericForStatementContext) AllComma() []antlr.TerminalNode
- func (s *NumericForStatementContext) AllExpression() []IExpressionContext
- func (s *NumericForStatementContext) Chunk() IChunkContext
- func (s *NumericForStatementContext) Comma(i int) antlr.TerminalNode
- func (s *NumericForStatementContext) Do() antlr.TerminalNode
- func (s *NumericForStatementContext) End() antlr.TerminalNode
- func (s *NumericForStatementContext) Equal() antlr.TerminalNode
- func (s *NumericForStatementContext) Expression(i int) IExpressionContext
- func (s *NumericForStatementContext) For() antlr.TerminalNode
- func (s *NumericForStatementContext) GetParser() antlr.Parser
- func (s *NumericForStatementContext) GetRuleContext() antlr.RuleContext
- func (s *NumericForStatementContext) Identifier() antlr.TerminalNode
- func (*NumericForStatementContext) IsNumericForStatementContext()
- func (s *NumericForStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type StatementContext
- func (s *StatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *StatementContext) GetParser() antlr.Parser
- func (s *StatementContext) GetRuleContext() antlr.RuleContext
- func (s *StatementContext) IfStatement() IIfStatementContext
- func (*StatementContext) IsStatementContext()
- func (s *StatementContext) NumericForStatement() INumericForStatementContext
- func (s *StatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *StatementContext) VariableDeclaration() IVariableDeclarationContext
- func (s *StatementContext) WhileStatement() IWhileStatementContext
- type TranslationContext
- func (s *TranslationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *TranslationContext) Chunk() IChunkContext
- func (s *TranslationContext) GetParser() antlr.Parser
- func (s *TranslationContext) GetRuleContext() antlr.RuleContext
- func (*TranslationContext) IsTranslationContext()
- func (s *TranslationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type VariableDeclarationContext
- func (s *VariableDeclarationContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *VariableDeclarationContext) Equal() antlr.TerminalNode
- func (s *VariableDeclarationContext) Expression() IExpressionContext
- func (s *VariableDeclarationContext) GetParser() antlr.Parser
- func (s *VariableDeclarationContext) GetRuleContext() antlr.RuleContext
- func (s *VariableDeclarationContext) Identifier() antlr.TerminalNode
- func (*VariableDeclarationContext) IsVariableDeclarationContext()
- func (s *VariableDeclarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type WhileStatementContext
- func (s *WhileStatementContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *WhileStatementContext) Chunk() IChunkContext
- func (s *WhileStatementContext) Do() antlr.TerminalNode
- func (s *WhileStatementContext) End() antlr.TerminalNode
- func (s *WhileStatementContext) Expression() IExpressionContext
- func (s *WhileStatementContext) GetParser() antlr.Parser
- func (s *WhileStatementContext) GetRuleContext() antlr.RuleContext
- func (*WhileStatementContext) IsWhileStatementContext()
- func (s *WhileStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *WhileStatementContext) While() antlr.TerminalNode
Constants ¶
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.
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.
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 (s *BinaryOperatorContext) Add() antlr.TerminalNode
func (*BinaryOperatorContext) Divide ¶
func (s *BinaryOperatorContext) Divide() antlr.TerminalNode
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 (s *BinaryOperatorContext) Multiply() antlr.TerminalNode
func (*BinaryOperatorContext) Subtract ¶
func (s *BinaryOperatorContext) Subtract() antlr.TerminalNode
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 (s *ElseStatementContext) Chunk() IChunkContext
func (*ElseStatementContext) Else ¶
func (s *ElseStatementContext) Else() antlr.TerminalNode
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 (s *ElseifStatementContext) Chunk() IChunkContext
func (*ElseifStatementContext) ElseIf ¶
func (s *ElseifStatementContext) ElseIf() antlr.TerminalNode
func (*ElseifStatementContext) Expression ¶
func (s *ElseifStatementContext) Expression() IExpressionContext
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 (s *ExpressionBinaryContext) Expression(i int) IExpressionContext
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 (s *IfStatementContext) End() antlr.TerminalNode
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 (s *IfStatementContext) If() antlr.TerminalNode
func (*IfStatementContext) IsIfStatementContext ¶
func (*IfStatementContext) IsIfStatementContext()
func (*IfStatementContext) Then ¶
func (s *IfStatementContext) Then() antlr.TerminalNode
func (*IfStatementContext) ToStringTree ¶
func (s *IfStatementContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type LuaLexer ¶
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 (s *NumericForStatementContext) AllComma() []antlr.TerminalNode
func (*NumericForStatementContext) AllExpression ¶
func (s *NumericForStatementContext) AllExpression() []IExpressionContext
func (*NumericForStatementContext) Chunk ¶
func (s *NumericForStatementContext) Chunk() IChunkContext
func (*NumericForStatementContext) Comma ¶
func (s *NumericForStatementContext) Comma(i int) antlr.TerminalNode
func (*NumericForStatementContext) Do ¶
func (s *NumericForStatementContext) Do() antlr.TerminalNode
func (*NumericForStatementContext) End ¶
func (s *NumericForStatementContext) End() antlr.TerminalNode
func (*NumericForStatementContext) Equal ¶
func (s *NumericForStatementContext) Equal() antlr.TerminalNode
func (*NumericForStatementContext) Expression ¶
func (s *NumericForStatementContext) Expression(i int) IExpressionContext
func (*NumericForStatementContext) For ¶
func (s *NumericForStatementContext) For() antlr.TerminalNode
func (*NumericForStatementContext) GetParser ¶
func (s *NumericForStatementContext) GetParser() antlr.Parser
func (*NumericForStatementContext) GetRuleContext ¶
func (s *NumericForStatementContext) GetRuleContext() antlr.RuleContext
func (*NumericForStatementContext) Identifier ¶
func (s *NumericForStatementContext) Identifier() antlr.TerminalNode
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 (s *VariableDeclarationContext) Equal() antlr.TerminalNode
func (*VariableDeclarationContext) Expression ¶
func (s *VariableDeclarationContext) Expression() IExpressionContext
func (*VariableDeclarationContext) GetParser ¶
func (s *VariableDeclarationContext) GetParser() antlr.Parser
func (*VariableDeclarationContext) GetRuleContext ¶
func (s *VariableDeclarationContext) GetRuleContext() antlr.RuleContext
func (*VariableDeclarationContext) Identifier ¶
func (s *VariableDeclarationContext) Identifier() antlr.TerminalNode
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 (s *WhileStatementContext) Chunk() IChunkContext
func (*WhileStatementContext) Do ¶
func (s *WhileStatementContext) Do() antlr.TerminalNode
func (*WhileStatementContext) End ¶
func (s *WhileStatementContext) End() antlr.TerminalNode
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 ¶
func (s *WhileStatementContext) While() antlr.TerminalNode