evaluator library

Constants

FALSE → const MonkeyBoolean
const MonkeyBoolean(false)
NULL → const MonkeyNull
const MonkeyNull()
TRUE → const MonkeyBoolean
const MonkeyBoolean(true)

Functions

applyFunction(MonkeyObject function, List<MonkeyObject> args) MonkeyObject
eval(Node node, Environment env) MonkeyObject
evalArrayIndexExpression(MonkeyArray array, MonkeyInteger index) MonkeyObject
evalBangOperatorExpression(MonkeyObject right) MonkeyObject
evalBlockStatement(BlockStatement block, Environment env) MonkeyObject
evalExpressions(List<Expression> expressions, Environment env) List<MonkeyObject>
evalHashIndexExpression(Hash hash, MonkeyObject index) MonkeyObject
evalHashLiteral(HashLiteral node, Environment env) MonkeyObject
evalIdentifier(Identifier node, Environment env) MonkeyObject
evalIfExpression(IfExpression expression, Environment env) MonkeyObject
evalIndexExpression(MonkeyObject left, MonkeyObject index) MonkeyObject
evalInfixExpression(String operator, MonkeyObject left, MonkeyObject right) MonkeyObject
evalIntegerInfixExpression(String operator, MonkeyInteger left, MonkeyInteger right) MonkeyObject
evalMinusPrefixOperatorExpression(MonkeyObject right) MonkeyObject
evalPrefixExpression(String operator, MonkeyObject right) MonkeyObject
evalProgram(Program program, Environment env) MonkeyObject
evalStatements(List<Statement> statements, Environment env) MonkeyObject
evalStringInfixExpression(String operator, MonkeyString left, MonkeyString right) MonkeyObject
extendFunctionEnv(MonkeyFunction function, List<MonkeyObject> args) Environment
isTruthy(MonkeyObject condition) bool
nativeBoolToBooleanObject(bool value) MonkeyBoolean
unwrapReturnValue(MonkeyObject object) MonkeyObject