Program generates an evaluable instance of the Ast within the environment (Env).
(ast *Ast, opts ...ProgramOption)
| 687 | |
| 688 | // Program generates an evaluable instance of the Ast within the environment (Env). |
| 689 | func (e *Env) Program(ast *Ast, opts ...ProgramOption) (Program, error) { |
| 690 | return e.PlanProgram(ast.NativeRep(), opts...) |
| 691 | } |
| 692 | |
| 693 | // PlanProgram generates an evaluable instance of the AST in the go-native representation within |
| 694 | // the environment (Env). |