Example #1
0
func NewFrame(s *util.Stack) *Frame {
	f := &Frame{
		util.NewFrame(s),
		nil,
		make(map[string]int),
	}
	return f
}
Example #2
0
// PushFrame pushes a new frame to the frame stack
func (st *State) PushFrame() *util.Frame {
	f := util.NewFrame(st.framestack)
	st.frames.Push(f)
	f.SetMark(st.frames.Cur())
	return f
}