א כָּל מְלָאכָה שֶׁאֲסוּר לַעֲשׂוֹתָהּ בַּשַׁבָּת, אָסוּר לַעֲשׂוֹתָהּ בְּיוֹם טוֹב. וּכְמוֹ שֶׁבַּשַׁבָּת אָסוּר לַעֲשׂוֹת אֲפִלּוּ עַל יְדֵי אֵינוֹ יְהוּדִי, כְּמוֹ כֵּן בְּיוֹם טוֹב. וּכְשֵׁם שֶׁאָדָם מְצֻוֶּה עַל שְׁבִיתַת בְּהֶמְתּוֹ בַּשַׁבָּת, כָּךְ הוּא מְצֻוֶּה בְּיוֹם טוֹב. וְאֵין בֵּין יוֹם טוֹב לְשַׁבָּת אֶלָּא אֹכֶל נֶפֶשׁ בִּלְבָד, שֶׁנֶּאֱמַר, אַךְ אֲשֶׁר יֵאָכֵל לְכָל נֶפֶשׁ הוּא לְבַדּוֹ יֵעָשֶׂה לָכֶם, דְּהַיְנוּ, לִישָׁה, אֲפִיָּה, שְׁחִיטָה וּבִשּׁוּל. וְהוֹצָאָה וְהַבְעָרָה מֻתָּרוֹת בְּיוֹם טוֹב גַּם שֶׁלֹּא לְצֹרֶךְ אֹכֶל נֶפֶשׁ, אֶלָּא לְצֹרֶךְ אַחֵר, כְּמוֹ שֶׁקִּבְּלוּ רַבּוֹתֵינוּ זִכְרוֹנָם לִבְרָכָה, דְּאָמְרִינָן בְּהוּ, מִתּוֹךְ שֶׁהֻתְּרוּ לְצֹרֶךְ אֹכֶל נֶפֶשׁ הֻתְּרוּ נַמִי שֶׁלֹּא לְצֹרֶךְ אֹכֶל נֶפֶשׁ, אֶלָּא לְצֹרֶךְ אַחֵר (תצה). וְנֵר שֶׁל יָארְצַיְיט (יום זכרון להוריו), אֵין לְהַדְלִיק בְּיוֹם טוֹב (עַיֵּן ספר שו"ת אמרי אש, אוֹרַח חַיִּים סִימָן מ', וְעַיֵּן לעיל ס"ס צ')
1 Any melachah (work) that may not be done on Shabbos, is also forbidden on Yom Tov. And just as on Shabbos it is forbidden to have work done even by a non-Jew, so it is forbidden on Yom Tov. And just as a person is commanded to allow his animals to rest on Shabbos, so, too, is he commanded on Yom Tov. Yom Tov differs from Shabbos only with regard to the preparation of food, for it says (concerning Yom Tov), "Only that which is eaten by any soul, that alone may be prepared by you." This includes kneading, baking, slaughtering, and cooking. Carrying, and lighting a fire are permitted on Yom Tov, even if not needed for preparing food, but for some other necessity. Our Sages, of Blessed Memory, had this rule by tradition regarding these (two melachos), of which it is said: "Since these labors are permitted for the purpose of preparing food, they are also permitted for purposes other than preparing food," but for some other necessity. However, a yahrzeit candle may not be lit on Yom Tov.