2014-10-18 14:31:20 +03:00
|
|
|
package vm
|
2014-10-14 12:48:52 +03:00
|
|
|
|
|
|
|
type VirtualMachine interface {
|
|
|
|
Env() Environment
|
2015-03-13 14:44:15 +02:00
|
|
|
Run(context *Context, data []byte) ([]byte, error)
|
2014-10-14 14:37:26 +03:00
|
|
|
Printf(string, ...interface{}) VirtualMachine
|
|
|
|
Endl() VirtualMachine
|
2014-10-14 12:48:52 +03:00
|
|
|
}
|