code: func (g *generators) add(cb starlark.Callable) error {
  	if g.runningNow {
  		return fmt.Errorf("can't add a generator while already running them")
  	}
  	g.gen = append(g.gen, cb)
  	return nil
  }
docs: // add registers a new generator callback.