Chef

Материал из Seo Wiki - Поисковая Оптимизация и Программирование
Перейти к навигацииПерейти к поиску

Chefэзотерический язык программирования, разработанный Дэвидом Морган-Маром.
Каждая программа состоит из:

Переменные могут быть названы только названиями основных продуктов питания. Стеки, в которые помещаются значения переменных называются mixing bowls (Чаша миксера), а операции для манипуляции ими — mix (смешивание), stir (размешать), и так далее… Программа читается как рецепт приготовления пищи.

Программа Hello, World! на Chef

  Hello World Souffle.

Ingredients.
72 g haricot beans
101 eggs
108 g lard
111 cups oil
32 zucchinis
119 ml water
114 g red salmon
100 g dijon mustard
33 potatoes

Method.
Put potatoes into the mixing bowl.
Put dijon mustard into the mixing bowl.
Put lard into the mixing bowl.
Put red salmon into the mixing bowl.
Put oil into the mixing bowl.
Put water into the mixing bowl.
Put zucchinis into the mixing bowl.
Put oil into the mixing bowl.
Put lard into the mixing bowl.
Put lard into the mixing bowl.
Put eggs into the mixing bowl.
Put haricot beans into the mixing bowl.
Liquefy contents of the mixing bowl.
Pour contents of the mixing bowl into the baking dish.

Serves 1.

На выводе программа берёт значение последней переменной из стека, так как Ингредиенты не могут извлекаться из блюда в обратном порядке.

Ингредиенты (имена переменных)

Сокращение Оригинальное имя Русскоязычное значение
p potatoes картофель
d dijon mustard горчица
l lard сало
r red salmon нерка
o oil масло
w water вода
z zucchinis цуккини

Ссылки


de:Chef (Programmiersprache) en:Chef (programming language) pl:Chef (język programowania)

Если вам нравится SbUP.com Сайт, вы можете поддержать его - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 и ещё....