Chef (programming language)

Chief (English for cooking or chef ) is a technology developed by David Morgan -Mar esoteric programming language. It is based on the modification of data in several stacks. The concept is similar to the esoteric programming language Shakespeare and that of the "serious" programming language BASIC.

Each program consists of at least the following components:

  • Title
  • List of variables and their values
  • List of instructions for modifying the stack

Although the names of variables can be individually chosen, usually variable but are named after typical cooking ingredients. The stacks are called "mixing bowls " or "baking dish", so make mixing bowls and baking sheets represents the commands are called " mix" ( Remix), " stir " ( stir ), etc. boss programs therefore read like English cooking recipes.

Example Program

The usual Hello world program can be written as follows:

Hello World Souffle Ingredients. 72 g haricot beans 101 eggs 108 grams lard 111 cups oil 32 zucchinis 119 ml of 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 Here, the Unicode value 72 ​​is assigned to the variable haricot beans, which represents the letter H - the variable is assigned the value 101 eggs ( symbol: s), etc. These values ​​are strung together by Put, converted by Liquefy in character, copied by Pour and finally issued by Serve, so Hello world! is output.

180849
de