frame.go 348 B

12345678910111213141516
  1. package muesli
  2. // Frame of execution of a function in the Muesli VM
  3. type Frame struct {
  4. parent *Frame
  5. arguments []Value
  6. results []Value
  7. failed bool
  8. returned bool
  9. position *Position
  10. }
  11. func NewFrame(parent *Frame, position *Position) *Frame {
  12. return &Frame{parent, EmptyValueArray(), EmptyValueArray(), false, false, position}
  13. }