compiler

package
v0.0.0-...-271b4c5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2018 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Closure = &phpobj.ZClass{
	Name: "Closure",
	H:    &phpv.ZClassHandlers{},
}

> class Closure

Functions

func Compile

func Compile(parent phpv.Context, t *tokenizer.Lexer) (phpv.Runnable, error)

Types

type ZClosure

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

func (*ZClosure) Call

func (z *ZClosure) Call(ctx phpv.Context, args []*phpv.ZVal) (*phpv.ZVal, error)

func (*ZClosure) Compile

func (c *ZClosure) Compile(ctx phpv.Context) error

func (*ZClosure) Dump

func (c *ZClosure) Dump(w io.Writer) error

func (*ZClosure) GetArgs

func (z *ZClosure) GetArgs() []*phpv.FuncArg

func (*ZClosure) GetClass

func (z *ZClosure) GetClass() phpv.ZClass

func (*ZClosure) Run

func (closure *ZClosure) Run(ctx phpv.Context) (l *phpv.ZVal, err error)

func (*ZClosure) Spawn

func (z *ZClosure) Spawn(ctx phpv.Context) (*phpv.ZVal, error)

Jump to

Keyboard shortcuts

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