Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 579 Bytes

MonkeyEvaluator.md

File metadata and controls

29 lines (21 loc) · 579 Bytes

STRUCT

MonkeyEvaluator

public struct MonkeyEvaluator: Evaluator

Methods

eval(node:environment:)

public static func eval(node: Node, environment: Environment<Object>) throws -> Object?

handleControlTransfer(_:environment:)

public static func handleControlTransfer(
    _ statement: ControlTransfer,
    environment: Environment<Object>
) throws -> Object?

Parameters

Name Description
statement Some ControlTransfer statement wrapper like return or break statements