Esempio n. 1
0
func NewFrame(s stack.Stack) *Frame {
	f := &Frame{
		frame.New(s),
		nil,
		make(map[string]int),
	}
	return f
}
Esempio n. 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
}