gcs

package
v1.15.2-0...-7a3f403 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 18 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTerminated = errors.New("eval terminated")

Functions

This section is empty.

Types

type Env

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

func NewEnv

func NewEnv(parent *Env) *Env

type Eval

type Eval struct {
	Core *core.Core
	AST  ast.Node
	Log  *log.Logger
	// contains filtered or unexported fields
}

func NewEvaluator

func NewEvaluator(ast ast.Node, c *core.Core) (*Eval, error)

func (*Eval) Continue

func (e *Eval) Continue()

func (*Eval) Err

func (e *Eval) Err() error

func (*Eval) Exit

func (e *Eval) Exit() error

Tell eval to exit now

func (*Eval) NextAction

func (e *Eval) NextAction() (*action.Eval, error)

NextAction asks eval to return the next action. Return nil, nil if no more action

func (*Eval) Run

func (e *Eval) Run() (res Obj, err error)

Run will execute the provided AST. Any genshin specific actions will be available via NextAction() TODO: remove defer in favour of every function actually returning error

func (*Eval) Start

func (e *Eval) Start()

type Obj

type Obj interface {
	Inspect() string
	Typ() ObjTyp
}

type ObjTyp

type ObjTyp int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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