Struct librsnek::runtime::interpreter::InterpreterFrame [] [src]

struct InterpreterFrame {
    frame: RtObject,
    stack: RefCell<List>,
    lineno: Cell<usize>,
}

Attaches extra data to a frame object which is Interpreter runtime execution

Fields

Methods

impl InterpreterFrame
[src]

Create a new frame from an RtObject. Note that there are no asserts

Get the reference to the object that represents the frame.

Get a Ref to the frame's value stack.

The most recent line number. The parser and compiler eat a lot of the

Called by the interpreter to set the line of the frame

Push an object onto this frame's value stack. That object will become

Pop a value off of the value stack if present.

Remove all values in this frame's value stack. For use in the current

Trait Implementations

impl Clone for InterpreterFrame
[src]

Returns a copy of the value.

Performs copy-assignment from source.

impl Debug for InterpreterFrame
[src]

Formats the value using the given formatter.