Up to now functions could be stored as node values in frame (as for interpreter defined functions) or function values, directly callable by the Go runtime. We now always store functions in the later form, making the processing of functions, anonymous closures and methods simpler and more robust. All functions, once compiled are always directly callable, with no further wrapping necessary. Fixes #1459.
9 lines
378 B
Go
9 lines
378 B
Go
// Package yaegi provides a Go interpreter.
|
|
package yaegi
|
|
|
|
//go:generate go generate github.com/traefik/yaegi/internal/cmd/extract
|
|
//go:generate go generate github.com/traefik/yaegi/interp
|
|
//go:generate go generate github.com/traefik/yaegi/stdlib
|
|
//go:generate go generate github.com/traefik/yaegi/stdlib/syscall
|
|
//go:generate go generate github.com/traefik/yaegi/stdlib/unsafe
|