human

package
v0.0.0-...-a011eca Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: BSD-3-Clause, GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Human

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

A Human is a device that can do anything

func New

func New(opt Opt) *Human

New returns a new human device

func (*Human) CanCompile

func (a *Human) CanCompile(req ast.Request) bool

CanCompile implements device CanCompile

func (*Human) Compile

func (a *Human) Compile(ctx context.Context, nodes []ast.Node) ([]ast.Inst, error)

Compile implements target.device Compile

type Opt

type Opt struct {
	CanMix      bool
	CanIncubate bool
}

An Opt is a set of options to configure a human device

Jump to

Keyboard shortcuts

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