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