antlr

package
v0.0.0-...-dc5b6fe Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LlamaLangLexerFUNC                   = 1
	LlamaLangLexerRETURN                 = 2
	LlamaLangLexerIDENTIFIER             = 3
	LlamaLangLexerL_PAREN                = 4
	LlamaLangLexerR_PAREN                = 5
	LlamaLangLexerL_CURLY                = 6
	LlamaLangLexerR_CURLY                = 7
	LlamaLangLexerL_BRACKET              = 8
	LlamaLangLexerR_BRACKET              = 9
	LlamaLangLexerASSIGN                 = 10
	LlamaLangLexerCOMMA                  = 11
	LlamaLangLexerSEMI                   = 12
	LlamaLangLexerCOLON                  = 13
	LlamaLangLexerDOT                    = 14
	LlamaLangLexerPLUS_PLUS              = 15
	LlamaLangLexerMINUS_MINUS            = 16
	LlamaLangLexerDECLARE_ASSIGN         = 17
	LlamaLangLexerELLIPSIS               = 18
	LlamaLangLexerLOGICAL_OR             = 19
	LlamaLangLexerLOGICAL_AND            = 20
	LlamaLangLexerEQUALS                 = 21
	LlamaLangLexerNOT_EQUALS             = 22
	LlamaLangLexerLESS                   = 23
	LlamaLangLexerLESS_OR_EQUALS         = 24
	LlamaLangLexerGREATER                = 25
	LlamaLangLexerGREATER_OR_EQUALS      = 26
	LlamaLangLexerOR                     = 27
	LlamaLangLexerDIV                    = 28
	LlamaLangLexerMOD                    = 29
	LlamaLangLexerLSHIFT                 = 30
	LlamaLangLexerRSHIFT                 = 31
	LlamaLangLexerBIT_CLEAR              = 32
	LlamaLangLexerEXCLAMATION            = 33
	LlamaLangLexerPLUS                   = 34
	LlamaLangLexerMINUS                  = 35
	LlamaLangLexerCARET                  = 36
	LlamaLangLexerSTAR                   = 37
	LlamaLangLexerAMPERSAND              = 38
	LlamaLangLexerARROW                  = 39
	LlamaLangLexerDECIMAL_LIT            = 40
	LlamaLangLexerOCTAL_LIT              = 41
	LlamaLangLexerHEX_LIT                = 42
	LlamaLangLexerFLOAT_LIT              = 43
	LlamaLangLexerDOUBLE_LIT             = 44
	LlamaLangLexerRUNE_LIT               = 45
	LlamaLangLexerINTERPRETED_STRING_LIT = 46
	LlamaLangLexerWS                     = 47
	LlamaLangLexerCOMMENT                = 48
	LlamaLangLexerTERMINATOR             = 49
	LlamaLangLexerLINE_COMMENT           = 50
)

LlamaLangLexer tokens.

View Source
const (
	LlamaLangParserEOF                    = antlr.TokenEOF
	LlamaLangParserFUNC                   = 1
	LlamaLangParserRETURN                 = 2
	LlamaLangParserIDENTIFIER             = 3
	LlamaLangParserL_PAREN                = 4
	LlamaLangParserR_PAREN                = 5
	LlamaLangParserL_CURLY                = 6
	LlamaLangParserR_CURLY                = 7
	LlamaLangParserL_BRACKET              = 8
	LlamaLangParserR_BRACKET              = 9
	LlamaLangParserASSIGN                 = 10
	LlamaLangParserCOMMA                  = 11
	LlamaLangParserSEMI                   = 12
	LlamaLangParserCOLON                  = 13
	LlamaLangParserDOT                    = 14
	LlamaLangParserPLUS_PLUS              = 15
	LlamaLangParserMINUS_MINUS            = 16
	LlamaLangParserDECLARE_ASSIGN         = 17
	LlamaLangParserELLIPSIS               = 18
	LlamaLangParserLOGICAL_OR             = 19
	LlamaLangParserLOGICAL_AND            = 20
	LlamaLangParserEQUALS                 = 21
	LlamaLangParserNOT_EQUALS             = 22
	LlamaLangParserLESS                   = 23
	LlamaLangParserLESS_OR_EQUALS         = 24
	LlamaLangParserGREATER                = 25
	LlamaLangParserGREATER_OR_EQUALS      = 26
	LlamaLangParserOR                     = 27
	LlamaLangParserDIV                    = 28
	LlamaLangParserMOD                    = 29
	LlamaLangParserLSHIFT                 = 30
	LlamaLangParserRSHIFT                 = 31
	LlamaLangParserBIT_CLEAR              = 32
	LlamaLangParserEXCLAMATION            = 33
	LlamaLangParserPLUS                   = 34
	LlamaLangParserMINUS                  = 35
	LlamaLangParserCARET                  = 36
	LlamaLangParserSTAR                   = 37
	LlamaLangParserAMPERSAND              = 38
	LlamaLangParserARROW                  = 39
	LlamaLangParserDECIMAL_LIT            = 40
	LlamaLangParserOCTAL_LIT              = 41
	LlamaLangParserHEX_LIT                = 42
	LlamaLangParserFLOAT_LIT              = 43
	LlamaLangParserDOUBLE_LIT             = 44
	LlamaLangParserRUNE_LIT               = 45
	LlamaLangParserINTERPRETED_STRING_LIT = 46
	LlamaLangParserWS                     = 47
	LlamaLangParserCOMMENT                = 48
	LlamaLangParserTERMINATOR             = 49
	LlamaLangParserLINE_COMMENT           = 50
)

LlamaLangParser tokens.

View Source
const (
	LlamaLangParserRULE_sourceFile     = 0
	LlamaLangParserRULE_identifierList = 1
	LlamaLangParserRULE_expressionList = 2
	LlamaLangParserRULE_functionDef    = 3
	LlamaLangParserRULE_varDef         = 4
	LlamaLangParserRULE_block          = 5
	LlamaLangParserRULE_statementList  = 6
	LlamaLangParserRULE_statement      = 7
	LlamaLangParserRULE_simpleStmt     = 8
	LlamaLangParserRULE_expressionStmt = 9
	LlamaLangParserRULE_assignment     = 10
	LlamaLangParserRULE_assign_op      = 11
	LlamaLangParserRULE_emptyStmt      = 12
	LlamaLangParserRULE_returnStmt     = 13
	LlamaLangParserRULE_type_          = 14
	LlamaLangParserRULE_pointer        = 15
	LlamaLangParserRULE_array          = 16
	LlamaLangParserRULE_typeName       = 17
	LlamaLangParserRULE_signature      = 18
	LlamaLangParserRULE_result         = 19
	LlamaLangParserRULE_parameters     = 20
	LlamaLangParserRULE_parameterDecl  = 21
	LlamaLangParserRULE_expression     = 22
	LlamaLangParserRULE_primaryExpr    = 23
	LlamaLangParserRULE_unaryExpr      = 24
	LlamaLangParserRULE_conversion     = 25
	LlamaLangParserRULE_operand        = 26
	LlamaLangParserRULE_unaryOp        = 27
	LlamaLangParserRULE_literal        = 28
	LlamaLangParserRULE_basicLit       = 29
	LlamaLangParserRULE_integer        = 30
	LlamaLangParserRULE_floatingPoint  = 31
	LlamaLangParserRULE_operandName    = 32
	LlamaLangParserRULE_qualifiedIdent = 33
	LlamaLangParserRULE_literalType    = 34
	LlamaLangParserRULE_fieldDecl      = 35
	LlamaLangParserRULE_string_        = 36
	LlamaLangParserRULE_arguments      = 37
	LlamaLangParserRULE_methodExpr     = 38
	LlamaLangParserRULE_receiverType   = 39
	LlamaLangParserRULE_eos            = 40
)

LlamaLangParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentsContext

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

func NewArgumentsContext

func NewArgumentsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgumentsContext

func NewEmptyArgumentsContext

func NewEmptyArgumentsContext() *ArgumentsContext

func (*ArgumentsContext) Accept

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

func (*ArgumentsContext) AllCOMMA

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

func (*ArgumentsContext) COMMA

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

func (*ArgumentsContext) ELLIPSIS

func (s *ArgumentsContext) ELLIPSIS() antlr.TerminalNode

func (*ArgumentsContext) ExpressionList

func (s *ArgumentsContext) ExpressionList() IExpressionListContext

func (*ArgumentsContext) GetParser

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

func (*ArgumentsContext) GetRuleContext

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

func (*ArgumentsContext) IsArgumentsContext

func (*ArgumentsContext) IsArgumentsContext()

func (*ArgumentsContext) L_PAREN

func (s *ArgumentsContext) L_PAREN() antlr.TerminalNode

func (*ArgumentsContext) R_PAREN

func (s *ArgumentsContext) R_PAREN() antlr.TerminalNode

func (*ArgumentsContext) ToStringTree

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

func (*ArgumentsContext) Type_

func (s *ArgumentsContext) Type_() IType_Context

type ArrayContext

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

func NewArrayContext

func NewArrayContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArrayContext

func NewEmptyArrayContext

func NewEmptyArrayContext() *ArrayContext

func (*ArrayContext) Accept

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

func (*ArrayContext) GetParser

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

func (*ArrayContext) GetRuleContext

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

func (*ArrayContext) IsArrayContext

func (*ArrayContext) IsArrayContext()

func (*ArrayContext) L_BRACKET

func (s *ArrayContext) L_BRACKET() antlr.TerminalNode

func (*ArrayContext) R_BRACKET

func (s *ArrayContext) R_BRACKET() antlr.TerminalNode

func (*ArrayContext) ToStringTree

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

func (*ArrayContext) TypeName

func (s *ArrayContext) TypeName() ITypeNameContext

type Assign_opContext

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

func NewAssign_opContext

func NewAssign_opContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Assign_opContext

func NewEmptyAssign_opContext

func NewEmptyAssign_opContext() *Assign_opContext

func (*Assign_opContext) AMPERSAND

func (s *Assign_opContext) AMPERSAND() antlr.TerminalNode

func (*Assign_opContext) ASSIGN

func (s *Assign_opContext) ASSIGN() antlr.TerminalNode

func (*Assign_opContext) Accept

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

func (*Assign_opContext) BIT_CLEAR

func (s *Assign_opContext) BIT_CLEAR() antlr.TerminalNode

func (*Assign_opContext) CARET

func (s *Assign_opContext) CARET() antlr.TerminalNode

func (*Assign_opContext) DIV

func (*Assign_opContext) GetParser

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

func (*Assign_opContext) GetRuleContext

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

func (*Assign_opContext) IsAssign_opContext

func (*Assign_opContext) IsAssign_opContext()

func (*Assign_opContext) LSHIFT

func (s *Assign_opContext) LSHIFT() antlr.TerminalNode

func (*Assign_opContext) MINUS

func (s *Assign_opContext) MINUS() antlr.TerminalNode

func (*Assign_opContext) MOD

func (*Assign_opContext) OR

func (*Assign_opContext) PLUS

func (*Assign_opContext) RSHIFT

func (s *Assign_opContext) RSHIFT() antlr.TerminalNode

func (*Assign_opContext) STAR

func (*Assign_opContext) ToStringTree

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

type AssignmentContext

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

func NewAssignmentContext

func NewAssignmentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AssignmentContext

func NewEmptyAssignmentContext

func NewEmptyAssignmentContext() *AssignmentContext

func (*AssignmentContext) Accept

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

func (*AssignmentContext) Assign_op

func (s *AssignmentContext) Assign_op() IAssign_opContext

func (*AssignmentContext) ExpressionList

func (s *AssignmentContext) ExpressionList() IExpressionListContext

func (*AssignmentContext) GetParser

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

func (*AssignmentContext) GetRuleContext

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

func (*AssignmentContext) IDENTIFIER

func (s *AssignmentContext) IDENTIFIER() antlr.TerminalNode

func (*AssignmentContext) IsAssignmentContext

func (*AssignmentContext) IsAssignmentContext()

func (*AssignmentContext) ToStringTree

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

type BaseLlamaLangVisitor

type BaseLlamaLangVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseLlamaLangVisitor) VisitArguments

func (v *BaseLlamaLangVisitor) VisitArguments(ctx *ArgumentsContext) interface{}

func (*BaseLlamaLangVisitor) VisitArray

func (v *BaseLlamaLangVisitor) VisitArray(ctx *ArrayContext) interface{}

func (*BaseLlamaLangVisitor) VisitAssign_op

func (v *BaseLlamaLangVisitor) VisitAssign_op(ctx *Assign_opContext) interface{}

func (*BaseLlamaLangVisitor) VisitAssignment

func (v *BaseLlamaLangVisitor) VisitAssignment(ctx *AssignmentContext) interface{}

func (*BaseLlamaLangVisitor) VisitBasicLit

func (v *BaseLlamaLangVisitor) VisitBasicLit(ctx *BasicLitContext) interface{}

func (*BaseLlamaLangVisitor) VisitBlock

func (v *BaseLlamaLangVisitor) VisitBlock(ctx *BlockContext) interface{}

func (*BaseLlamaLangVisitor) VisitConversion

func (v *BaseLlamaLangVisitor) VisitConversion(ctx *ConversionContext) interface{}

func (*BaseLlamaLangVisitor) VisitEmptyStmt

func (v *BaseLlamaLangVisitor) VisitEmptyStmt(ctx *EmptyStmtContext) interface{}

func (*BaseLlamaLangVisitor) VisitEos

func (v *BaseLlamaLangVisitor) VisitEos(ctx *EosContext) interface{}

func (*BaseLlamaLangVisitor) VisitExpression

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

func (*BaseLlamaLangVisitor) VisitExpressionList

func (v *BaseLlamaLangVisitor) VisitExpressionList(ctx *ExpressionListContext) interface{}

func (*BaseLlamaLangVisitor) VisitExpressionStmt

func (v *BaseLlamaLangVisitor) VisitExpressionStmt(ctx *ExpressionStmtContext) interface{}

func (*BaseLlamaLangVisitor) VisitFieldDecl

func (v *BaseLlamaLangVisitor) VisitFieldDecl(ctx *FieldDeclContext) interface{}

func (*BaseLlamaLangVisitor) VisitFloatingPoint

func (v *BaseLlamaLangVisitor) VisitFloatingPoint(ctx *FloatingPointContext) interface{}

func (*BaseLlamaLangVisitor) VisitFunctionDef

func (v *BaseLlamaLangVisitor) VisitFunctionDef(ctx *FunctionDefContext) interface{}

func (*BaseLlamaLangVisitor) VisitIdentifierList

func (v *BaseLlamaLangVisitor) VisitIdentifierList(ctx *IdentifierListContext) interface{}

func (*BaseLlamaLangVisitor) VisitInteger

func (v *BaseLlamaLangVisitor) VisitInteger(ctx *IntegerContext) interface{}

func (*BaseLlamaLangVisitor) VisitLiteral

func (v *BaseLlamaLangVisitor) VisitLiteral(ctx *LiteralContext) interface{}

func (*BaseLlamaLangVisitor) VisitLiteralType

func (v *BaseLlamaLangVisitor) VisitLiteralType(ctx *LiteralTypeContext) interface{}

func (*BaseLlamaLangVisitor) VisitMethodExpr

func (v *BaseLlamaLangVisitor) VisitMethodExpr(ctx *MethodExprContext) interface{}

func (*BaseLlamaLangVisitor) VisitOperand

func (v *BaseLlamaLangVisitor) VisitOperand(ctx *OperandContext) interface{}

func (*BaseLlamaLangVisitor) VisitOperandName

func (v *BaseLlamaLangVisitor) VisitOperandName(ctx *OperandNameContext) interface{}

func (*BaseLlamaLangVisitor) VisitParameterDecl

func (v *BaseLlamaLangVisitor) VisitParameterDecl(ctx *ParameterDeclContext) interface{}

func (*BaseLlamaLangVisitor) VisitParameters

func (v *BaseLlamaLangVisitor) VisitParameters(ctx *ParametersContext) interface{}

func (*BaseLlamaLangVisitor) VisitPointer

func (v *BaseLlamaLangVisitor) VisitPointer(ctx *PointerContext) interface{}

func (*BaseLlamaLangVisitor) VisitPrimaryExpr

func (v *BaseLlamaLangVisitor) VisitPrimaryExpr(ctx *PrimaryExprContext) interface{}

func (*BaseLlamaLangVisitor) VisitQualifiedIdent

func (v *BaseLlamaLangVisitor) VisitQualifiedIdent(ctx *QualifiedIdentContext) interface{}

func (*BaseLlamaLangVisitor) VisitReceiverType

func (v *BaseLlamaLangVisitor) VisitReceiverType(ctx *ReceiverTypeContext) interface{}

func (*BaseLlamaLangVisitor) VisitResult

func (v *BaseLlamaLangVisitor) VisitResult(ctx *ResultContext) interface{}

func (*BaseLlamaLangVisitor) VisitReturnStmt

func (v *BaseLlamaLangVisitor) VisitReturnStmt(ctx *ReturnStmtContext) interface{}

func (*BaseLlamaLangVisitor) VisitSignature

func (v *BaseLlamaLangVisitor) VisitSignature(ctx *SignatureContext) interface{}

func (*BaseLlamaLangVisitor) VisitSimpleStmt

func (v *BaseLlamaLangVisitor) VisitSimpleStmt(ctx *SimpleStmtContext) interface{}

func (*BaseLlamaLangVisitor) VisitSourceFile

func (v *BaseLlamaLangVisitor) VisitSourceFile(ctx *SourceFileContext) interface{}

func (*BaseLlamaLangVisitor) VisitStatement

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

func (*BaseLlamaLangVisitor) VisitStatementList

func (v *BaseLlamaLangVisitor) VisitStatementList(ctx *StatementListContext) interface{}

func (*BaseLlamaLangVisitor) VisitString_

func (v *BaseLlamaLangVisitor) VisitString_(ctx *String_Context) interface{}

func (*BaseLlamaLangVisitor) VisitTypeName

func (v *BaseLlamaLangVisitor) VisitTypeName(ctx *TypeNameContext) interface{}

func (*BaseLlamaLangVisitor) VisitType_

func (v *BaseLlamaLangVisitor) VisitType_(ctx *Type_Context) interface{}

func (*BaseLlamaLangVisitor) VisitUnaryExpr

func (v *BaseLlamaLangVisitor) VisitUnaryExpr(ctx *UnaryExprContext) interface{}

func (*BaseLlamaLangVisitor) VisitUnaryOp

func (v *BaseLlamaLangVisitor) VisitUnaryOp(ctx *UnaryOpContext) interface{}

func (*BaseLlamaLangVisitor) VisitVarDef

func (v *BaseLlamaLangVisitor) VisitVarDef(ctx *VarDefContext) interface{}

type BasicLitContext

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

func NewBasicLitContext

func NewBasicLitContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BasicLitContext

func NewEmptyBasicLitContext

func NewEmptyBasicLitContext() *BasicLitContext

func (*BasicLitContext) Accept

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

func (*BasicLitContext) FloatingPoint

func (s *BasicLitContext) FloatingPoint() IFloatingPointContext

func (*BasicLitContext) GetParser

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

func (*BasicLitContext) GetRuleContext

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

func (*BasicLitContext) Integer

func (s *BasicLitContext) Integer() IIntegerContext

func (*BasicLitContext) IsBasicLitContext

func (*BasicLitContext) IsBasicLitContext()

func (*BasicLitContext) RUNE_LIT

func (s *BasicLitContext) RUNE_LIT() antlr.TerminalNode

func (*BasicLitContext) String_

func (s *BasicLitContext) String_() IString_Context

func (*BasicLitContext) ToStringTree

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

type BlockContext

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

func NewBlockContext

func NewBlockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *BlockContext

func NewEmptyBlockContext

func NewEmptyBlockContext() *BlockContext

func (*BlockContext) Accept

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

func (*BlockContext) GetParser

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

func (*BlockContext) GetRuleContext

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

func (*BlockContext) IsBlockContext

func (*BlockContext) IsBlockContext()

func (*BlockContext) L_CURLY

func (s *BlockContext) L_CURLY() antlr.TerminalNode

func (*BlockContext) R_CURLY

func (s *BlockContext) R_CURLY() antlr.TerminalNode

func (*BlockContext) StatementList

func (s *BlockContext) StatementList() IStatementListContext

func (*BlockContext) ToStringTree

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

type ConversionContext

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

func NewConversionContext

func NewConversionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConversionContext

func NewEmptyConversionContext

func NewEmptyConversionContext() *ConversionContext

func (*ConversionContext) Accept

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

func (*ConversionContext) COMMA

func (*ConversionContext) Expression

func (s *ConversionContext) Expression() IExpressionContext

func (*ConversionContext) GetParser

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

func (*ConversionContext) GetRuleContext

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

func (*ConversionContext) IsConversionContext

func (*ConversionContext) IsConversionContext()

func (*ConversionContext) L_PAREN

func (s *ConversionContext) L_PAREN() antlr.TerminalNode

func (*ConversionContext) R_PAREN

func (s *ConversionContext) R_PAREN() antlr.TerminalNode

func (*ConversionContext) ToStringTree

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

func (*ConversionContext) Type_

func (s *ConversionContext) Type_() IType_Context

type EmptyStmtContext

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

func NewEmptyEmptyStmtContext

func NewEmptyEmptyStmtContext() *EmptyStmtContext

func NewEmptyStmtContext

func NewEmptyStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EmptyStmtContext

func (*EmptyStmtContext) Accept

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

func (*EmptyStmtContext) GetParser

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

func (*EmptyStmtContext) GetRuleContext

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

func (*EmptyStmtContext) IsEmptyStmtContext

func (*EmptyStmtContext) IsEmptyStmtContext()

func (*EmptyStmtContext) SEMI

func (*EmptyStmtContext) ToStringTree

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

type EosContext

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

func NewEmptyEosContext

func NewEmptyEosContext() *EosContext

func NewEosContext

func NewEosContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EosContext

func (*EosContext) Accept

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

func (*EosContext) EOF

func (s *EosContext) EOF() antlr.TerminalNode

func (*EosContext) GetParser

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

func (*EosContext) GetRuleContext

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

func (*EosContext) IsEosContext

func (*EosContext) IsEosContext()

func (*EosContext) SEMI

func (s *EosContext) SEMI() antlr.TerminalNode

func (*EosContext) ToStringTree

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

type ExpressionContext

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

func NewEmptyExpressionContext

func NewEmptyExpressionContext() *ExpressionContext

func NewExpressionContext

func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext

func (*ExpressionContext) AMPERSAND

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

func (*ExpressionContext) Accept

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

func (*ExpressionContext) AllExpression

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

func (*ExpressionContext) BIT_CLEAR

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

func (*ExpressionContext) CARET

func (*ExpressionContext) DIV

func (*ExpressionContext) EQUALS

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

func (*ExpressionContext) Expression

func (s *ExpressionContext) Expression(i int) IExpressionContext

func (*ExpressionContext) GREATER

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

func (*ExpressionContext) GREATER_OR_EQUALS

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

func (*ExpressionContext) GetLeft

func (*ExpressionContext) GetParser

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

func (*ExpressionContext) GetRight

func (s *ExpressionContext) GetRight() IExpressionContext

func (*ExpressionContext) GetRuleContext

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

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) LESS

func (*ExpressionContext) LESS_OR_EQUALS

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

func (*ExpressionContext) LOGICAL_AND

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

func (*ExpressionContext) LOGICAL_OR

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

func (*ExpressionContext) LSHIFT

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

func (*ExpressionContext) MINUS

func (*ExpressionContext) MOD

func (*ExpressionContext) NOT_EQUALS

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

func (*ExpressionContext) OR

func (*ExpressionContext) PLUS

func (*ExpressionContext) PrimaryExpr

func (s *ExpressionContext) PrimaryExpr() IPrimaryExprContext

func (*ExpressionContext) RSHIFT

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

func (*ExpressionContext) STAR

func (*ExpressionContext) SetLeft

func (s *ExpressionContext) SetLeft(v IExpressionContext)

func (*ExpressionContext) SetRight

func (s *ExpressionContext) SetRight(v IExpressionContext)

func (*ExpressionContext) ToStringTree

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

func (*ExpressionContext) UnaryExpr

func (s *ExpressionContext) UnaryExpr() IUnaryExprContext

type ExpressionListContext

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

func NewEmptyExpressionListContext

func NewEmptyExpressionListContext() *ExpressionListContext

func NewExpressionListContext

func NewExpressionListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionListContext

func (*ExpressionListContext) Accept

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

func (*ExpressionListContext) AllCOMMA

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

func (*ExpressionListContext) AllExpression

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

func (*ExpressionListContext) COMMA

func (*ExpressionListContext) Expression

func (s *ExpressionListContext) Expression(i int) IExpressionContext

func (*ExpressionListContext) GetParser

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

func (*ExpressionListContext) GetRuleContext

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

func (*ExpressionListContext) IsExpressionListContext

func (*ExpressionListContext) IsExpressionListContext()

func (*ExpressionListContext) ToStringTree

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

type ExpressionStmtContext

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

func NewEmptyExpressionStmtContext

func NewEmptyExpressionStmtContext() *ExpressionStmtContext

func NewExpressionStmtContext

func NewExpressionStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionStmtContext

func (*ExpressionStmtContext) Accept

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

func (*ExpressionStmtContext) Expression

func (s *ExpressionStmtContext) Expression() IExpressionContext

func (*ExpressionStmtContext) GetParser

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

func (*ExpressionStmtContext) GetRuleContext

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

func (*ExpressionStmtContext) IsExpressionStmtContext

func (*ExpressionStmtContext) IsExpressionStmtContext()

func (*ExpressionStmtContext) ToStringTree

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

type FieldDeclContext

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

func NewEmptyFieldDeclContext

func NewEmptyFieldDeclContext() *FieldDeclContext

func NewFieldDeclContext

func NewFieldDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldDeclContext

func (*FieldDeclContext) Accept

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

func (*FieldDeclContext) GetParser

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

func (*FieldDeclContext) GetRuleContext

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

func (*FieldDeclContext) IdentifierList

func (s *FieldDeclContext) IdentifierList() IIdentifierListContext

func (*FieldDeclContext) IsFieldDeclContext

func (*FieldDeclContext) IsFieldDeclContext()

func (*FieldDeclContext) String_

func (s *FieldDeclContext) String_() IString_Context

func (*FieldDeclContext) ToStringTree

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

func (*FieldDeclContext) Type_

func (s *FieldDeclContext) Type_() IType_Context

type FloatingPointContext

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

func NewEmptyFloatingPointContext

func NewEmptyFloatingPointContext() *FloatingPointContext

func NewFloatingPointContext

func NewFloatingPointContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FloatingPointContext

func (*FloatingPointContext) Accept

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

func (*FloatingPointContext) DOUBLE_LIT

func (s *FloatingPointContext) DOUBLE_LIT() antlr.TerminalNode

func (*FloatingPointContext) FLOAT_LIT

func (s *FloatingPointContext) FLOAT_LIT() antlr.TerminalNode

func (*FloatingPointContext) GetParser

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

func (*FloatingPointContext) GetRuleContext

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

func (*FloatingPointContext) IsFloatingPointContext

func (*FloatingPointContext) IsFloatingPointContext()

func (*FloatingPointContext) ToStringTree

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

type FunctionDefContext

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

func NewEmptyFunctionDefContext

func NewEmptyFunctionDefContext() *FunctionDefContext

func NewFunctionDefContext

func NewFunctionDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionDefContext

func (*FunctionDefContext) ARROW

func (*FunctionDefContext) Accept

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

func (*FunctionDefContext) Block

func (s *FunctionDefContext) Block() IBlockContext

func (*FunctionDefContext) FUNC

func (*FunctionDefContext) GetParser

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

func (*FunctionDefContext) GetRuleContext

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

func (*FunctionDefContext) IDENTIFIER

func (s *FunctionDefContext) IDENTIFIER() antlr.TerminalNode

func (*FunctionDefContext) IsFunctionDefContext

func (*FunctionDefContext) IsFunctionDefContext()

func (*FunctionDefContext) Signature

func (s *FunctionDefContext) Signature() ISignatureContext

func (*FunctionDefContext) ToStringTree

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

func (*FunctionDefContext) Type_

func (s *FunctionDefContext) Type_() IType_Context

type IArgumentsContext

type IArgumentsContext interface {
	antlr.ParserRuleContext

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

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

IArgumentsContext is an interface to support dynamic dispatch.

type IArrayContext

type IArrayContext interface {
	antlr.ParserRuleContext

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

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

IArrayContext is an interface to support dynamic dispatch.

type IAssign_opContext

type IAssign_opContext interface {
	antlr.ParserRuleContext

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

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

IAssign_opContext is an interface to support dynamic dispatch.

type IAssignmentContext

type IAssignmentContext interface {
	antlr.ParserRuleContext

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

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

IAssignmentContext is an interface to support dynamic dispatch.

type IBasicLitContext

type IBasicLitContext interface {
	antlr.ParserRuleContext

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

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

IBasicLitContext is an interface to support dynamic dispatch.

type IBlockContext

type IBlockContext interface {
	antlr.ParserRuleContext

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

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

IBlockContext is an interface to support dynamic dispatch.

type IConversionContext

type IConversionContext interface {
	antlr.ParserRuleContext

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

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

IConversionContext is an interface to support dynamic dispatch.

type IEmptyStmtContext

type IEmptyStmtContext interface {
	antlr.ParserRuleContext

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

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

IEmptyStmtContext is an interface to support dynamic dispatch.

type IEosContext

type IEosContext interface {
	antlr.ParserRuleContext

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

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

IEosContext is an interface to support dynamic dispatch.

type IExpressionContext

type IExpressionContext interface {
	antlr.ParserRuleContext

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

	// GetLeft returns the left rule contexts.
	GetLeft() IExpressionContext

	// GetRight returns the right rule contexts.
	GetRight() IExpressionContext

	// SetLeft sets the left rule contexts.
	SetLeft(IExpressionContext)

	// SetRight sets the right rule contexts.
	SetRight(IExpressionContext)

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

IExpressionContext is an interface to support dynamic dispatch.

type IExpressionListContext

type IExpressionListContext interface {
	antlr.ParserRuleContext

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

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

IExpressionListContext is an interface to support dynamic dispatch.

type IExpressionStmtContext

type IExpressionStmtContext interface {
	antlr.ParserRuleContext

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

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

IExpressionStmtContext is an interface to support dynamic dispatch.

type IFieldDeclContext

type IFieldDeclContext interface {
	antlr.ParserRuleContext

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

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

IFieldDeclContext is an interface to support dynamic dispatch.

type IFloatingPointContext

type IFloatingPointContext interface {
	antlr.ParserRuleContext

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

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

IFloatingPointContext is an interface to support dynamic dispatch.

type IFunctionDefContext

type IFunctionDefContext interface {
	antlr.ParserRuleContext

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

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

IFunctionDefContext is an interface to support dynamic dispatch.

type IIdentifierListContext

type IIdentifierListContext interface {
	antlr.ParserRuleContext

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

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

IIdentifierListContext is an interface to support dynamic dispatch.

type IIntegerContext

type IIntegerContext interface {
	antlr.ParserRuleContext

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

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

IIntegerContext is an interface to support dynamic dispatch.

type ILiteralContext

type ILiteralContext interface {
	antlr.ParserRuleContext

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

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

ILiteralContext is an interface to support dynamic dispatch.

type ILiteralTypeContext

type ILiteralTypeContext interface {
	antlr.ParserRuleContext

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

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

ILiteralTypeContext is an interface to support dynamic dispatch.

type IMethodExprContext

type IMethodExprContext interface {
	antlr.ParserRuleContext

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

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

IMethodExprContext is an interface to support dynamic dispatch.

type IOperandContext

type IOperandContext interface {
	antlr.ParserRuleContext

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

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

IOperandContext is an interface to support dynamic dispatch.

type IOperandNameContext

type IOperandNameContext interface {
	antlr.ParserRuleContext

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

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

IOperandNameContext is an interface to support dynamic dispatch.

type IParameterDeclContext

type IParameterDeclContext interface {
	antlr.ParserRuleContext

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

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

IParameterDeclContext is an interface to support dynamic dispatch.

type IParametersContext

type IParametersContext interface {
	antlr.ParserRuleContext

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

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

IParametersContext is an interface to support dynamic dispatch.

type IPointerContext

type IPointerContext interface {
	antlr.ParserRuleContext

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

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

IPointerContext is an interface to support dynamic dispatch.

type IPrimaryExprContext

type IPrimaryExprContext interface {
	antlr.ParserRuleContext

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

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

IPrimaryExprContext is an interface to support dynamic dispatch.

type IQualifiedIdentContext

type IQualifiedIdentContext interface {
	antlr.ParserRuleContext

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

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

IQualifiedIdentContext is an interface to support dynamic dispatch.

type IReceiverTypeContext

type IReceiverTypeContext interface {
	antlr.ParserRuleContext

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

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

IReceiverTypeContext is an interface to support dynamic dispatch.

type IResultContext

type IResultContext interface {
	antlr.ParserRuleContext

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

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

IResultContext is an interface to support dynamic dispatch.

type IReturnStmtContext

type IReturnStmtContext interface {
	antlr.ParserRuleContext

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

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

IReturnStmtContext is an interface to support dynamic dispatch.

type ISignatureContext

type ISignatureContext interface {
	antlr.ParserRuleContext

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

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

ISignatureContext is an interface to support dynamic dispatch.

type ISimpleStmtContext

type ISimpleStmtContext interface {
	antlr.ParserRuleContext

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

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

ISimpleStmtContext is an interface to support dynamic dispatch.

type ISourceFileContext

type ISourceFileContext interface {
	antlr.ParserRuleContext

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

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

ISourceFileContext 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 IStatementListContext

type IStatementListContext interface {
	antlr.ParserRuleContext

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

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

IStatementListContext is an interface to support dynamic dispatch.

type IString_Context

type IString_Context interface {
	antlr.ParserRuleContext

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

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

IString_Context is an interface to support dynamic dispatch.

type ITypeNameContext

type ITypeNameContext interface {
	antlr.ParserRuleContext

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

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

ITypeNameContext is an interface to support dynamic dispatch.

type IType_Context

type IType_Context interface {
	antlr.ParserRuleContext

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

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

IType_Context is an interface to support dynamic dispatch.

type IUnaryExprContext

type IUnaryExprContext interface {
	antlr.ParserRuleContext

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

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

IUnaryExprContext is an interface to support dynamic dispatch.

type IUnaryOpContext

type IUnaryOpContext interface {
	antlr.ParserRuleContext

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

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

IUnaryOpContext is an interface to support dynamic dispatch.

type IVarDefContext

type IVarDefContext interface {
	antlr.ParserRuleContext

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

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

IVarDefContext is an interface to support dynamic dispatch.

type IdentifierListContext

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

func NewEmptyIdentifierListContext

func NewEmptyIdentifierListContext() *IdentifierListContext

func NewIdentifierListContext

func NewIdentifierListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentifierListContext

func (*IdentifierListContext) Accept

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

func (*IdentifierListContext) AllCOMMA

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

func (*IdentifierListContext) AllIDENTIFIER

func (s *IdentifierListContext) AllIDENTIFIER() []antlr.TerminalNode

func (*IdentifierListContext) COMMA

func (*IdentifierListContext) GetParser

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

func (*IdentifierListContext) GetRuleContext

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

func (*IdentifierListContext) IDENTIFIER

func (s *IdentifierListContext) IDENTIFIER(i int) antlr.TerminalNode

func (*IdentifierListContext) IsIdentifierListContext

func (*IdentifierListContext) IsIdentifierListContext()

func (*IdentifierListContext) ToStringTree

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

type IntegerContext

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

func NewEmptyIntegerContext

func NewEmptyIntegerContext() *IntegerContext

func NewIntegerContext

func NewIntegerContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IntegerContext

func (*IntegerContext) Accept

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

func (*IntegerContext) DECIMAL_LIT

func (s *IntegerContext) DECIMAL_LIT() antlr.TerminalNode

func (*IntegerContext) GetParser

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

func (*IntegerContext) GetRuleContext

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

func (*IntegerContext) HEX_LIT

func (s *IntegerContext) HEX_LIT() antlr.TerminalNode

func (*IntegerContext) IsIntegerContext

func (*IntegerContext) IsIntegerContext()

func (*IntegerContext) OCTAL_LIT

func (s *IntegerContext) OCTAL_LIT() antlr.TerminalNode

func (*IntegerContext) ToStringTree

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

type LiteralContext

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

func NewEmptyLiteralContext

func NewEmptyLiteralContext() *LiteralContext

func NewLiteralContext

func NewLiteralContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LiteralContext

func (*LiteralContext) Accept

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

func (*LiteralContext) BasicLit

func (s *LiteralContext) BasicLit() IBasicLitContext

func (*LiteralContext) GetParser

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

func (*LiteralContext) GetRuleContext

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

func (*LiteralContext) IsLiteralContext

func (*LiteralContext) IsLiteralContext()

func (*LiteralContext) ToStringTree

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

type LiteralTypeContext

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

func NewEmptyLiteralTypeContext

func NewEmptyLiteralTypeContext() *LiteralTypeContext

func NewLiteralTypeContext

func NewLiteralTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *LiteralTypeContext

func (*LiteralTypeContext) Accept

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

func (*LiteralTypeContext) GetParser

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

func (*LiteralTypeContext) GetRuleContext

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

func (*LiteralTypeContext) IsLiteralTypeContext

func (*LiteralTypeContext) IsLiteralTypeContext()

func (*LiteralTypeContext) ToStringTree

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

func (*LiteralTypeContext) TypeName

func (s *LiteralTypeContext) TypeName() ITypeNameContext

type LlamaLangLexer

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

func NewLlamaLangLexer

func NewLlamaLangLexer(input antlr.CharStream) *LlamaLangLexer

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

The *LlamaLangLexer instance produced may be reused by calling the SetInputStream method. The initial lexer configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.

type LlamaLangParser

type LlamaLangParser struct {
	*antlr.BaseParser
}

func NewLlamaLangParser

func NewLlamaLangParser(input antlr.TokenStream) *LlamaLangParser

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

The *LlamaLangParser instance produced may be reused by calling the SetInputStream method. The initial parser configuration is expensive to construct, and the object is not thread-safe; however, if used within a Golang sync.Pool, the construction cost amortizes well and the objects can be used in a thread-safe manner.

func (*LlamaLangParser) Arguments

func (p *LlamaLangParser) Arguments() (localctx IArgumentsContext)

func (*LlamaLangParser) Array

func (p *LlamaLangParser) Array() (localctx IArrayContext)

func (*LlamaLangParser) Assign_op

func (p *LlamaLangParser) Assign_op() (localctx IAssign_opContext)

func (*LlamaLangParser) Assignment

func (p *LlamaLangParser) Assignment() (localctx IAssignmentContext)

func (*LlamaLangParser) BasicLit

func (p *LlamaLangParser) BasicLit() (localctx IBasicLitContext)

func (*LlamaLangParser) Block

func (p *LlamaLangParser) Block() (localctx IBlockContext)

func (*LlamaLangParser) Conversion

func (p *LlamaLangParser) Conversion() (localctx IConversionContext)

func (*LlamaLangParser) EmptyStmt

func (p *LlamaLangParser) EmptyStmt() (localctx IEmptyStmtContext)

func (*LlamaLangParser) Eos

func (p *LlamaLangParser) Eos() (localctx IEosContext)

func (*LlamaLangParser) Expression

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

func (*LlamaLangParser) ExpressionList

func (p *LlamaLangParser) ExpressionList() (localctx IExpressionListContext)

func (*LlamaLangParser) ExpressionStmt

func (p *LlamaLangParser) ExpressionStmt() (localctx IExpressionStmtContext)

func (*LlamaLangParser) Expression_Sempred

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

func (*LlamaLangParser) FieldDecl

func (p *LlamaLangParser) FieldDecl() (localctx IFieldDeclContext)

func (*LlamaLangParser) FloatingPoint

func (p *LlamaLangParser) FloatingPoint() (localctx IFloatingPointContext)

func (*LlamaLangParser) FunctionDef

func (p *LlamaLangParser) FunctionDef() (localctx IFunctionDefContext)

func (*LlamaLangParser) IdentifierList

func (p *LlamaLangParser) IdentifierList() (localctx IIdentifierListContext)

func (*LlamaLangParser) Integer

func (p *LlamaLangParser) Integer() (localctx IIntegerContext)

func (*LlamaLangParser) Literal

func (p *LlamaLangParser) Literal() (localctx ILiteralContext)

func (*LlamaLangParser) LiteralType

func (p *LlamaLangParser) LiteralType() (localctx ILiteralTypeContext)

func (*LlamaLangParser) MethodExpr

func (p *LlamaLangParser) MethodExpr() (localctx IMethodExprContext)

func (*LlamaLangParser) Operand

func (p *LlamaLangParser) Operand() (localctx IOperandContext)

func (*LlamaLangParser) OperandName

func (p *LlamaLangParser) OperandName() (localctx IOperandNameContext)

func (*LlamaLangParser) ParameterDecl

func (p *LlamaLangParser) ParameterDecl() (localctx IParameterDeclContext)

func (*LlamaLangParser) Parameters

func (p *LlamaLangParser) Parameters() (localctx IParametersContext)

func (*LlamaLangParser) Pointer

func (p *LlamaLangParser) Pointer() (localctx IPointerContext)

func (*LlamaLangParser) PrimaryExpr

func (p *LlamaLangParser) PrimaryExpr() (localctx IPrimaryExprContext)

func (*LlamaLangParser) PrimaryExpr_Sempred

func (p *LlamaLangParser) PrimaryExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*LlamaLangParser) QualifiedIdent

func (p *LlamaLangParser) QualifiedIdent() (localctx IQualifiedIdentContext)

func (*LlamaLangParser) ReceiverType

func (p *LlamaLangParser) ReceiverType() (localctx IReceiverTypeContext)

func (*LlamaLangParser) Result

func (p *LlamaLangParser) Result() (localctx IResultContext)

func (*LlamaLangParser) ReturnStmt

func (p *LlamaLangParser) ReturnStmt() (localctx IReturnStmtContext)

func (*LlamaLangParser) Sempred

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

func (*LlamaLangParser) Signature

func (p *LlamaLangParser) Signature() (localctx ISignatureContext)

func (*LlamaLangParser) SimpleStmt

func (p *LlamaLangParser) SimpleStmt() (localctx ISimpleStmtContext)

func (*LlamaLangParser) SourceFile

func (p *LlamaLangParser) SourceFile() (localctx ISourceFileContext)

func (*LlamaLangParser) Statement

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

func (*LlamaLangParser) StatementList

func (p *LlamaLangParser) StatementList() (localctx IStatementListContext)

func (*LlamaLangParser) String_

func (p *LlamaLangParser) String_() (localctx IString_Context)

func (*LlamaLangParser) TypeName

func (p *LlamaLangParser) TypeName() (localctx ITypeNameContext)

func (*LlamaLangParser) Type_

func (p *LlamaLangParser) Type_() (localctx IType_Context)

func (*LlamaLangParser) UnaryExpr

func (p *LlamaLangParser) UnaryExpr() (localctx IUnaryExprContext)

func (*LlamaLangParser) UnaryOp

func (p *LlamaLangParser) UnaryOp() (localctx IUnaryOpContext)

func (*LlamaLangParser) VarDef

func (p *LlamaLangParser) VarDef() (localctx IVarDefContext)

type LlamaLangVisitor

type LlamaLangVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by LlamaLangParser#sourceFile.
	VisitSourceFile(ctx *SourceFileContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#identifierList.
	VisitIdentifierList(ctx *IdentifierListContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#expressionList.
	VisitExpressionList(ctx *ExpressionListContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#functionDef.
	VisitFunctionDef(ctx *FunctionDefContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#varDef.
	VisitVarDef(ctx *VarDefContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#block.
	VisitBlock(ctx *BlockContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#statementList.
	VisitStatementList(ctx *StatementListContext) interface{}

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

	// Visit a parse tree produced by LlamaLangParser#simpleStmt.
	VisitSimpleStmt(ctx *SimpleStmtContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#expressionStmt.
	VisitExpressionStmt(ctx *ExpressionStmtContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#assignment.
	VisitAssignment(ctx *AssignmentContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#assign_op.
	VisitAssign_op(ctx *Assign_opContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#emptyStmt.
	VisitEmptyStmt(ctx *EmptyStmtContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#returnStmt.
	VisitReturnStmt(ctx *ReturnStmtContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#type_.
	VisitType_(ctx *Type_Context) interface{}

	// Visit a parse tree produced by LlamaLangParser#pointer.
	VisitPointer(ctx *PointerContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#array.
	VisitArray(ctx *ArrayContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#typeName.
	VisitTypeName(ctx *TypeNameContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#signature.
	VisitSignature(ctx *SignatureContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#result.
	VisitResult(ctx *ResultContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#parameters.
	VisitParameters(ctx *ParametersContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#parameterDecl.
	VisitParameterDecl(ctx *ParameterDeclContext) interface{}

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

	// Visit a parse tree produced by LlamaLangParser#primaryExpr.
	VisitPrimaryExpr(ctx *PrimaryExprContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#unaryExpr.
	VisitUnaryExpr(ctx *UnaryExprContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#conversion.
	VisitConversion(ctx *ConversionContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#operand.
	VisitOperand(ctx *OperandContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#unaryOp.
	VisitUnaryOp(ctx *UnaryOpContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#literal.
	VisitLiteral(ctx *LiteralContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#basicLit.
	VisitBasicLit(ctx *BasicLitContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#integer.
	VisitInteger(ctx *IntegerContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#floatingPoint.
	VisitFloatingPoint(ctx *FloatingPointContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#operandName.
	VisitOperandName(ctx *OperandNameContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#qualifiedIdent.
	VisitQualifiedIdent(ctx *QualifiedIdentContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#literalType.
	VisitLiteralType(ctx *LiteralTypeContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#fieldDecl.
	VisitFieldDecl(ctx *FieldDeclContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#string_.
	VisitString_(ctx *String_Context) interface{}

	// Visit a parse tree produced by LlamaLangParser#arguments.
	VisitArguments(ctx *ArgumentsContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#methodExpr.
	VisitMethodExpr(ctx *MethodExprContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#receiverType.
	VisitReceiverType(ctx *ReceiverTypeContext) interface{}

	// Visit a parse tree produced by LlamaLangParser#eos.
	VisitEos(ctx *EosContext) interface{}
}

A complete Visitor for a parse tree produced by LlamaLangParser.

type MethodExprContext

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

func NewEmptyMethodExprContext

func NewEmptyMethodExprContext() *MethodExprContext

func NewMethodExprContext

func NewMethodExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MethodExprContext

func (*MethodExprContext) Accept

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

func (*MethodExprContext) DOT

func (*MethodExprContext) GetParser

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

func (*MethodExprContext) GetRuleContext

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

func (*MethodExprContext) IDENTIFIER

func (s *MethodExprContext) IDENTIFIER() antlr.TerminalNode

func (*MethodExprContext) IsMethodExprContext

func (*MethodExprContext) IsMethodExprContext()

func (*MethodExprContext) ReceiverType

func (s *MethodExprContext) ReceiverType() IReceiverTypeContext

func (*MethodExprContext) ToStringTree

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

type OperandContext

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

func NewEmptyOperandContext

func NewEmptyOperandContext() *OperandContext

func NewOperandContext

func NewOperandContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OperandContext

func (*OperandContext) Accept

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

func (*OperandContext) Expression

func (s *OperandContext) Expression() IExpressionContext

func (*OperandContext) GetParser

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

func (*OperandContext) GetRuleContext

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

func (*OperandContext) IsOperandContext

func (*OperandContext) IsOperandContext()

func (*OperandContext) L_PAREN

func (s *OperandContext) L_PAREN() antlr.TerminalNode

func (*OperandContext) Literal

func (s *OperandContext) Literal() ILiteralContext

func (*OperandContext) MethodExpr

func (s *OperandContext) MethodExpr() IMethodExprContext

func (*OperandContext) OperandName

func (s *OperandContext) OperandName() IOperandNameContext

func (*OperandContext) R_PAREN

func (s *OperandContext) R_PAREN() antlr.TerminalNode

func (*OperandContext) ToStringTree

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

type OperandNameContext

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

func NewEmptyOperandNameContext

func NewEmptyOperandNameContext() *OperandNameContext

func NewOperandNameContext

func NewOperandNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OperandNameContext

func (*OperandNameContext) Accept

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

func (*OperandNameContext) GetParser

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

func (*OperandNameContext) GetRuleContext

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

func (*OperandNameContext) IDENTIFIER

func (s *OperandNameContext) IDENTIFIER() antlr.TerminalNode

func (*OperandNameContext) IsOperandNameContext

func (*OperandNameContext) IsOperandNameContext()

func (*OperandNameContext) QualifiedIdent

func (s *OperandNameContext) QualifiedIdent() IQualifiedIdentContext

func (*OperandNameContext) ToStringTree

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

type ParameterDeclContext

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

func NewEmptyParameterDeclContext

func NewEmptyParameterDeclContext() *ParameterDeclContext

func NewParameterDeclContext

func NewParameterDeclContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParameterDeclContext

func (*ParameterDeclContext) Accept

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

func (*ParameterDeclContext) COLON

func (*ParameterDeclContext) GetParser

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

func (*ParameterDeclContext) GetRuleContext

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

func (*ParameterDeclContext) IDENTIFIER

func (s *ParameterDeclContext) IDENTIFIER() antlr.TerminalNode

func (*ParameterDeclContext) IsParameterDeclContext

func (*ParameterDeclContext) IsParameterDeclContext()

func (*ParameterDeclContext) ToStringTree

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

func (*ParameterDeclContext) Type_

type ParametersContext

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

func NewEmptyParametersContext

func NewEmptyParametersContext() *ParametersContext

func NewParametersContext

func NewParametersContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParametersContext

func (*ParametersContext) Accept

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

func (*ParametersContext) AllCOMMA

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

func (*ParametersContext) AllParameterDecl

func (s *ParametersContext) AllParameterDecl() []IParameterDeclContext

func (*ParametersContext) COMMA

func (*ParametersContext) GetParser

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

func (*ParametersContext) GetRuleContext

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

func (*ParametersContext) IsParametersContext

func (*ParametersContext) IsParametersContext()

func (*ParametersContext) L_PAREN

func (s *ParametersContext) L_PAREN() antlr.TerminalNode

func (*ParametersContext) ParameterDecl

func (s *ParametersContext) ParameterDecl(i int) IParameterDeclContext

func (*ParametersContext) R_PAREN

func (s *ParametersContext) R_PAREN() antlr.TerminalNode

func (*ParametersContext) ToStringTree

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

type PointerContext

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

func NewEmptyPointerContext

func NewEmptyPointerContext() *PointerContext

func NewPointerContext

func NewPointerContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PointerContext

func (*PointerContext) Accept

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

func (*PointerContext) GetParser

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

func (*PointerContext) GetRuleContext

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

func (*PointerContext) IsPointerContext

func (*PointerContext) IsPointerContext()

func (*PointerContext) STAR

func (s *PointerContext) STAR() antlr.TerminalNode

func (*PointerContext) ToStringTree

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

func (*PointerContext) Type_

func (s *PointerContext) Type_() IType_Context

type PrimaryExprContext

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

func NewEmptyPrimaryExprContext

func NewEmptyPrimaryExprContext() *PrimaryExprContext

func NewPrimaryExprContext

func NewPrimaryExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PrimaryExprContext

func (*PrimaryExprContext) Accept

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

func (*PrimaryExprContext) Arguments

func (s *PrimaryExprContext) Arguments() IArgumentsContext

func (*PrimaryExprContext) Conversion

func (s *PrimaryExprContext) Conversion() IConversionContext

func (*PrimaryExprContext) DOT

func (*PrimaryExprContext) GetParser

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

func (*PrimaryExprContext) GetRuleContext

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

func (*PrimaryExprContext) IDENTIFIER

func (s *PrimaryExprContext) IDENTIFIER() antlr.TerminalNode

func (*PrimaryExprContext) IsPrimaryExprContext

func (*PrimaryExprContext) IsPrimaryExprContext()

func (*PrimaryExprContext) Operand

func (s *PrimaryExprContext) Operand() IOperandContext

func (*PrimaryExprContext) PrimaryExpr

func (s *PrimaryExprContext) PrimaryExpr() IPrimaryExprContext

func (*PrimaryExprContext) ToStringTree

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

type QualifiedIdentContext

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

func NewEmptyQualifiedIdentContext

func NewEmptyQualifiedIdentContext() *QualifiedIdentContext

func NewQualifiedIdentContext

func NewQualifiedIdentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QualifiedIdentContext

func (*QualifiedIdentContext) Accept

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

func (*QualifiedIdentContext) AllIDENTIFIER

func (s *QualifiedIdentContext) AllIDENTIFIER() []antlr.TerminalNode

func (*QualifiedIdentContext) DOT

func (*QualifiedIdentContext) GetParser

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

func (*QualifiedIdentContext) GetRuleContext

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

func (*QualifiedIdentContext) IDENTIFIER

func (s *QualifiedIdentContext) IDENTIFIER(i int) antlr.TerminalNode

func (*QualifiedIdentContext) IsQualifiedIdentContext

func (*QualifiedIdentContext) IsQualifiedIdentContext()

func (*QualifiedIdentContext) ToStringTree

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

type ReceiverTypeContext

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

func NewEmptyReceiverTypeContext

func NewEmptyReceiverTypeContext() *ReceiverTypeContext

func NewReceiverTypeContext

func NewReceiverTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReceiverTypeContext

func (*ReceiverTypeContext) Accept

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

func (*ReceiverTypeContext) GetParser

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

func (*ReceiverTypeContext) GetRuleContext

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

func (*ReceiverTypeContext) IsReceiverTypeContext

func (*ReceiverTypeContext) IsReceiverTypeContext()

func (*ReceiverTypeContext) L_PAREN

func (s *ReceiverTypeContext) L_PAREN() antlr.TerminalNode

func (*ReceiverTypeContext) R_PAREN

func (s *ReceiverTypeContext) R_PAREN() antlr.TerminalNode

func (*ReceiverTypeContext) ReceiverType

func (s *ReceiverTypeContext) ReceiverType() IReceiverTypeContext

func (*ReceiverTypeContext) STAR

func (*ReceiverTypeContext) ToStringTree

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

func (*ReceiverTypeContext) TypeName

func (s *ReceiverTypeContext) TypeName() ITypeNameContext

type ResultContext

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

func NewEmptyResultContext

func NewEmptyResultContext() *ResultContext

func NewResultContext

func NewResultContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ResultContext

func (*ResultContext) Accept

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

func (*ResultContext) GetParser

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

func (*ResultContext) GetRuleContext

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

func (*ResultContext) IsResultContext

func (*ResultContext) IsResultContext()

func (*ResultContext) Parameters

func (s *ResultContext) Parameters() IParametersContext

func (*ResultContext) ToStringTree

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

func (*ResultContext) Type_

func (s *ResultContext) Type_() IType_Context

type ReturnStmtContext

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

func NewEmptyReturnStmtContext

func NewEmptyReturnStmtContext() *ReturnStmtContext

func NewReturnStmtContext

func NewReturnStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ReturnStmtContext

func (*ReturnStmtContext) Accept

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

func (*ReturnStmtContext) Expression

func (s *ReturnStmtContext) Expression() IExpressionContext

func (*ReturnStmtContext) GetParser

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

func (*ReturnStmtContext) GetRuleContext

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

func (*ReturnStmtContext) IsReturnStmtContext

func (*ReturnStmtContext) IsReturnStmtContext()

func (*ReturnStmtContext) RETURN

func (s *ReturnStmtContext) RETURN() antlr.TerminalNode

func (*ReturnStmtContext) ToStringTree

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

type SignatureContext

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

func NewEmptySignatureContext

func NewEmptySignatureContext() *SignatureContext

func NewSignatureContext

func NewSignatureContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SignatureContext

func (*SignatureContext) Accept

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

func (*SignatureContext) GetParser

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

func (*SignatureContext) GetRuleContext

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

func (*SignatureContext) IsSignatureContext

func (*SignatureContext) IsSignatureContext()

func (*SignatureContext) Parameters

func (s *SignatureContext) Parameters() IParametersContext

func (*SignatureContext) ToStringTree

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

type SimpleStmtContext

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

func NewEmptySimpleStmtContext

func NewEmptySimpleStmtContext() *SimpleStmtContext

func NewSimpleStmtContext

func NewSimpleStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SimpleStmtContext

func (*SimpleStmtContext) Accept

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

func (*SimpleStmtContext) Assignment

func (s *SimpleStmtContext) Assignment() IAssignmentContext

func (*SimpleStmtContext) EmptyStmt

func (s *SimpleStmtContext) EmptyStmt() IEmptyStmtContext

func (*SimpleStmtContext) ExpressionStmt

func (s *SimpleStmtContext) ExpressionStmt() IExpressionStmtContext

func (*SimpleStmtContext) GetParser

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

func (*SimpleStmtContext) GetRuleContext

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

func (*SimpleStmtContext) IsSimpleStmtContext

func (*SimpleStmtContext) IsSimpleStmtContext()

func (*SimpleStmtContext) ToStringTree

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

type SourceFileContext

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

func NewEmptySourceFileContext

func NewEmptySourceFileContext() *SourceFileContext

func NewSourceFileContext

func NewSourceFileContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SourceFileContext

func (*SourceFileContext) Accept

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

func (*SourceFileContext) AllEos

func (s *SourceFileContext) AllEos() []IEosContext

func (*SourceFileContext) AllFunctionDef

func (s *SourceFileContext) AllFunctionDef() []IFunctionDefContext

func (*SourceFileContext) AllVarDef

func (s *SourceFileContext) AllVarDef() []IVarDefContext

func (*SourceFileContext) Eos

func (s *SourceFileContext) Eos(i int) IEosContext

func (*SourceFileContext) FunctionDef

func (s *SourceFileContext) FunctionDef(i int) IFunctionDefContext

func (*SourceFileContext) GetParser

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

func (*SourceFileContext) GetRuleContext

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

func (*SourceFileContext) IsSourceFileContext

func (*SourceFileContext) IsSourceFileContext()

func (*SourceFileContext) ToStringTree

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

func (*SourceFileContext) VarDef

func (s *SourceFileContext) VarDef(i int) IVarDefContext

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

func (s *StatementContext) Block() IBlockContext

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

func (s *StatementContext) ReturnStmt() IReturnStmtContext

func (*StatementContext) SimpleStmt

func (s *StatementContext) SimpleStmt() ISimpleStmtContext

func (*StatementContext) ToStringTree

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

func (*StatementContext) VarDef

func (s *StatementContext) VarDef() IVarDefContext

type StatementListContext

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

func NewEmptyStatementListContext

func NewEmptyStatementListContext() *StatementListContext

func NewStatementListContext

func NewStatementListContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StatementListContext

func (*StatementListContext) Accept

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

func (*StatementListContext) AllEos

func (s *StatementListContext) AllEos() []IEosContext

func (*StatementListContext) AllStatement

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

func (*StatementListContext) Eos

func (*StatementListContext) GetParser

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

func (*StatementListContext) GetRuleContext

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

func (*StatementListContext) IsStatementListContext

func (*StatementListContext) IsStatementListContext()

func (*StatementListContext) Statement

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

func (*StatementListContext) ToStringTree

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

type String_Context

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

func NewEmptyString_Context

func NewEmptyString_Context() *String_Context

func NewString_Context

func NewString_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *String_Context

func (*String_Context) Accept

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

func (*String_Context) GetParser

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

func (*String_Context) GetRuleContext

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

func (*String_Context) INTERPRETED_STRING_LIT

func (s *String_Context) INTERPRETED_STRING_LIT() antlr.TerminalNode

func (*String_Context) IsString_Context

func (*String_Context) IsString_Context()

func (*String_Context) ToStringTree

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

type TypeNameContext

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

func NewEmptyTypeNameContext

func NewEmptyTypeNameContext() *TypeNameContext

func NewTypeNameContext

func NewTypeNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeNameContext

func (*TypeNameContext) Accept

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

func (*TypeNameContext) GetParser

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

func (*TypeNameContext) GetRuleContext

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

func (*TypeNameContext) IDENTIFIER

func (s *TypeNameContext) IDENTIFIER() antlr.TerminalNode

func (*TypeNameContext) IsTypeNameContext

func (*TypeNameContext) IsTypeNameContext()

func (*TypeNameContext) QualifiedIdent

func (s *TypeNameContext) QualifiedIdent() IQualifiedIdentContext

func (*TypeNameContext) ToStringTree

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

type Type_Context

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

func NewEmptyType_Context

func NewEmptyType_Context() *Type_Context

func NewType_Context

func NewType_Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Type_Context

func (*Type_Context) Accept

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

func (*Type_Context) Array

func (s *Type_Context) Array() IArrayContext

func (*Type_Context) GetParser

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

func (*Type_Context) GetRuleContext

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

func (*Type_Context) IsType_Context

func (*Type_Context) IsType_Context()

func (*Type_Context) Pointer

func (s *Type_Context) Pointer() IPointerContext

func (*Type_Context) ToStringTree

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

func (*Type_Context) TypeName

func (s *Type_Context) TypeName() ITypeNameContext

type UnaryExprContext

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

func NewEmptyUnaryExprContext

func NewEmptyUnaryExprContext() *UnaryExprContext

func NewUnaryExprContext

func NewUnaryExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnaryExprContext

func (*UnaryExprContext) Accept

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

func (*UnaryExprContext) Expression

func (s *UnaryExprContext) Expression() IExpressionContext

func (*UnaryExprContext) GetParser

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

func (*UnaryExprContext) GetRuleContext

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

func (*UnaryExprContext) IsUnaryExprContext

func (*UnaryExprContext) IsUnaryExprContext()

func (*UnaryExprContext) PrimaryExpr

func (s *UnaryExprContext) PrimaryExpr() IPrimaryExprContext

func (*UnaryExprContext) ToStringTree

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

func (*UnaryExprContext) UnaryOp

func (s *UnaryExprContext) UnaryOp() IUnaryOpContext

type UnaryOpContext

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

func NewEmptyUnaryOpContext

func NewEmptyUnaryOpContext() *UnaryOpContext

func NewUnaryOpContext

func NewUnaryOpContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnaryOpContext

func (*UnaryOpContext) AMPERSAND

func (s *UnaryOpContext) AMPERSAND() antlr.TerminalNode

func (*UnaryOpContext) Accept

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

func (*UnaryOpContext) EXCLAMATION

func (s *UnaryOpContext) EXCLAMATION() antlr.TerminalNode

func (*UnaryOpContext) GetParser

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

func (*UnaryOpContext) GetRuleContext

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

func (*UnaryOpContext) IsUnaryOpContext

func (*UnaryOpContext) IsUnaryOpContext()

func (*UnaryOpContext) MINUS

func (s *UnaryOpContext) MINUS() antlr.TerminalNode

func (*UnaryOpContext) MINUS_MINUS

func (s *UnaryOpContext) MINUS_MINUS() antlr.TerminalNode

func (*UnaryOpContext) PLUS

func (s *UnaryOpContext) PLUS() antlr.TerminalNode

func (*UnaryOpContext) PLUS_PLUS

func (s *UnaryOpContext) PLUS_PLUS() antlr.TerminalNode

func (*UnaryOpContext) STAR

func (s *UnaryOpContext) STAR() antlr.TerminalNode

func (*UnaryOpContext) ToStringTree

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

type VarDefContext

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

func NewEmptyVarDefContext

func NewEmptyVarDefContext() *VarDefContext

func NewVarDefContext

func NewVarDefContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VarDefContext

func (*VarDefContext) ASSIGN

func (s *VarDefContext) ASSIGN() antlr.TerminalNode

func (*VarDefContext) Accept

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

func (*VarDefContext) COLON

func (s *VarDefContext) COLON() antlr.TerminalNode

func (*VarDefContext) ExpressionList

func (s *VarDefContext) ExpressionList() IExpressionListContext

func (*VarDefContext) GetParser

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

func (*VarDefContext) GetRuleContext

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

func (*VarDefContext) IDENTIFIER

func (s *VarDefContext) IDENTIFIER() antlr.TerminalNode

func (*VarDefContext) IsVarDefContext

func (*VarDefContext) IsVarDefContext()

func (*VarDefContext) ToStringTree

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

func (*VarDefContext) Type_

func (s *VarDefContext) Type_() IType_Context

Jump to

Keyboard shortcuts

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