MCPcopy Index your code
hub / github.com/alecthomas/participle / init

Method init

_examples/basic/eval.go:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (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
40func (v *Value) Evaluate(ctx *Context) (interface{}, error) {
41 switch {

Callers 1

ParseFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected