builtin

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMethods

func GetMethods(importer ImportFunc, evaler EvalFunc, provider *state.Provider) map[string]lang.Method

func GetVariables

func GetVariables() map[string]lang.Object

Types

type EvalFunc

type EvalFunc func(code string) (lang.Object, error)

type Import

type Import struct {
	// contains filtered or unexported fields
}

func (*Import) Args

func (*Import) Args() []string

func (*Import) Execute

func (i *Import) Execute(args []lang.Object) (lang.Object, error)

type ImportFunc

type ImportFunc func(file string, d *models.Debug) (lang.Object, error)

type Print

type Print struct {
	// contains filtered or unexported fields
}

func (*Print) Args

func (p *Print) Args() []string

func (*Print) Execute

func (p *Print) Execute(args []lang.Object) (lang.Object, error)

func (*Print) GetVariadicArg

func (p *Print) GetVariadicArg() string

func (*Print) HasVariadicArg

func (p *Print) HasVariadicArg() bool

type State

type State struct {
	lang.Base
	// contains filtered or unexported fields
}

func NewState

func NewState(name string, debug *models.Debug, state state.State) *State

func (*State) Copy

func (s *State) Copy() lang.Object

func (*State) Method

func (s *State) Method(name string) lang.Method

func (*State) Methods

func (s *State) Methods() []string

func (*State) SetVariable

func (s *State) SetVariable(_ string, _ lang.Object) error

func (*State) String

func (s *State) String() string

func (*State) Type

func (s *State) Type() lang.ObjType

func (*State) TypeString

func (s *State) TypeString() string

func (*State) Value

func (s *State) Value() any

func (*State) Variable

func (s *State) Variable(variable string) lang.Object

func (*State) Variables

func (s *State) Variables() []string

Jump to

Keyboard shortcuts

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