visitor

package
v0.0.0-...-3dc94c8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearRet

func ClearRet()

Types

type Visitor

type Visitor struct {
	parser.BaseMlanVisitor
	// contains filtered or unexported fields
}

func NewVisitor

func NewVisitor() *Visitor

func (*Visitor) GetError

func (v *Visitor) GetError() error

func (*Visitor) GetLine

func (v *Visitor) GetLine() int

func (*Visitor) InvokeNativeFunc

func (v *Visitor) InvokeNativeFunc(
	fn *object.NativeFunc,
	params ...object.Object,
) any

func (*Visitor) SetError

func (v *Visitor) SetError(err error)

func (*Visitor) Visit

func (v *Visitor) Visit(tree antlr.ParseTree) any

loop entry-point for visitor

func (*Visitor) VisitAssignIdxRegular

func (v *Visitor) VisitAssignIdxRegular(ctx *parser.AssignIdxRegularContext) any

func (*Visitor) VisitAssignRegular

func (v *Visitor) VisitAssignRegular(ctx *parser.AssignRegularContext) any

func (*Visitor) VisitAssignSub

func (v *Visitor) VisitAssignSub(ctx *parser.AssignSubContext) any

func (*Visitor) VisitAssignSum

func (v *Visitor) VisitAssignSum(ctx *parser.AssignSumContext) any

func (*Visitor) VisitBreakStmt

func (v *Visitor) VisitBreakStmt(ctx *parser.BreakStmtContext) any

func (*Visitor) VisitClosure

func (v *Visitor) VisitClosure(ctx *parser.ClosureContext) interface{}

func (*Visitor) VisitContinueStmt

func (v *Visitor) VisitContinueStmt(ctx *parser.ContinueStmtContext) any

func (*Visitor) VisitDict

func (v *Visitor) VisitDict(ctx *parser.DictContext) any

func (*Visitor) VisitElifBlockStmt

func (v *Visitor) VisitElifBlockStmt(ctx *parser.ElifBlockStmtContext) any

func (*Visitor) VisitElseBlockStmt

func (v *Visitor) VisitElseBlockStmt(ctx *parser.ElseBlockStmtContext) any

func (*Visitor) VisitExpBool

func (v *Visitor) VisitExpBool(ctx *parser.ExpBoolContext) any

func (*Visitor) VisitExpComparison

func (v *Visitor) VisitExpComparison(ctx *parser.ExpComparisonContext) any

func (*Visitor) VisitExpCs

func (v *Visitor) VisitExpCs(ctx *parser.ExpCsContext) any

func (*Visitor) VisitExpCsInvoke

func (v *Visitor) VisitExpCsInvoke(ctx *parser.ExpCsInvokeContext) any

func (*Visitor) VisitExpDict

func (v *Visitor) VisitExpDict(ctx *parser.ExpDictContext) any

func (*Visitor) VisitExpEqual

func (v *Visitor) VisitExpEqual(ctx *parser.ExpEqualContext) any

func (*Visitor) VisitExpFloat

func (v *Visitor) VisitExpFloat(ctx *parser.ExpFloatContext) any

func (*Visitor) VisitExpFnInvoke

func (v *Visitor) VisitExpFnInvoke(ctx *parser.ExpFnInvokeContext) any

func (*Visitor) VisitExpIdentifier

func (v *Visitor) VisitExpIdentifier(ctx *parser.ExpIdentifierContext) any

func (*Visitor) VisitExpIdx

func (v *Visitor) VisitExpIdx(ctx *parser.ExpIdxContext) any

func (*Visitor) VisitExpInteger

func (v *Visitor) VisitExpInteger(ctx *parser.ExpIntegerContext) any

func (*Visitor) VisitExpIntegerHex

func (v *Visitor) VisitExpIntegerHex(ctx *parser.ExpIntegerHexContext) any

func (*Visitor) VisitExpList

func (v *Visitor) VisitExpList(ctx *parser.ExpListContext) any

func (*Visitor) VisitExpLogicalAnd

func (v *Visitor) VisitExpLogicalAnd(ctx *parser.ExpLogicalAndContext) any

func (*Visitor) VisitExpLogicalNot

func (v *Visitor) VisitExpLogicalNot(ctx *parser.ExpLogicalNotContext) any

func (*Visitor) VisitExpLogicalOr

func (v *Visitor) VisitExpLogicalOr(ctx *parser.ExpLogicalOrContext) any

func (*Visitor) VisitExpMethodInvoke

func (v *Visitor) VisitExpMethodInvoke(ctx *parser.ExpMethodInvokeContext) interface{}

func (*Visitor) VisitExpMulDivMod

func (v *Visitor) VisitExpMulDivMod(ctx *parser.ExpMulDivModContext) any

func (*Visitor) VisitExpNeg

func (v *Visitor) VisitExpNeg(ctx *parser.ExpNegContext) any

func (*Visitor) VisitExpNull

func (v *Visitor) VisitExpNull(_ *parser.ExpNullContext) any

func (*Visitor) VisitExpParentheses

func (v *Visitor) VisitExpParentheses(ctx *parser.ExpParenthesesContext) any

func (*Visitor) VisitExpPow

func (v *Visitor) VisitExpPow(ctx *parser.ExpPowContext) any

func (*Visitor) VisitExpString

func (v *Visitor) VisitExpString(ctx *parser.ExpStringContext) any

func (*Visitor) VisitExpSumSub

func (v *Visitor) VisitExpSumSub(ctx *parser.ExpSumSubContext) any

func (*Visitor) VisitExpXor

func (v *Visitor) VisitExpXor(ctx *parser.ExpXorContext) any

func (*Visitor) VisitFn

func (v *Visitor) VisitFn(ctx *parser.FnContext) any

func (*Visitor) VisitFnBody

func (v *Visitor) VisitFnBody(ctx *parser.FnBodyContext) any

func (*Visitor) VisitForStmt

func (v *Visitor) VisitForStmt(ctx *parser.ForStmtContext) any

func (*Visitor) VisitIdentifierCsInvoke

func (v *Visitor) VisitIdentifierCsInvoke(ctx *parser.IdentifierCsInvokeContext) any

func (*Visitor) VisitIdentifierFnInvoke

func (v *Visitor) VisitIdentifierFnInvoke(ctx *parser.IdentifierFnInvokeContext) any

func (*Visitor) VisitIdentifierMethodInvoke

func (v *Visitor) VisitIdentifierMethodInvoke(ctx *parser.IdentifierMethodInvokeContext) interface{}

func (*Visitor) VisitIdx

func (v *Visitor) VisitIdx(ctx *parser.IdxContext) any

func (*Visitor) VisitIfBlockStmt

func (v *Visitor) VisitIfBlockStmt(ctx *parser.IfBlockStmtContext) any

func (*Visitor) VisitIfStmt

func (v *Visitor) VisitIfStmt(ctx *parser.IfStmtContext) any

func (*Visitor) VisitInclude

func (v *Visitor) VisitInclude(ctx *parser.IncludeContext) any

func (*Visitor) VisitList

func (v *Visitor) VisitList(ctx *parser.ListContext) any

func (*Visitor) VisitProg

func (v *Visitor) VisitProg(ctx *parser.ProgContext) any

func (*Visitor) VisitReturnStmt

func (v *Visitor) VisitReturnStmt(ctx *parser.ReturnStmtContext) any

func (*Visitor) VisitStmt

func (v *Visitor) VisitStmt(ctx *parser.StmtContext) any

func (*Visitor) VisitWhileStmt

func (v *Visitor) VisitWhileStmt(ctx *parser.WhileStmtContext) any

Jump to

Keyboard shortcuts

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