class FunctionScope

Defined in:

interpreter/evaluation_context.cr

Constructors

Instance Method Summary

Instance methods inherited from class EvaluationContext

evaluateFunction(ref : LRef, arguments : Array(RuntimeValue)) : RuntimeValue evaluateFunction, getConstantValue(ref : LRef) : RuntimeValue getConstantValue, getFunction(ref : LRef) : RuntimeValue getFunction, getVariableValue(ref : LRef) : RuntimeValue getVariableValue, hasConstant(ref : LRef) : Bool hasConstant, hasVariable(ref : LRef) : Bool hasVariable, nameFree?(ref : LRef) : Bool nameFree?, setConstant(ref : LRef, value : RuntimeValue) setConstant, setFunction(ref : LRef, arguments : Array(LRef), body : Array(LData)) setFunction, setNewVariable(ref : LRef, value : RuntimeValue) setNewVariable, setVariable(ref : LRef, value : RuntimeValue) setVariable

Constructor Detail

def self.new(arguments : Hash(String, RuntimeValue), parent : EvaluationContext) #

[View source]

Instance Method Detail

def evaluateFunction(ref : LRef, arguments : Array(RuntimeValue)) : RuntimeValue #

[View source]
def getArgumentValue(ref : LRef) : RuntimeValue #

[View source]
def getConstantValue(ref : LRef) : RuntimeValue #

[View source]
def getVariableValue(ref : LRef) : RuntimeValue #

[View source]
def hasArgument(ref : LRef) : Bool #

[View source]
def hasConstant(ref : LRef) : Bool #

[View source]
def hasVariable(ref : LRef) : Bool #

[View source]
def nameFree?(ref : LRef) : Bool #

[View source]
def setConstant(ref : LRef, value : RuntimeValue) #

[View source]
def setFunction(ref : LRef, arguments : Array(LRef), body : Array(LData)) #

[View source]
def setNewVariable(ref : LRef, value : RuntimeValue) #

[View source]
def setVariable(ref : LRef, value : RuntimeValue) #

[View source]