public override Value Evaluate(MachineState state) { var intrinsic = state.GetIntrinsic(_name.Name); if (intrinsic == null) { throw new ExecutionException("Attempted to call unknown function `{_name}`"); } return(intrinsic(_rhs.Evaluate(state))); }
public override Value Evaluate(MachineState state) { var intrinsic = state.GetIntrinsic(_name.Name); if (intrinsic == null) { throw new ExecutionException("Attempted to call unknown function `{_name}`"); } return(intrinsic(_rhs.Evaluate(state))); }