()
| 30 | } |
| 31 | |
| 32 | func (p *Program) init() { |
| 33 | p.Table = map[int]*Command{} |
| 34 | for index, cmd := range p.Commands { |
| 35 | cmd.Index = index |
| 36 | p.Table[cmd.Line] = cmd |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func (v *Value) Evaluate(ctx *Context) (interface{}, error) { |
| 41 | switch { |