parser

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

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

Go to latest
Published: Apr 27, 2024 License: BSD-4-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VanLangLexerVAR          = 1
	VanLangLexerFUNC         = 2
	VanLangLexerBEGIN        = 3
	VanLangLexerEND          = 4
	VanLangLexerIF           = 5
	VanLangLexerTHEN         = 6
	VanLangLexerELSEIF       = 7
	VanLangLexerELSE         = 8
	VanLangLexerRETURN       = 9
	VanLangLexerPRINTLN      = 10
	VanLangLexerREADLN       = 11
	VanLangLexerREPEAT       = 12
	VanLangLexerUNTIL        = 13
	VanLangLexerWHILE        = 14
	VanLangLexerDO           = 15
	VanLangLexerNOT          = 16
	VanLangLexerAND          = 17
	VanLangLexerOR           = 18
	VanLangLexerXOR          = 19
	VanLangLexerIMP          = 20
	VanLangLexerEQV          = 21
	VanLangLexerDIV          = 22
	VanLangLexerMOD          = 23
	VanLangLexerBOOL         = 24
	VanLangLexerINTTYPE      = 25
	VanLangLexerSTRTYPE      = 26
	VanLangLexerTUPLETYPE    = 27
	VanLangLexerARRAYTYPE    = 28
	VanLangLexerFLOAT        = 29
	VanLangLexerUNSIGNED     = 30
	VanLangLexerPLUS         = 31
	VanLangLexerMINUS        = 32
	VanLangLexerMULTIPLY     = 33
	VanLangLexerDIVIDE       = 34
	VanLangLexerEQUAL        = 35
	VanLangLexerNOTEQUAL     = 36
	VanLangLexerLESS         = 37
	VanLangLexerGREATER      = 38
	VanLangLexerLESSEQUAL    = 39
	VanLangLexerGREATEREQUAL = 40
	VanLangLexerAND_OP       = 41
	VanLangLexerOR_OP        = 42
	VanLangLexerXOR_OP       = 43
	VanLangLexerEQV_OP       = 44
	VanLangLexerIMP_OP       = 45
	VanLangLexerNOT_OP       = 46
	VanLangLexerID           = 47
	VanLangLexerINT          = 48
	VanLangLexerSTRING       = 49
	VanLangLexerLPAREN       = 50
	VanLangLexerRPAREN       = 51
	VanLangLexerLBRACK       = 52
	VanLangLexerRBRACK       = 53
	VanLangLexerCOMMA        = 54
	VanLangLexerSEMICOLON    = 55
	VanLangLexerARROW        = 56
	VanLangLexerWS           = 57
)

VanLangLexer tokens.

View Source
const (
	VanLangParserEOF          = antlr.TokenEOF
	VanLangParserVAR          = 1
	VanLangParserFUNC         = 2
	VanLangParserBEGIN        = 3
	VanLangParserEND          = 4
	VanLangParserIF           = 5
	VanLangParserTHEN         = 6
	VanLangParserELSEIF       = 7
	VanLangParserELSE         = 8
	VanLangParserRETURN       = 9
	VanLangParserPRINTLN      = 10
	VanLangParserREADLN       = 11
	VanLangParserREPEAT       = 12
	VanLangParserUNTIL        = 13
	VanLangParserWHILE        = 14
	VanLangParserDO           = 15
	VanLangParserNOT          = 16
	VanLangParserAND          = 17
	VanLangParserOR           = 18
	VanLangParserXOR          = 19
	VanLangParserIMP          = 20
	VanLangParserEQV          = 21
	VanLangParserDIV          = 22
	VanLangParserMOD          = 23
	VanLangParserBOOL         = 24
	VanLangParserINTTYPE      = 25
	VanLangParserSTRTYPE      = 26
	VanLangParserTUPLETYPE    = 27
	VanLangParserARRAYTYPE    = 28
	VanLangParserFLOAT        = 29
	VanLangParserUNSIGNED     = 30
	VanLangParserPLUS         = 31
	VanLangParserMINUS        = 32
	VanLangParserMULTIPLY     = 33
	VanLangParserDIVIDE       = 34
	VanLangParserEQUAL        = 35
	VanLangParserNOTEQUAL     = 36
	VanLangParserLESS         = 37
	VanLangParserGREATER      = 38
	VanLangParserLESSEQUAL    = 39
	VanLangParserGREATEREQUAL = 40
	VanLangParserAND_OP       = 41
	VanLangParserOR_OP        = 42
	VanLangParserXOR_OP       = 43
	VanLangParserEQV_OP       = 44
	VanLangParserIMP_OP       = 45
	VanLangParserNOT_OP       = 46
	VanLangParserID           = 47
	VanLangParserINT          = 48
	VanLangParserSTRING       = 49
	VanLangParserLPAREN       = 50
	VanLangParserRPAREN       = 51
	VanLangParserLBRACK       = 52
	VanLangParserRBRACK       = 53
	VanLangParserCOMMA        = 54
	VanLangParserSEMICOLON    = 55
	VanLangParserARROW        = 56
	VanLangParserWS           = 57
)

VanLangParser tokens.

View Source
const (
	VanLangParserRULE_program             = 0
	VanLangParserRULE_statement           = 1
	VanLangParserRULE_variableDeclaration = 2
	VanLangParserRULE_functionDeclaration = 3
	VanLangParserRULE_argumentList        = 4
	VanLangParserRULE_datatype            = 5
	VanLangParserRULE_logicStatement      = 6
	VanLangParserRULE_loopStatement       = 7
	VanLangParserRULE_conditionStatement  = 8
	VanLangParserRULE_expressionStatement = 9
	VanLangParserRULE_expression          = 10
	VanLangParserRULE_term                = 11
	VanLangParserRULE_factor              = 12
	VanLangParserRULE_atom                = 13
)

VanLangParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentListContext

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

func NewArgumentListContext

func NewArgumentListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgumentListContext

func NewEmptyArgumentListContext

func NewEmptyArgumentListContext() *ArgumentListContext

func (*ArgumentListContext) Accept

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

func (*ArgumentListContext) AllCOMMA

func (s *ArgumentListContext) AllCOMMA() []antlr.TerminalNode

func (*ArgumentListContext) AllDatatype

func (s *ArgumentListContext) AllDatatype() []IDatatypeContext

func (*ArgumentListContext) AllID

func (s *ArgumentListContext) AllID() []antlr.TerminalNode

func (*ArgumentListContext) AllLBRACK

func (s *ArgumentListContext) AllLBRACK() []antlr.TerminalNode

func (*ArgumentListContext) AllRBRACK

func (s *ArgumentListContext) AllRBRACK() []antlr.TerminalNode

func (*ArgumentListContext) COMMA

func (*ArgumentListContext) Datatype

func (s *ArgumentListContext) Datatype(i int) IDatatypeContext

func (*ArgumentListContext) EnterRule

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

func (*ArgumentListContext) ExitRule

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

func (*ArgumentListContext) GetParser

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

func (*ArgumentListContext) GetRuleContext

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

func (*ArgumentListContext) ID

func (*ArgumentListContext) IsArgumentListContext

func (*ArgumentListContext) IsArgumentListContext()

func (*ArgumentListContext) LBRACK

func (*ArgumentListContext) RBRACK

func (*ArgumentListContext) ToStringTree

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

type AtomContext

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

func NewAtomContext

func NewAtomContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AtomContext

func NewEmptyAtomContext

func NewEmptyAtomContext() *AtomContext

func (*AtomContext) Accept

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

func (*AtomContext) EnterRule

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

func (*AtomContext) ExitRule

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

func (*AtomContext) Expression

func (s *AtomContext) Expression() IExpressionContext

func (*AtomContext) GetParser

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

func (*AtomContext) GetRuleContext

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

func (*AtomContext) ID

func (s *AtomContext) ID() antlr.TerminalNode

func (*AtomContext) INT

func (s *AtomContext) INT() antlr.TerminalNode

func (*AtomContext) IsAtomContext

func (*AtomContext) IsAtomContext()

func (*AtomContext) LPAREN

func (s *AtomContext) LPAREN() antlr.TerminalNode

func (*AtomContext) RPAREN

func (s *AtomContext) RPAREN() antlr.TerminalNode

func (*AtomContext) ToStringTree

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

type BaseVanLangListener

type BaseVanLangListener struct{}

BaseVanLangListener is a complete listener for a parse tree produced by VanLangParser.

func (*BaseVanLangListener) EnterArgumentList

func (s *BaseVanLangListener) EnterArgumentList(ctx *ArgumentListContext)

EnterArgumentList is called when production argumentList is entered.

func (*BaseVanLangListener) EnterAtom

func (s *BaseVanLangListener) EnterAtom(ctx *AtomContext)

EnterAtom is called when production atom is entered.

func (*BaseVanLangListener) EnterConditionStatement

func (s *BaseVanLangListener) EnterConditionStatement(ctx *ConditionStatementContext)

EnterConditionStatement is called when production conditionStatement is entered.

func (*BaseVanLangListener) EnterDatatype

func (s *BaseVanLangListener) EnterDatatype(ctx *DatatypeContext)

EnterDatatype is called when production datatype is entered.

func (*BaseVanLangListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseVanLangListener) EnterExpression

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

EnterExpression is called when production expression is entered.

func (*BaseVanLangListener) EnterExpressionStatement

func (s *BaseVanLangListener) EnterExpressionStatement(ctx *ExpressionStatementContext)

EnterExpressionStatement is called when production expressionStatement is entered.

func (*BaseVanLangListener) EnterFactor

func (s *BaseVanLangListener) EnterFactor(ctx *FactorContext)

EnterFactor is called when production factor is entered.

func (*BaseVanLangListener) EnterFunctionDeclaration

func (s *BaseVanLangListener) EnterFunctionDeclaration(ctx *FunctionDeclarationContext)

EnterFunctionDeclaration is called when production functionDeclaration is entered.

func (*BaseVanLangListener) EnterLogicStatement

func (s *BaseVanLangListener) EnterLogicStatement(ctx *LogicStatementContext)

EnterLogicStatement is called when production logicStatement is entered.

func (*BaseVanLangListener) EnterLoopStatement

func (s *BaseVanLangListener) EnterLoopStatement(ctx *LoopStatementContext)

EnterLoopStatement is called when production loopStatement is entered.

func (*BaseVanLangListener) EnterProgram

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

EnterProgram is called when production program is entered.

func (*BaseVanLangListener) EnterStatement

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

EnterStatement is called when production statement is entered.

func (*BaseVanLangListener) EnterTerm

func (s *BaseVanLangListener) EnterTerm(ctx *TermContext)

EnterTerm is called when production term is entered.

func (*BaseVanLangListener) EnterVariableDeclaration

func (s *BaseVanLangListener) EnterVariableDeclaration(ctx *VariableDeclarationContext)

EnterVariableDeclaration is called when production variableDeclaration is entered.

func (*BaseVanLangListener) ExitArgumentList

func (s *BaseVanLangListener) ExitArgumentList(ctx *ArgumentListContext)

ExitArgumentList is called when production argumentList is exited.

func (*BaseVanLangListener) ExitAtom

func (s *BaseVanLangListener) ExitAtom(ctx *AtomContext)

ExitAtom is called when production atom is exited.

func (*BaseVanLangListener) ExitConditionStatement

func (s *BaseVanLangListener) ExitConditionStatement(ctx *ConditionStatementContext)

ExitConditionStatement is called when production conditionStatement is exited.

func (*BaseVanLangListener) ExitDatatype

func (s *BaseVanLangListener) ExitDatatype(ctx *DatatypeContext)

ExitDatatype is called when production datatype is exited.

func (*BaseVanLangListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseVanLangListener) ExitExpression

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

ExitExpression is called when production expression is exited.

func (*BaseVanLangListener) ExitExpressionStatement

func (s *BaseVanLangListener) ExitExpressionStatement(ctx *ExpressionStatementContext)

ExitExpressionStatement is called when production expressionStatement is exited.

func (*BaseVanLangListener) ExitFactor

func (s *BaseVanLangListener) ExitFactor(ctx *FactorContext)

ExitFactor is called when production factor is exited.

func (*BaseVanLangListener) ExitFunctionDeclaration

func (s *BaseVanLangListener) ExitFunctionDeclaration(ctx *FunctionDeclarationContext)

ExitFunctionDeclaration is called when production functionDeclaration is exited.

func (*BaseVanLangListener) ExitLogicStatement

func (s *BaseVanLangListener) ExitLogicStatement(ctx *LogicStatementContext)

ExitLogicStatement is called when production logicStatement is exited.

func (*BaseVanLangListener) ExitLoopStatement

func (s *BaseVanLangListener) ExitLoopStatement(ctx *LoopStatementContext)

ExitLoopStatement is called when production loopStatement is exited.

func (*BaseVanLangListener) ExitProgram

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

ExitProgram is called when production program is exited.

func (*BaseVanLangListener) ExitStatement

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

ExitStatement is called when production statement is exited.

func (*BaseVanLangListener) ExitTerm

func (s *BaseVanLangListener) ExitTerm(ctx *TermContext)

ExitTerm is called when production term is exited.

func (*BaseVanLangListener) ExitVariableDeclaration

func (s *BaseVanLangListener) ExitVariableDeclaration(ctx *VariableDeclarationContext)

ExitVariableDeclaration is called when production variableDeclaration is exited.

func (*BaseVanLangListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseVanLangListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type BaseVanLangVisitor

type BaseVanLangVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseVanLangVisitor) VisitArgumentList

func (v *BaseVanLangVisitor) VisitArgumentList(ctx *ArgumentListContext) interface{}

func (*BaseVanLangVisitor) VisitAtom

func (v *BaseVanLangVisitor) VisitAtom(ctx *AtomContext) interface{}

func (*BaseVanLangVisitor) VisitConditionStatement

func (v *BaseVanLangVisitor) VisitConditionStatement(ctx *ConditionStatementContext) interface{}

func (*BaseVanLangVisitor) VisitDatatype

func (v *BaseVanLangVisitor) VisitDatatype(ctx *DatatypeContext) interface{}

func (*BaseVanLangVisitor) VisitExpression

func (v *BaseVanLangVisitor) VisitExpression(ctx *ExpressionContext) interface{}

func (*BaseVanLangVisitor) VisitExpressionStatement

func (v *BaseVanLangVisitor) VisitExpressionStatement(ctx *ExpressionStatementContext) interface{}

func (*BaseVanLangVisitor) VisitFactor

func (v *BaseVanLangVisitor) VisitFactor(ctx *FactorContext) interface{}

func (*BaseVanLangVisitor) VisitFunctionDeclaration

func (v *BaseVanLangVisitor) VisitFunctionDeclaration(ctx *FunctionDeclarationContext) interface{}

func (*BaseVanLangVisitor) VisitLogicStatement

func (v *BaseVanLangVisitor) VisitLogicStatement(ctx *LogicStatementContext) interface{}

func (*BaseVanLangVisitor) VisitLoopStatement

func (v *BaseVanLangVisitor) VisitLoopStatement(ctx *LoopStatementContext) interface{}

func (*BaseVanLangVisitor) VisitProgram

func (v *BaseVanLangVisitor) VisitProgram(ctx *ProgramContext) interface{}

func (*BaseVanLangVisitor) VisitStatement

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

func (*BaseVanLangVisitor) VisitTerm

func (v *BaseVanLangVisitor) VisitTerm(ctx *TermContext) interface{}

func (*BaseVanLangVisitor) VisitVariableDeclaration

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

type ConditionStatementContext

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

func NewConditionStatementContext

func NewConditionStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConditionStatementContext

func NewEmptyConditionStatementContext

func NewEmptyConditionStatementContext() *ConditionStatementContext

func (*ConditionStatementContext) Accept

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

func (*ConditionStatementContext) AllELSEIF

func (s *ConditionStatementContext) AllELSEIF() []antlr.TerminalNode

func (*ConditionStatementContext) AllExpression

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

func (*ConditionStatementContext) AllStatement

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

func (*ConditionStatementContext) AllTHEN

func (*ConditionStatementContext) ELSE

func (*ConditionStatementContext) ELSEIF

func (*ConditionStatementContext) EnterRule

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

func (*ConditionStatementContext) ExitRule

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

func (*ConditionStatementContext) Expression

func (*ConditionStatementContext) GetParser

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

func (*ConditionStatementContext) GetRuleContext

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

func (*ConditionStatementContext) IF

func (*ConditionStatementContext) IsConditionStatementContext

func (*ConditionStatementContext) IsConditionStatementContext()

func (*ConditionStatementContext) SEMICOLON

func (*ConditionStatementContext) Statement

func (*ConditionStatementContext) THEN

func (*ConditionStatementContext) ToStringTree

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

type DatatypeContext

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

func NewDatatypeContext

func NewDatatypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DatatypeContext

func NewEmptyDatatypeContext

func NewEmptyDatatypeContext() *DatatypeContext

func (*DatatypeContext) ARRAYTYPE

func (s *DatatypeContext) ARRAYTYPE() antlr.TerminalNode

func (*DatatypeContext) Accept

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

func (*DatatypeContext) AllCOMMA

func (s *DatatypeContext) AllCOMMA() []antlr.TerminalNode

func (*DatatypeContext) AllDatatype

func (s *DatatypeContext) AllDatatype() []IDatatypeContext

func (*DatatypeContext) BOOL

func (*DatatypeContext) COMMA

func (s *DatatypeContext) COMMA(i int) antlr.TerminalNode

func (*DatatypeContext) Datatype

func (s *DatatypeContext) Datatype(i int) IDatatypeContext

func (*DatatypeContext) EnterRule

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

func (*DatatypeContext) ExitRule

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

func (*DatatypeContext) FLOAT

func (s *DatatypeContext) FLOAT() antlr.TerminalNode

func (*DatatypeContext) GetParser

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

func (*DatatypeContext) GetRuleContext

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

func (*DatatypeContext) INTTYPE

func (s *DatatypeContext) INTTYPE() antlr.TerminalNode

func (*DatatypeContext) IsDatatypeContext

func (*DatatypeContext) IsDatatypeContext()

func (*DatatypeContext) LPAREN

func (s *DatatypeContext) LPAREN() antlr.TerminalNode

func (*DatatypeContext) RPAREN

func (s *DatatypeContext) RPAREN() antlr.TerminalNode

func (*DatatypeContext) STRTYPE

func (s *DatatypeContext) STRTYPE() antlr.TerminalNode

func (*DatatypeContext) TUPLETYPE

func (s *DatatypeContext) TUPLETYPE() antlr.TerminalNode

func (*DatatypeContext) ToStringTree

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

func (*DatatypeContext) UNSIGNED

func (s *DatatypeContext) UNSIGNED() 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) AND_OP

func (s *ExpressionContext) AND_OP(i int) antlr.TerminalNode

func (*ExpressionContext) Accept

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

func (*ExpressionContext) AllAND_OP

func (s *ExpressionContext) AllAND_OP() []antlr.TerminalNode

func (*ExpressionContext) AllEQV_OP

func (s *ExpressionContext) AllEQV_OP() []antlr.TerminalNode

func (*ExpressionContext) AllIMP_OP

func (s *ExpressionContext) AllIMP_OP() []antlr.TerminalNode

func (*ExpressionContext) AllOR_OP

func (s *ExpressionContext) AllOR_OP() []antlr.TerminalNode

func (*ExpressionContext) AllTerm

func (s *ExpressionContext) AllTerm() []ITermContext

func (*ExpressionContext) AllXOR_OP

func (s *ExpressionContext) AllXOR_OP() []antlr.TerminalNode

func (*ExpressionContext) EQV_OP

func (s *ExpressionContext) EQV_OP(i int) antlr.TerminalNode

func (*ExpressionContext) EnterRule

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

func (*ExpressionContext) ExitRule

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

func (*ExpressionContext) GetParser

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

func (*ExpressionContext) GetRuleContext

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

func (*ExpressionContext) IMP_OP

func (s *ExpressionContext) IMP_OP(i int) antlr.TerminalNode

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) OR_OP

func (*ExpressionContext) SEMICOLON

func (s *ExpressionContext) SEMICOLON() antlr.TerminalNode

func (*ExpressionContext) Term

func (s *ExpressionContext) Term(i int) ITermContext

func (*ExpressionContext) ToStringTree

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

func (*ExpressionContext) XOR_OP

func (s *ExpressionContext) XOR_OP(i int) antlr.TerminalNode

type ExpressionStatementContext

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

func NewEmptyExpressionStatementContext

func NewEmptyExpressionStatementContext() *ExpressionStatementContext

func NewExpressionStatementContext

func NewExpressionStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionStatementContext

func (*ExpressionStatementContext) Accept

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

func (*ExpressionStatementContext) AllCOMMA

func (*ExpressionStatementContext) AllExpression

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

func (*ExpressionStatementContext) COMMA

func (*ExpressionStatementContext) EQUAL

func (*ExpressionStatementContext) EnterRule

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

func (*ExpressionStatementContext) ExitRule

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

func (*ExpressionStatementContext) Expression

func (*ExpressionStatementContext) GetParser

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

func (*ExpressionStatementContext) GetRuleContext

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

func (*ExpressionStatementContext) ID

func (*ExpressionStatementContext) IsExpressionStatementContext

func (*ExpressionStatementContext) IsExpressionStatementContext()

func (*ExpressionStatementContext) LPAREN

func (*ExpressionStatementContext) PRINTLN

func (*ExpressionStatementContext) READLN

func (*ExpressionStatementContext) RETURN

func (*ExpressionStatementContext) RPAREN

func (*ExpressionStatementContext) SEMICOLON

func (*ExpressionStatementContext) STRING

func (*ExpressionStatementContext) ToStringTree

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

type FactorContext

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

func NewEmptyFactorContext

func NewEmptyFactorContext() *FactorContext

func NewFactorContext

func NewFactorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FactorContext

func (*FactorContext) Accept

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

func (*FactorContext) AllAtom

func (s *FactorContext) AllAtom() []IAtomContext

func (*FactorContext) AllDIV

func (s *FactorContext) AllDIV() []antlr.TerminalNode

func (*FactorContext) AllDIVIDE

func (s *FactorContext) AllDIVIDE() []antlr.TerminalNode

func (*FactorContext) AllEQUAL

func (s *FactorContext) AllEQUAL() []antlr.TerminalNode

func (*FactorContext) AllGREATER

func (s *FactorContext) AllGREATER() []antlr.TerminalNode

func (*FactorContext) AllGREATEREQUAL

func (s *FactorContext) AllGREATEREQUAL() []antlr.TerminalNode

func (*FactorContext) AllLESS

func (s *FactorContext) AllLESS() []antlr.TerminalNode

func (*FactorContext) AllLESSEQUAL

func (s *FactorContext) AllLESSEQUAL() []antlr.TerminalNode

func (*FactorContext) AllMOD

func (s *FactorContext) AllMOD() []antlr.TerminalNode

func (*FactorContext) AllMULTIPLY

func (s *FactorContext) AllMULTIPLY() []antlr.TerminalNode

func (*FactorContext) AllNOTEQUAL

func (s *FactorContext) AllNOTEQUAL() []antlr.TerminalNode

func (*FactorContext) Atom

func (s *FactorContext) Atom(i int) IAtomContext

func (*FactorContext) DIV

func (s *FactorContext) DIV(i int) antlr.TerminalNode

func (*FactorContext) DIVIDE

func (s *FactorContext) DIVIDE(i int) antlr.TerminalNode

func (*FactorContext) EQUAL

func (s *FactorContext) EQUAL(i int) antlr.TerminalNode

func (*FactorContext) EnterRule

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

func (*FactorContext) ExitRule

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

func (*FactorContext) GREATER

func (s *FactorContext) GREATER(i int) antlr.TerminalNode

func (*FactorContext) GREATEREQUAL

func (s *FactorContext) GREATEREQUAL(i int) antlr.TerminalNode

func (*FactorContext) GetParser

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

func (*FactorContext) GetRuleContext

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

func (*FactorContext) IsFactorContext

func (*FactorContext) IsFactorContext()

func (*FactorContext) LESS

func (s *FactorContext) LESS(i int) antlr.TerminalNode

func (*FactorContext) LESSEQUAL

func (s *FactorContext) LESSEQUAL(i int) antlr.TerminalNode

func (*FactorContext) MOD

func (s *FactorContext) MOD(i int) antlr.TerminalNode

func (*FactorContext) MULTIPLY

func (s *FactorContext) MULTIPLY(i int) antlr.TerminalNode

func (*FactorContext) NOTEQUAL

func (s *FactorContext) NOTEQUAL(i int) antlr.TerminalNode

func (*FactorContext) ToStringTree

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

type FunctionDeclarationContext

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

func NewEmptyFunctionDeclarationContext

func NewEmptyFunctionDeclarationContext() *FunctionDeclarationContext

func NewFunctionDeclarationContext

func NewFunctionDeclarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionDeclarationContext

func (*FunctionDeclarationContext) ARROW

func (*FunctionDeclarationContext) Accept

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

func (*FunctionDeclarationContext) ArgumentList

func (*FunctionDeclarationContext) Datatype

func (*FunctionDeclarationContext) EnterRule

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

func (*FunctionDeclarationContext) ExitRule

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

func (*FunctionDeclarationContext) FUNC

func (*FunctionDeclarationContext) GetParser

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

func (*FunctionDeclarationContext) GetRuleContext

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

func (*FunctionDeclarationContext) ID

func (*FunctionDeclarationContext) IsFunctionDeclarationContext

func (*FunctionDeclarationContext) IsFunctionDeclarationContext()

func (*FunctionDeclarationContext) LPAREN

func (*FunctionDeclarationContext) RPAREN

func (*FunctionDeclarationContext) SEMICOLON

func (*FunctionDeclarationContext) ToStringTree

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

type IArgumentListContext

type IArgumentListContext interface {
	antlr.ParserRuleContext

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

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

IArgumentListContext is an interface to support dynamic dispatch.

type IAtomContext

type IAtomContext interface {
	antlr.ParserRuleContext

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

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

IAtomContext is an interface to support dynamic dispatch.

type IConditionStatementContext

type IConditionStatementContext interface {
	antlr.ParserRuleContext

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

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

IConditionStatementContext is an interface to support dynamic dispatch.

type IDatatypeContext

type IDatatypeContext interface {
	antlr.ParserRuleContext

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

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

IDatatypeContext 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 IExpressionStatementContext

type IExpressionStatementContext interface {
	antlr.ParserRuleContext

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

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

IExpressionStatementContext is an interface to support dynamic dispatch.

type IFactorContext

type IFactorContext interface {
	antlr.ParserRuleContext

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

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

IFactorContext is an interface to support dynamic dispatch.

type IFunctionDeclarationContext

type IFunctionDeclarationContext interface {
	antlr.ParserRuleContext

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

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

IFunctionDeclarationContext is an interface to support dynamic dispatch.

type ILogicStatementContext

type ILogicStatementContext interface {
	antlr.ParserRuleContext

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

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

ILogicStatementContext is an interface to support dynamic dispatch.

type ILoopStatementContext

type ILoopStatementContext interface {
	antlr.ParserRuleContext

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

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

ILoopStatementContext 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 IStatementContext

type IStatementContext interface {
	antlr.ParserRuleContext

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

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

IStatementContext is an interface to support dynamic dispatch.

type ITermContext

type ITermContext interface {
	antlr.ParserRuleContext

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

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

ITermContext is an interface to support dynamic dispatch.

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

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

func NewEmptyLogicStatementContext

func NewEmptyLogicStatementContext() *LogicStatementContext

func NewLogicStatementContext

func NewLogicStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LogicStatementContext

func (*LogicStatementContext) Accept

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

func (*LogicStatementContext) EQUAL

func (*LogicStatementContext) EnterRule

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

func (*LogicStatementContext) ExitRule

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

func (*LogicStatementContext) Expression

func (s *LogicStatementContext) Expression() IExpressionContext

func (*LogicStatementContext) GetParser

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

func (*LogicStatementContext) GetRuleContext

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

func (*LogicStatementContext) ID

func (*LogicStatementContext) IsLogicStatementContext

func (*LogicStatementContext) IsLogicStatementContext()

func (*LogicStatementContext) SEMICOLON

func (s *LogicStatementContext) SEMICOLON() antlr.TerminalNode

func (*LogicStatementContext) ToStringTree

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

type LoopStatementContext

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

func NewEmptyLoopStatementContext

func NewEmptyLoopStatementContext() *LoopStatementContext

func NewLoopStatementContext

func NewLoopStatementContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LoopStatementContext

func (*LoopStatementContext) Accept

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

func (*LoopStatementContext) AllStatement

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

func (*LoopStatementContext) BEGIN

func (*LoopStatementContext) DO

func (*LoopStatementContext) END

func (*LoopStatementContext) EnterRule

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

func (*LoopStatementContext) ExitRule

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

func (*LoopStatementContext) Expression

func (s *LoopStatementContext) Expression() IExpressionContext

func (*LoopStatementContext) GetParser

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

func (*LoopStatementContext) GetRuleContext

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

func (*LoopStatementContext) IsLoopStatementContext

func (*LoopStatementContext) IsLoopStatementContext()

func (*LoopStatementContext) REPEAT

func (*LoopStatementContext) SEMICOLON

func (s *LoopStatementContext) SEMICOLON() antlr.TerminalNode

func (*LoopStatementContext) Statement

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

func (*LoopStatementContext) ToStringTree

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

func (*LoopStatementContext) UNTIL

func (*LoopStatementContext) WHILE

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

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

func (*ProgramContext) AllStatement

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

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

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

func (*ProgramContext) ToStringTree

func (s *ProgramContext) 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) ConditionStatement

func (s *StatementContext) ConditionStatement() IConditionStatementContext

func (*StatementContext) EnterRule

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

func (*StatementContext) ExitRule

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

func (*StatementContext) ExpressionStatement

func (s *StatementContext) ExpressionStatement() IExpressionStatementContext

func (*StatementContext) FunctionDeclaration

func (s *StatementContext) FunctionDeclaration() IFunctionDeclarationContext

func (*StatementContext) GetParser

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

func (*StatementContext) GetRuleContext

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

func (*StatementContext) IsStatementContext

func (*StatementContext) IsStatementContext()

func (*StatementContext) LogicStatement

func (s *StatementContext) LogicStatement() ILogicStatementContext

func (*StatementContext) LoopStatement

func (s *StatementContext) LoopStatement() ILoopStatementContext

func (*StatementContext) ToStringTree

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

func (*StatementContext) VariableDeclaration

func (s *StatementContext) VariableDeclaration() IVariableDeclarationContext

type TermContext

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

func NewEmptyTermContext

func NewEmptyTermContext() *TermContext

func NewTermContext

func NewTermContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TermContext

func (*TermContext) Accept

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

func (*TermContext) AllDIV

func (s *TermContext) AllDIV() []antlr.TerminalNode

func (*TermContext) AllDIVIDE

func (s *TermContext) AllDIVIDE() []antlr.TerminalNode

func (*TermContext) AllEQUAL

func (s *TermContext) AllEQUAL() []antlr.TerminalNode

func (*TermContext) AllFactor

func (s *TermContext) AllFactor() []IFactorContext

func (*TermContext) AllGREATER

func (s *TermContext) AllGREATER() []antlr.TerminalNode

func (*TermContext) AllGREATEREQUAL

func (s *TermContext) AllGREATEREQUAL() []antlr.TerminalNode

func (*TermContext) AllLESS

func (s *TermContext) AllLESS() []antlr.TerminalNode

func (*TermContext) AllLESSEQUAL

func (s *TermContext) AllLESSEQUAL() []antlr.TerminalNode

func (*TermContext) AllMOD

func (s *TermContext) AllMOD() []antlr.TerminalNode

func (*TermContext) AllMULTIPLY

func (s *TermContext) AllMULTIPLY() []antlr.TerminalNode

func (*TermContext) AllNOTEQUAL

func (s *TermContext) AllNOTEQUAL() []antlr.TerminalNode

func (*TermContext) DIV

func (s *TermContext) DIV(i int) antlr.TerminalNode

func (*TermContext) DIVIDE

func (s *TermContext) DIVIDE(i int) antlr.TerminalNode

func (*TermContext) EQUAL

func (s *TermContext) EQUAL(i int) antlr.TerminalNode

func (*TermContext) EnterRule

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

func (*TermContext) ExitRule

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

func (*TermContext) Factor

func (s *TermContext) Factor(i int) IFactorContext

func (*TermContext) GREATER

func (s *TermContext) GREATER(i int) antlr.TerminalNode

func (*TermContext) GREATEREQUAL

func (s *TermContext) GREATEREQUAL(i int) antlr.TerminalNode

func (*TermContext) GetParser

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

func (*TermContext) GetRuleContext

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

func (*TermContext) IsTermContext

func (*TermContext) IsTermContext()

func (*TermContext) LESS

func (s *TermContext) LESS(i int) antlr.TerminalNode

func (*TermContext) LESSEQUAL

func (s *TermContext) LESSEQUAL(i int) antlr.TerminalNode

func (*TermContext) MOD

func (s *TermContext) MOD(i int) antlr.TerminalNode

func (*TermContext) MULTIPLY

func (s *TermContext) MULTIPLY(i int) antlr.TerminalNode

func (*TermContext) NOTEQUAL

func (s *TermContext) NOTEQUAL(i int) antlr.TerminalNode

func (*TermContext) ToStringTree

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

type VanLangLexer

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

func NewVanLangLexer

func NewVanLangLexer(input antlr.CharStream) *VanLangLexer

type VanLangListener

type VanLangListener interface {
	antlr.ParseTreeListener

	// EnterProgram is called when entering the program production.
	EnterProgram(c *ProgramContext)

	// EnterStatement is called when entering the statement production.
	EnterStatement(c *StatementContext)

	// EnterVariableDeclaration is called when entering the variableDeclaration production.
	EnterVariableDeclaration(c *VariableDeclarationContext)

	// EnterFunctionDeclaration is called when entering the functionDeclaration production.
	EnterFunctionDeclaration(c *FunctionDeclarationContext)

	// EnterArgumentList is called when entering the argumentList production.
	EnterArgumentList(c *ArgumentListContext)

	// EnterDatatype is called when entering the datatype production.
	EnterDatatype(c *DatatypeContext)

	// EnterLogicStatement is called when entering the logicStatement production.
	EnterLogicStatement(c *LogicStatementContext)

	// EnterLoopStatement is called when entering the loopStatement production.
	EnterLoopStatement(c *LoopStatementContext)

	// EnterConditionStatement is called when entering the conditionStatement production.
	EnterConditionStatement(c *ConditionStatementContext)

	// EnterExpressionStatement is called when entering the expressionStatement production.
	EnterExpressionStatement(c *ExpressionStatementContext)

	// EnterExpression is called when entering the expression production.
	EnterExpression(c *ExpressionContext)

	// EnterTerm is called when entering the term production.
	EnterTerm(c *TermContext)

	// EnterFactor is called when entering the factor production.
	EnterFactor(c *FactorContext)

	// EnterAtom is called when entering the atom production.
	EnterAtom(c *AtomContext)

	// ExitProgram is called when exiting the program production.
	ExitProgram(c *ProgramContext)

	// ExitStatement is called when exiting the statement production.
	ExitStatement(c *StatementContext)

	// ExitVariableDeclaration is called when exiting the variableDeclaration production.
	ExitVariableDeclaration(c *VariableDeclarationContext)

	// ExitFunctionDeclaration is called when exiting the functionDeclaration production.
	ExitFunctionDeclaration(c *FunctionDeclarationContext)

	// ExitArgumentList is called when exiting the argumentList production.
	ExitArgumentList(c *ArgumentListContext)

	// ExitDatatype is called when exiting the datatype production.
	ExitDatatype(c *DatatypeContext)

	// ExitLogicStatement is called when exiting the logicStatement production.
	ExitLogicStatement(c *LogicStatementContext)

	// ExitLoopStatement is called when exiting the loopStatement production.
	ExitLoopStatement(c *LoopStatementContext)

	// ExitConditionStatement is called when exiting the conditionStatement production.
	ExitConditionStatement(c *ConditionStatementContext)

	// ExitExpressionStatement is called when exiting the expressionStatement production.
	ExitExpressionStatement(c *ExpressionStatementContext)

	// ExitExpression is called when exiting the expression production.
	ExitExpression(c *ExpressionContext)

	// ExitTerm is called when exiting the term production.
	ExitTerm(c *TermContext)

	// ExitFactor is called when exiting the factor production.
	ExitFactor(c *FactorContext)

	// ExitAtom is called when exiting the atom production.
	ExitAtom(c *AtomContext)
}

VanLangListener is a complete listener for a parse tree produced by VanLangParser.

type VanLangParser

type VanLangParser struct {
	*antlr.BaseParser
}

func NewVanLangParser

func NewVanLangParser(input antlr.TokenStream) *VanLangParser

func (*VanLangParser) ArgumentList

func (p *VanLangParser) ArgumentList() (localctx IArgumentListContext)

func (*VanLangParser) Atom

func (p *VanLangParser) Atom() (localctx IAtomContext)

func (*VanLangParser) ConditionStatement

func (p *VanLangParser) ConditionStatement() (localctx IConditionStatementContext)

func (*VanLangParser) Datatype

func (p *VanLangParser) Datatype() (localctx IDatatypeContext)

func (*VanLangParser) Expression

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

func (*VanLangParser) ExpressionStatement

func (p *VanLangParser) ExpressionStatement() (localctx IExpressionStatementContext)

func (*VanLangParser) Factor

func (p *VanLangParser) Factor() (localctx IFactorContext)

func (*VanLangParser) FunctionDeclaration

func (p *VanLangParser) FunctionDeclaration() (localctx IFunctionDeclarationContext)

func (*VanLangParser) LogicStatement

func (p *VanLangParser) LogicStatement() (localctx ILogicStatementContext)

func (*VanLangParser) LoopStatement

func (p *VanLangParser) LoopStatement() (localctx ILoopStatementContext)

func (*VanLangParser) Program

func (p *VanLangParser) Program() (localctx IProgramContext)

func (*VanLangParser) Statement

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

func (*VanLangParser) Term

func (p *VanLangParser) Term() (localctx ITermContext)

func (*VanLangParser) VariableDeclaration

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

type VanLangVisitor

type VanLangVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by VanLangParser#program.
	VisitProgram(ctx *ProgramContext) interface{}

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

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

	// Visit a parse tree produced by VanLangParser#functionDeclaration.
	VisitFunctionDeclaration(ctx *FunctionDeclarationContext) interface{}

	// Visit a parse tree produced by VanLangParser#argumentList.
	VisitArgumentList(ctx *ArgumentListContext) interface{}

	// Visit a parse tree produced by VanLangParser#datatype.
	VisitDatatype(ctx *DatatypeContext) interface{}

	// Visit a parse tree produced by VanLangParser#logicStatement.
	VisitLogicStatement(ctx *LogicStatementContext) interface{}

	// Visit a parse tree produced by VanLangParser#loopStatement.
	VisitLoopStatement(ctx *LoopStatementContext) interface{}

	// Visit a parse tree produced by VanLangParser#conditionStatement.
	VisitConditionStatement(ctx *ConditionStatementContext) interface{}

	// Visit a parse tree produced by VanLangParser#expressionStatement.
	VisitExpressionStatement(ctx *ExpressionStatementContext) interface{}

	// Visit a parse tree produced by VanLangParser#expression.
	VisitExpression(ctx *ExpressionContext) interface{}

	// Visit a parse tree produced by VanLangParser#term.
	VisitTerm(ctx *TermContext) interface{}

	// Visit a parse tree produced by VanLangParser#factor.
	VisitFactor(ctx *FactorContext) interface{}

	// Visit a parse tree produced by VanLangParser#atom.
	VisitAtom(ctx *AtomContext) interface{}
}

A complete Visitor for a parse tree produced by VanLangParser.

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

func (*VariableDeclarationContext) AllDatatype

func (s *VariableDeclarationContext) AllDatatype() []IDatatypeContext

func (*VariableDeclarationContext) AllID

func (*VariableDeclarationContext) AllLBRACK

func (*VariableDeclarationContext) AllRBRACK

func (*VariableDeclarationContext) COMMA

func (*VariableDeclarationContext) Datatype

func (*VariableDeclarationContext) EnterRule

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

func (*VariableDeclarationContext) ExitRule

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

func (*VariableDeclarationContext) GetParser

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

func (*VariableDeclarationContext) GetRuleContext

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

func (*VariableDeclarationContext) ID

func (*VariableDeclarationContext) IsVariableDeclarationContext

func (*VariableDeclarationContext) IsVariableDeclarationContext()

func (*VariableDeclarationContext) LBRACK

func (*VariableDeclarationContext) RBRACK

func (*VariableDeclarationContext) SEMICOLON

func (*VariableDeclarationContext) ToStringTree

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

func (*VariableDeclarationContext) VAR

Jump to

Keyboard shortcuts

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