C# Class kOS.Safe.Compilation.OpcodeEval

Replaces the topmost thing on the stack with its evaluated, fully dereferenced version. For example, if the variable foo contains value 4, and the top of the stack is the identifier name "$foo", then this will replace the "$foo" with a 4.
Inheritance: Opcode
Mostra file Open project: KSP-KOS/KOS

Public Methods

Method Description
Execute ( ICpu cpu ) : void
OpcodeEval ( ) : System
OpcodeEval ( bool bareOkay ) : System

Eval top thing on the stack and replace it with its dereferenced value. If you want to allow bare words like filenames then set argument bareOkay to true when constructing.

Method Details

Execute() public method

public Execute ( ICpu cpu ) : void
cpu ICpu
return void

OpcodeEval() public method

public OpcodeEval ( ) : System
return System

OpcodeEval() public method

Eval top thing on the stack and replace it with its dereferenced value. If you want to allow bare words like filenames then set argument bareOkay to true when constructing.
public OpcodeEval ( bool bareOkay ) : System
bareOkay bool
return System